diff --git a/backend/controllers/eclair/getInfo.js b/backend/controllers/eclair/getInfo.js index 0578a1ef..dbf11cf9 100644 --- a/backend/controllers/eclair/getInfo.js +++ b/backend/controllers/eclair/getInfo.js @@ -42,7 +42,7 @@ export const getInfo = (req, res, next) => { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'GetInfo', msg: 'Node Information Received', data: body }); return res.status(200).json(body); }).catch((errRes) => { - const err = common.handleError(errRes, 'GetInfo', 'Get Info Error', req); + const err = common.handleError(errRes, 'GetInfo', 'Get Info Error', req.session.selectedNode); return res.status(err.statusCode).json({ message: err.message, error: err.error }); }); } diff --git a/backend/utils/common.js b/backend/utils/common.js index 6e087956..4adf5fdf 100644 --- a/backend/utils/common.js +++ b/backend/utils/common.js @@ -276,6 +276,9 @@ export class CommonService { (err.message && typeof err.message === 'string') ? err.message : (typeof err === 'string') ? err : 'Unknown Error') }; } + if (selectedNode.ln_implementation === 'ECL' && err.message.indexOf('Authentication Error') < 0 && err.name === 'StatusCodeError') { + newErrorObj.statusCode = 500; + } return newErrorObj; }; this.getRequestIP = (req) => ((typeof req.headers['x-forwarded-for'] === 'string' && req.headers['x-forwarded-for'].split(',').shift()) || diff --git a/frontend/258.0bf5d5ca65f9938d.js b/frontend/258.eae6e81d49eb53ef.js similarity index 52% rename from frontend/258.0bf5d5ca65f9938d.js rename to frontend/258.eae6e81d49eb53ef.js index d37e7ff0..8d0c4255 100644 --- a/frontend/258.0bf5d5ca65f9938d.js +++ b/frontend/258.eae6e81d49eb53ef.js @@ -1 +1 @@ -"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[258],{7258:(kp,ft,f)=>{f.r(ft),f.d(ft,{ECLModule:()=>Rp});var u=f(9808),x=f(1402),Bt=f(8878),t=f(5e3),m=f(7093),M=f(5899);function Ht(n,a){1&n&&t._UZ(0,"mat-progress-bar",3)}let Ct=(()=>{class n{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(i=>{switch(!0){case i instanceof x.OD:this.loading=!0;break;case i instanceof x.m2:case i instanceof x.gk:case i instanceof x.Q3:this.loading=!1}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ht,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.loading))},directives:[m.xw,m.yH,m.Wh,u.O5,M.pW,x.lC],styles:[""],data:{animation:[Bt.g]}}),n})();var p=f(7579),_=f(2722),ot=f(1365),xt=f(3396),L=f(2687),l=f(7731),C=f(2501),O=f(5043),w=f(5620),P=f(62),q=f(9546),yt=f(3954),b=f(9224),N=f(7423),st=f(2181),vt=f(5245),Z=f(3322);const Tt=function(n){return{backgroundColor:n}};function zt(n,a){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,Tt,null==e.information?null:e.information.color))}}function Vt(n,a){if(1&n&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,Tt,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function Gt(n,a){if(1&n&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}let Wt=(()=>{class n{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.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,i){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,zt,1,3,"span",3),t.qZA()(),t.YNc(7,Vt,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Gt,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==i.information?null:i.information.alias," "),t.xp6(1),t.Q6J("ngIf",!i.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",i.showColorFieldSeparately),t.xp6(5),t.Oqu(null!=i.information&&i.information.lnImplementation||null!=i.information&&i.information.version?(null==i.information?null:i.information.lnImplementation)+" "+(null==i.information?null:i.information.version):""),t.xp6(4),t.Q6J("ngForOf",i.chains))},directives:[m.xw,m.yH,m.Wh,u.O5,u.PC,Z.Zl,u.sg],pipes:[u.gd],styles:[""]}),n})();function $t(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",e.balances.lightning/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",e.balances.onchain/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,e.balances.total)," Sats")}}function Xt(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Kt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){if(1&e&&(t.YNc(0,$t,21,11,"div",0),t.YNc(1,Xt,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.yH,m.Wh,M.pW],pipes:[u.JJ],styles:[""]}),n})();var y=f(7322),$=f(7238),K=f(4834),H=f(8129);const jt=function(){return["../connections/channels/open"]},te=function(n){return{filter:n}};function ee(n,a){if(1&n&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(23,jt))("state",t.VKq(24,te,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,(null==e?null:e.alias)||(null==e?null:e.shortChannelId),0,24),"",((null==e?null:e.alias)||(null==e?null:e.shortChannelId)).length>25?"...":""," "),t.xp6(6),t.hij("",t.xi3(9,15,(null==e?null:e.toLocal)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",i.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,18,(null==e?null:e.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,20,(null==e?null:e.toRemote)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function ne(n,a){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,ee,20,26,"div",18),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}function ie(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,ne,2,1,"div",16),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(8),t.hij("",t.xi3(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,10,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,12,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.xp6(2),t.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),t.xp6(4),t.Q6J("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",i)}}function ae(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToChannels()}),t._uU(3,"Open Channel"),t.qZA()()}}function oe(n,a){if(1&n&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let se=(()=>{class n{constructor(e){this.router=e,this.faBalanceScale=L.DL8,this.faDumbbell=L.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,"routerLink","state","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,i){if(1&e&&(t.YNc(0,ie,24,15,"div",0),t.YNc(1,ae,4,0,"ng-template",null,1,t.W1O),t.YNc(3,oe,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.Wh,m.yH,y.bx,q.BN,$.gM,M.pW,K.d,H.$V,u.sg,x.yS,N.lW],pipes:[u.JJ,u.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function le(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()()(),t.TgZ(20,"div",3)(21,"div")(22,"h4",4),t._uU(23,"Transactions"),t.qZA(),t.TgZ(24,"div",5),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div")(28,"h4",4),t._uU(29,"Transactions"),t.qZA(),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div")(34,"h4",4),t._uU(35,"Transactions"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==e.fees?null:e.fees.daily_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),t.xp6(7),t.Oqu(t.lcZ(26,12,null==e.fees?null:e.fees.daily_txs)),t.xp6(6),t.Oqu(t.lcZ(32,14,null==e.fees?null:e.fees.weekly_txs)),t.xp6(6),t.Oqu(t.lcZ(38,16,null==e.fees?null:e.fees.monthly_txs))}}function re(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let ce=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){var e;if(null===(e=this.fees)||void 0===e?void 0:e.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const i=Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10),o=Math.pow(10,i-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/o)*o/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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,le,39,18,"div",0),t.YNc(1,re,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();function ue(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Capacity"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Capacity"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Capacity"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),t.xp6(7),t.hij("",t.lcZ(29,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(35,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(41,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats")}}function pe(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let me=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,ue,42,18,"div",0),t.YNc(1,pe,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();function de(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toRemote||0,"1.0-0")," Sats")}}function he(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toLocal||0,"1.0-0")," Sats")}}function _e(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toRemote||0)/i.totalLiquidity*100:0)}}function ge(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toLocal||0)/i.totalLiquidity*100:0)}}const fe=function(){return["../connections/channels/open"]},Ce=function(n){return{filter:n}};function xe(n,a){if(1&n&&(t.TgZ(0,"div",14)(1,"a",15),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,de,5,4,"mat-hint",17),t.YNc(6,he,5,4,"mat-hint",17),t.qZA(),t.YNc(7,_e,1,1,"mat-progress-bar",18),t.YNc(8,ge,1,1,"mat-progress-bar",18),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(14,fe))("state",t.VKq(15,Ce,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,e.alias||e.shortChannelId,0,24),"",(e.alias||e.shortChannelId).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction),t.xp6(1),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction)}}function ye(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,xe,9,17,"div",13),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}const ve=function(n,a,e){return{"mb-4":n,"mb-2":a,"mb-1":e}};function Te(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.TgZ(10,"div",10),t.YNc(11,ye,2,1,"div",11),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.Q6J("ngClass",t.kEZ(7,ve,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)),t.xp6(5),t.hij("",t.xi3(6,4,e.totalLiquidity,"1.0-0")," Sats"),t.xp6(6),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",i)}}function Le(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToChannels()}),t._uU(1,"Open Channel"),t.qZA()}}function be(n,a){if(1&n&&(t.TgZ(0,"div",22),t._uU(1," No channels available. "),t.YNc(2,Le,2,0,"button",23),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===e.direction)}}function Se(n,a){if(1&n&&(t.TgZ(0,"div",25)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Ze=(()=>{class n{constructor(e,i){this.router=e,this.commonService=i,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0),t.Y36(P.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between 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"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["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,i){if(1&e&&(t.YNc(0,Te,12,11,"div",0),t.YNc(1,be,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Se,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.Wh,m.yH,u.mk,Z.oO,y.bx,M.pW,K.d,H.$V,u.sg,x.yS,$.gM,N.lW],pipes:[u.JJ,u.OU],styles:[""]}),n})();var R=f(3251),Q=f(9300),A=f(6087),S=f(4847),r=f(2075),J=f(8966),U=f(2994),X=f(6642),d=f(3075),Y=f(7531),j=f(3390),tt=f(6534),k=f(4107),z=f(508);function Ae(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function Ee(n,a){if(1&n&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function we(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.invoiceError)}}function Ie(n,a){if(1&n&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,we,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.invoiceError)}}let Fe=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.decimalPipe=s,this.commonService=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.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(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===e.payload.action&&(e.payload.status===l.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){if(this.invoiceError="",!this.description)return!0;let i=this.expiry?this.expiry:3600;this.expiry&&this.selTimeUnit!==l.Qk.SECS&&(i=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS));let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,U.Z$)({payload:o}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.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 n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(P.v),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-create-invoices"]],decls:35,vars:16,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","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","name","exp","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.description=c}),t.qZA(),t.YNc(13,Ae,2,0,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"mat-form-field",13)(16,"input",14),t.NdJ("ngModelChange",function(c){return i.invoiceValue=c})("keyup",function(){return i.onInvoiceValueChange()}),t.qZA(),t.TgZ(17,"span",15),t._uU(18," Sats "),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.qZA()(),t.TgZ(21,"mat-form-field",16)(22,"input",17),t.NdJ("ngModelChange",function(c){return i.expiry=c}),t.qZA(),t.TgZ(23,"span",15),t._uU(24),t.ALo(25,"titlecase"),t.qZA()(),t.TgZ(26,"mat-form-field",18)(27,"mat-select",19),t.NdJ("selectionChange",function(c){return i.onTimeUnitChange(c)}),t.YNc(28,Ee,3,4,"mat-option",20),t.qZA()()(),t.YNc(29,Ie,3,2,"div",21),t.TgZ(30,"div",22)(31,"button",23),t.NdJ("click",function(){return i.resetData()}),t._uU(32,"Clear Field"),t.qZA(),t.TgZ(33,"button",24),t.NdJ("click",function(){t.CHM(o);const c=t.MAs(10);return i.onAddInvoice(c)}),t._uU(34,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.description),t.xp6(1),t.Q6J("ngIf",!i.description),t.xp6(3),t.Q6J("ngModel",i.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(i.invoiceValueHint),t.xp6(2),t.Q6J("ngModel",i.expiry)("step",i.selTimeUnit===i.timeUnitEnum.SECS?300:i.selTimeUnit===i.timeUnitEnum.MINS?10:i.selTimeUnit===i.timeUnitEnum.HOURS?2:1)("min",1),t.xp6(2),t.hij("",t.lcZ(25,14,i.selTimeUnit)," "),t.xp6(3),t.Q6J("value",i.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",i.timeUnits),t.xp6(1),t.Q6J("ngIf",""!==i.invoiceError))},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,J.ZT,b.dn,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,j.h,d.Q7,d.JJ,d.On,u.O5,y.TO,d.wV,d.qQ,tt.q,y.R9,y.bx,k.gD,u.sg,z.ey,q.BN],pipes:[u.rS],styles:[""]}),n})();var qe=f(7766),E=f(7861),G=f(9445);function Ne(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function Oe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().description=o}),t.qZA(),t.YNc(4,Ne,2,0,"mat-error",8),t.qZA(),t.TgZ(5,"mat-form-field",9)(6,"input",10,11),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().invoiceValue=o})("keyup",function(){return t.CHM(e),t.oxw().onInvoiceValueChange()}),t.qZA(),t.TgZ(8,"span",12),t._uU(9," Sats "),t.qZA(),t.TgZ(10,"mat-hint"),t._uU(11),t.qZA()(),t.TgZ(12,"div",13)(13,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(14,"Clear Field"),t.qZA(),t.TgZ(15,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.MAs(1);return t.oxw().onAddInvoice(o)}),t._uU(16,"Create Invoice"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.description),t.xp6(1),t.Q6J("ngIf",!e.description),t.xp6(2),t.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),t.xp6(5),t.Oqu(e.invoiceValueHint)}}function Pe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().openCreateInvoiceModal()}),t._uU(2,"Create Invoice"),t.qZA()()}}function Ue(n,a){if(1&n&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Re(n,a){1&n&&t._UZ(0,"mat-progress-bar",56)}function ke(n,a){1&n&&t._UZ(0,"th",57)}const lt=function(n){return{"mr-0":n}};function De(n,a){if(1&n&&t._UZ(0,"span",62),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Je(n,a){if(1&n&&t._UZ(0,"span",63),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Me(n,a){if(1&n&&t._UZ(0,"span",64),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Qe(n,a){if(1&n&&(t.TgZ(0,"td",58),t.YNc(1,De,1,3,"span",59),t.YNc(2,Je,1,3,"span",60),t.YNc(3,Me,1,3,"span",61),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","received"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf","unpaid"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.status)||"expired"===(null==e?null:e.status)||"unknown"===(null==e?null:e.status))}}function Ye(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Date Created"),t.qZA())}function Be(n,a){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function He(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Date Expiry"),t.qZA())}function ze(n,a){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.expiresAt),"dd/MMM/y HH:mm")||"-")}}function Ve(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Date Settled"),t.qZA())}function Ge(n,a){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.receivedAt),"dd/MMM/y HH:mm")||"-")}}function We(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Node ID"),t.qZA())}const rt=function(n){return{width:n}};function $e(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function Xe(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Description"),t.qZA())}function Ke(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.description)}}function je(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Payment Hash"),t.qZA())}function tn(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash)}}function en(n,a){1&n&&(t.TgZ(0,"th",68),t._uU(1,"Amount (Sats)"),t.qZA())}function nn(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(null!=e&&e.amount?t.xi3(3,1,null==e?null:e.amount,"1.0-0"):"-")}}function an(n,a){1&n&&(t.TgZ(0,"th",70),t._uU(1," Amount Settled (Sats)"),t.qZA())}function on(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(null!=e&&e.amountSettled?t.xi3(3,1,null==e?null:e.amountSettled,"1.0-0"):"-")}}function sn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",71)(1,"div",72)(2,"mat-select",73),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function ln(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",75)(1,"div",72)(2,"mat-select",76),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onInvoiceClick(s)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onRefreshInvoice(s)}),t._uU(7,"Refresh"),t.qZA()()()()}}function rn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function cn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function un(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function pn(n,a){if(1&n&&(t.TgZ(0,"td",77),t.YNc(1,rn,2,0,"p",8),t.YNc(2,cn,2,0,"p",8),t.YNc(3,un,2,1,"p",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const mn=function(n){return{"display-none":n}};function dn(n,a){if(1&n&&t._UZ(0,"tr",78),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,mn,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function hn(n,a){1&n&&t._UZ(0,"tr",79)}function _n(n,a){1&n&&t._UZ(0,"tr",80)}const gn=function(){return["all"]},fn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Cn=function(){return["no_invoice"]};function xn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",20),t._UZ(3,"fa-icon",21),t.TgZ(4,"span",22),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"div",23)(7,"mat-form-field",24)(8,"mat-select",25),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilterBy=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.selFilter="",o.applyFilter()}),t.YNc(9,Ue,2,2,"mat-option",26),t.qZA()(),t.TgZ(10,"mat-form-field",24)(11,"input",27),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",28),t.YNc(13,Re,1,0,"mat-progress-bar",29),t.TgZ(14,"table",30,31),t.ynx(16,32),t.YNc(17,ke,1,0,"th",33),t.YNc(18,Qe,4,3,"td",34),t.BQk(),t.ynx(19,35),t.YNc(20,Ye,2,0,"th",36),t.YNc(21,Be,3,4,"td",34),t.BQk(),t.ynx(22,37),t.YNc(23,He,2,0,"th",36),t.YNc(24,ze,3,4,"td",34),t.BQk(),t.ynx(25,38),t.YNc(26,Ve,2,0,"th",36),t.YNc(27,Ge,3,4,"td",34),t.BQk(),t.ynx(28,39),t.YNc(29,We,2,0,"th",36),t.YNc(30,$e,4,4,"td",34),t.BQk(),t.ynx(31,40),t.YNc(32,Xe,2,0,"th",36),t.YNc(33,Ke,4,4,"td",34),t.BQk(),t.ynx(34,41),t.YNc(35,je,2,0,"th",36),t.YNc(36,tn,4,4,"td",34),t.BQk(),t.ynx(37,42),t.YNc(38,en,2,0,"th",43),t.YNc(39,nn,4,4,"td",34),t.BQk(),t.ynx(40,44),t.YNc(41,an,2,0,"th",45),t.YNc(42,on,4,4,"td",34),t.BQk(),t.ynx(43,46),t.YNc(44,sn,6,0,"th",47),t.YNc(45,ln,8,0,"td",48),t.BQk(),t.ynx(46,49),t.YNc(47,pn,4,3,"td",50),t.BQk(),t.YNc(48,dn,1,3,"tr",51),t.YNc(49,hn,1,0,"tr",52),t.YNc(50,_n,1,0,"tr",53),t.qZA()(),t._UZ(51,"mat-paginator",54),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(5),t.Q6J("ngModel",e.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(13,gn).concat(e.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",e.selFilter),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.invoices)("ngClass",t.VKq(14,fn,""!==e.errorMessage)),t.xp6(34),t.Q6J("matFooterRowDef",t.DdM(16,Cn)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Lt=(()=>{class n{constructor(e,i,o,s,c,h,g){this.logger=e,this.store=i,this.decimalPipe=o,this.commonService=s,this.datePipe=c,this.actions=h,this.camelCaseWithSpaces=g,this.calledFrom="transactions",this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:l.IV,sortBy:"expiresAt",sortOrder:l.Pi.DESCENDING},this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new r.by([]),this.invoiceJSONArr=[],this.information={},this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Ef).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=e.invoices&&e.invoices.length>0?e.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SET_LOOKUP_ECL&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,E.qR)({payload:{data:{pageSize:this.pageSize,component:Fe}}}))}onAddInvoice(e){if(!this.description)return!0;const i=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,U.Z$)({payload:o})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,E.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:qe.R}}}))}onRefreshInvoice(e){this.store.dispatch((0,U.n7)({payload:e.paymentHash}))}updateInvoicesData(e){var i;this.invoiceJSONArr=null===(i=this.invoiceJSONArr)||void 0===i?void 0:i.map(o=>o.paymentHash===e.paymentHash?e:o)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.invoices.filterPredicate=(e,i)=>{var o,s,c,h;let g="";switch(this.selFilterBy){case"all":g=(e.timestamp?null===(o=this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"status":g=(null==e?void 0:e.status)&&"expired"!==(null==e?void 0:e.status)&&"unknown"!==(null==e?void 0:e.status)?null===(s=e.status)||void 0===s?void 0:s.toLowerCase():"expired/unknown";break;case"timestamp":case"expiresAt":case"receivedAt":g=(null===(c=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm"))||void 0===c?void 0:c.toLowerCase())||"";break;case"amount":case"amountSettled":g=(null===(h=e[this.selFilterBy])||void 0===h?void 0:h.toString())||"-";break;default:g=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===g.indexOf(i):g.includes(i)}}loadInvoicesTable(e){var i;this.invoices=new r.by(e?[...e]:[]),this.invoices.sortingDataAccessor=(o,s)=>o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,this.invoices.sort=this.sort,null===(i=this.invoices.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.invoices.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[5])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.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")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(P.v),t.Y36(u.uU),t.Y36(X.eX),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["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","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["invcVal","ngModel"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",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.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","expiresAt"],["matColumnDef","receivedAt"],["matColumnDef","nodeId"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountSettled"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","p1-3",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"p1-3"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Oe,17,6,"form",1),t.YNc(2,Pe,3,0,"div",2),t.YNc(3,xn,52,17,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,d.Q7,d.JJ,d.On,y.TO,d.wV,d.qQ,tt.q,y.R9,y.bx,N.lW,q.BN,k.gD,u.sg,z.ey,H.$V,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,u.PC,Z.Zl,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}"]}),n})();var W=f(5698),ct=f(3289),bt=f(8104);const yn=["paymentReq"];function vn(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Tn(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Ln(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function bn(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function Sn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",17,18),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().paymentAmount=o})("change",function(o){return t.CHM(e),t.oxw().onAmountChange(o)}),t.qZA(),t.TgZ(3,"mat-hint"),t._uU(4,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(5,bn,2,0,"mat-error",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.paymentAmount),t.xp6(4),t.Q6J("ngIf",!e.paymentAmount)}}function Zn(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentError)}}function An(n,a){if(1&n&&(t.TgZ(0,"div",19),t._UZ(1,"fa-icon",20),t.YNc(2,Zn,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.paymentError)}}let En=(()=>{class n{constructor(e,i,o,s,c,h,g,v){this.dialogRef=e,this.store=i,this.eclEffects=o,this.logger=s,this.commonService=c,this.decimalPipe=h,this.actions=g,this.dataService=v,this.faExclamationTriangle=L.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.paymentError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activeChannels=e.activeChannels,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_PAYMENT_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,W.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+i.symbol+this.decimalPipe.transform(i.OTHER?i.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,U.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(e){this.paymentRequest=e&&"string"==typeof e?e.trim():e,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,W.q)(1)).subscribe({next:i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:i=>{this.logger.error(i),this.paymentDecodedHint="ERROR: "+(i.message?i.message:"string"==typeof i?i:JSON.stringify(i)),this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(w.yh),t.Y36(ct.o),t.Y36(O.mQ),t.Y36(P.v),t.Y36(u.JJ),t.Y36(X.eX),t.Y36(bt.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,i){if(1&e&&t.Gf(yn,5),2&e){let o;t.iGM(o=t.CRH())&&(i.paymentReq=o.first)}},decls:24,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","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","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",1)(12,"textarea",9,10),t.NdJ("ngModelChange",function(s){return i.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(14,vn,2,1,"mat-hint",11),t.YNc(15,Tn,2,0,"mat-error",11),t.YNc(16,Ln,2,1,"mat-error",11),t.qZA(),t.YNc(17,Sn,6,2,"mat-form-field",12),t.YNc(18,An,3,2,"div",13),t.TgZ(19,"div",14)(20,"button",15),t.NdJ("click",function(){return i.resetData()}),t._uU(21,"Clear Fields"),t.qZA(),t.TgZ(22,"button",16),t.NdJ("click",function(){return i.onSendPayment()}),t._uU(23,"Send Payment"),t.qZA()()()()()()),2&e){const o=t.MAs(13);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.paymentRequest),t.xp6(2),t.Q6J("ngIf",i.paymentRequest&&""!==i.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!i.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),t.xp6(1),t.Q6J("ngIf",i.zeroAmtInvoice),t.xp6(1),t.Q6J("ngIf",""!==i.paymentError)}},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,J.ZT,b.dn,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,j.h,d.Q7,d.JJ,d.On,u.O5,y.bx,y.TO,q.BN],styles:[""]}),n})();var V=f(1125);const wn=["scrollContainer"];function In(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"div",1)(2,"h4",11),t._uU(3,"Description"),t.qZA(),t.TgZ(4,"span",12),t._uU(5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(e.description)}}function Fn(n,a){1&n&&t._UZ(0,"mat-divider",14)}function qn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-expansion-panel",23),t.NdJ("opened",function(){return t.CHM(e),t.oxw().onExpansionOpen(!0)})("closed",function(){return t.CHM(e),t.oxw().onExpansionOpen(!1)}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t._uU(4),t.qZA(),t.TgZ(5,"h4",25),t._uU(6),t.ALo(7,"number"),t.qZA()()(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t._uU(12,"Fees (mSats)"),t.qZA(),t.TgZ(13,"span",12),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",26)(17,"h4",11),t._uU(18,"Date/Time"),t.qZA(),t.TgZ(19,"span",12),t._uU(20),t.ALo(21,"date"),t.qZA()()(),t._UZ(22,"mat-divider",14),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"ID"),t.qZA(),t.TgZ(27,"span",27),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",14),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"To Channel"),t.qZA(),t.TgZ(34,"span",27),t._uU(35),t.qZA()()()()()}if(2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.Q6J("expanded",o.expansionOpen),t.xp6(4),t.hij("Part ",i+1,""),t.xp6(2),t.hij("",t.lcZ(7,7,e.amount)," (Sats)"),t.xp6(8),t.Oqu(t.lcZ(15,9,e.feesPaid)),t.xp6(6),t.Oqu(t.xi3(21,11,e.timestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(e.id),t.xp6(7),t.Oqu(e.toChannelAlias)}}let Nn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(e){this.expansionOpen=e}onClose(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,i){if(1&e&&t.Gf(wn,5),2&e){let o;t.iGM(o=t.CRH())&&(i.scrollContainer=o.first)}},decls:66,vars:15,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"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["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"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Payment Information"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6,7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Amount (Sats)"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.TgZ(18,"div",13)(19,"h4",11),t._uU(20,"Date/Time"),t.qZA(),t.TgZ(21,"span",12),t._uU(22),t.ALo(23,"date"),t.qZA()()(),t._UZ(24,"mat-divider",14),t.TgZ(25,"div",9)(26,"div",1)(27,"h4",11),t._uU(28,"ID"),t.qZA(),t.TgZ(29,"span",12),t._uU(30),t.qZA()()(),t._UZ(31,"mat-divider",14),t.TgZ(32,"div",9)(33,"div",1)(34,"h4",11),t._uU(35,"Payment Hash"),t.qZA(),t.TgZ(36,"span",12),t._uU(37),t.qZA()()(),t._UZ(38,"mat-divider",14),t.TgZ(39,"div",9)(40,"div",1)(41,"h4",11),t._uU(42,"Payment Preimage"),t.qZA(),t.TgZ(43,"span",12),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",1)(48,"h4",11),t._uU(49,"Recipient Node"),t.qZA(),t.TgZ(50,"span",12),t._uU(51),t.qZA()()(),t._UZ(52,"mat-divider",14),t.YNc(53,In,6,1,"div",15),t.YNc(54,Fn,1,0,"mat-divider",16),t.TgZ(55,"div",9)(56,"div",1)(57,"mat-accordion"),t.YNc(58,qn,36,14,"mat-expansion-panel",17),t.qZA()()()()(),t.TgZ(59,"div",18)(60,"button",19),t.NdJ("click",function(){return i.onScrollDown()}),t.TgZ(61,"mat-icon",20),t._uU(62,"arrow_downward"),t.qZA()()(),t.TgZ(63,"div",21)(64,"button",22),t._uU(65,"OK"),t.qZA()()()()),2&e&&(t.xp6(16),t.Oqu(t.lcZ(17,10,i.payment.recipientAmount)),t.xp6(6),t.Oqu(t.xi3(23,12,i.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(i.payment.id),t.xp6(7),t.Oqu(i.payment.paymentHash),t.xp6(7),t.Oqu(i.payment.paymentPreimage),t.xp6(7),t.Oqu(i.payment.recipientNodeAlias),t.xp6(2),t.Q6J("ngIf",i.description),t.xp6(1),t.Q6J("ngIf",i.description),t.xp6(4),t.Q6J("ngForOf",i.payment.parts),t.xp6(6),t.Q6J("mat-dialog-close",!1))},directives:[m.xw,m.Wh,m.yH,b.dk,N.lW,b.dn,H.$V,K.d,u.O5,V.pp,u.sg,V.ib,V.yz,V.yK,vt.Hw,J.ZT],pipes:[u.JJ,u.uU],styles:[""]}),n})();var nt=f(3093);const On=["sendPaymentForm"];function Pn(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Un(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Rn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(5,Pn,2,1,"mat-hint",9),t.YNc(6,Un,2,0,"mat-error",9),t.qZA(),t.TgZ(7,"div",10)(8,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendPayment()}),t._uU(11,"Send Payment"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.paymentRequest),t.xp6(2),t.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!e.paymentRequest)}}function kn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSendPaymentModal()}),t._uU(2,"Send Payment"),t.qZA()()}}function Dn(n,a){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Jn(n,a){1&n&&t._UZ(0,"mat-progress-bar",60)}function Mn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Date/Time"),t.qZA())}function Qn(n,a){if(1&n&&(t.TgZ(0,"td",62),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,null==e?null:e.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function Yn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"ID"),t.qZA())}const D=function(n){return{width:n}};function Bn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.id)}}function Hn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Destination Node ID"),t.qZA())}function zn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeId)}}function Vn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Destination"),t.qZA())}function Gn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeAlias)}}function Wn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Description"),t.qZA())}function $n(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.description)}}function Xn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Payment Hash"),t.qZA())}function Kn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash)}}function jn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Preimage"),t.qZA())}function ti(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentPreimage)}}function ei(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Amount (Sats)"),t.qZA())}function ni(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"span",66),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.recipientAmount))}}function ii(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",67)(1,"div",68)(2,"mat-select",69),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",70),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function ai(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",71)(1,"button",72),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onPaymentClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function oi(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function si(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function li(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function ri(n,a){if(1&n&&(t.TgZ(0,"td",73),t.YNc(1,oi,2,0,"p",9),t.YNc(2,si,2,0,"p",9),t.YNc(3,li,2,1,"p",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function ci(n,a){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"dd/MMM/y HH:mm")," ")}}function ui(n,a){if(1&n&&(t.ynx(0),t.YNc(1,ci,3,4,"span",75),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function pi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"span",74),t._uU(2),t.qZA(),t.YNc(3,ui,2,1,"ng-container",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" Total Attempts: ",(null==e||null==e.parts?null:e.parts.length)||0," "),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function mi(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.id)}}function di(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,mi,4,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function hi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,di,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.id),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function _i(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.toChannelId)}}function gi(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,_i,4,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function fi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,gi,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeId),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ci(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.toChannelAlias)}}function xi(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ci,4,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function yi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,xi,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeAlias),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function vi(n,a){if(1&n&&(t.TgZ(0,"span",77),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.amount,"1.0-0")," ")}}function Ti(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,vi,3,4,"span",78),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Li(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"span",77),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,Ti,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.recipientAmount,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function bi(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Si(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,bi,5,7,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Zi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Si,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.description),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ai(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Ei(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ai,5,7,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function wi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Ei,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ii(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Fi(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ii,5,7,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function qi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Fi,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentPreimage),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ni(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",79)(1,"button",82),t.NdJ("click",function(){const s=t.CHM(e).$implicit,c=t.oxw(2).$implicit;return t.oxw(2).onPartClick(s,c)}),t._uU(2),t.qZA()()}if(2&n){const e=a.index;t.xp6(2),t.hij("View ",e+1,"")}}function Oi(n,a){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Ni,3,1,"div",81),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Pi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",62)(1,"span",79)(2,"button",80),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return s.is_expanded=!s.is_expanded}),t._uU(3),t.qZA()(),t.YNc(4,Oi,2,1,"div",9),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(3),t.Oqu(null!=e&&e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ui(n,a){1&n&&t._UZ(0,"tr",83)}const Ri=function(n){return{"display-none":n}};function ki(n,a){if(1&n&&t._UZ(0,"tr",84),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ri,(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Di(n,a){1&n&&t._UZ(0,"tr",85)}function Ji(n,a){1&n&&t._UZ(0,"tr",83)}const Mi=function(){return["all"]},Qi=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Yi=function(){return["no_payment"]};function Bi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._UZ(3,"fa-icon",17),t.TgZ(4,"span",18),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"div",19)(7,"mat-form-field",20)(8,"mat-select",21),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilterBy=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.selFilter="",o.applyFilter()}),t.YNc(9,Dn,2,2,"mat-option",22),t.qZA()(),t.TgZ(10,"mat-form-field",20)(11,"input",23),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",24)(13,"div",25),t.YNc(14,Jn,1,0,"mat-progress-bar",26),t.TgZ(15,"table",27,28),t.ynx(17,29),t.YNc(18,Mn,2,0,"th",30),t.YNc(19,Qn,3,4,"td",31),t.BQk(),t.ynx(20,32),t.YNc(21,Yn,2,0,"th",30),t.YNc(22,Bn,4,4,"td",31),t.BQk(),t.ynx(23,33),t.YNc(24,Hn,2,0,"th",30),t.YNc(25,zn,4,4,"td",31),t.BQk(),t.ynx(26,34),t.YNc(27,Vn,2,0,"th",30),t.YNc(28,Gn,4,4,"td",31),t.BQk(),t.ynx(29,35),t.YNc(30,Wn,2,0,"th",30),t.YNc(31,$n,4,4,"td",31),t.BQk(),t.ynx(32,36),t.YNc(33,Xn,2,0,"th",30),t.YNc(34,Kn,4,4,"td",31),t.BQk(),t.ynx(35,37),t.YNc(36,jn,2,0,"th",30),t.YNc(37,ti,4,4,"td",31),t.BQk(),t.ynx(38,38),t.YNc(39,ei,2,0,"th",39),t.YNc(40,ni,4,3,"td",31),t.BQk(),t.ynx(41,40),t.YNc(42,ii,6,0,"th",41),t.YNc(43,ai,3,0,"td",42),t.BQk(),t.ynx(44,43),t.YNc(45,ri,4,3,"td",44),t.BQk(),t.ynx(46,45),t.YNc(47,pi,4,2,"td",31),t.BQk(),t.ynx(48,46),t.YNc(49,hi,5,5,"td",31),t.BQk(),t.ynx(50,47),t.YNc(51,fi,5,5,"td",31),t.BQk(),t.ynx(52,48),t.YNc(53,yi,5,5,"td",31),t.BQk(),t.ynx(54,49),t.YNc(55,Li,5,5,"td",31),t.BQk(),t.ynx(56,50),t.YNc(57,Zi,5,5,"td",31),t.BQk(),t.ynx(58,51),t.YNc(59,wi,5,5,"td",31),t.BQk(),t.ynx(60,52),t.YNc(61,qi,5,5,"td",31),t.BQk(),t.ynx(62,53),t.YNc(63,Pi,5,2,"td",31),t.BQk(),t.YNc(64,Ui,1,0,"tr",54),t.YNc(65,ki,1,3,"tr",55),t.YNc(66,Di,1,0,"tr",56),t.YNc(67,Ji,1,0,"tr",57),t.qZA()()(),t._UZ(68,"mat-paginator",58),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(5),t.Q6J("ngModel",e.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(15,Mi).concat(e.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",e.selFilter),t.xp6(3),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.payments)("ngClass",t.VKq(16,Qi,""!==e.errorMessage)),t.xp6(49),t.Q6J("matRowDefColumns",e.partColumns)("matRowDefWhen",e.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(18,Yi)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let St=(()=>{class n{constructor(e,i,o,s,c,h,g,v){this.logger=e,this.commonService=i,this.store=o,this.rtlEffects=s,this.decimalPipe=c,this.dataService=h,this.datePipe=g,this.camelCaseWithSpaces=v,this.calledFrom="transactions",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:l.IV,sortBy:"firstPartTimestamp",sortOrder:l.Pi.DESCENDING},this.faHistory=L.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.payments=new r.by([]),this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.partColumns=[],this.displayedColumns.map(s=>this.partColumns.push("group_"+s)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.payments&&e.payments.sent&&e.payments.sent.length>0?e.payments.sent:[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.payments.filterPredicate=(e,i)=>{var o,s;let c="";switch(this.selFilterBy){case"all":c=(e.firstPartTimestamp?null===(o=this.datePipe.transform(new Date(e.firstPartTimestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"firstPartTimestamp":c=(null===(s=this.datePipe.transform(new Date(e.firstPartTimestamp||0),"dd/MMM/y HH:mm"))||void 0===s?void 0:s.toLowerCase())||"";break;default:c=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return c.includes(i)}}loadPaymentsTable(e){var i;this.payments=new r.by(e?[...e]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,s)=>{var c,h,g,v;switch(s){case"firstPartTimestamp":return this.commonService.sortByKey(o.parts,"timestamp","number",null===(c=this.sort)||void 0===c?void 0:c.direction),o.firstPartTimestamp;case"id":return this.commonService.sortByKey(o.parts,"id","string",null===(h=this.sort)||void 0===h?void 0:h.direction),o.id;case"recipientNodeAlias":return this.commonService.sortByKey(o.parts,"toChannelAlias","string",null===(g=this.sort)||void 0===g?void 0:g.direction),o.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(o.parts,"amount","number",null===(v=this.sort)||void 0===v?void 0:v.direction),o.recipientAmount;default:return o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null}},null===(i=this.payments.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,W.q)(1)).subscribe(i=>{i&&(this.store.dispatch((0,U.oV)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,W.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.amount=o[0].inputValue,this.store.dispatch((0,U.oV)({payload:{invoice:this.paymentRequest,amountMsat:1e3*o[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.q)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.amount?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,E.qR)({payload:{data:{component:En}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(e,i){return i.parts&&i.parts.length>1}onPaymentClick(e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe((0,W.q)(1)).subscribe({next:i=>{setTimeout(()=>{this.showPaymentView(e,i.length&&i.length>0?i[0]:[])},0)},error:i=>{this.showPaymentView(e,[])}}):this.showPaymentView(e,[])}showPaymentView(e,i){this.store.dispatch((0,E.qR)({payload:{data:{sentPaymentInfo:i,payment:e,component:Nn}}}))}onPartClick(e,i){i.paymentHash&&""!==i.paymentHash.trim()?this.dataService.decodePayments(i.paymentHash).pipe((0,W.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showPartView(e,i,o.length&&o.length>0?o[0]:[])},0)},error:o=>{this.showPartView(e,i,[])}}):this.showPartView(e,i,[])}showPartView(e,i,o){const s=[[{key:"paymentHash",value:i.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"paymentPreimage",value:i.paymentPreimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:l.Gi.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:l.Gi.STRING},{key:"timestamp",value:e.timestamp,title:"Time",width:50,type:l.Gi.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:l.Gi.NUMBER}]];o&&o.length>0&&o[0].paymentRequest&&o[0].paymentRequest.description&&""!==o[0].paymentRequest.description&&s.splice(3,0,[{key:"description",value:o[0].paymentRequest.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Part Information",message:s}}}))}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),i=null==e?void 0:e.reduce((o,s)=>(s.paymentHash&&""!==s.paymentHash.trim()&&(o=""===o?s.paymentHash:o+","+s.paymentHash),o),"");this.dataService.decodePayments(i).pipe((0,_.R)(this.unSubs[5])).subscribe(o=>{o.forEach((c,h)=>{c.length>0&&c[0].paymentRequest&&c[0].paymentRequest.description&&""!==c[0].paymentRequest.description&&(e[h].description=c[0].paymentRequest.description)});const s=null==e?void 0:e.reduce((c,h)=>c.concat(h),[]);this.commonService.downloadFile(s,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(nt.V),t.Y36(u.JJ),t.Y36(bt.D),t.Y36(u.uU),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,i){if(1&e&&(t.Gf(On,5),t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","colWidth","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","colWidth"],["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"],["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.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","colWidth",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","colWidth","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeId"],["matColumnDef","recipientNodeAlias"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","paymentPreimage"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_firstPartTimestamp"],["matColumnDef","group_id"],["matColumnDef","group_recipientNodeId"],["matColumnDef","group_recipientNodeAlias"],["matColumnDef","group_recipientAmount"],["matColumnDef","group_description"],["matColumnDef","group_paymentHash"],["matColumnDef","group_paymentPreimage"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end start"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["fxLayoutAlign","end start",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Rn,12,3,"form",1),t.YNc(2,kn,3,0,"div",2),t.YNc(3,Bi,69,19,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,d.Q7,H.$V,d.JJ,d.On,y.bx,y.TO,N.lW,q.BN,k.gD,u.sg,z.ey,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,u.PC,Z.Zl,k.$L,r.mD,r.yh,r.nj,r.Gk,r.Ke,r.Q2,r.as,r.XQ,A.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-group_actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{min-width:10rem;width:10rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{margin-top:.5rem;min-width:9rem;width:9rem}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%] .part-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:3rem}.part-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function Hi(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(11);t.Q6J("matMenuTriggerFor",e)}}function zi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw().$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Vi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onsortChannelsBy()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function Gi(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function Wi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",29),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function $i(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function Xi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-capacity-info",31),2&n){const e=t.oxw(3);t.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[2])}}function Ki(n,a){if(1&n&&t._UZ(0,"rtl-ecl-fee-info",32),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function ji(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-status-info",33),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[2])}}function ta(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const Zt=function(n){return{"dashboard-card-content":!0,"error-border":n}};function ea(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,Hi,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,zi,2,1,"button",15),t.YNc(13,Vi,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,Gi,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,Wi,1,2,"rtl-ecl-node-info",20),t.YNc(18,$i,1,2,"rtl-ecl-balances-info",21),t.YNc(19,Xi,1,4,"rtl-ecl-channel-capacity-info",22),t.YNc(20,Ki,1,2,"rtl-ecl-fee-info",23),t.YNc(21,ji,1,2,"rtl-ecl-channel-status-info",24),t.YNc(22,ta,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(5),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===e.id),t.xp6(1),t.s9C("fxFlex","capacity"===e.id?90:70),t.Q6J("ngClass",t.VKq(16,Zt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function na(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,ea,23,18,"mat-grid-tile",7),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.xp6(2),t.Oqu(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",e.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",e.operatorCards)}}function ia(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(9);t.Q6J("matMenuTriggerFor",e)}}function aa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(2).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function oa(n,a){if(1&n&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,ia,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,aa,2,1,"button",15),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions)}}function sa(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function la(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",43),2&n){const e=t.oxw(3);t.Q6J("information",e.information)}}function ra(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function ca(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function ua(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function pa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(3).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function ma(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()(),t.TgZ(3,"mat-menu",13,53),t.YNc(5,pa,2,1,"button",15),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw(2).$implicit;t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngForOf",i.goToOptions)}}function da(n,a){1&n&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-ecl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-ecl-lightning-payments",50),t.qZA(),t.TgZ(6,"mat-tab",51),t.YNc(7,ma,6,2,"ng-template",52),t.qZA()()()),2&n&&(t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(1),t.Q6J("disabled",!0))}function ha(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const _a=function(n){return{"p-0":n}};function ga(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),t.YNc(2,oa,11,4,"mat-card-header",37),t.TgZ(3,"mat-card-content",38),t.YNc(4,sa,1,0,"mat-progress-bar",18),t.TgZ(5,"div",19),t.YNc(6,la,1,1,"rtl-ecl-node-info",39),t.YNc(7,ra,1,2,"rtl-ecl-balances-info",21),t.YNc(8,ca,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(9,ua,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(10,da,8,3,"span",41),t.YNc(11,ha,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,_a,"transactions"===e.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==e.id),t.xp6(1),t.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),t.Q6J("ngClass",t.VKq(15,Zt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function fa(n,a){if(1&n&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",35),t.YNc(5,ga,12,17,"mat-grid-tile",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faSmile),t.xp6(2),t.hij("Welcome ",e.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",e.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",e.merchantCards)}}let Ca=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.commonService=o,this.router=s,this.faSmile=xt.ctA,this.faFrown=xt.KfU,this.faAngleDoubleDown=L.Sbq,this.faAngleDoubleUp=L.Vfw,this.faChartPie=L.OS1,this.faBolt=L.BDt,this.faServer=L.xf3,this.faNetworkWired=L.kXW,this.userPersonaEnum=l.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:l.Bn.COMPLETED},this.apiCallStatusFees={status:l.Bn.COMPLETED},this.apiCallStatusOCBal={status:l.Bn.COMPLETED},this.apiCallStatusAllChannels={status:l.Bn.COMPLETED},this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,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===l.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.T$).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=e.information}),this.store.select(C.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[3]),(0,ot.M)(this.store.select(C.kY))).subscribe(([e,i])=>{var o,s;this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=e.apiCallStatus,this.apiCallStatusOCBal=i.apiCallStatus,this.apiCallStatusAllChannels.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=e.activeChannels,this.onchainBalance=i.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=e.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const c=e.lightningBalance.localBalance?+e.lightningBalance.localBalance:0,h=e.lightningBalance.remoteBalance?+e.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:c,remoteBalance:h,balancedness:+(1-Math.abs((c-h)/(c+h))).toFixed(3)},this.channelsStatus=e.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(o=this.channels)||void 0===o?void 0:o.filter(v=>(v.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(s=this.channels)||void 0===s?void 0:s.filter(v=>(v.toLocal||0)>0),"toLocal"))),this.channels.forEach(v=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(v.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(v.toLocal||0)}),this.logger.info(e)})}onNavigateTo(e){this.router.navigateByUrl("/ecl/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((e,i)=>{const o=+(e.toLocal||0)+ +(e.toRemote||0),s=+(i.toLocal||0)+ +(i.toRemote||0);return o>s?-1:o{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(P.v),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["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",4,"ngFor","ngForOf"],["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"],["mat-menu-item","",3,"click"],["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-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,i){if(1&e&&(t.YNc(0,na,7,4,"div",0),t.YNc(1,fa,6,4,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",(null==i.selNode?null:i.selNode.userPersona)===i.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[u.O5,m.xw,m.Wh,q.BN,yt.Il,u.sg,yt.DX,m.yH,b.a8,b.dk,b.n5,N.lW,st.p6,vt.Hw,st.VK,st.OP,b.dn,u.mk,Z.oO,M.pW,u.RF,u.n9,Wt,Kt,se,ce,me,u.ED,Ze,R.SP,R.uX,Lt,St,R.uD],styles:[""]}),n})();var xa=f(8377);const ya=["form"];function va(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function Ta(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.amountError)}}function La(n,a){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function ba(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Target Confirmation Blocks is required."),t.qZA())}function Sa(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.sendFundError)}}function Za(n,a){if(1&n&&(t.TgZ(0,"div",30),t._UZ(1,"fa-icon",31),t.YNc(2,Sa,2,1,"span",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}let At=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.logger=i,this.store=o,this.commonService=s,this.decimalPipe=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.addressTypes=[],this.selectedAddress=l._t[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.amountError="Amount is Required.",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(e=>{e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,E.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendOnchainFunds"===e.payload.action&&(this.sendFundError=e.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.transaction.amount=parseInt(e[l.NT.SATS]),this.selAmountUnit=l.NT.SATS,this.store.dispatch((0,U.Iy)({payload:this.transaction}))},error:e=>{this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch((0,U.Iy)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(e){const i=this,o=this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit;let s=e.value===this.amountUnits[2]?l.NT.OTHER:e.value;this.transaction.amount&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(this.transaction.amount,o,s,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:c=>{this.selAmountUnit=e.value,i.transaction.amount=+i.decimalPipe.transform(c[s],i.currencyUnitFormats[s]).replace(/,/g,"")},error:c=>{this.amountError="Conversion Error: "+c,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(O.mQ),t.Y36(w.yh),t.Y36(P.v),t.Y36(u.JJ),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(e,i){if(1&e&&t.Gf(ya,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:36,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","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Target Confirmation Blocks","type","number","name","blocks","tabindex","8","required","true",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onSendFunds()})("reset",function(){return i.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"input",10,11),t.NdJ("ngModelChange",function(s){return i.transaction.address=s}),t.qZA(),t.YNc(14,va,2,0,"mat-error",12),t.qZA(),t.TgZ(15,"mat-form-field",13)(16,"input",14,15),t.NdJ("ngModelChange",function(s){return i.transaction.amount=s}),t.qZA(),t.TgZ(18,"span",16),t._uU(19),t.qZA(),t.YNc(20,Ta,2,1,"mat-error",12),t.qZA(),t.TgZ(21,"mat-form-field",17)(22,"mat-select",18),t.NdJ("selectionChange",function(s){return i.onAmountUnitChange(s)}),t.YNc(23,La,2,2,"mat-option",19),t.qZA()(),t.TgZ(24,"div",20)(25,"mat-form-field",21)(26,"input",22,23),t.NdJ("ngModelChange",function(s){return i.transaction.blocks=s}),t.qZA(),t.YNc(28,ba,2,0,"mat-error",12),t.qZA()(),t._UZ(29,"div",24),t.YNc(30,Za,3,2,"div",25),t.TgZ(31,"div",26)(32,"button",27),t._uU(33,"Clear Fields"),t.qZA(),t.TgZ(34,"button",28),t._uU(35,"Send Funds"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.transaction.address),t.xp6(2),t.Q6J("ngIf",!i.transaction.address),t.xp6(2),t.Q6J("ngModel",i.transaction.amount)("step",100)("min",0),t.xp6(3),t.hij("",i.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!i.transaction.amount),t.xp6(2),t.Q6J("value",i.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",i.amountUnits),t.xp6(3),t.Q6J("ngModel",i.transaction.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!i.transaction.blocks),t.xp6(2),t.Q6J("ngIf",""!==i.sendFundError))},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,J.ZT,b.dn,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,j.h,d.Q7,d.JJ,d.On,u.O5,y.TO,d.wV,d.qQ,tt.q,y.R9,k.gD,u.sg,z.ey,q.BN],styles:[""]}),n})();var ut=f(1203);function Aa(n,a){if(1&n&&(t.TgZ(0,"mat-option",34),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Ea(n,a){1&n&&t._UZ(0,"mat-progress-bar",35)}function wa(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Date/Time"),t.qZA())}function Ia(n,a){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function Fa(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Address"),t.qZA())}const pt=function(n){return{width:n}};function qa(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.address)}}function Na(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Blockhash"),t.qZA())}function Oa(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.blockHash)}}function Pa(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Transaction ID"),t.qZA())}function Ua(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.txid)}}function Ra(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Amount (Sats)"),t.qZA())}function ka(n,a){if(1&n&&(t.TgZ(0,"span",43),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.amount))}}function Da(n,a){if(1&n&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*(null==e?null:e.amount)),")")}}function Ja(n,a){if(1&n&&(t.TgZ(0,"td",37),t.YNc(1,ka,3,3,"span",41),t.YNc(2,Da,3,3,"span",42),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",(null==e?null:e.amount)>0||0===(null==e?null:e.amount)),t.xp6(1),t.Q6J("ngIf",(null==e?null:e.amount)<0)}}function Ma(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Fees (Sats)"),t.qZA())}function Qa(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.fees))}}function Ya(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Confirmations"),t.qZA())}function Ba(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.confirmations)," ")}}function Ha(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function za(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",49)(1,"button",50),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onTransactionClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function Va(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function Ga(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function Wa(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function $a(n,a){if(1&n&&(t.TgZ(0,"td",51),t.YNc(1,Va,2,0,"p",52),t.YNc(2,Ga,2,0,"p",52),t.YNc(3,Wa,2,1,"p",52),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Xa=function(n){return{"display-none":n}};function Ka(n,a){if(1&n&&t._UZ(0,"tr",53),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Xa,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function ja(n,a){1&n&&t._UZ(0,"tr",54)}function to(n,a){1&n&&t._UZ(0,"tr",55)}const eo=function(){return["all"]},no=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},io=function(){return["no_transaction"]};let ao=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.camelCaseWithSpaces=c,this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transaction",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.listTransactions=new r.by([]),this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,U.mC)()),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.dx).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&this.loadTransactionsTable(e.transactions),this.logger.info(e)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.listTransactions.filterPredicate=(e,i)=>{var o,s;let c="";switch(this.selFilterBy){case"all":c=(e.timestamp?null===(o=this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":c=(null===(s=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm"))||void 0===s?void 0:s.toLowerCase())||"";break;default:c=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return c.includes(i)}}onTransactionClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestamp",value:e.timestamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:l.Gi.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:l.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:l.Gi.STRING}]]}}}))}loadTransactionsTable(e){var i;this.listTransactions=new r.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,s)=>o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,null===(i=this.listTransactions.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(u.uU),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Transactions")}])],decls:47,vars:17,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","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","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","blockHash"],["matColumnDef","txid"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["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",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Transaction History"),t.qZA()(),t.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(9,Aa,2,2,"mat-option",8),t.qZA()(),t.TgZ(10,"mat-form-field",6)(11,"input",9),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",10)(13,"div",11),t.YNc(14,Ea,1,0,"mat-progress-bar",12),t.TgZ(15,"table",13,14),t.ynx(17,15),t.YNc(18,wa,2,0,"th",16),t.YNc(19,Ia,3,4,"td",17),t.BQk(),t.ynx(20,18),t.YNc(21,Fa,2,0,"th",16),t.YNc(22,qa,4,4,"td",17),t.BQk(),t.ynx(23,19),t.YNc(24,Na,2,0,"th",16),t.YNc(25,Oa,4,4,"td",17),t.BQk(),t.ynx(26,20),t.YNc(27,Pa,2,0,"th",16),t.YNc(28,Ua,4,4,"td",17),t.BQk(),t.ynx(29,21),t.YNc(30,Ra,2,0,"th",22),t.YNc(31,Ja,3,2,"td",17),t.BQk(),t.ynx(32,23),t.YNc(33,Ma,2,0,"th",22),t.YNc(34,Qa,4,3,"td",17),t.BQk(),t.ynx(35,24),t.YNc(36,Ya,2,0,"th",22),t.YNc(37,Ba,4,3,"td",17),t.BQk(),t.ynx(38,25),t.YNc(39,Ha,6,0,"th",26),t.YNc(40,za,3,0,"td",27),t.BQk(),t.ynx(41,28),t.YNc(42,$a,4,3,"td",29),t.BQk(),t.YNc(43,Ka,1,3,"tr",30),t.YNc(44,ja,1,0,"tr",31),t.YNc(45,to,1,0,"tr",32),t.qZA(),t._UZ(46,"mat-paginator",33),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",i.faHistory),t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(13,eo).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(3),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.listTransactions)("ngClass",t.VKq(14,no,""!==i.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(16,io)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,q.BN,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,u.PC,Z.Zl,k.$L,N.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.uU,u.JJ],styles:[""]}),n})();function oo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let so=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.selNode={},this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.LR).pipe((0,_.R)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.onchainBalance.total||0},{title:"Confirmed",dataValue:i.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:i.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,E.qR)({payload:{data:{component:At}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain"]],decls:21,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"],["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,"padding-gap-x-large","mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,oo,2,3,"div",8),t.qZA(),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.TgZ(19,"div",10),t._UZ(20,"rtl-ecl-on-chain-transaction-history",11),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,ut.D,R.BU,u.sg,R.Nj,x.rH,m.yH,x.lC,ao],styles:[""]}),n})();var Et=f(7544);function lo(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activeChannels)}}function ro(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activePeers)}}let co=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.activePeers=0,this.activeChannels=0,this.faUsers=L.FVb,this.faChartPie=L.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,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activeChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.onchainBalance.total||0},{title:"Confirmed",dataValue:e.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:e.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(16,"mat-tab"),t.YNc(17,lo,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,ro,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faUsers),t.xp6(6),t.Q6J("selectedIndex",i.activeLink))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,ut.D,R.SP,R.uX,R.uD,Et.k,m.yH,x.lC],styles:[""]}),n})();function uo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let po=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1]),(0,ot.M)(this.store.select(C.LR))).subscribe(([i,o])=>{this.currencyUnits=(null==o?void 0:o.currencyUnits)||[],this.balances=o&&o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,uo,2,3,"div",9),t.qZA(),t.TgZ(17,"div",10),t._UZ(18,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,ut.D,R.BU,u.sg,R.Nj,x.rH,m.yH,x.lC],styles:[""]}),n})();function mo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let ho=(()=>{class n{constructor(e){this.router=e,this.faMapSigns=L.SuH,this.events=[],this.flgLoading=[!0],this.errorMessage="",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(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing"]],decls:13,vars:2,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"],["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",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),t.YNc(10,mo,2,3,"div",9),t.qZA()(),t.TgZ(11,"div",10),t._UZ(12,"router-outlet"),t.qZA()()()()()),2&e&&(t.xp6(2),t.Q6J("icon",i.faMapSigns),t.xp6(8),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,m.yH,b.a8,b.dn,R.BU,u.sg,R.Nj,x.rH,x.lC],styles:[""]}),n})();var it=f(9814),wt=f(7261),It=f(6895);function _o(n,a){if(1&n&&(t.TgZ(0,"span",9)(1,"div"),t._uU(2),t.ALo(3,"titlecase"),t.qZA()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.AsE("",i.nodeFeaturesEnum[e.key]||e.key,": ",t.lcZ(3,2,e.value),"")}}function go(n,a){1&n&&(t.TgZ(0,"th",23),t._uU(1,"Address"),t.qZA())}function fo(n,a){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Co(n,a){1&n&&(t.TgZ(0,"th",25)(1,"div",26),t._uU(2,"Actions"),t.qZA()())}function xo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",24)(1,"span",27)(2,"button",28),t.NdJ("copied",function(o){return t.CHM(e),t.oxw(2).onCopyNodeURI(o)}),t._uU(3,"Copy Node URI"),t.qZA()()()}if(2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.Q6J("payload",(null==i.lookupResult?null:i.lookupResult.nodeId)+"@"+e)}}function yo(n,a){1&n&&t._UZ(0,"tr",29)}function vo(n,a){1&n&&t._UZ(0,"tr",30)}const To=function(n){return{"background-color":n}};function Lo(n,a){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",2),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Date/Time"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Features"),t.qZA(),t.YNc(26,_o,4,4,"span",10),t.ALo(27,"keyvalue"),t.qZA()(),t._UZ(28,"mat-divider",2),t.TgZ(29,"div",3)(30,"div",11)(31,"h4",5),t._uU(32,"Signature"),t.qZA(),t.TgZ(33,"span",6),t._uU(34),t.qZA()()(),t._UZ(35,"mat-divider",2),t.TgZ(36,"div",1)(37,"h4",12),t._uU(38,"Addresses"),t.qZA(),t.TgZ(39,"div",13)(40,"table",14,15),t.ynx(42,16),t.YNc(43,go,2,0,"th",17),t.YNc(44,fo,2,1,"td",18),t.BQk(),t.ynx(45,19),t.YNc(46,Co,3,0,"th",20),t.YNc(47,xo,4,1,"td",18),t.BQk(),t.YNc(48,yo,1,0,"tr",21),t.YNc(49,vo,1,0,"tr",22),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,To,null==e.lookupResult?null:e.lookupResult.rgbColor)),t.xp6(1),t.Oqu(null!=e.lookupResult&&e.lookupResult.rgbColor?null==e.lookupResult?null:e.lookupResult.rgbColor:""),t.xp6(5),t.Oqu(null==e.lookupResult?null:e.lookupResult.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,14,1e3*(null==e.lookupResult?null:e.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.xp6(5),t.Q6J("ngForOf",t.lcZ(27,17,null==e.lookupResult?null:e.lookupResult.features.activated)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.signature),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",e.addresses),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let bo=(()=>{class n{constructor(e,i){this.logger=e,this.snackBar=i,this.lookupResult={},this.addresses=new r.by([]),this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=l.H_}ngOnInit(){this.addresses=new r.by(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(wt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,i){if(1&e&&t.Gf(S.YE,5),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["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","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",1,"btn-action-copy",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&t.YNc(0,Lo,50,21,"div",0),2&e&&t.Q6J("ngIf",i.lookupResult)},directives:[u.O5,m.xw,K.d,m.yH,m.Wh,u.PC,Z.Zl,u.sg,H.$V,r.BZ,S.YE,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,N.lW,It.y,r.as,r.XQ,r.nj,r.Gk],pipes:[u.uU,u.Nd,u.rS],styles:["div.bordered-box.table-actions-select.btn-action[_ngcontent-%COMP%]{min-width:13rem;width:13rem;min-height:3.6rem}button.mat-stroked-button.btn-action-copy[_ngcontent-%COMP%]{min-width:13rem;width:13rem}"]}),n})();const So=["form"];function Zo(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Ao(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Invalid ",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder,".")}}function Eo(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"rtl-ecl-node-lookup",25),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("lookupResult",e.nodeLookupValue)}}function wo(n,a){if(1&n&&(t.TgZ(0,"span",23),t.YNc(1,Eo,2,1,"div",24),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(21);t.xp6(1),t.Q6J("ngIf",e.nodeLookupValue.nodeId)("ngIfElse",i)}}function Io(n,a){1&n&&(t.TgZ(0,"span",23)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function Fo(n,a){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.TgZ(4,"div",20),t.YNc(5,wo,2,2,"span",21),t.YNc(6,Io,3,0,"span",22),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0)}}function qo(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find details!"),t.qZA())}const No=function(n){return{"mt-1":!0,"mt-2":n}};let Oo=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.actions=s,this.lookupKeyCtrl=new d.NI,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=L.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{if(e.type===l.lr.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=e.payload[0]?JSON.parse(JSON.stringify(e.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(e.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,U.Sf)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,i){if(1&e&&t.Gf(So,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:22,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["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","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl","placeholder"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["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","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],["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"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6)(7,"mat-radio-button",7),t._uU(8,"Node"),t.qZA()()(),t.TgZ(9,"mat-form-field",8),t._UZ(10,"input",9,10),t.YNc(12,Zo,2,1,"mat-error",11),t.YNc(13,Ao,2,1,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return i.onLookup()}),t._uU(18,"Lookup"),t.qZA()()(),t.YNc(19,Fo,7,3,"div",15),t.qZA()()(),t.YNc(20,qo,2,0,"ng-template",null,16,t.W1O)),2&e&&(t.xp6(7),t.Q6J("value",0),t.xp6(2),t.Q6J("ngClass",t.VKq(7,No,i.screenSize===i.screenSizeEnum.XS||i.screenSize===i.screenSizeEnum.SM)),t.xp6(1),t.Q6J("formControl",i.lookupKeyCtrl)("placeholder",(null==i.lookupFields[i.selectedFieldId]?null:i.lookupFields[i.selectedFieldId].placeholder)||"Lookup Key"),t.xp6(2),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.invalid),t.xp6(6),t.Q6J("ngIf",i.flgSetLookupValue))},directives:[m.xw,m.yH,m.Wh,b.dn,d._Y,d.JL,d.F,it.VQ,it.U0,y.KE,u.mk,Z.oO,Y.Nt,d.Fj,d.Q7,d.JJ,d.oH,u.O5,y.TO,N.lW,u.RF,u.n9,bo,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}),n})();var Po=f(9122);let Uo=(()=>{class n{constructor(e,i){this.store=e,this.eclEffects=i,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,U._E)()),this.eclEffects.setNewAddress.pipe((0,W.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{address:this.newAddress,addressType:"",component:Po.n}}}))},0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(ct.o))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onGenerateAddress()}),t._uU(3,"Generate Address"),t.qZA()()())},directives:[m.xw,m.yH,m.Wh,N.lW],styles:[""]}),n})(),Ro=(()=>{class n{constructor(e,i){this.store=e,this.activatedRoute=i,this.sweepAll=!1,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,E.qR)({payload:{data:{sweepAll:this.sweepAll,component:At}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(i.sweepAll?"Sweep All":"Send Funds"))},directives:[m.xw,m.yH,m.Wh,N.lW],styles:[""]}),n})();var ko=f(8675),Ft=f(4004),qt=f(1079),Do=f(9843),Nt=f(2368);const Jo=["form"];function Mo(n,a){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.alias?e.alias:e.nodeId?e.nodeId:"")}}function Qo(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function Yo(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function Bo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",31),t.NdJ("change",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.qZA(),t.TgZ(2,"mat-autocomplete",32,33),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(4,Mo,2,2,"mat-option",34),t.ALo(5,"async"),t.qZA(),t.YNc(6,Qo,2,0,"mat-error",17),t.YNc(7,Yo,2,0,"mat-error",17),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("formControl",i.selectedPeer)("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,6,i.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function Ho(n,a){1&n&&t.GkF(0)}function zo(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Vo(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Go(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.channelConnectionError)}}function Wo(n,a){if(1&n&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,Go,2,1,"span",17),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.channelConnectionError)}}function $o(n,a){if(1&n&&(t.TgZ(0,"mat-expansion-panel",39)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",40),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",41),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",42),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",43),t.TgZ(15,"div",0)(16,"div",44)(17,"h4",41),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",45),t._uU(20),t.qZA()(),t.TgZ(21,"div",44)(22,"h4",41),t._uU(23,"State"),t.qZA(),t.TgZ(24,"span",45),t._uU(25),t.ALo(26,"titlecase"),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.nodeId)),t.xp6(7),t.Oqu(e.peer.nodeId),t.xp6(7),t.Oqu(null==e.peer?null:e.peer.address),t.xp6(5),t.Oqu(t.lcZ(26,4,null==e.peer?null:e.peer.state))}}function Xo(n,a){if(1&n&&t.YNc(0,$o,27,6,"mat-expansion-panel",38),2&n){const e=t.oxw();t.Q6J("ngIf",e.peer)}}let Ot=(()=>{class n{constructor(e,i,o,s){this.dialogRef=e,this.data=i,this.store=o,this.actions=s,this.selNode={},this.selectedPeer=new d.NI,this.faExclamationTriangle=L.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.selChannelType=null,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(o=>{this.selNode=o,this.isPrivate=!!(null==o?void 0:o.unannouncedChannels)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(o=>o.type===l.lr.UPDATE_API_CALL_STATUS_ECL||o.type===l.lr.FETCH_CHANNELS_ECL)).subscribe(o=>{o.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let e="",i="";this.sortedPeers=this.peers.sort((o,s)=>(e=o.alias?o.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",i=s.alias?s.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",ei?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[2]),(0,ko.O)(""),(0,Ft.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.nodeId),(0,Ft.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(e){var i;return null===(i=this.sortedPeers)||void 0===i?void 0:i.filter(o=>{var s;return 0===(null===(s=o.alias)||void 0===s?void 0:s.toLowerCase().indexOf(e?e.toLowerCase():""))})}displayFn(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""}onSelectedPeerChanged(){var e;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const i=null===(e=this.peers)||void 0===e?void 0:e.filter(o=>{var s,c;return(null===(s=o.alias)||void 0===s?void 0:s.length)===this.selectedPeer.value.length&&0===(null===(c=o.alias)||void 0===c?void 0:c.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===i.length&&i[0].nodeId&&(this.selectedPubkey=i[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){var e;this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!(null===(e=this.selNode)||void 0===e?void 0:e.unannouncedChannels),this.channelConnectionError="",this.selChannelType=null,this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(e){this.advancedTitle="Advanced Options",e&&(this.feeRate&&this.feeRate>0&&(this.advancedTitle=this.advancedTitle+" | Fee (Sats/vByte): "+this.feeRate),this.selChannelType&&this.selChannelType.id&&""!==this.selChannelType.id&&(this.advancedTitle=this.advancedTitle+" | Channel Type: "+this.selChannelType.placeholder))}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;const e={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate,channelType:"anchor_outputs_zero_fee_htlc_tx"};this.feeRate&&(e.feeRate=this.feeRate),this.store.dispatch((0,U.YX)({payload:e}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(w.yh),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,i){if(1&e&&t.Gf(Jo,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:48,vars:18,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","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","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","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","100","fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","49"],["matInput","","placeholder","Fee (Sats/vByte)","type","number","name","fee","tabindex","7",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","10"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[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,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onOpenChannel()})("reset",function(){return i.resetData()}),t.TgZ(11,"div",9),t.YNc(12,Bo,8,8,"mat-form-field",10),t.qZA(),t.YNc(13,Ho,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),t.NdJ("ngModelChange",function(s){return i.fundingAmount=s}),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"span",16),t._uU(23," Sats "),t.qZA(),t.YNc(24,zo,2,0,"mat-error",17),t.YNc(25,Vo,2,1,"mat-error",17),t.qZA(),t.TgZ(26,"div",18)(27,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(s){return i.isPrivate=s}),t._uU(28,"Private Channel"),t.qZA()()(),t.TgZ(29,"mat-expansion-panel",20),t.NdJ("closed",function(){return i.onAdvancedPanelToggle(!0)})("opened",function(){return i.onAdvancedPanelToggle(!1)}),t.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"div",21)(35,"div",12)(36,"div",22)(37,"mat-form-field",23)(38,"input",24,25),t.NdJ("ngModelChange",function(s){return i.feeRate=s}),t.qZA()()()()()()(),t.YNc(40,Wo,3,2,"div",26),t.TgZ(41,"div",27)(42,"button",28),t._uU(43,"Clear Fields"),t.qZA(),t.TgZ(44,"button",29),t._uU(45,"Open Channel"),t.qZA()()()()()(),t.YNc(46,Xo,1,1,"ng-template",null,30,t.W1O)),2&e){const o=t.MAs(18),s=t.MAs(47);t.xp6(5),t.Oqu(i.alertTitle),t.xp6(7),t.Q6J("ngIf",!i.peer&&i.peers&&i.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",s),t.xp6(4),t.Q6J("ngModel",i.fundingAmount)("step",1e3)("min",1)("max",i.totalBalance),t.xp6(3),t.hij("Remaining Bal: ",t.lcZ(21,16,i.totalBalance-(i.fundingAmount?i.fundingAmount:0)),""),t.xp6(4),t.Q6J("ngIf",null==o.errors?null:o.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.max),t.xp6(2),t.Q6J("ngModel",i.isPrivate),t.xp6(6),t.Oqu(i.advancedTitle),t.xp6(5),t.Q6J("ngModel",i.feeRate)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",""!==i.channelConnectionError)}},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,b.dn,d._Y,d.JL,d.F,u.O5,y.KE,Y.Nt,d.Fj,qt.ZL,d.Q7,d.JJ,d.oH,qt.XC,u.sg,z.ey,y.TO,u.tP,d.wV,d.qQ,d.Fd,tt.q,Do.F,d.On,y.bx,y.R9,Nt.Rr,V.ib,V.yz,V.yK,q.BN,j.h,K.d],pipes:[u.Ov,u.JJ,u.rS],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();function Ko(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfOpenChannels)}}function jo(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfPendingChannels)}}function ts(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Inactive"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfInactiveChannels)}}let es=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new p.x,new p.x,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,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.numOfOpenChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0,this.numOfPendingChannels=e.channelsStatus&&e.channelsStatus.pending&&e.channelsStatus.pending.channels?e.channelsStatus.pending.channels:0,this.numOfInactiveChannels=e.channelsStatus&&e.channelsStatus.inactive&&e.channelsStatus.inactive.channels?e.channelsStatus.inactive.channels:0,this.logger.info(e)}),this.store.select(C.LR).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.peers=e.peers}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,E.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ot}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["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,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(6,"mat-tab"),t.YNc(7,Ko,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,jo,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,ts,2,1,"ng-template",5),t.qZA()(),t.TgZ(12,"div",6),t._UZ(13,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",i.activeLink))},directives:[m.xw,m.yH,m.Wh,N.lW,R.SP,R.uX,R.uD,Et.k,x.lC],styles:[""]}),n})();function ns(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"Short Channel ID"),t.qZA(),t.TgZ(3,"span",13),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(e.channel.shortChannelId)}}function is(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"State"),t.qZA(),t.TgZ(3,"span",15),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,e.channel.state))}}function as(n,a){if(1&n&&(t.TgZ(0,"div")(1,"div",9)(2,"div",11)(3,"h4",12),t._uU(4,"Local Balance (Sats)"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",11)(9,"h4",12),t._uU(10,"Remote Balance (Sats)"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()()(),t._UZ(14,"mat-divider",14),t.TgZ(15,"div",9)(16,"div",11)(17,"h4",12),t._uU(18,"Base Fee (mSats)"),t.qZA(),t.TgZ(19,"span",15),t._uU(20),t.ALo(21,"number"),t.qZA()(),t.TgZ(22,"div",11)(23,"h4",12),t._uU(24,"Fee Rate (mili mSats)"),t.qZA(),t.TgZ(25,"span",15),t._uU(26),t.ALo(27,"number"),t.qZA()()(),t._UZ(28,"mat-divider",14),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,6,e.channel.toLocal)),t.xp6(6),t.Oqu(t.lcZ(13,8,e.channel.toRemote)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(21,10,e.channel.feeBaseMsat)),t.xp6(6),t.Oqu(t.lcZ(27,12,e.channel.feeProportionalMillionths)),t.xp6(2),t.Q6J("inset",!0)}}function os(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function ss(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function ls(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(e),t.oxw().onShowAdvanced()}),t.YNc(1,os,2,0,"p",22),t.YNc(2,ss,2,0,"ng-template",null,23,t.W1O),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.showAdvanced)("ngIfElse",e)}}function rs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Short Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.shortChannelId)}}function cs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.channelId)}}const us=function(n){return{"xs-scroll-y":n}},ps=function(n,a){return{"mt-2":n,"mt-1":a}};let mt=(()=>{class n{constructor(e,i,o,s,c){this.dialogRef=e,this.data=i,this.logger=o,this.commonService=s,this.snackBar=c,this.faReceipt=L.dLy,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(O.mQ),t.Y36(P.v),t.Y36(wt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-information"]],decls:64,vars:28,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",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return i.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9),t.YNc(12,ns,5,1,"div",10),t.TgZ(13,"div",11)(14,"h4",12),t._uU(15,"Peer Alias"),t.qZA(),t.TgZ(16,"span",13),t._uU(17),t.qZA()(),t.YNc(18,is,6,3,"div",10),t.qZA(),t._UZ(19,"mat-divider",14),t.TgZ(20,"div",9)(21,"div",1)(22,"h4",12),t._uU(23,"Channel ID"),t.qZA(),t.TgZ(24,"span",13),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",14),t.TgZ(27,"div",9)(28,"div",1)(29,"h4",12),t._uU(30,"Peer Public Key"),t.qZA(),t.TgZ(31,"span",13),t._uU(32),t.qZA()()(),t._UZ(33,"mat-divider",14),t.TgZ(34,"div",9)(35,"div",11)(36,"h4",12),t._uU(37,"Private"),t.qZA(),t.TgZ(38,"span",15),t._uU(39),t.qZA()(),t.TgZ(40,"div",11)(41,"h4",12),t._uU(42,"Funder"),t.qZA(),t.TgZ(43,"span",15),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",11)(48,"h4",12),t._uU(49,"State"),t.qZA(),t.TgZ(50,"span",15),t._uU(51),t.ALo(52,"titlecase"),t.qZA()(),t.TgZ(53,"div",11)(54,"h4",12),t._uU(55,"Buried"),t.qZA(),t.TgZ(56,"span",15),t._uU(57),t.qZA()()(),t._UZ(58,"mat-divider",14),t.YNc(59,as,29,14,"div",16),t.TgZ(60,"div",17),t.YNc(61,ls,4,2,"button",18),t.YNc(62,rs,2,1,"button",19),t.YNc(63,cs,2,1,"button",20),t.qZA()()()()()),2&e&&(t.xp6(4),t.Q6J("icon",i.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(23,us,i.screenSize===i.screenSizeEnum.XS)),t.xp6(3),t.Q6J("ngIf","open"===i.channelsType),t.xp6(5),t.Oqu(i.channel.alias),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.channelId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.announceChannel?"No":"Yes"),t.xp6(5),t.Oqu(i.channel.isFunder?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(52,21,i.channel.state)),t.xp6(6),t.Oqu(i.channel.buried?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",i.showAdvanced&&"open"===i.channelsType),t.xp6(1),t.Q6J("ngClass",t.WLB(25,ps,!i.showAdvanced,i.showAdvanced)),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType))},directives:[m.xw,m.Wh,m.yH,b.dk,q.BN,N.lW,b.dn,u.mk,Z.oO,u.O5,K.d,j.h,It.y],pipes:[u.rS,u.JJ],styles:[""]}),n})();function ms(n,a){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function ds(n,a){1&n&&t._UZ(0,"mat-progress-bar",39)}function hs(n,a){1&n&&t._UZ(0,"th",40)}function _s(n,a){if(1&n&&(t.TgZ(0,"span",44),t._UZ(1,"fa-icon",45),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function gs(n,a){if(1&n&&(t.TgZ(0,"span",46),t._UZ(1,"fa-icon",45),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}function fs(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,_s,2,1,"span",42),t.YNc(2,gs,2,1,"span",43),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==e?null:e.announceChannel)}}function Cs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Short Channel ID"),t.qZA())}function xs(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.shortChannelId)}}function ys(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Channel ID"),t.qZA())}const dt=function(n){return{width:n}};function vs(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function Ts(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Alias"),t.qZA())}function Ls(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function bs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Node ID"),t.qZA())}function Ss(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function Zs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Funder"),t.qZA())}function As(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.isFunder?"Yes":"No")}}function Es(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Buried"),t.qZA())}function ws(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.buried?"Yes":"No")}}function Is(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Base Fee (mSats)"),t.qZA())}function Fs(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeBaseMsat,"1.0-0")," ")}}function qs(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Fee Rate (mili mSats)"),t.qZA())}function Ns(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeProportionalMillionths,"1.0-0")," ")}}function Os(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Local Balance (Sats)"),t.qZA())}function Ps(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Us(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function Rs(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function ks(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Fee/KW"),t.qZA())}function Ds(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeRatePerKw,"1.0-0")," ")}}function Js(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Balance Score"),t.qZA())}function Ms(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",52)(2,"mat-hint",53),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",54),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",null!=e&&e.toLocal&&(null==e?null:e.toLocal)>0?+(null==e?null:e.toLocal)/(+(null==e?null:e.toLocal)+ +(null==e?null:e.toRemote))*100:0)}}function Qs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",55)(1,"div",56)(2,"mat-select",57),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().onChannelUpdate("all")}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(7,"Download CSV"),t.qZA()()()()}}function Ys(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",59)(1,"div",56)(2,"mat-select",60),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",58),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",58),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelUpdate(s)}),t._uU(7,"Update Fee Policy"),t.qZA(),t.TgZ(8,"mat-option",58),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!1)}),t._uU(9,"Close Channel"),t.qZA(),t.TgZ(10,"mat-option",58),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(11,"Force Close"),t.qZA()()()()}}function Bs(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel?."),t.qZA())}function Hs(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function zs(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function Vs(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Gs(n,a){if(1&n&&(t.TgZ(0,"td",61),t.YNc(1,Bs,2,0,"p",62),t.YNc(2,Hs,2,0,"p",62),t.YNc(3,zs,2,0,"p",62),t.YNc(4,Vs,2,1,"p",62),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Ws=function(n){return{"display-none":n}};function $s(n,a){if(1&n&&t._UZ(0,"tr",63),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Ws,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Xs(n,a){1&n&&t._UZ(0,"tr",64)}function Ks(n,a){1&n&&t._UZ(0,"tr",65)}const js=function(){return["all"]},tl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},el=function(){return["no_peer"]};let nl=(()=>{class n{constructor(e,i,o,s,c,h){var g,v,B,T,F,gt;this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.router=c,this.camelCaseWithSpaces=h,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new r.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.selFilter=(null===(B=null===(v=null===(g=this.router.getCurrentNavigation())||void 0===g?void 0:g.extras)||void 0===v?void 0:v.state)||void 0===B?void 0:B.filter)?null===(gt=null===(F=null===(T=this.router.getCurrentNavigation())||void 0===T?void 0:T.extras)||void 0===F?void 0:F.state)||void 0===gt?void 0:gt.filter:""}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.activeChannels,this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable()}onChannelUpdate(e){"all"!==e&&"NORMAL"!==e.state||(this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"all"===e?"Update fee policy for all channels":"Update fee policy for Channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:e&&void 0!==e.feeBaseMsat?e.feeBaseMsat:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:e&&void 0!==e.feeProportionalMillionths?e.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(s=>{if(s){const c=s[0].inputValue,h=s[1].inputValue;let g=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let v="";"all"===e?(this.activeChannels.forEach(B=>{v=v+","+B.nodeId}),v=v.substring(1),g={baseFeeMsat:c,feeRate:h,nodeIds:v}):g={baseFeeMsat:c,feeRate:h,nodeId:e.nodeId}}else{let v="";"all"===e?(this.activeChannels.forEach(B=>{v=v+","+B.channelId}),v=v.substring(1),g={baseFeeMsat:c,feeRate:h,channelIds:v}):g={baseFeeMsat:c,feeRate:h,channelId:e.channelId}}this.store.dispatch((0,U.pW)({payload:g}))}}),this.applyFilter())}percentHintFunction(e){return(e/1e4).toString()+"%"}onChannelClose(e,i){this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[6])).subscribe(h=>{h&&this.store.dispatch((0,U.BL)({payload:{channelId:e.channelId,force:i}}))})}onChannelClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{channel:e,channelsType:"open",component:mt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,i)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(e).toLowerCase();break;case"announceChannel":o=(null==e?void 0:e.announceChannel)?"public":"private";break;default:o=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return o.includes(i)}}loadChannelsTable(){var e;this.channels=new r.by([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,null===(e=this.channels.sort)||void 0===e||e.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(nt.V),t.Y36(P.v),t.Y36(x.F0),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Channels")}])],decls:61,vars:16,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isFunder"],["matColumnDef","buried"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","feeRatePerKw"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-select",5),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(6,ms,2,2,"mat-option",6),t.qZA()(),t.TgZ(7,"mat-form-field",4)(8,"input",7),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(9,"div",8),t.YNc(10,ds,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,hs,1,0,"th",13),t.YNc(15,fs,3,2,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Cs,2,0,"th",16),t.YNc(18,xs,2,1,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,ys,2,0,"th",16),t.YNc(21,vs,4,4,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,Ts,2,0,"th",16),t.YNc(24,Ls,4,4,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,bs,2,0,"th",16),t.YNc(27,Ss,4,4,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,Zs,2,0,"th",16),t.YNc(30,As,2,1,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Es,2,0,"th",16),t.YNc(33,ws,2,1,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Is,2,0,"th",23),t.YNc(36,Fs,4,4,"td",14),t.BQk(),t.ynx(37,24),t.YNc(38,qs,2,0,"th",23),t.YNc(39,Ns,4,4,"td",14),t.BQk(),t.ynx(40,25),t.YNc(41,Os,2,0,"th",23),t.YNc(42,Ps,4,4,"td",14),t.BQk(),t.ynx(43,26),t.YNc(44,Us,2,0,"th",23),t.YNc(45,Rs,4,4,"td",14),t.BQk(),t.ynx(46,27),t.YNc(47,ks,2,0,"th",23),t.YNc(48,Ds,4,4,"td",14),t.BQk(),t.ynx(49,28),t.YNc(50,Js,2,0,"th",16),t.YNc(51,Ms,6,4,"td",14),t.BQk(),t.ynx(52,29),t.YNc(53,Qs,8,0,"th",30),t.YNc(54,Ys,12,0,"td",31),t.BQk(),t.ynx(55,32),t.YNc(56,Gs,5,4,"td",33),t.BQk(),t.YNc(57,$s,1,3,"tr",34),t.YNc(58,Xs,1,0,"tr",35),t.YNc(59,Ks,1,0,"tr",36),t.qZA()(),t._UZ(60,"mat-paginator",37),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(12,js).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(13,tl,""!==i.errorMessage)),t.xp6(46),t.Q6J("matFooterRowDef",t.DdM(15,el)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,q.BN,u.PC,Z.Zl,y.bx,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}),n})();function il(n,a){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function al(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function ol(n,a){1&n&&t._UZ(0,"th",37)}function sl(n,a){if(1&n&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function ll(n,a){if(1&n&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}function rl(n,a){if(1&n&&(t.TgZ(0,"td",38),t.YNc(1,sl,2,1,"span",39),t.YNc(2,ll,2,1,"span",40),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==e?null:e.announceChannel)}}function cl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"State"),t.qZA())}function ul(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.state))}}function pl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Channel ID"),t.qZA())}const Pt=function(n){return{width:n}};function ml(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function dl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Alias"),t.qZA())}function hl(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.alias)}}function _l(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Node ID"),t.qZA())}function gl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function fl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Funder"),t.qZA())}function Cl(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.isFunder?"Yes":"No")}}function xl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Buried"),t.qZA())}function yl(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.buried?"Yes":"No")}}function vl(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Local Balance (Sats)"),t.qZA())}function Tl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Ll(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function bl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function Sl(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Fee/KW"),t.qZA())}function Zl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeRatePerKw,"1.0-0")," ")}}function Al(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function El(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",53)(1,"button",54),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function wl(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel available."),t.qZA())}function Il(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function Fl(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function ql(n,a){if(1&n&&(t.TgZ(0,"td",55),t.YNc(1,wl,2,0,"p",56),t.YNc(2,Il,2,0,"p",56),t.YNc(3,Fl,2,1,"p",56),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Nl=function(n){return{"display-none":n}};function Ol(n,a){if(1&n&&t._UZ(0,"tr",57),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Nl,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Pl(n,a){1&n&&t._UZ(0,"tr",58)}function Ul(n,a){1&n&&t._UZ(0,"tr",59)}const Rl=function(){return["all"]},kl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Dl=function(){return["no_channel"]};let Jl=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.commonService=o,this.camelCaseWithSpaces=s,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new r.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.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()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}onChannelClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{channel:e,channelsType:"pending",component:mt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,i)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(e).toLowerCase();break;case"announceChannel":o=(null==e?void 0:e.announceChannel)?"public":"private";break;default:o=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return o.includes(i)}}loadChannelsTable(){var e;this.channels=new r.by([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,null===(e=this.channels.sort)||void 0===e||e.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(P.v),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Channels")}])],decls:52,vars:16,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isFunder"],["matColumnDef","buried"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","feeRatePerKw"],["matColumnDef","actions"],["mat-header-cell","",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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-select",5),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(6,il,2,2,"mat-option",6),t.qZA()(),t.TgZ(7,"mat-form-field",4)(8,"input",7),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(9,"div",8),t.YNc(10,al,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,ol,1,0,"th",13),t.YNc(15,rl,3,2,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,cl,2,0,"th",16),t.YNc(18,ul,3,3,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,pl,2,0,"th",16),t.YNc(21,ml,4,4,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,dl,2,0,"th",16),t.YNc(24,hl,2,1,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,_l,2,0,"th",16),t.YNc(27,gl,4,4,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,fl,2,0,"th",16),t.YNc(30,Cl,2,1,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,xl,2,0,"th",16),t.YNc(33,yl,2,1,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,vl,2,0,"th",23),t.YNc(36,Tl,4,4,"td",14),t.BQk(),t.ynx(37,24),t.YNc(38,Ll,2,0,"th",23),t.YNc(39,bl,4,4,"td",14),t.BQk(),t.ynx(40,25),t.YNc(41,Sl,2,0,"th",23),t.YNc(42,Zl,4,4,"td",14),t.BQk(),t.ynx(43,26),t.YNc(44,Al,6,0,"th",27),t.YNc(45,El,3,0,"td",28),t.BQk(),t.ynx(46,29),t.YNc(47,ql,4,3,"td",30),t.BQk(),t.YNc(48,Ol,1,3,"tr",31),t.YNc(49,Pl,1,0,"tr",32),t.YNc(50,Ul,1,0,"tr",33),t.qZA()(),t._UZ(51,"mat-paginator",34),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(12,Rl).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(13,kl,""!==i.errorMessage)),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(15,Dl)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,q.BN,u.PC,Z.Zl,k.$L,N.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}"]}),n})();var ht=f(5615);const Ml=["peersForm"],Ql=["stepper"];function Yl(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.peerFormLabel)}}function Bl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Hl(n,a){if(1&n&&(t.TgZ(0,"div",32),t._UZ(1,"fa-icon",33),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.peerConnectionError)}}function zl(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.channelFormLabel)}}function Vl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Gl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function Wl(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function $l(n,a){if(1&n&&(t.TgZ(0,"div",32),t._UZ(1,"fa-icon",33),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.channelConnectionError)}}let Xl=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.formBuilder=s,this.actions=c,this.logger=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.peerAddress="",this.totalBalance=0,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(){var e;this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.kI.required]],peerAddress:[this.peerAddress,[d.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.kI.required,d.kI.min(1),d.kI.max(this.totalBalance)]],isPrivate:[!!(null===(e=this.selNode)||void 0===e?void 0:e.unannouncedChannels)],feeRate:[null],selChannelType:[null],hiddenAmount:["",[d.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.channelFormGroup.controls.isPrivate.setValue(!!(null==i?void 0:i.unannouncedChannels))}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(i=>i.type===l.lr.NEWLY_ADDED_PEER_ECL||i.type===l.lr.FETCH_CHANNELS_ECL||i.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(i=>{i.type===l.lr.NEWLY_ADDED_PEER_ECL&&(this.logger.info(i.payload),this.flgEditable=!1,this.newlyAddedPeer=i.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),i.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close(),i.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&i.payload.status===l.Bn.ERROR&&("SaveNewPeer"===i.payload.action?this.peerConnectionError=i.payload.message:"SaveNewChannel"===i.payload.action&&(this.channelConnectionError=i.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,U.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){var e;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch((0,U.YX)({payload:{nodeId:null===(e=this.newlyAddedPeer)||void 0===e?void 0:e.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value,channelType:"anchor_outputs_zero_fee_htlc_tx"}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){var i,o,s,c;switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(i=this.newlyAddedPeer)||void 0===i?void 0:i.alias)?this.newlyAddedPeer.alias:null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(s=this.newlyAddedPeer)||void 0===s?void 0:s.alias)?this.newlyAddedPeer.alias:null===(c=this.newlyAddedPeer)||void 0===c?void 0:c.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(w.yh),t.Y36(d.qu),t.Y36(X.eX),t.Y36(O.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ml,5),t.Gf(Ql,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.stepper=o.first)}},decls:48,vars:20,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-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","30","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","30"],["matInput","","formControlName","feeRate","placeholder","Fee (Sats/vByte)","type","number","name","feeRate","tabindex","7",3,"step","min"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(s){return i.stepSelectionChanged(s)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,Yl,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",1),t._UZ(16,"input",13),t.YNc(17,Bl,2,0,"mat-error",14),t.qZA(),t.YNc(18,Hl,4,2,"div",15),t.TgZ(19,"div",16)(20,"button",17),t.NdJ("click",function(){return i.onConnectPeer()}),t._uU(21),t.qZA()()()(),t.TgZ(22,"mat-step",10)(23,"form",18),t.YNc(24,zl,1,1,"ng-template",19),t.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),t._UZ(28,"input",23),t.TgZ(29,"mat-hint"),t._uU(30),t.qZA(),t.TgZ(31,"span",24),t._uU(32," Sats "),t.qZA(),t.YNc(33,Vl,2,0,"mat-error",14),t.YNc(34,Gl,2,0,"mat-error",14),t.YNc(35,Wl,2,1,"mat-error",14),t.qZA(),t.TgZ(36,"mat-form-field",25),t._UZ(37,"input",26),t.qZA(),t.TgZ(38,"div",27)(39,"mat-slide-toggle",28),t._uU(40,"Private Channel"),t.qZA()()()(),t.YNc(41,$l,4,2,"div",15),t.TgZ(42,"div",16)(43,"button",29),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(44),t.qZA()()()()(),t.TgZ(45,"div",30)(46,"button",31),t.NdJ("click",function(){return i.onClose()}),t._uU(47),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",i.peerFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.peerFormGroup),t.xp6(4),t.Q6J("ngIf",null==i.peerFormGroup.controls.peerAddress.errors?null:i.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==i.peerConnectionError),t.xp6(3),t.Oqu(""!==i.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",i.channelFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.channelFormGroup),t.xp6(5),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining Bal: ",i.totalBalance-(i.channelFormGroup.controls.fundingAmount.value?i.channelFormGroup.controls.fundingAmount.value:0),""),t.xp6(3),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(2),t.Q6J("step",1)("min",0),t.xp6(4),t.Q6J("ngIf",""!==i.channelConnectionError),t.xp6(3),t.Oqu(""!==i.channelConnectionError?"Retry":"Open Channel"),t.xp6(3),t.Oqu(null!=i.newlyAddedPeer&&i.newlyAddedPeer.nodeId?"Do It Later":"Close"))},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,b.dn,ht.Vq,ht.C0,d._Y,d.JL,d.sg,ht.VY,y.KE,Y.Nt,d.Fj,j.h,d.JJ,d.u,d.Q7,u.O5,y.TO,q.BN,d.wV,y.bx,y.R9,d.qQ,tt.q,Nt.Rr],styles:[""]}),n})();function Kl(n,a){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function jl(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function tr(n,a){1&n&&t._UZ(0,"th",37)}const Ut=function(n){return{"mr-0":n}};function er(n,a){if(1&n&&t._UZ(0,"span",41),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ut,e.screenSize===e.screenSizeEnum.XS))}}function nr(n,a){if(1&n&&t._UZ(0,"span",42),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ut,e.screenSize===e.screenSizeEnum.XS))}}function ir(n,a){if(1&n&&(t.TgZ(0,"td",38),t.YNc(1,er,1,3,"span",39),t.YNc(2,nr,1,3,"span",40),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state)}}function ar(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Alias"),t.qZA())}const Rt=function(n){return{width:n}};function or(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function sr(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Node ID"),t.qZA())}function lr(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function rr(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Network Address"),t.qZA())}function cr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.address," ")}}function ur(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Channels"),t.qZA())}function pr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.channels)}}function mr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",46)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function dr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onPeerDetach(o)}),t._uU(1,"Disconnect"),t.qZA()}}function hr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onConnectPeer(o)}),t._uU(1,"Reconnect"),t.qZA()}}function _r(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",50)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onPeerClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",49),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onOpenChannel(s)}),t._uU(7,"Open Channel"),t.qZA(),t.YNc(8,dr,2,0,"mat-option",51),t.YNc(9,hr,2,0,"mat-option",51),t.qZA()()()}if(2&n){const e=a.$implicit;t.xp6(8),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state)}}function gr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function fr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function Cr(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function xr(n,a){if(1&n&&(t.TgZ(0,"td",52),t.YNc(1,gr,2,0,"p",53),t.YNc(2,fr,2,0,"p",53),t.YNc(3,Cr,2,1,"p",53),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const yr=function(n){return{"display-none":n}};function vr(n,a){if(1&n&&t._UZ(0,"tr",54),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,yr,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function Tr(n,a){1&n&&t._UZ(0,"tr",55)}function Lr(n,a){1&n&&t._UZ(0,"tr",56)}const br=function(){return["all"]},Sr=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Zr=function(){return["no_peer"]};let Ar=(()=>{class n{constructor(e,i,o,s,c,h){this.logger=e,this.store=i,this.rtlEffects=o,this.actions=s,this.commonService=c,this.camelCaseWithSpaces=h,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.faUsers=L.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new r.by([]),this.information={},this.availableBalance=0,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.loadPeersTable(this.peersData),this.logger.info(e)}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Q.h)(e=>e.type===l.lr.SET_PEERS_ECL)).subscribe(e=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,i){const o=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state||""),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.nodeId,message:o}}}))}onConnectPeer(e){this.store.dispatch((0,E.qR)({payload:{data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:Xl}}}))}onOpenChannel(e){this.store.dispatch((0,E.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Ot}}}))}onPeerDetach(e){this.store.dispatch(e&&e.channels&&e.channels>0?(0,E.qR)({payload:{data:{type:l.n_.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(i=>{i&&this.store.dispatch((0,U.GD)({payload:{nodeId:e.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.peers.filterPredicate=(e,i)=>{var o;let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"state":s=(null===(o=null==e?void 0:e.state)||void 0===o?void 0:o.toLowerCase())||"";break;default:s=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===s.indexOf(i):s.includes(i)}}loadPeersTable(e){var i;this.peers=new r.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,s)=>o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,null===(i=this.peers.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}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 n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(nt.V),t.Y36(X.eX),t.Y36(P.v),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Peers")}])],decls:45,vars:17,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","nodeId"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),t.NdJ("click",function(){return i.onConnectPeer({})}),t._uU(4,"Add Peer"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span",8),t._uU(10,"Peers"),t.qZA()(),t.TgZ(11,"div",9)(12,"mat-form-field",10)(13,"mat-select",11),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(14,Kl,2,2,"mat-option",12),t.qZA()(),t.TgZ(15,"mat-form-field",10)(16,"input",13),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(17,"div",14),t.YNc(18,jl,1,0,"mat-progress-bar",15),t.TgZ(19,"table",16,17),t.ynx(21,18),t.YNc(22,tr,1,0,"th",19),t.YNc(23,ir,3,2,"td",20),t.BQk(),t.ynx(24,21),t.YNc(25,ar,2,0,"th",22),t.YNc(26,or,4,4,"td",20),t.BQk(),t.ynx(27,23),t.YNc(28,sr,2,0,"th",22),t.YNc(29,lr,4,4,"td",20),t.BQk(),t.ynx(30,24),t.YNc(31,rr,2,0,"th",22),t.YNc(32,cr,2,1,"td",20),t.BQk(),t.ynx(33,25),t.YNc(34,ur,2,0,"th",22),t.YNc(35,pr,2,1,"td",20),t.BQk(),t.ynx(36,26),t.YNc(37,mr,6,0,"th",27),t.YNc(38,_r,10,2,"td",28),t.BQk(),t.ynx(39,29),t.YNc(40,xr,4,3,"td",30),t.BQk(),t.YNc(41,vr,1,3,"tr",31),t.YNc(42,Tr,1,0,"tr",32),t.YNc(43,Lr,1,0,"tr",33),t.qZA()(),t._UZ(44,"mat-paginator",34),t.qZA()()),2&e&&(t.xp6(8),t.Q6J("icon",i.faUsers),t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(13,br).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.peers)("ngClass",t.VKq(14,Sr,""!==i.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(16,Zr)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,d._Y,d.JL,d.F,N.lW,q.BN,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,u.PC,Z.Zl,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],styles:[".mat-column-state[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}"]}),n})();const Er=["queryRoutesForm"];function wr(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination Node ID is required."),t.qZA())}function Ir(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Fr(n,a){1&n&&t._UZ(0,"mat-progress-bar",21)}function qr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Alias"),t.qZA())}const kt=function(n){return{"max-width":n}};function Nr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41)(2,"span",42),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,kt,i.screenSize===i.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function Or(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," ID"),t.qZA())}function Pr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41)(2,"span",42),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,kt,i.screenSize===i.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function Ur(n,a){1&n&&(t.TgZ(0,"th",39)(1,"div",43),t._uU(2,"Actions"),t.qZA()())}function Rr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onHopClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function kr(n,a){1&n&&t._UZ(0,"tr",46)}function Dr(n,a){1&n&&t._UZ(0,"tr",47)}const Jr=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};function Mr(n,a){if(1&n&&(t.TgZ(0,"div",22)(1,"mat-expansion-panel",23)(2,"mat-expansion-panel-header")(3,"mat-panel-title",24)(4,"span",25),t._uU(5),t.qZA(),t.TgZ(6,"span",26),t._uU(7),t.ALo(8,"number"),t.qZA()()(),t.TgZ(9,"mat-panel-description",27)(10,"div",28)(11,"table",29,30),t.ynx(13,31),t.YNc(14,qr,2,0,"th",32),t.YNc(15,Nr,4,4,"td",33),t.BQk(),t.ynx(16,34),t.YNc(17,Or,2,0,"th",32),t.YNc(18,Pr,4,4,"td",33),t.BQk(),t.ynx(19,35),t.YNc(20,Ur,3,0,"th",32),t.YNc(21,Rr,3,0,"td",36),t.BQk(),t.YNc(22,kr,1,0,"tr",37),t.YNc(23,Dr,1,0,"tr",38),t.qZA()()()()()),2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.xp6(5),t.hij("Route ",i+1,""),t.xp6(2),t.Oqu(t.lcZ(8,6,e.amount/1e3)),t.xp6(4),t.Q6J("dataSource",o.qrHops[i])("ngClass",t.VKq(8,Jr,"error"===o.flgLoading[0])),t.xp6(11),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns)}}let Qr=(()=>{class n{constructor(e,i,o){this.store=e,this.eclEffects=i,this.commonService=o,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.displayedColumns=["alias","nodeId","actions"],this.flgLoading=[!1],this.faRoute=L.FpQ,this.faExclamationTriangle=L.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.qrHops[0]=new r.by([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e&&e.routes&&e.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=e.routes,this.allQRoutes.forEach((i,o)=>{this.qrHops[o]=new r.by([...i.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,U.WO)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(e){this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(ct.o),t.Y36(P.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,i){if(1&e&&t.Gf(Er,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:28,vars:10,consts:[["fxLayout","column","fxFlex","100"],["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 Node ID","name","nodeId","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-1"],["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","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["table[i]",""],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){return t.CHM(o),t.MAs(2).form.valid&&i.onQueryRoutes()}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"input",6,7),t.NdJ("ngModelChange",function(c){return i.nodeId=c}),t.qZA(),t.YNc(10,wr,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.amount=c}),t.qZA(),t.YNc(13,Ir,2,0,"mat-error",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",13),t._uU(18,"Query Route"),t.qZA()()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"fa-icon",16),t.TgZ(22,"span",17),t._uU(23,"Transaction Route"),t.qZA()()(),t.YNc(24,Fr,1,0,"mat-progress-bar",18),t.TgZ(25,"div",19)(26,"div",0),t.YNc(27,Mr,24,10,"div",20),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",i.faExclamationTriangle),t.xp6(4),t.Q6J("ngModel",i.nodeId),t.xp6(2),t.Q6J("ngIf",!i.nodeId),t.xp6(2),t.Q6J("ngModel",i.amount)("step",1e3)("min",0),t.xp6(1),t.Q6J("ngIf",!i.amount),t.xp6(8),t.Q6J("icon",i.faRoute),t.xp6(3),t.Q6J("ngIf",!0===i.flgLoading[0]),t.xp6(3),t.Q6J("ngForOf",i.allQRoutes))},directives:[m.xw,m.yH,d._Y,d.JL,d.F,m.Wh,q.BN,y.KE,Y.Nt,d.Fj,d.Q7,d.JJ,d.On,u.O5,y.TO,d.wV,d.qQ,tt.q,N.lW,M.pW,u.sg,V.ib,V.yz,V.yK,V.u4,H.$V,r.BZ,u.mk,Z.oO,r.w1,r.fO,r.ge,r.Dz,r.ev,u.PC,Z.Zl,r.as,r.XQ,r.nj,r.Gk],pipes:[u.JJ],styles:[""]}),n})();function Yr(n,a){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Br(n,a){1&n&&t._UZ(0,"mat-progress-bar",38)}function Hr(n,a){1&n&&t._UZ(0,"th",39)}function zr(n,a){if(1&n&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",44),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function Vr(n,a){if(1&n&&(t.TgZ(0,"span",45),t._UZ(1,"fa-icon",44),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}function Gr(n,a){if(1&n&&(t.TgZ(0,"td",40),t.YNc(1,zr,2,1,"span",41),t.YNc(2,Vr,2,1,"span",42),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",!e.announceChannel),t.xp6(1),t.Q6J("ngIf",e.announceChannel)}}function Wr(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"State"),t.qZA())}function $r(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.state))}}function Xr(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Short Channel ID"),t.qZA())}function Kr(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.shortChannelId)}}function jr(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Channel ID"),t.qZA())}const _t=function(n){return{width:n}};function tc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",47)(2,"span",48),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function ec(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Alias"),t.qZA())}function nc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",47)(2,"span",48),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.alias)}}function ic(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Node ID"),t.qZA())}function ac(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",47)(2,"span",48),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function oc(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Funder"),t.qZA())}function sc(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.isFunder?"Yes":"No")}}function lc(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Buried"),t.qZA())}function rc(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.buried?"Yes":"No")}}function cc(n,a){1&n&&(t.TgZ(0,"th",49),t._uU(1,"Local Balance (Sats)"),t.qZA())}function uc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",50),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function pc(n,a){1&n&&(t.TgZ(0,"th",49),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function mc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",50),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function dc(n,a){1&n&&(t.TgZ(0,"th",49),t._uU(1,"Local Fee/KW"),t.qZA())}function hc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",50),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeRatePerKw,"1.0-0")," ")}}function _c(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Balance Score"),t.qZA())}function gc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",51)(2,"mat-hint",52),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",53),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function fc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",54)(1,"div",55)(2,"mat-select",56),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",57),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Cc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",58)(1,"div",55)(2,"mat-select",59),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",57),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",57),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(7,"Force Close"),t.qZA()()()()}}function xc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No inactive channel available."),t.qZA())}function yc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting inactive channels..."),t.qZA())}function vc(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Tc(n,a){if(1&n&&(t.TgZ(0,"td",60),t.YNc(1,xc,2,0,"p",61),t.YNc(2,yc,2,0,"p",61),t.YNc(3,vc,2,1,"p",61),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Lc=function(n){return{"display-none":n}};function bc(n,a){if(1&n&&t._UZ(0,"tr",62),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Lc,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Sc(n,a){1&n&&t._UZ(0,"tr",63)}function Zc(n,a){1&n&&t._UZ(0,"tr",64)}const Ac=function(){return["all"]},Ec=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},wc=function(){return["no_channel"]};let Ic=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.camelCaseWithSpaces=c,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"inactive_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new r.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=e.inactiveChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(e,i){this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(h=>{h&&this.store.dispatch((0,U.BL)({payload:{channelId:e.channelId||"",force:i}}))})}onChannelClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{channel:e,channelsType:"inactive",component:mt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,i)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(e).toLowerCase();break;case"announceChannel":o=(null==e?void 0:e.announceChannel)?"public":"private";break;default:o=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return o.includes(i)}}loadChannelsTable(){var e;this.channels=new r.by([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,null===(e=this.channels.sort)||void 0===e||e.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(nt.V),t.Y36(P.v),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Channels")}])],decls:58,vars:16,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isFunder"],["matColumnDef","buried"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","feeRatePerKw"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-select",5),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(6,Yr,2,2,"mat-option",6),t.qZA()(),t.TgZ(7,"mat-form-field",4)(8,"input",7),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(9,"div",8),t.YNc(10,Br,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Hr,1,0,"th",13),t.YNc(15,Gr,3,2,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Wr,2,0,"th",16),t.YNc(18,$r,3,3,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,Xr,2,0,"th",16),t.YNc(21,Kr,2,1,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,jr,2,0,"th",16),t.YNc(24,tc,4,4,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,ec,2,0,"th",16),t.YNc(27,nc,4,4,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,ic,2,0,"th",16),t.YNc(30,ac,4,4,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,oc,2,0,"th",16),t.YNc(33,sc,2,1,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,lc,2,0,"th",16),t.YNc(36,rc,2,1,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,cc,2,0,"th",24),t.YNc(39,uc,4,4,"td",14),t.BQk(),t.ynx(40,25),t.YNc(41,pc,2,0,"th",24),t.YNc(42,mc,4,4,"td",14),t.BQk(),t.ynx(43,26),t.YNc(44,dc,2,0,"th",24),t.YNc(45,hc,4,4,"td",14),t.BQk(),t.ynx(46,27),t.YNc(47,_c,2,0,"th",16),t.YNc(48,gc,6,4,"td",14),t.BQk(),t.ynx(49,28),t.YNc(50,fc,6,0,"th",29),t.YNc(51,Cc,8,0,"td",30),t.BQk(),t.ynx(52,31),t.YNc(53,Tc,4,3,"td",32),t.BQk(),t.YNc(54,bc,1,3,"tr",33),t.YNc(55,Sc,1,0,"tr",34),t.YNc(56,Zc,1,0,"tr",35),t.qZA()(),t._UZ(57,"mat-paginator",36),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(12,Ac).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(13,Ec,""!==i.errorMessage)),t.xp6(43),t.Q6J("matFooterRowDef",t.DdM(15,wc)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,q.BN,u.PC,Z.Zl,y.bx,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;min-width:15rem;max-width:30rem}"]}),n})();function Fc(n,a){if(1&n&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function qc(n,a){if(1&n&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}const Nc=function(){return["all"]};function Oc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"div",8)(3,"mat-form-field",9)(4,"mat-select",10),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilterBy=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.selFilter="",o.applyFilter()}),t.YNc(5,qc,2,2,"mat-option",11),t.qZA()(),t.TgZ(6,"mat-form-field",9)(7,"input",12),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngModel",e.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(3,Nc).concat(e.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",e.selFilter)}}function Pc(n,a){1&n&&t._UZ(0,"mat-progress-bar",42)}function Uc(n,a){1&n&&t._UZ(0,"th",43)}const Rc=function(n){return{"ml-0":n}};function kc(n,a){if(1&n&&(t._UZ(0,"span",46),t.ALo(1,"camelcase")),2&n){const e=t.oxw().$implicit,i=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,2,null==e?null:e.type)),t.Q6J("ngClass",t.VKq(4,Rc,i.screenSize===i.screenSizeEnum.XS))}}function Dc(n,a){if(1&n&&(t.TgZ(0,"td",44),t.YNc(1,kc,2,6,"span",45),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","payment-relayed"!==(null==e?null:e.type))}}function Jc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Date/Time"),t.qZA())}function Mc(n,a){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e?null:e.timestamp,"dd/MMM/y HH:mm")," ")}}function Qc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"In Channel ID"),t.qZA())}const et=function(n){return{width:n}};function Yc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.fromChannelId)}}function Bc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"In Channel Short ID"),t.qZA())}function Hc(n,a){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.fromShortChannelId)}}function zc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"In Channel"),t.qZA())}function Vc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.fromChannelAlias)}}function Gc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel ID"),t.qZA())}function Wc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.toChannelId)}}function $c(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel Short ID"),t.qZA())}function Xc(n,a){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.toShortChannelId)}}function Kc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel"),t.qZA())}function jc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.toChannelAlias)}}function tu(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Payment Hash"),t.qZA())}function eu(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash)}}function nu(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Amount In (Sats)"),t.qZA())}function iu(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountIn))}}function au(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Amount Out (Sats)"),t.qZA())}function ou(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountOut))}}function su(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Fee Earned (Sats)"),t.qZA())}function lu(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,(null==e?null:e.amountIn)-(null==e?null:e.amountOut)))}}function ru(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",52)(1,"div",53)(2,"mat-select",54),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function cu(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",56)(1,"button",57),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw(2).onForwardingEventClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function uu(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function pu(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function mu(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function du(n,a){if(1&n&&(t.TgZ(0,"td",58),t.YNc(1,uu,2,0,"p",59),t.YNc(2,pu,2,0,"p",59),t.YNc(3,mu,2,1,"p",59),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const hu=function(n){return{"display-none":n}};function _u(n,a){if(1&n&&t._UZ(0,"tr",60),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,hu,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function gu(n,a){1&n&&t._UZ(0,"tr",61)}function fu(n,a){1&n&&t._UZ(0,"tr",62)}const Cu=function(){return["no_event"]};function xu(n,a){if(1&n&&(t.TgZ(0,"div",14),t.YNc(1,Pc,1,0,"mat-progress-bar",15),t.TgZ(2,"table",16,17),t.ynx(4,18),t.YNc(5,Uc,1,0,"th",19),t.YNc(6,Dc,2,1,"td",20),t.BQk(),t.ynx(7,21),t.YNc(8,Jc,2,0,"th",22),t.YNc(9,Mc,3,4,"td",20),t.BQk(),t.ynx(10,23),t.YNc(11,Qc,2,0,"th",22),t.YNc(12,Yc,4,4,"td",20),t.BQk(),t.ynx(13,24),t.YNc(14,Bc,2,0,"th",22),t.YNc(15,Hc,2,1,"td",20),t.BQk(),t.ynx(16,25),t.YNc(17,zc,2,0,"th",22),t.YNc(18,Vc,4,4,"td",20),t.BQk(),t.ynx(19,26),t.YNc(20,Gc,2,0,"th",22),t.YNc(21,Wc,4,4,"td",20),t.BQk(),t.ynx(22,27),t.YNc(23,$c,2,0,"th",22),t.YNc(24,Xc,2,1,"td",20),t.BQk(),t.ynx(25,28),t.YNc(26,Kc,2,0,"th",22),t.YNc(27,jc,4,4,"td",20),t.BQk(),t.ynx(28,29),t.YNc(29,tu,2,0,"th",22),t.YNc(30,eu,4,4,"td",20),t.BQk(),t.ynx(31,30),t.YNc(32,nu,2,0,"th",31),t.YNc(33,iu,4,3,"td",20),t.BQk(),t.ynx(34,32),t.YNc(35,au,2,0,"th",31),t.YNc(36,ou,4,3,"td",20),t.BQk(),t.ynx(37,33),t.YNc(38,su,2,0,"th",31),t.YNc(39,lu,4,3,"td",20),t.BQk(),t.ynx(40,34),t.YNc(41,ru,6,0,"th",35),t.YNc(42,cu,3,0,"td",36),t.BQk(),t.ynx(43,37),t.YNc(44,du,4,3,"td",38),t.BQk(),t.YNc(45,_u,1,3,"tr",39),t.YNc(46,gu,1,0,"tr",40),t.YNc(47,fu,1,0,"tr",41),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.forwardingHistoryEvents),t.xp6(43),t.Q6J("matFooterRowDef",t.DdM(5,Cu)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function yu(n,a){if(1&n&&t._UZ(0,"mat-paginator",63),2&n){const e=t.oxw();t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Dt=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.camelCaseWithSpaces=c,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.forwardingHistoryEvents=new r.by([]),this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.pageId))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.pageId))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("type"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{0===this.eventsData.length&&(this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.eventsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData))})}ngAfterViewInit(){this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchPayments"},this.eventsData=e.eventsData.currentValue,e.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),e.selFilter&&!e.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}onForwardingEventClick(e,i){const o=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"timestamp",value:Math.round((e.timestamp||0)/1e3),title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"fee",value:(e.amountIn||0)-(e.amountOut||0),title:"Fee Earned (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:l.Gi.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:l.Gi.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel ID",width:100,type:l.Gi.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:l.Gi.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel ID",width:100,type:l.Gi.STRING}]];"payment-relayed"!==e.type&&(null==o||o.unshift([{key:"type",value:this.commonService.camelCase(e.type),title:"Relay Type",width:100,type:l.Gi.STRING}])),this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:o}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(e){const i=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column):this.commonService.titleCase(e)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(e,i)=>{var o,s;let c="";switch(this.selFilterBy){case"all":c=(e.timestamp?null===(o=this.datePipe.transform(new Date(e.timestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":c=(null===(s=this.datePipe.transform(new Date(e.timestamp||0),"dd/MMM/y HH:mm"))||void 0===s?void 0:s.toLowerCase())||"";break;case"fee":c=(e.amountIn-e.amountOut).toString()||"0";break;default:c=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return c.includes(i)}}loadForwardingEventsTable(e){var i;this.forwardingHistoryEvents=new r.by([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,s)=>"fee"===s?o.amountIn-o.amountOut:o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,null===(i=this.forwardingHistoryEvents.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(u.uU),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Events")}]),t.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-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","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],[3,"value"],["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","type"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fromChannelId"],["matColumnDef","fromShortChannelId"],["matColumnDef","fromChannelAlias"],["matColumnDef","toChannelId"],["matColumnDef","toShortChannelId"],["matColumnDef","toChannelAlias"],["matColumnDef","paymentHash"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)"],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",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,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Fc,2,1,"div",1),t.YNc(2,Oc,8,4,"div",2),t.YNc(3,xu,48,6,"div",3),t.YNc(4,yu,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,M.pW,r.BZ,S.YE,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,u.mk,Z.oO,u.PC,Z.Zl,k.$L,N.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[G.h9,u.uU,u.JJ],styles:[".mat-column-type[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}.mat-column-type[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:1.6rem;width:1.6rem}"]}),n})();const vu=["tableIn"],Tu=["tableOut"],Lu=["paginatorIn"],bu=["paginatorOut"];function Su(n,a){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function Zu(n,a){1&n&&t._UZ(0,"mat-progress-bar",34)}function Au(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}const at=function(n){return{width:n}};function Eu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function wu(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function Iu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function Fu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function qu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Nu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Ou(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function Pu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function Uu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function Ru(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function ku(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function Du(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Ju(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,Ru,2,0,"p",42),t.YNc(2,ku,2,0,"p",42),t.YNc(3,Du,2,1,"p",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Jt=function(n){return{"display-none":n}};function Mu(n,a){if(1&n&&t._UZ(0,"tr",43),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Jt,(null==e.routingPeersIncoming?null:e.routingPeersIncoming.data)&&(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)>0))}}function Qu(n,a){1&n&&t._UZ(0,"tr",44)}function Yu(n,a){1&n&&t._UZ(0,"tr",45)}function Bu(n,a){1&n&&t._UZ(0,"mat-progress-bar",34)}function Hu(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}function zu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function Vu(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function Gu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function Wu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function $u(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Xu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Ku(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function ju(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function tp(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function ep(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function np(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function ip(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function ap(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,ep,2,0,"p",42),t.YNc(2,np,2,0,"p",42),t.YNc(3,ip,2,1,"p",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function op(n,a){if(1&n&&t._UZ(0,"tr",43),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Jt,(null==e.routingPeersOutgoing?null:e.routingPeersOutgoing.data)&&(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)>0))}}function sp(n,a){1&n&&t._UZ(0,"tr",44)}function lp(n,a){1&n&&t._UZ(0,"tr",45)}const rp=function(n,a){return{"mt-2":n,"mt-1":a}},cp=function(){return["no_incoming_event"]},up=function(n){return{"mt-2":n}},pp=function(){return["no_outgoing_event"]};function mp(n,a){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t._UZ(5,"div",8),t.qZA(),t.TgZ(6,"div",9),t.YNc(7,Zu,1,0,"mat-progress-bar",10),t.TgZ(8,"table",11,12),t.ynx(10,13),t.YNc(11,Au,2,0,"th",14),t.YNc(12,Eu,4,4,"td",15),t.BQk(),t.ynx(13,16),t.YNc(14,wu,2,0,"th",14),t.YNc(15,Iu,4,4,"td",15),t.BQk(),t.ynx(16,17),t.YNc(17,Fu,2,0,"th",18),t.YNc(18,qu,4,3,"td",15),t.BQk(),t.ynx(19,19),t.YNc(20,Nu,2,0,"th",18),t.YNc(21,Ou,4,3,"td",15),t.BQk(),t.ynx(22,20),t.YNc(23,Pu,2,0,"th",18),t.YNc(24,Uu,4,3,"td",15),t.BQk(),t.ynx(25,21),t.YNc(26,Ju,4,3,"td",22),t.BQk(),t.YNc(27,Mu,1,3,"tr",23),t.YNc(28,Qu,1,0,"tr",24),t.YNc(29,Yu,1,0,"tr",25),t.qZA()(),t._UZ(30,"mat-paginator",26,27),t.qZA(),t.TgZ(32,"div",28)(33,"div",6)(34,"div",7),t._uU(35,"Outgoing"),t.qZA(),t._UZ(36,"div",8),t.qZA(),t.TgZ(37,"div",29),t.YNc(38,Bu,1,0,"mat-progress-bar",10),t.TgZ(39,"table",30,31),t.ynx(41,13),t.YNc(42,Hu,2,0,"th",14),t.YNc(43,zu,4,4,"td",15),t.BQk(),t.ynx(44,16),t.YNc(45,Vu,2,0,"th",14),t.YNc(46,Gu,4,4,"td",15),t.BQk(),t.ynx(47,17),t.YNc(48,Wu,2,0,"th",18),t.YNc(49,$u,4,3,"td",15),t.BQk(),t.ynx(50,19),t.YNc(51,Xu,2,0,"th",18),t.YNc(52,Ku,4,3,"td",15),t.BQk(),t.ynx(53,20),t.YNc(54,ju,2,0,"th",18),t.YNc(55,tp,4,3,"td",15),t.BQk(),t.ynx(56,32),t.YNc(57,ap,4,3,"td",22),t.BQk(),t.YNc(58,op,1,3,"tr",23),t.YNc(59,sp,1,0,"tr",24),t.YNc(60,lp,1,0,"tr",25),t.qZA(),t._UZ(61,"mat-paginator",26,33),t.qZA()()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(18,rp,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.xp6(5),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.routingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(21,cp)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(22,up,e.screenSize!==e.screenSizeEnum.LG)),t.xp6(5),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.routingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(24,pp)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let dp=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.camelCaseWithSpaces=s,this.nodePageDefs=l.Xk,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:l.IV,sortBy:"totalFee",sortOrder:l.Pi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new r.by([]),this.routingPeersOutgoing=new r.by([]),this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(e,i)=>{let o="";return o="all"===this.selFilterByIn?JSON.stringify(e).toLowerCase():"string"==typeof e[this.selFilterByIn]?e[this.selFilterByIn].toLowerCase():"boolean"==typeof e[this.selFilterByIn]?e[this.selFilterByIn]?"yes":"no":e[this.selFilterByIn].toString(),o.includes(i)},this.routingPeersOutgoing.filterPredicate=(e,i)=>{var o;let s="";switch(this.selFilterByOut){case"all":s=JSON.stringify(e).toLowerCase();break;case"total_amount":case"total_fee":s=(null===(o=+(e[this.selFilterByOut]||0)/1e3)||void 0===o?void 0:o.toString())||"";break;default:s="string"==typeof e[this.selFilterByOut]?e[this.selFilterByOut].toLowerCase():"boolean"==typeof e[this.selFilterByOut]?e[this.selFilterByOut]?"yes":"no":e[this.selFilterByOut].toString()}return s.includes(i)}}loadRoutingPeersTable(e){var i,o;if(e.length>0){const s=this.groupRoutingPeers(e);this.routingPeersIncoming=new r.by(s[0]),this.routingPeersIncoming.sort=this.sortIn,null===(i=this.routingPeersIncoming.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new r.by(s[1]),this.routingPeersOutgoing.sort=this.sortOut,null===(o=this.routingPeersOutgoing.sort)||void 0===o||o.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new r.by([]),this.routingPeersOutgoing=new r.by([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(e){const i=[],o=[];return e.forEach(s=>{const c=i.find(g=>g.channelId===s.fromChannelId),h=o.find(g=>g.channelId===s.toChannelId);c?(c.events++,c.totalAmount=+c.totalAmount+ +s.amountIn,c.totalFee=s.amountIn-s.amountOut+ +c.totalFee):i.push({channelId:s.fromChannelId,alias:s.fromChannelAlias,events:1,totalAmount:+s.amountIn,totalFee:s.amountIn-s.amountOut}),h?(h.events++,h.totalAmount=+h.totalAmount+ +s.amountOut,h.totalFee=s.amountIn-s.amountOut+ +h.totalFee):o.push({channelId:s.toChannelId,alias:s.toChannelAlias,events:1,totalAmount:+s.amountOut,totalFee:s.amountIn-s.amountOut})}),[this.commonService.sortDescByKey(i,"totalFee"),this.commonService.sortDescByKey(o,"totalFee")]}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(vu,5,S.YE),t.Gf(Tu,5,S.YE),t.Gf(Lu,5),t.Gf(bu,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sortIn=o.first),t.iGM(o=t.CRH())&&(i.sortOut=o.first),t.iGM(o=t.CRH())&&(i.paginatorIn=o.first),t.iGM(o=t.CRH())&&(i.paginatorOut=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["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","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Su,2,1,"div",1),t.YNc(2,mp,63,25,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,u.mk,Z.oO,H.$V,M.pW,r.BZ,S.YE,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,u.PC,Z.Zl,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.JJ],styles:[""]}),n})();function hp(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let _p=(()=>{class n{constructor(e){this.router=e,this.faChartBar=L.koM,this.links=[{link:"routingreport",name:"Routing"},{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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,hp,2,3,"div",6),t.qZA(),t._UZ(9,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartBar),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,R.BU,u.sg,R.Nj,x.rH,x.lC],styles:[""]}),n})();var Mt=f(7772),Qt=f(7671),Yt=f(1210);function gp(n,a){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.totalFeeSat),t.xp6(1),t.AsE("",t.xi3(2,3,e.totalFeeSat||0,"1.0-2")," Sats/",t.lcZ(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function fp(n,a){1&n&&(t.TgZ(0,"div",14),t._uU(1,"No routing report for the selected period"),t.qZA())}function Cp(n,a){if(1&n&&(t.TgZ(0,"span")(1,"span",17),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",17),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&n){const e=a.model,i=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(i.selReportBy===i.reportBy.EVENTS?e.value:e.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(i.selReportBy===i.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"),"")}}function xp(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",15),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Cp,7,7,"ng-template",null,16,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function yp(n,a){if(1&n&&t._UZ(0,"rtl-ecl-forwarding-history",18),2&n){const e=t.oxw();t.Q6J("pageId","reports")("tableId","routing")("eventsData",e.filteredEventsBySelectedPeriod)("selFilter",e.eventFilterValue)}}let vp=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.totalFeeSat=null,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.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.events=e.payments&&e.payments.relayed?e.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(e,i){const o=Math.round(e.getTime()/1e3),s=Math.round(i.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()+" To "+i.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(c=>{Math.floor((c.timestamp||0)/1e3)>=o&&Math.floor((c.timestamp||0)/1e3)0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===l.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalEvents:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}prepareEventsReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalFees:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:17,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["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"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"pageId","tableId","eventsData","selFilter",4,"ngIf"],["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"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"pageId","tableId","eventsData","selFilter"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(s){return i.selReportBy=s})("change",function(){return i.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.TgZ(10,"div",7),t.YNc(11,gp,4,8,"div",8),t.YNc(12,fp,2,0,"div",9),t.TgZ(13,"div",10),t.YNc(14,xp,3,11,"ngx-charts-bar-vertical",11),t.qZA(),t.TgZ(15,"div",10),t.YNc(16,yp,1,4,"rtl-ecl-forwarding-history",12),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",i.selReportBy),t.xp6(3),t.s9C("value",i.reportBy.FEES),t.xp6(2),t.s9C("value",i.reportBy.EVENTS),t.xp6(3),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(1),t.Q6J("ngIf",i.routingReportData.length<=0||i.filteredEventsBySelectedPeriod.length<=0),t.xp6(2),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(2),t.Q6J("ngIf",i.filteredEventsBySelectedPeriod.length>0))},directives:[m.xw,m.Wh,m.yH,Qt.D,it.VQ,d.JJ,d.On,it.U0,u.O5,Yt.K$,Dt],pipes:[u.JJ],styles:[""],data:{animation:[Mt.J]}}),n})();var Tp=f(165);function Lp(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function bp(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Sp(n,a){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Lp,4,7,"div",9),t.YNc(2,bp,4,7,"div",9),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function Zp(n,a){1&n&&(t.TgZ(0,"div",11),t._uU(1,"No transactions report for the selected period"),t.qZA())}function Ap(n,a){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=a.model;t.xp6(1),t.HOy("",e.name,": ",t.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Ep(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",12),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Ap,4,9,"ng-template",null,13,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.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 wp(n,a){if(1&n&&t._UZ(0,"rtl-transactions-report-table",15),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("tableSetting",e.tableSetting)("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("selFilter",e.transactionFilterValue)}}let Ip=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:l.IV,sortBy:"date",sortOrder:l.Pi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_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=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[1]),(0,ot.M)(this.store.select(C.Ef))).subscribe(([e,i])=>{this.payments=e.payments.sent?e.payments.sent:[],this.invoices=i.invoices?i.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}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===l.op[1]?e.series.toString()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,i){var o,s;const c=Math.round(e.getTime()/1e3),h=Math.round(i.getTime()/1e3),g=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const v=null===(o=this.payments)||void 0===o?void 0:o.filter(T=>T.firstPartTimestamp&&Math.floor(T.firstPartTimestamp/1e3)>=c&&Math.floor(T.firstPartTimestamp/1e3)"received"===T.status&&T.timestamp&&T.timestamp>=c&&T.timestamp{const F=new Date(T.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(T.recipientAmount||0),g[F].series[0].value=g[F].series[0].value+T.recipientAmount,g[F].series[0].extra.total=g[F].series[0].extra.total+1,this.transactionsReportSummary}),null==B||B.map(T=>{const F=new Date(1e3*(T.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(T.amountSettled||0),g[F].series[1].value=g[F].series[1].value+T.amountSettled,g[F].series[1].extra.total=g[F].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let T=0;T{const F=Math.floor((Math.floor((T.firstPartTimestamp||0)/1e3)-c)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(T.recipientAmount||0),g[F].series[0].value=g[F].series[0].value+T.recipientAmount,g[F].series[0].extra.total=g[F].series[0].extra.total+1,this.transactionsReportSummary}),null==B||B.map(T=>{const F=Math.floor(((T.timestamp||0)-c)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(T.amountSettled||0),g[F].series[1].value=g[F].series[1].value+T.amountSettled,g[F].series[1].extra.total=g[F].series[1].extra.total+1,this.transactionsReportSummary})}return g}prepareTableData(){var e;return null===(e=this.transactionsReportData)||void 0===e?void 0:e.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["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"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["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"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,Sp,3,3,"div",3),t.YNc(4,Zp,2,0,"div",4),t.TgZ(5,"div",5),t.YNc(6,Ep,3,13,"ngx-charts-bar-vertical-2d",6),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,wp,1,5,"rtl-transactions-report-table",7),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(1),t.Q6J("ngIf",i.transactionsNonZeroReportData.length<=0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0))},directives:[m.xw,m.Wh,m.yH,Qt.D,u.O5,Yt.H5,Tp.g],pipes:[u.JJ],styles:[""],data:{animation:[Mt.J]}}),n})();var I=f(1643),Fp=f(9442);function qp(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}const Pp=x.Bz.forChild([{path:"",component:Ct,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Ca,canActivate:[I.fY]},{path:"onchain",component:so,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:Uo,canActivate:[I.fY]},{path:"send",component:Ro,canActivate:[I.fY]}]},{path:"connections",component:co,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:es,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:nl,canActivate:[I.fY]},{path:"pending",component:Jl,canActivate:[I.fY]},{path:"inactive",component:Ic,canActivate:[I.fY]}]},{path:"peers",component:Ar,data:{sweepAll:!1},canActivate:[I.fY]}]},{path:"transactions",component:po,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:St,canActivate:[I.fY]},{path:"invoices",component:Lt,canActivate:[I.fY]}]},{path:"routing",component:ho,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Dt,canActivate:[I.fY]},{path:"peers",component:dp,canActivate:[I.fY]}]},{path:"reports",component:_p,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:vp,canActivate:[I.fY]},{path:"transactions",component:Ip,canActivate:[I.fY]}]},{path:"graph",component:(()=>{class n{constructor(e){this.router=e,this.faSearch=L.wn1,this.links=[{link:"lookups",name:"Lookup"},{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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-graph"]],decls:11,vars:2,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"],["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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,qp,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faSearch),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,R.BU,u.sg,R.Nj,x.rH,m.yH,x.lC],styles:[""]}),n})(),canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Oo,canActivate:[I.fY]},{path:"queryroutes",component:Qr,canActivate:[I.fY]}]},{path:"**",component:Fp.w}]}]);var Up=f(8750);let Rp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[Ct]}),n.\u0275inj=t.cJS({providers:[I.fY],imports:[[u.ez,Up.m,Pp]]}),n})()}}]); \ No newline at end of file +"use strict";(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[258],{7258:(kp,ft,f)=>{f.r(ft),f.d(ft,{ECLModule:()=>Rp});var u=f(9808),x=f(1402),Bt=f(8878),t=f(5e3),m=f(7093),M=f(5899);function Ht(n,a){1&n&&t._UZ(0,"mat-progress-bar",3)}let Ct=(()=>{class n{constructor(e){this.router=e,this.loading=!1,this.router.events.subscribe(i=>{switch(!0){case i instanceof x.OD:this.loading=!0;break;case i instanceof x.m2:case i instanceof x.gk:case i instanceof x.Q3:this.loading=!1}})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Ht,1,0,"mat-progress-bar",1),t._UZ(2,"router-outlet",null,2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",i.loading))},directives:[m.xw,m.yH,m.Wh,u.O5,M.pW,x.lC],styles:[""],data:{animation:[Bt.g]}}),n})();var p=f(7579),_=f(2722),ot=f(1365),xt=f(3396),L=f(2687),l=f(7731),C=f(2501),O=f(5043),w=f(5620),P=f(62),q=f(9546),yt=f(3954),b=f(9224),N=f(7423),st=f(2181),vt=f(5245),Z=f(3322);const Tt=function(n){return{backgroundColor:n}};function zt(n,a){if(1&n&&t._UZ(0,"span",6),2&n){const e=t.oxw();t.Q6J("ngStyle",t.VKq(1,Tt,null==e.information?null:e.information.color))}}function Vt(n,a){if(1&n&&(t.TgZ(0,"div")(1,"h4",1),t._uU(2,"Color"),t.qZA(),t.TgZ(3,"div",2),t._UZ(4,"span",7),t._uU(5),t.ALo(6,"uppercase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngStyle",t.VKq(4,Tt,null==e.information?null:e.information.color)),t.xp6(1),t.hij(" ",t.lcZ(6,2,null==e.information?null:e.information.color)," ")}}function Gt(n,a){if(1&n&&(t.TgZ(0,"span",2),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}let Wt=(()=>{class n{constructor(e){this.commonService=e,this.chains=[""]}ngOnChanges(){this.chains=[],this.chains.push("Bitcoin "+(this.information.network?this.commonService.titleCase(this.information.network):"Testnet"))}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(P.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-info"]],inputs:{information:"information",showColorFieldSeparately:"showColorFieldSeparately"},features:[t.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,i){1&e&&(t.TgZ(0,"div",0)(1,"div")(2,"h4",1),t._uU(3,"Alias"),t.qZA(),t.TgZ(4,"div",2),t._uU(5),t.YNc(6,zt,1,3,"span",3),t.qZA()(),t.YNc(7,Vt,7,6,"div",4),t.TgZ(8,"div")(9,"h4",1),t._uU(10,"Implementation"),t.qZA(),t.TgZ(11,"div",2),t._uU(12),t.qZA()(),t.TgZ(13,"div")(14,"h4",1),t._uU(15,"Chain"),t.qZA(),t.YNc(16,Gt,2,1,"span",5),t.qZA()()),2&e&&(t.xp6(5),t.hij(" ",null==i.information?null:i.information.alias," "),t.xp6(1),t.Q6J("ngIf",!i.showColorFieldSeparately),t.xp6(1),t.Q6J("ngIf",i.showColorFieldSeparately),t.xp6(5),t.Oqu(null!=i.information&&i.information.lnImplementation||null!=i.information&&i.information.version?(null==i.information?null:i.information.lnImplementation)+" "+(null==i.information?null:i.information.version):""),t.xp6(4),t.Q6J("ngForOf",i.chains))},directives:[m.xw,m.yH,m.Wh,u.O5,u.PC,Z.Zl,u.sg],pipes:[u.gd],styles:[""]}),n})();function $t(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div")(2,"h4",3),t._uU(3,"Lightning"),t.qZA(),t.TgZ(4,"div",4),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",5),t.qZA(),t.TgZ(8,"div")(9,"h4",3),t._uU(10,"On-chain"),t.qZA(),t.TgZ(11,"div",4),t._uU(12),t.ALo(13,"number"),t.qZA(),t._UZ(14,"mat-progress-bar",5),t.qZA(),t.TgZ(15,"div")(16,"h4",3),t._uU(17,"Total"),t.qZA(),t.TgZ(18,"div",4),t._uU(19),t.ALo(20,"number"),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.hij("",t.lcZ(6,5,e.balances.lightning)," Sats"),t.xp6(2),t.s9C("value",e.balances.lightning/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(13,7,e.balances.onchain)," Sats"),t.xp6(2),t.s9C("value",e.balances.onchain/e.balances.total*100),t.xp6(5),t.hij("",t.lcZ(20,9,e.balances.total)," Sats")}}function Xt(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Kt=(()=>{class n{constructor(){this.balances={onchain:0,lightning:0,total:0}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){if(1&e&&(t.YNc(0,$t,21,11,"div",0),t.YNc(1,Xt,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.yH,m.Wh,M.pW],pipes:[u.JJ],styles:[""]}),n})();var y=f(7322),$=f(7238),K=f(4834),H=f(8129);const jt=function(){return["../connections/channels/open"]},te=function(n){return{filter:n}};function ee(n,a){if(1&n&&(t.TgZ(0,"div",19)(1,"a",20),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",21)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",22),t._UZ(11,"fa-icon",23),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",24)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",25),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(23,jt))("state",t.VKq(24,te,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,11,(null==e?null:e.alias)||(null==e?null:e.shortChannelId),0,24),"",((null==e?null:e.alias)||(null==e?null:e.shortChannelId)).length>25?"...":""," "),t.xp6(6),t.hij("",t.xi3(9,15,(null==e?null:e.toLocal)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",i.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,18,(null==e?null:e.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,20,(null==e?null:e.toRemote)||0,"1.0-0")," Sats"),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function ne(n,a){if(1&n&&(t.TgZ(0,"div",17),t.YNc(1,ee,20,26,"div",18),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}function ie(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"div",6)(5,"mat-hint",7)(6,"strong",8),t._uU(7,"Local:"),t.qZA(),t._uU(8),t.ALo(9,"number"),t.qZA(),t.TgZ(10,"mat-hint",9),t._UZ(11,"fa-icon",10),t._uU(12),t.ALo(13,"number"),t.qZA(),t.TgZ(14,"mat-hint",11)(15,"strong",8),t._uU(16,"Remote:"),t.qZA(),t._uU(17),t.ALo(18,"number"),t.qZA()(),t._UZ(19,"mat-progress-bar",12),t.qZA(),t.TgZ(20,"div",13),t._UZ(21,"mat-divider",14),t.qZA(),t.TgZ(22,"div",15),t.YNc(23,ne,2,1,"div",16),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.xp6(8),t.hij("",t.xi3(9,7,(null==e.channelBalances?null:e.channelBalances.localBalance)||0,"1.0-0")," Sats"),t.xp6(3),t.Q6J("icon",e.faBalanceScale),t.xp6(1),t.hij(" (",t.lcZ(13,10,(null==e.channelBalances?null:e.channelBalances.balancedness)||0),") "),t.xp6(5),t.hij("",t.xi3(18,12,(null==e.channelBalances?null:e.channelBalances.remoteBalance)||0,"1.0-0")," Sats"),t.xp6(2),t.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),t.xp6(4),t.Q6J("ngIf",e.allChannels&&(null==e.allChannels?null:e.allChannels.length)>0)("ngIfElse",i)}}function ae(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",26),t._uU(1," No channels available. "),t.TgZ(2,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw().goToChannels()}),t._uU(3,"Open Channel"),t.qZA()()}}function oe(n,a){if(1&n&&(t.TgZ(0,"div",28)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let se=(()=>{class n{constructor(e){this.router=e,this.faBalanceScale=L.DL8,this.faDumbbell=L.FlN,this.sortBy="Balance Score"}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,"routerLink","state","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,i){if(1&e&&(t.YNc(0,ie,24,15,"div",0),t.YNc(1,ae,4,0,"ng-template",null,1,t.W1O),t.YNc(3,oe,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.Wh,m.yH,y.bx,q.BN,$.gM,M.pW,K.d,H.$V,u.sg,x.yS,N.lW],pipes:[u.JJ,u.OU],styles:[".channels-capacity-scroll[_ngcontent-%COMP%]{width:100%;height:100%;overflow-y:hidden}"]}),n})();function le(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Daily"),t.qZA(),t.TgZ(5,"div",5),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div")(9,"h4",4),t._uU(10,"Weekly"),t.qZA(),t.TgZ(11,"div",5),t._uU(12),t.ALo(13,"number"),t.qZA()(),t.TgZ(14,"div")(15,"h4",4),t._uU(16,"Monthly"),t.qZA(),t.TgZ(17,"div",5),t._uU(18),t.ALo(19,"number"),t.qZA()()(),t.TgZ(20,"div",3)(21,"div")(22,"h4",4),t._uU(23,"Transactions"),t.qZA(),t.TgZ(24,"div",5),t._uU(25),t.ALo(26,"number"),t.qZA()(),t.TgZ(27,"div")(28,"h4",4),t._uU(29,"Transactions"),t.qZA(),t.TgZ(30,"div",5),t._uU(31),t.ALo(32,"number"),t.qZA()(),t.TgZ(33,"div")(34,"h4",4),t._uU(35,"Transactions"),t.qZA(),t.TgZ(36,"div",5),t._uU(37),t.ALo(38,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(6),t.hij("",t.lcZ(7,6,null==e.fees?null:e.fees.daily_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(13,8,null==e.fees?null:e.fees.weekly_fee)," Sats"),t.xp6(6),t.hij("",t.lcZ(19,10,null==e.fees?null:e.fees.monthly_fee)," Sats"),t.xp6(7),t.Oqu(t.lcZ(26,12,null==e.fees?null:e.fees.daily_txs)),t.xp6(6),t.Oqu(t.lcZ(32,14,null==e.fees?null:e.fees.weekly_txs)),t.xp6(6),t.Oqu(t.lcZ(38,16,null==e.fees?null:e.fees.monthly_txs))}}function re(n,a){if(1&n&&(t.TgZ(0,"div",6)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let ce=(()=>{class n{constructor(){this.totalFees=[{name:"Monthly",value:0},{name:"Weekly",value:0},{name:"Daily",value:0}],this.maxFeeValue=100}ngOnChanges(){var e;if(null===(e=this.fees)||void 0===e?void 0:e.monthly_fee){this.totalFees=[{name:"Monthly",value:this.fees.monthly_fee},{name:"Weekly",value:this.fees.weekly_fee||0},{name:"Daily ",value:this.fees.daily_fee||0}];const i=Math.ceil(Math.log(this.fees.monthly_fee+1)/Math.LN10),o=Math.pow(10,i-1);this.maxFeeValue=Math.ceil(this.fees.monthly_fee/o)*o/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 n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-fee-info"]],inputs:{fees:"fees",errorMessage:"errorMessage"},features:[t.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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,le,39,18,"div",0),t.YNc(1,re,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();function ue(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3)(2,"div")(3,"h4",4),t._uU(4,"Active"),t.qZA(),t.TgZ(5,"div",5),t._UZ(6,"span",6),t._uU(7),t.ALo(8,"number"),t.qZA()(),t.TgZ(9,"div")(10,"h4",4),t._uU(11,"Pending"),t.qZA(),t.TgZ(12,"div",5),t._UZ(13,"span",7),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div")(17,"h4",4),t._uU(18,"Inactive"),t.qZA(),t.TgZ(19,"div",5),t._UZ(20,"span",8),t._uU(21),t.ALo(22,"number"),t.qZA()()(),t.TgZ(23,"div",3)(24,"div")(25,"h4",4),t._uU(26,"Capacity"),t.qZA(),t.TgZ(27,"div",5),t._uU(28),t.ALo(29,"number"),t.qZA()(),t.TgZ(30,"div")(31,"h4",4),t._uU(32,"Capacity"),t.qZA(),t.TgZ(33,"div",5),t._uU(34),t.ALo(35,"number"),t.qZA()(),t.TgZ(36,"div")(37,"h4",4),t._uU(38,"Capacity"),t.qZA(),t.TgZ(39,"div",5),t._uU(40),t.ALo(41,"number"),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(7),t.Oqu(t.lcZ(8,6,(null==e.channelsStatus.active?null:e.channelsStatus.active.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(15,8,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.channels)||0)),t.xp6(7),t.Oqu(t.lcZ(22,10,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.channels)||0)),t.xp6(7),t.hij("",t.lcZ(29,12,(null==e.channelsStatus.active?null:e.channelsStatus.active.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(35,14,(null==e.channelsStatus.pending?null:e.channelsStatus.pending.capacity)||0)," Sats"),t.xp6(6),t.hij("",t.lcZ(41,16,(null==e.channelsStatus.inactive?null:e.channelsStatus.inactive.capacity)||0)," Sats")}}function pe(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let me=(()=>{class n{constructor(){this.channelsStatus={}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between",1,"p-2"]],template:function(e,i){if(1&e&&(t.YNc(0,ue,42,18,"div",0),t.YNc(1,pe,3,1,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.yH,m.Wh],pipes:[u.JJ],styles:[""]}),n})();function de(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toRemote||0,"1.0-0")," Sats")}}function he(n,a){if(1&n&&(t.TgZ(0,"mat-hint",19)(1,"strong",20),t._uU(2,"Capacity: "),t.qZA(),t._uU(3),t.ALo(4,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.hij("",t.xi3(4,1,e.toLocal||0,"1.0-0")," Sats")}}function _e(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toRemote||0)/i.totalLiquidity*100:0)}}function ge(n,a){if(1&n&&t._UZ(0,"mat-progress-bar",21),2&n){const e=t.oxw().$implicit,i=t.oxw(3);t.s9C("value",i.totalLiquidity>0?(+e.toLocal||0)/i.totalLiquidity*100:0)}}const fe=function(){return["../connections/channels/open"]},Ce=function(n){return{filter:n}};function xe(n,a){if(1&n&&(t.TgZ(0,"div",14)(1,"a",15),t._uU(2),t.ALo(3,"slice"),t.qZA(),t.TgZ(4,"div",16),t.YNc(5,de,5,4,"mat-hint",17),t.YNc(6,he,5,4,"mat-hint",17),t.qZA(),t.YNc(7,_e,1,1,"mat-progress-bar",18),t.YNc(8,ge,1,1,"mat-progress-bar",18),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(3);t.xp6(1),t.s9C("matTooltip",e.alias||e.shortChannelId),t.s9C("matTooltipDisabled",(e.alias||e.shortChannelId).length<26),t.Q6J("routerLink",t.DdM(14,fe))("state",t.VKq(15,Ce,e.channelId)),t.xp6(1),t.AsE(" ",t.Dn7(3,10,e.alias||e.shortChannelId,0,24),"",(e.alias||e.shortChannelId).length>25?"...":""," "),t.xp6(3),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction),t.xp6(1),t.Q6J("ngIf","In"===i.direction),t.xp6(1),t.Q6J("ngIf","Out"===i.direction)}}function ye(n,a){if(1&n&&(t.TgZ(0,"div",12),t.YNc(1,xe,9,17,"div",13),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngForOf",e.allChannels)}}const ve=function(n,a,e){return{"mb-4":n,"mb-2":a,"mb-1":e}};function Te(n,a){if(1&n&&(t.TgZ(0,"div",3)(1,"div",4)(2,"span",5),t._uU(3,"Total Capacity"),t.qZA(),t.TgZ(4,"mat-hint",6),t._uU(5),t.ALo(6,"number"),t.qZA(),t._UZ(7,"mat-progress-bar",7),t.qZA(),t.TgZ(8,"div",8),t._UZ(9,"mat-divider",9),t.qZA(),t.TgZ(10,"div",10),t.YNc(11,ye,2,1,"div",11),t.qZA()()),2&n){const e=t.oxw(),i=t.MAs(2);t.Q6J("ngClass",t.kEZ(7,ve,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)),t.xp6(5),t.hij("",t.xi3(6,4,e.totalLiquidity,"1.0-0")," Sats"),t.xp6(6),t.Q6J("ngIf",e.allChannels&&e.allChannels.length>0)("ngIfElse",i)}}function Le(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).goToChannels()}),t._uU(1,"Open Channel"),t.qZA()}}function be(n,a){if(1&n&&(t.TgZ(0,"div",22),t._uU(1," No channels available. "),t.YNc(2,Le,2,0,"button",23),t.qZA()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngIf","Out"===e.direction)}}function Se(n,a){if(1&n&&(t.TgZ(0,"div",25)(1,"p"),t._uU(2),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Oqu(e.errorMessage)}}let Ze=(()=>{class n{constructor(e,i){this.router=e,this.commonService=i,this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}goToChannels(){this.router.navigateByUrl("/ecl/connections")}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0),t.Y36(P.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-liquidity-info"]],inputs:{direction:"direction",totalLiquidity:"totalLiquidity",allChannels:"allChannels",errorMessage:"errorMessage"},decls:5,vars:2,consts:[["fxLayout","column","fxLayoutAlign","space-between stretch","fxFlex","100",3,"ngClass",4,"ngIf","ngIfElse"],["noChannelBlock",""],["errorBlock",""],["fxLayout","column","fxLayoutAlign","space-between 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"],["fxLayout","column","fxFlex.gt-sm","88","fxFlex","84","fxLayoutAlign","start start",3,"perfectScrollbar"],["fxLayout","column","fxFlex","100","class","w-100",4,"ngIf","ngIfElse"],["fxLayout","column","fxFlex","100",1,"w-100"],["class","mt-2",4,"ngFor","ngForOf"],[1,"mt-2"],[1,"dashboard-capacity-header",3,"routerLink","state","matTooltip","matTooltipDisabled"],["fxLayout","row","fxLayoutAlign","space-between start",1,"w-100"],["fxFlex","100","fxLayoutAlign","start center","class","font-size-90 color-primary",4,"ngIf"],["class","dashboard-progress-bar","mode","determinate",3,"value",4,"ngIf"],["fxFlex","100","fxLayoutAlign","start center",1,"font-size-90","color-primary"],[1,"font-weight-900","mr-5px"],["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,i){if(1&e&&(t.YNc(0,Te,12,11,"div",0),t.YNc(1,be,3,1,"ng-template",null,1,t.W1O),t.YNc(3,Se,3,1,"ng-template",null,2,t.W1O)),2&e){const o=t.MAs(4);t.Q6J("ngIf",""===(null==i.errorMessage?null:i.errorMessage.trim()))("ngIfElse",o)}},directives:[u.O5,m.xw,m.Wh,m.yH,u.mk,Z.oO,y.bx,M.pW,K.d,H.$V,u.sg,x.yS,$.gM,N.lW],pipes:[u.JJ,u.OU],styles:[""]}),n})();var R=f(3251),Q=f(9300),A=f(6087),S=f(4847),r=f(2075),J=f(8966),U=f(2994),X=f(6642),d=f(3075),Y=f(7531),j=f(3390),tt=f(6534),k=f(4107),z=f(508);function Ae(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function Ee(n,a){if(1&n&&(t.TgZ(0,"mat-option",25),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(t.lcZ(2,2,e))}}function we(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.invoiceError)}}function Ie(n,a){if(1&n&&(t.TgZ(0,"div",26),t._UZ(1,"fa-icon",27),t.YNc(2,we,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.invoiceError)}}let Fe=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.decimalPipe=s,this.commonService=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.invoicePaymentReq="",this.information={},this.private=!1,this.expiryStep=100,this.pageSize=l.IV,this.timeUnitEnum=l.Qk,this.timeUnits=l.LO,this.selTimeUnit=l.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(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.actions.pipe((0,_.R)(this.unSubs[2]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&"CreateInvoice"===e.payload.action&&(e.payload.status===l.Bn.ERROR&&(this.invoiceError=e.payload.message),e.payload.status===l.Bn.COMPLETED&&this.dialogRef.close())})}onAddInvoice(e){if(this.invoiceError="",!this.description)return!0;let i=this.expiry?this.expiry:3600;this.expiry&&this.selTimeUnit!==l.Qk.SECS&&(i=this.commonService.convertTime(this.expiry,this.selTimeUnit,l.Qk.SECS));let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,U.Z$)({payload:o}))}resetData(){this.description="",this.invoiceValue=null,this.private=!1,this.expiry=null,this.invoiceValueHint="",this.selTimeUnit=l.Qk.SECS,this.invoiceError=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.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 n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(P.v),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-create-invoices"]],decls:35,vars:16,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","start space-between","fxFlex","100"],["addInvoiceForm","ngForm"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","autoFocus","","placeholder","Description","tabindex","2","name","description","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","space-between start","fxFlex","100"],["fxFlex","40"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["matSuffix",""],["fxFlex","30"],["matInput","","placeholder","Expiry","type","number","name","exp","tabindex","4",3,"ngModel","step","min","ngModelChange"],["fxFlex","26"],["tabindex","5","name","timeUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Create Invoice"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.description=c}),t.qZA(),t.YNc(13,Ae,2,0,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"mat-form-field",13)(16,"input",14),t.NdJ("ngModelChange",function(c){return i.invoiceValue=c})("keyup",function(){return i.onInvoiceValueChange()}),t.qZA(),t.TgZ(17,"span",15),t._uU(18," Sats "),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.qZA()(),t.TgZ(21,"mat-form-field",16)(22,"input",17),t.NdJ("ngModelChange",function(c){return i.expiry=c}),t.qZA(),t.TgZ(23,"span",15),t._uU(24),t.ALo(25,"titlecase"),t.qZA()(),t.TgZ(26,"mat-form-field",18)(27,"mat-select",19),t.NdJ("selectionChange",function(c){return i.onTimeUnitChange(c)}),t.YNc(28,Ee,3,4,"mat-option",20),t.qZA()()(),t.YNc(29,Ie,3,2,"div",21),t.TgZ(30,"div",22)(31,"button",23),t.NdJ("click",function(){return i.resetData()}),t._uU(32,"Clear Field"),t.qZA(),t.TgZ(33,"button",24),t.NdJ("click",function(){t.CHM(o);const c=t.MAs(10);return i.onAddInvoice(c)}),t._uU(34,"Create Invoice"),t.qZA()()()()()()}2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.description),t.xp6(1),t.Q6J("ngIf",!i.description),t.xp6(3),t.Q6J("ngModel",i.invoiceValue)("step",100)("min",1),t.xp6(4),t.Oqu(i.invoiceValueHint),t.xp6(2),t.Q6J("ngModel",i.expiry)("step",i.selTimeUnit===i.timeUnitEnum.SECS?300:i.selTimeUnit===i.timeUnitEnum.MINS?10:i.selTimeUnit===i.timeUnitEnum.HOURS?2:1)("min",1),t.xp6(2),t.hij("",t.lcZ(25,14,i.selTimeUnit)," "),t.xp6(3),t.Q6J("value",i.selTimeUnit),t.xp6(1),t.Q6J("ngForOf",i.timeUnits),t.xp6(1),t.Q6J("ngIf",""!==i.invoiceError))},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,J.ZT,b.dn,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,j.h,d.Q7,d.JJ,d.On,u.O5,y.TO,d.wV,d.qQ,tt.q,y.R9,y.bx,k.gD,u.sg,z.ey,q.BN],pipes:[u.rS],styles:[""]}),n})();var qe=f(7766),E=f(7861),G=f(9445);function Ne(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Description is required."),t.qZA())}function Oe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"input",7),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().description=o}),t.qZA(),t.YNc(4,Ne,2,0,"mat-error",8),t.qZA(),t.TgZ(5,"mat-form-field",9)(6,"input",10,11),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().invoiceValue=o})("keyup",function(){return t.CHM(e),t.oxw().onInvoiceValueChange()}),t.qZA(),t.TgZ(8,"span",12),t._uU(9," Sats "),t.qZA(),t.TgZ(10,"mat-hint"),t._uU(11),t.qZA()(),t.TgZ(12,"div",13)(13,"button",14),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(14,"Clear Field"),t.qZA(),t.TgZ(15,"button",15),t.NdJ("click",function(){t.CHM(e);const o=t.MAs(1);return t.oxw().onAddInvoice(o)}),t._uU(16,"Create Invoice"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.description),t.xp6(1),t.Q6J("ngIf",!e.description),t.xp6(2),t.Q6J("ngModel",e.invoiceValue)("step",100)("min",1),t.xp6(5),t.Oqu(e.invoiceValueHint)}}function Pe(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",16)(1,"button",17),t.NdJ("click",function(){return t.CHM(e),t.oxw().openCreateInvoiceModal()}),t._uU(2,"Create Invoice"),t.qZA()()}}function Ue(n,a){if(1&n&&(t.TgZ(0,"mat-option",55),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Re(n,a){1&n&&t._UZ(0,"mat-progress-bar",56)}function ke(n,a){1&n&&t._UZ(0,"th",57)}const lt=function(n){return{"mr-0":n}};function De(n,a){if(1&n&&t._UZ(0,"span",62),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Je(n,a){if(1&n&&t._UZ(0,"span",63),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Me(n,a){if(1&n&&t._UZ(0,"span",64),2&n){const e=t.oxw(3);t.Q6J("ngClass",t.VKq(1,lt,e.screenSize===e.screenSizeEnum.XS))}}function Qe(n,a){if(1&n&&(t.TgZ(0,"td",58),t.YNc(1,De,1,3,"span",59),t.YNc(2,Je,1,3,"span",60),t.YNc(3,Me,1,3,"span",61),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","received"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf","unpaid"===(null==e?null:e.status)),t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.status)||"expired"===(null==e?null:e.status)||"unknown"===(null==e?null:e.status))}}function Ye(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Date Created"),t.qZA())}function Be(n,a){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function He(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Date Expiry"),t.qZA())}function ze(n,a){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.expiresAt),"dd/MMM/y HH:mm")||"-")}}function Ve(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Date Settled"),t.qZA())}function Ge(n,a){if(1&n&&(t.TgZ(0,"td",58),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.receivedAt),"dd/MMM/y HH:mm")||"-")}}function We(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Node ID"),t.qZA())}const rt=function(n){return{width:n}};function $e(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function Xe(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Description"),t.qZA())}function Ke(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.description)}}function je(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Payment Hash"),t.qZA())}function tn(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"div",66)(2,"span",67),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash)}}function en(n,a){1&n&&(t.TgZ(0,"th",68),t._uU(1,"Amount (Sats)"),t.qZA())}function nn(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(null!=e&&e.amount?t.xi3(3,1,null==e?null:e.amount,"1.0-0"):"-")}}function an(n,a){1&n&&(t.TgZ(0,"th",70),t._uU(1," Amount Settled (Sats)"),t.qZA())}function on(n,a){if(1&n&&(t.TgZ(0,"td",58)(1,"span",69),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(null!=e&&e.amountSettled?t.xi3(3,1,null==e?null:e.amountSettled,"1.0-0"):"-")}}function sn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",71)(1,"div",72)(2,"mat-select",73),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function ln(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",75)(1,"div",72)(2,"mat-select",76),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onInvoiceClick(s)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",74),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onRefreshInvoice(s)}),t._uU(7,"Refresh"),t.qZA()()()()}}function rn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No invoice available."),t.qZA())}function cn(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting invoices..."),t.qZA())}function un(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function pn(n,a){if(1&n&&(t.TgZ(0,"td",77),t.YNc(1,rn,2,0,"p",8),t.YNc(2,cn,2,0,"p",8),t.YNc(3,un,2,1,"p",8),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.invoices&&e.invoices.data)||(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const mn=function(n){return{"display-none":n}};function dn(n,a){if(1&n&&t._UZ(0,"tr",78),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,mn,(null==e.invoices?null:e.invoices.data)&&(null==e.invoices||null==e.invoices.data?null:e.invoices.data.length)>0))}}function hn(n,a){1&n&&t._UZ(0,"tr",79)}function _n(n,a){1&n&&t._UZ(0,"tr",80)}const gn=function(){return["all"]},fn=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Cn=function(){return["no_invoice"]};function xn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",18)(1,"div",19)(2,"div",20),t._UZ(3,"fa-icon",21),t.TgZ(4,"span",22),t._uU(5,"Invoices History"),t.qZA()(),t.TgZ(6,"div",23)(7,"mat-form-field",24)(8,"mat-select",25),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilterBy=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.selFilter="",o.applyFilter()}),t.YNc(9,Ue,2,2,"mat-option",26),t.qZA()(),t.TgZ(10,"mat-form-field",24)(11,"input",27),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",28),t.YNc(13,Re,1,0,"mat-progress-bar",29),t.TgZ(14,"table",30,31),t.ynx(16,32),t.YNc(17,ke,1,0,"th",33),t.YNc(18,Qe,4,3,"td",34),t.BQk(),t.ynx(19,35),t.YNc(20,Ye,2,0,"th",36),t.YNc(21,Be,3,4,"td",34),t.BQk(),t.ynx(22,37),t.YNc(23,He,2,0,"th",36),t.YNc(24,ze,3,4,"td",34),t.BQk(),t.ynx(25,38),t.YNc(26,Ve,2,0,"th",36),t.YNc(27,Ge,3,4,"td",34),t.BQk(),t.ynx(28,39),t.YNc(29,We,2,0,"th",36),t.YNc(30,$e,4,4,"td",34),t.BQk(),t.ynx(31,40),t.YNc(32,Xe,2,0,"th",36),t.YNc(33,Ke,4,4,"td",34),t.BQk(),t.ynx(34,41),t.YNc(35,je,2,0,"th",36),t.YNc(36,tn,4,4,"td",34),t.BQk(),t.ynx(37,42),t.YNc(38,en,2,0,"th",43),t.YNc(39,nn,4,4,"td",34),t.BQk(),t.ynx(40,44),t.YNc(41,an,2,0,"th",45),t.YNc(42,on,4,4,"td",34),t.BQk(),t.ynx(43,46),t.YNc(44,sn,6,0,"th",47),t.YNc(45,ln,8,0,"td",48),t.BQk(),t.ynx(46,49),t.YNc(47,pn,4,3,"td",50),t.BQk(),t.YNc(48,dn,1,3,"tr",51),t.YNc(49,hn,1,0,"tr",52),t.YNc(50,_n,1,0,"tr",53),t.qZA()(),t._UZ(51,"mat-paginator",54),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(5),t.Q6J("ngModel",e.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(13,gn).concat(e.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",e.selFilter),t.xp6(2),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.invoices)("ngClass",t.VKq(14,fn,""!==e.errorMessage)),t.xp6(34),t.Q6J("matFooterRowDef",t.DdM(16,Cn)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Lt=(()=>{class n{constructor(e,i,o,s,c,h,g){this.logger=e,this.store=i,this.decimalPipe=o,this.commonService=s,this.datePipe=c,this.actions=h,this.camelCaseWithSpaces=g,this.calledFrom="transactions",this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"invoices",recordsPerPage:l.IV,sortBy:"expiresAt",sortOrder:l.Pi.DESCENDING},this.selNode={},this.newlyAddedInvoiceMemo="",this.newlyAddedInvoiceValue=0,this.description="",this.invoiceValue=null,this.invoiceValueHint="",this.displayedColumns=[],this.invoicePaymentReq="",this.invoices=new r.by([]),this.invoiceJSONArr=[],this.information={},this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("status"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Ef).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.invoiceJSONArr=e.invoices&&e.invoices.length>0?e.invoices:[],this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr),this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SET_LOOKUP_ECL&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&e.payload&&(this.updateInvoicesData(JSON.parse(JSON.stringify(e.payload))),this.loadInvoicesTable(this.invoiceJSONArr))})}ngAfterViewInit(){this.invoiceJSONArr&&this.invoiceJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadInvoicesTable(this.invoiceJSONArr)}openCreateInvoiceModal(){this.store.dispatch((0,E.qR)({payload:{data:{pageSize:this.pageSize,component:Fe}}}))}onAddInvoice(e){if(!this.description)return!0;const i=this.expiry?this.expiry:3600;this.newlyAddedInvoiceMemo="ulbl"+Math.random().toString(36).slice(2)+Date.now(),this.newlyAddedInvoiceValue=this.invoiceValue;let o=null;o=this.invoiceValue?{description:this.description,expireIn:i,amountMsat:1e3*this.invoiceValue}:{description:this.description,expireIn:i},this.store.dispatch((0,U.Z$)({payload:o})),this.resetData()}onInvoiceClick(e){this.store.dispatch((0,E.qR)({payload:{data:{invoice:e,newlyAdded:!1,component:qe.R}}}))}onRefreshInvoice(e){this.store.dispatch((0,U.n7)({payload:e.paymentHash}))}updateInvoicesData(e){var i;this.invoiceJSONArr=null===(i=this.invoiceJSONArr)||void 0===i?void 0:i.map(o=>o.paymentHash===e.paymentHash?e:o)}applyFilter(){this.invoices.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.invoices.filterPredicate=(e,i)=>{var o,s,c,h;let g="";switch(this.selFilterBy){case"all":g=(e.timestamp?null===(o=this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"status":g=(null==e?void 0:e.status)&&"expired"!==(null==e?void 0:e.status)&&"unknown"!==(null==e?void 0:e.status)?null===(s=e.status)||void 0===s?void 0:s.toLowerCase():"expired/unknown";break;case"timestamp":case"expiresAt":case"receivedAt":g=(null===(c=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm"))||void 0===c?void 0:c.toLowerCase())||"";break;case"amount":case"amountSettled":g=(null===(h=e[this.selFilterBy])||void 0===h?void 0:h.toString())||"-";break;default:g=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===g.indexOf(i):g.includes(i)}}loadInvoicesTable(e){var i;this.invoices=new r.by(e?[...e]:[]),this.invoices.sortingDataAccessor=(o,s)=>o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,this.invoices.sort=this.sort,null===(i=this.invoices.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.invoices.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}resetData(){this.description="",this.invoiceValue=null,this.expiry=null,this.invoiceValueHint=""}onInvoiceValueChange(){this.selNode&&this.selNode.fiatConversion&&this.invoiceValue&&this.invoiceValue>99&&(this.invoiceValueHint="",this.commonService.convertCurrency(this.invoiceValue,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[5])).subscribe({next:e=>{this.invoiceValueHint="= "+e.symbol+this.decimalPipe.transform(e.OTHER,l.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")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(u.JJ),t.Y36(P.v),t.Y36(u.uU),t.Y36(X.eX),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-invoices"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Invoices")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["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","space-between stretch"],["matInput","","placeholder","Description","tabindex","2","name","description","required","true",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxFlex","100","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","3","name","invValue",3,"ngModel","step","min","ngModelChange","keyup"],["invcVal","ngModel"],["matSuffix",""],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","9","type","reset",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","8",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.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","status"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","expiresAt"],["matColumnDef","receivedAt"],["matColumnDef","nodeId"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountSettled"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","class","p1-3",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_invoice"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Status"],["mat-cell",""],["class","dot green","matTooltip","Received","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Expired/Unknown","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Received","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow",3,"ngClass"],["matTooltip","Expired/Unknown","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",1,"p1-3"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","4",1,"mr-0"],["mat-footer-cell","","colspan","4"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Oe,17,6,"form",1),t.YNc(2,Pe,3,0,"div",2),t.YNc(3,xn,52,17,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,d.Q7,d.JJ,d.On,y.TO,d.wV,d.qQ,tt.q,y.R9,y.bx,N.lW,q.BN,k.gD,u.sg,z.ey,H.$V,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,u.PC,Z.Zl,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-status[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}"]}),n})();var W=f(5698),ct=f(3289),bt=f(8104);const yn=["paymentReq"];function vn(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Tn(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Ln(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function bn(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment amount is required."),t.qZA())}function Sn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",17,18),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().paymentAmount=o})("change",function(o){return t.CHM(e),t.oxw().onAmountChange(o)}),t.qZA(),t.TgZ(3,"mat-hint"),t._uU(4,"It is a zero amount invoice, enter amount to be paid."),t.qZA(),t.YNc(5,bn,2,0,"mat-error",11),t.qZA()}if(2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngModel",e.paymentAmount),t.xp6(4),t.Q6J("ngIf",!e.paymentAmount)}}function Zn(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentError)}}function An(n,a){if(1&n&&(t.TgZ(0,"div",19),t._UZ(1,"fa-icon",20),t.YNc(2,Zn,2,1,"span",11),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.paymentError)}}let En=(()=>{class n{constructor(e,i,o,s,c,h,g,v){this.dialogRef=e,this.store=i,this.eclEffects=o,this.logger=s,this.commonService=c,this.decimalPipe=h,this.actions=g,this.dataService=v,this.faExclamationTriangle=L.eHv,this.selNode={},this.paymentDecoded={},this.zeroAmtInvoice=!1,this.paymentAmount=null,this.paymentRequest="",this.paymentDecodedHint="",this.selActiveChannel={},this.activeChannels={},this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.feeLimitTypes=l.Vc,this.paymentError="",this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activeChannels=e.activeChannels,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_PAYMENT_STATUS_ECL)).subscribe(e=>{e.type===l.lr.SEND_PAYMENT_STATUS_ECL&&this.dialogRef.close(),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendPayment"===e.payload.action&&(delete this.paymentDecoded.amount,this.paymentError=e.payload.message)})}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():(this.paymentAmount=null,this.paymentError="",this.paymentDecodedHint="",this.paymentReq.control.setErrors(null),this.dataService.decodePayment(this.paymentRequest,!0).pipe((0,W.q)(1)).subscribe({next:e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+i.symbol+this.decimalPipe.transform(i.OTHER?i.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:i=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount/1e3:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:e=>{this.logger.error(e),this.paymentDecodedHint="ERROR: "+(e.message?e.message:"string"==typeof e?e:JSON.stringify(e)),this.paymentReq.control.setErrors({decodeError:!0})}}))}sendPayment(){this.store.dispatch((0,U.oV)(this.zeroAmtInvoice&&this.paymentAmount?{payload:{invoice:this.paymentRequest,amountMsat:1e3*this.paymentAmount,fromDialog:!0}}:{payload:{invoice:this.paymentRequest,fromDialog:!0}}))}onPaymentRequestEntry(e){this.paymentRequest=e&&"string"==typeof e?e.trim():e,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,W.q)(1)).subscribe({next:i=>{this.paymentDecoded=i,this.paymentDecoded.timestamp&&!this.paymentDecoded.amount?(this.paymentDecoded.amount=0,this.zeroAmtInvoice=!0,this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description):(this.zeroAmtInvoice=!1,this.selNode&&this.selNode.fiatConversion&&this.paymentDecoded.amount?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description)},error:i=>{this.logger.error(i),this.paymentDecodedHint="ERROR: "+(i.message?i.message:"string"==typeof i?i:JSON.stringify(i)),this.paymentReq.control.setErrors({decodeError:!0})}}))}onAmountChange(e){delete this.paymentDecoded.amount,this.paymentDecoded.amount=e}resetData(){this.paymentDecoded={},this.paymentRequest="",this.selActiveChannel=null,this.feeLimit=null,this.selFeeLimitType=l.Vc[0],this.paymentReq.control.setErrors(null),this.paymentError="",this.paymentDecodedHint="",this.zeroAmtInvoice=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(w.yh),t.Y36(ct.o),t.Y36(O.mQ),t.Y36(P.v),t.Y36(u.JJ),t.Y36(X.eX),t.Y36(bt.D))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-send-payments"]],viewQuery:function(e,i){if(1&e&&t.Gf(yn,5),2&e){let o;t.iGM(o=t.CRH())&&(i.paymentReq=o.first)}},decls:24,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","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","rows","4","tabindex","1","required","",3,"ngModel","ngModelChange","matTextareaAutosize"],["paymentReq","ngModel"],[4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","2","type","reset",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","3",3,"click"],["matInput","","placeholder","Amount (Sats)","name","amount","tabindex","2","required","",3,"ngModel","ngModelChange","change"],["paymentAmt","ngModel"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8)(11,"mat-form-field",1)(12,"textarea",9,10),t.NdJ("ngModelChange",function(s){return i.onPaymentRequestEntry(s)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(14,vn,2,1,"mat-hint",11),t.YNc(15,Tn,2,0,"mat-error",11),t.YNc(16,Ln,2,1,"mat-error",11),t.qZA(),t.YNc(17,Sn,6,2,"mat-form-field",12),t.YNc(18,An,3,2,"div",13),t.TgZ(19,"div",14)(20,"button",15),t.NdJ("click",function(){return i.resetData()}),t._uU(21,"Clear Fields"),t.qZA(),t.TgZ(22,"button",16),t.NdJ("click",function(){return i.onSendPayment()}),t._uU(23,"Send Payment"),t.qZA()()()()()()),2&e){const o=t.MAs(13);t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.paymentRequest),t.xp6(2),t.Q6J("ngIf",i.paymentRequest&&""!==i.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!i.paymentRequest),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.decodeError),t.xp6(1),t.Q6J("ngIf",i.zeroAmtInvoice),t.xp6(1),t.Q6J("ngIf",""!==i.paymentError)}},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,J.ZT,b.dn,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,j.h,d.Q7,d.JJ,d.On,u.O5,y.bx,y.TO,q.BN],styles:[""]}),n})();var V=f(1125);const wn=["scrollContainer"];function In(n,a){if(1&n&&(t.TgZ(0,"div",9)(1,"div",1)(2,"h4",11),t._uU(3,"Description"),t.qZA(),t.TgZ(4,"span",12),t._uU(5),t.qZA()()()),2&n){const e=t.oxw();t.xp6(5),t.Oqu(e.description)}}function Fn(n,a){1&n&&t._UZ(0,"mat-divider",14)}function qn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-expansion-panel",23),t.NdJ("opened",function(){return t.CHM(e),t.oxw().onExpansionOpen(!0)})("closed",function(){return t.CHM(e),t.oxw().onExpansionOpen(!1)}),t.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"h4",24),t._uU(4),t.qZA(),t.TgZ(5,"h4",25),t._uU(6),t.ALo(7,"number"),t.qZA()()(),t.TgZ(8,"div",8)(9,"div",9)(10,"div",26)(11,"h4",11),t._uU(12,"Fees (mSats)"),t.qZA(),t.TgZ(13,"span",12),t._uU(14),t.ALo(15,"number"),t.qZA()(),t.TgZ(16,"div",26)(17,"h4",11),t._uU(18,"Date/Time"),t.qZA(),t.TgZ(19,"span",12),t._uU(20),t.ALo(21,"date"),t.qZA()()(),t._UZ(22,"mat-divider",14),t.TgZ(23,"div",9)(24,"div",1)(25,"h4",11),t._uU(26,"ID"),t.qZA(),t.TgZ(27,"span",27),t._uU(28),t.qZA()()(),t._UZ(29,"mat-divider",14),t.TgZ(30,"div",9)(31,"div",1)(32,"h4",11),t._uU(33,"To Channel"),t.qZA(),t.TgZ(34,"span",27),t._uU(35),t.qZA()()()()()}if(2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.Q6J("expanded",o.expansionOpen),t.xp6(4),t.hij("Part ",i+1,""),t.xp6(2),t.hij("",t.lcZ(7,7,e.amount)," (Sats)"),t.xp6(8),t.Oqu(t.lcZ(15,9,e.feesPaid)),t.xp6(6),t.Oqu(t.xi3(21,11,e.timestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(e.id),t.xp6(7),t.Oqu(e.toChannelAlias)}}let Nn=(()=>{class n{constructor(e,i){this.dialogRef=e,this.data=i,this.description=null,this.shouldScroll=!0,this.expansionOpen=!0}ngOnInit(){this.payment=this.data.payment,this.data.sentPaymentInfo.length>0&&this.data.sentPaymentInfo[0].paymentRequest&&this.data.sentPaymentInfo[0].paymentRequest.description&&""!==this.data.sentPaymentInfo[0].paymentRequest.description&&(this.description=this.data.sentPaymentInfo[0].paymentRequest.description)}ngAfterViewChecked(){this.shouldScroll=this.scrollContainer.nativeElement.classList.value.includes("ps--active-y")}onScrollDown(){this.scrollContainer.nativeElement.scrollTop=this.scrollContainer.nativeElement.scrollTop+62.6}onExpansionOpen(e){this.expansionOpen=e}onClose(){this.dialogRef.close(!1)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-payment-information"]],viewQuery:function(e,i){if(1&e&&t.Gf(wn,5),2&e){let o;t.iGM(o=t.CRH())&&(i.scrollContainer=o.first)}},decls:66,vars:15,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"],[1,"h-40","padding-gap-x-large",3,"perfectScrollbar"],["scrollContainer",""],["fxLayout","column"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],["fxFlex","70"],[1,"w-100","my-1"],["fxLayout","row",4,"ngIf"],["class","w-100 my-1",4,"ngIf"],["class","flat-expansion-panel my-1",3,"expanded","opened","closed",4,"ngFor","ngForOf"],["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"],["fxLayout","row","fxLayoutAlign","end center",1,"padding-gap-x-large","padding-gap-bottom-large"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],[1,"flat-expansion-panel","my-1",3,"expanded","opened","closed"],["fxFlex","30","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","70","fxLayoutAlign","start",1,"font-bold-500"],["fxFlex","50"],[1,"overflow-wrap","foreground-secondary-text"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Payment Information"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6,7)(10,"div",8)(11,"div",9)(12,"div",10)(13,"h4",11),t._uU(14,"Amount (Sats)"),t.qZA(),t.TgZ(15,"span",12),t._uU(16),t.ALo(17,"number"),t.qZA()(),t.TgZ(18,"div",13)(19,"h4",11),t._uU(20,"Date/Time"),t.qZA(),t.TgZ(21,"span",12),t._uU(22),t.ALo(23,"date"),t.qZA()()(),t._UZ(24,"mat-divider",14),t.TgZ(25,"div",9)(26,"div",1)(27,"h4",11),t._uU(28,"ID"),t.qZA(),t.TgZ(29,"span",12),t._uU(30),t.qZA()()(),t._UZ(31,"mat-divider",14),t.TgZ(32,"div",9)(33,"div",1)(34,"h4",11),t._uU(35,"Payment Hash"),t.qZA(),t.TgZ(36,"span",12),t._uU(37),t.qZA()()(),t._UZ(38,"mat-divider",14),t.TgZ(39,"div",9)(40,"div",1)(41,"h4",11),t._uU(42,"Payment Preimage"),t.qZA(),t.TgZ(43,"span",12),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",1)(48,"h4",11),t._uU(49,"Recipient Node"),t.qZA(),t.TgZ(50,"span",12),t._uU(51),t.qZA()()(),t._UZ(52,"mat-divider",14),t.YNc(53,In,6,1,"div",15),t.YNc(54,Fn,1,0,"mat-divider",16),t.TgZ(55,"div",9)(56,"div",1)(57,"mat-accordion"),t.YNc(58,qn,36,14,"mat-expansion-panel",17),t.qZA()()()()(),t.TgZ(59,"div",18)(60,"button",19),t.NdJ("click",function(){return i.onScrollDown()}),t.TgZ(61,"mat-icon",20),t._uU(62,"arrow_downward"),t.qZA()()(),t.TgZ(63,"div",21)(64,"button",22),t._uU(65,"OK"),t.qZA()()()()),2&e&&(t.xp6(16),t.Oqu(t.lcZ(17,10,i.payment.recipientAmount)),t.xp6(6),t.Oqu(t.xi3(23,12,i.payment.firstPartTimestamp,"dd/MMM/y HH:mm")),t.xp6(8),t.Oqu(i.payment.id),t.xp6(7),t.Oqu(i.payment.paymentHash),t.xp6(7),t.Oqu(i.payment.paymentPreimage),t.xp6(7),t.Oqu(i.payment.recipientNodeAlias),t.xp6(2),t.Q6J("ngIf",i.description),t.xp6(1),t.Q6J("ngIf",i.description),t.xp6(4),t.Q6J("ngForOf",i.payment.parts),t.xp6(6),t.Q6J("mat-dialog-close",!1))},directives:[m.xw,m.Wh,m.yH,b.dk,N.lW,b.dn,H.$V,K.d,u.O5,V.pp,u.sg,V.ib,V.yz,V.yK,vt.Hw,J.ZT],pipes:[u.JJ,u.uU],styles:[""]}),n})();var nt=f(3093);const On=["sendPaymentForm"];function Pn(n,a){if(1&n&&(t.TgZ(0,"mat-hint"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.paymentDecodedHint)}}function Un(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Payment request is required."),t.qZA())}function Rn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"form",4,5)(2,"mat-form-field",6)(3,"textarea",7,8),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().onPaymentRequestEntry(o)})("matTextareaAutosize",function(){return!0}),t.qZA(),t.YNc(5,Pn,2,1,"mat-hint",9),t.YNc(6,Un,2,0,"mat-error",9),t.qZA(),t.TgZ(7,"div",10)(8,"button",11),t.NdJ("click",function(){return t.CHM(e),t.oxw().resetData()}),t._uU(9,"Clear Field"),t.qZA(),t.TgZ(10,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().onSendPayment()}),t._uU(11,"Send Payment"),t.qZA()()()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("ngModel",e.paymentRequest),t.xp6(2),t.Q6J("ngIf",e.paymentRequest&&""!==e.paymentDecodedHint),t.xp6(1),t.Q6J("ngIf",!e.paymentRequest)}}function kn(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",13)(1,"button",12),t.NdJ("click",function(){return t.CHM(e),t.oxw().openSendPaymentModal()}),t._uU(2,"Send Payment"),t.qZA()()}}function Dn(n,a){if(1&n&&(t.TgZ(0,"mat-option",59),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Jn(n,a){1&n&&t._UZ(0,"mat-progress-bar",60)}function Mn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Date/Time"),t.qZA())}function Qn(n,a){if(1&n&&(t.TgZ(0,"td",62),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,null==e?null:e.firstPartTimestamp,"dd/MMM/y HH:mm"))}}function Yn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"ID"),t.qZA())}const D=function(n){return{width:n}};function Bn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.id)}}function Hn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Destination Node ID"),t.qZA())}function zn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeId)}}function Vn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Destination"),t.qZA())}function Gn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeAlias)}}function Wn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Description"),t.qZA())}function $n(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.description)}}function Xn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Payment Hash"),t.qZA())}function Kn(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash)}}function jn(n,a){1&n&&(t.TgZ(0,"th",61),t._uU(1,"Preimage"),t.qZA())}function ti(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",63)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentPreimage)}}function ei(n,a){1&n&&(t.TgZ(0,"th",65),t._uU(1,"Amount (Sats)"),t.qZA())}function ni(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"span",66),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.recipientAmount))}}function ii(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",67)(1,"div",68)(2,"mat-select",69),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",70),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function ai(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",71)(1,"button",72),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onPaymentClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function oi(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No payment available."),t.qZA())}function si(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting payments..."),t.qZA())}function li(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function ri(n,a){if(1&n&&(t.TgZ(0,"td",73),t.YNc(1,oi,2,0,"p",9),t.YNc(2,si,2,0,"p",9),t.YNc(3,li,2,1,"p",9),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.payments&&e.payments.data)||(null==e.payments||null==e.payments.data?null:e.payments.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function ci(n,a){if(1&n&&(t.TgZ(0,"span",74),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.timestamp,"dd/MMM/y HH:mm")," ")}}function ui(n,a){if(1&n&&(t.ynx(0),t.YNc(1,ci,3,4,"span",75),t.BQk()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function pi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"span",74),t._uU(2),t.qZA(),t.YNc(3,ui,2,1,"ng-container",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" Total Attempts: ",(null==e||null==e.parts?null:e.parts.length)||0," "),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function mi(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.id)}}function di(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,mi,4,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function hi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,di,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.id),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function _i(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.toChannelId)}}function gi(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,_i,4,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function fi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,gi,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeId),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ci(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.toChannelAlias)}}function xi(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ci,4,4,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function yi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,xi,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.recipientNodeAlias),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function vi(n,a){if(1&n&&(t.TgZ(0,"span",77),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,e.amount,"1.0-0")," ")}}function Ti(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,vi,3,4,"span",78),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Li(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"span",77),t._uU(2),t.ALo(3,"number"),t.qZA(),t.YNc(4,Ti,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.xi3(3,2,null==e?null:e.recipientAmount,"1.0-0")),t.xp6(2),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function bi(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Si(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,bi,5,7,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Zi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Si,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.description),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ai(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Ei(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ai,5,7,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function wi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Ei,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ii(n,a){if(1&n&&(t.TgZ(0,"span",74)(1,"span",76)(2,"span",64),t._uU(3),t.ALo(4,"number"),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(4);t.xp6(1),t.Q6J("ngStyle",t.VKq(5,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.hij("Fee Paid: ",t.xi3(4,2,e.feesPaid,"1.0-0")," (Sats)")}}function Fi(n,a){if(1&n&&(t.TgZ(0,"span"),t.YNc(1,Ii,5,7,"span",75),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function qi(n,a){if(1&n&&(t.TgZ(0,"td",62)(1,"div",76)(2,"span",64),t._uU(3),t.qZA()(),t.YNc(4,Fi,2,1,"span",9),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(3,D,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentPreimage),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ni(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",79)(1,"button",82),t.NdJ("click",function(){const s=t.CHM(e).$implicit,c=t.oxw(2).$implicit;return t.oxw(2).onPartClick(s,c)}),t._uU(2),t.qZA()()}if(2&n){const e=a.index;t.xp6(2),t.hij("View ",e+1,"")}}function Oi(n,a){if(1&n&&(t.TgZ(0,"div"),t.YNc(1,Ni,3,1,"div",81),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Q6J("ngForOf",null==e?null:e.parts)}}function Pi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",62)(1,"span",79)(2,"button",80),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return s.is_expanded=!s.is_expanded}),t._uU(3),t.qZA()(),t.YNc(4,Oi,2,1,"div",9),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(3),t.Oqu(null!=e&&e.is_expanded?"Hide":"Show"),t.xp6(1),t.Q6J("ngIf",null==e?null:e.is_expanded)}}function Ui(n,a){1&n&&t._UZ(0,"tr",83)}const Ri=function(n){return{"display-none":n}};function ki(n,a){if(1&n&&t._UZ(0,"tr",84),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ri,(null==e.payments||null==e.payments.data?null:e.payments.data.length)>0))}}function Di(n,a){1&n&&t._UZ(0,"tr",85)}function Ji(n,a){1&n&&t._UZ(0,"tr",83)}const Mi=function(){return["all"]},Qi=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Yi=function(){return["no_payment"]};function Bi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",14)(1,"div",15)(2,"div",16),t._UZ(3,"fa-icon",17),t.TgZ(4,"span",18),t._uU(5,"Payments History"),t.qZA()(),t.TgZ(6,"div",19)(7,"mat-form-field",20)(8,"mat-select",21),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilterBy=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.selFilter="",o.applyFilter()}),t.YNc(9,Dn,2,2,"mat-option",22),t.qZA()(),t.TgZ(10,"mat-form-field",20)(11,"input",23),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",24)(13,"div",25),t.YNc(14,Jn,1,0,"mat-progress-bar",26),t.TgZ(15,"table",27,28),t.ynx(17,29),t.YNc(18,Mn,2,0,"th",30),t.YNc(19,Qn,3,4,"td",31),t.BQk(),t.ynx(20,32),t.YNc(21,Yn,2,0,"th",30),t.YNc(22,Bn,4,4,"td",31),t.BQk(),t.ynx(23,33),t.YNc(24,Hn,2,0,"th",30),t.YNc(25,zn,4,4,"td",31),t.BQk(),t.ynx(26,34),t.YNc(27,Vn,2,0,"th",30),t.YNc(28,Gn,4,4,"td",31),t.BQk(),t.ynx(29,35),t.YNc(30,Wn,2,0,"th",30),t.YNc(31,$n,4,4,"td",31),t.BQk(),t.ynx(32,36),t.YNc(33,Xn,2,0,"th",30),t.YNc(34,Kn,4,4,"td",31),t.BQk(),t.ynx(35,37),t.YNc(36,jn,2,0,"th",30),t.YNc(37,ti,4,4,"td",31),t.BQk(),t.ynx(38,38),t.YNc(39,ei,2,0,"th",39),t.YNc(40,ni,4,3,"td",31),t.BQk(),t.ynx(41,40),t.YNc(42,ii,6,0,"th",41),t.YNc(43,ai,3,0,"td",42),t.BQk(),t.ynx(44,43),t.YNc(45,ri,4,3,"td",44),t.BQk(),t.ynx(46,45),t.YNc(47,pi,4,2,"td",31),t.BQk(),t.ynx(48,46),t.YNc(49,hi,5,5,"td",31),t.BQk(),t.ynx(50,47),t.YNc(51,fi,5,5,"td",31),t.BQk(),t.ynx(52,48),t.YNc(53,yi,5,5,"td",31),t.BQk(),t.ynx(54,49),t.YNc(55,Li,5,5,"td",31),t.BQk(),t.ynx(56,50),t.YNc(57,Zi,5,5,"td",31),t.BQk(),t.ynx(58,51),t.YNc(59,wi,5,5,"td",31),t.BQk(),t.ynx(60,52),t.YNc(61,qi,5,5,"td",31),t.BQk(),t.ynx(62,53),t.YNc(63,Pi,5,2,"td",31),t.BQk(),t.YNc(64,Ui,1,0,"tr",54),t.YNc(65,ki,1,3,"tr",55),t.YNc(66,Di,1,0,"tr",56),t.YNc(67,Ji,1,0,"tr",57),t.qZA()()(),t._UZ(68,"mat-paginator",58),t.qZA()}if(2&n){const e=t.oxw();t.xp6(3),t.Q6J("icon",e.faHistory),t.xp6(5),t.Q6J("ngModel",e.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(15,Mi).concat(e.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",e.selFilter),t.xp6(3),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.payments)("ngClass",t.VKq(16,Qi,""!==e.errorMessage)),t.xp6(49),t.Q6J("matRowDefColumns",e.partColumns)("matRowDefWhen",e.is_group),t.xp6(1),t.Q6J("matFooterRowDef",t.DdM(18,Yi)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let St=(()=>{class n{constructor(e,i,o,s,c,h,g,v){this.logger=e,this.commonService=i,this.store=o,this.rtlEffects=s,this.decimalPipe=c,this.dataService=h,this.datePipe=g,this.camelCaseWithSpaces=v,this.calledFrom="transactions",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="transactions",this.tableSetting={tableId:"payments",recordsPerPage:l.IV,sortBy:"firstPartTimestamp",sortOrder:l.Pi.DESCENDING},this.faHistory=L.qO$,this.newlyAddedPayment="",this.selNode={},this.information={},this.payments=new r.by([]),this.paymentJSONArr=[],this.paymentDecoded={},this.displayedColumns=[],this.partColumns=[],this.paymentRequest="",this.paymentDecodedHint="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.information=e}),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.partColumns=[],this.displayedColumns.map(s=>this.partColumns.push("group_"+s)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.paymentJSONArr=e.payments&&e.payments.sent&&e.payments.sent.length>0?e.payments.sent:[],this.paymentJSONArr.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadPaymentsTable(this.paymentJSONArr),this.logger.info(e)})}ngAfterViewInit(){this.paymentJSONArr.length>0&&this.loadPaymentsTable(this.paymentJSONArr)}applyFilter(){this.payments.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.payments.filterPredicate=(e,i)=>{var o,s;let c="";switch(this.selFilterBy){case"all":c=(e.firstPartTimestamp?null===(o=this.datePipe.transform(new Date(e.firstPartTimestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"firstPartTimestamp":c=(null===(s=this.datePipe.transform(new Date(e.firstPartTimestamp||0),"dd/MMM/y HH:mm"))||void 0===s?void 0:s.toLowerCase())||"";break;default:c=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return c.includes(i)}}loadPaymentsTable(e){var i;this.payments=new r.by(e?[...e]:[]),this.payments.sort=this.sort,this.payments.sortingDataAccessor=(o,s)=>{var c,h,g,v;switch(s){case"firstPartTimestamp":return this.commonService.sortByKey(o.parts,"timestamp","number",null===(c=this.sort)||void 0===c?void 0:c.direction),o.firstPartTimestamp;case"id":return this.commonService.sortByKey(o.parts,"id","string",null===(h=this.sort)||void 0===h?void 0:h.direction),o.id;case"recipientNodeAlias":return this.commonService.sortByKey(o.parts,"toChannelAlias","string",null===(g=this.sort)||void 0===g?void 0:g.direction),o.recipientNodeAlias;case"recipientAmount":return this.commonService.sortByKey(o.parts,"amount","number",null===(v=this.sort)||void 0===v?void 0:v.direction),o.recipientAmount;default:return o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null}},null===(i=this.payments.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.payments.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}onSendPayment(){if(!this.paymentRequest)return!0;this.paymentDecoded.timestamp?this.sendPayment():this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.q)(1)).subscribe(e=>{this.paymentDecoded=e,this.paymentDecoded.timestamp?(this.paymentDecoded.amount||(this.paymentDecoded.amount=0),this.sendPayment()):this.resetData()})}sendPayment(){this.newlyAddedPayment=this.paymentDecoded.paymentHash||"",this.paymentDecoded.amount&&0!==this.paymentDecoded.amount?(this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Confirm Send Payment",noBtnText:"Cancel",yesBtnText:"Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:50,type:l.Gi.DATE_TIME},{key:"amount",value:this.paymentDecoded.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:50,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:50}]]}}})),this.rtlEffects.closeConfirm.pipe((0,W.q)(1)).subscribe(i=>{i&&(this.store.dispatch((0,U.oV)({payload:{invoice:this.paymentRequest,fromDialog:!1}})),this.resetData())})):(this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Enter Amount and Confirm Send Payment",message:[[{key:"paymentHash",value:this.paymentDecoded.paymentHash,title:"Payment Hash",width:100}],[{key:"nodeId",value:this.paymentDecoded.nodeId,title:"Payee",width:100}],[{key:"description",value:this.paymentDecoded.description,title:"Description",width:100}],[{key:"timestamp",value:this.paymentDecoded.timestamp,title:"Creation Date",width:40,type:l.Gi.DATE_TIME},{key:"expiry",value:this.paymentDecoded.expiry,title:"Expiry",width:30,type:l.Gi.NUMBER},{key:"minFinalCltvExpiry",value:this.paymentDecoded.minFinalCltvExpiry,title:"CLTV Expiry",width:30}]],noBtnText:"Cancel",yesBtnText:"Send Payment",flgShowInput:!0,titleMessage:"It is a zero amount invoice. Enter the amount (Sats) to pay.",getInputs:[{placeholder:"Amount (Sats)",inputType:l.Gi.NUMBER,inputValue:"",width:30}]}}})),this.rtlEffects.closeConfirm.pipe((0,W.q)(1)).subscribe(o=>{o&&(this.paymentDecoded.amount=o[0].inputValue,this.store.dispatch((0,U.oV)({payload:{invoice:this.paymentRequest,amountMsat:1e3*o[0].inputValue,fromDialog:!1}})),this.resetData())}))}onPaymentRequestEntry(e){this.paymentRequest=e,this.paymentDecodedHint="",this.paymentRequest&&this.paymentRequest.length>100&&this.dataService.decodePayment(this.paymentRequest,!1).pipe((0,W.q)(1)).subscribe(i=>{this.paymentDecoded=i,this.paymentDecoded.amount?this.selNode&&this.selNode.fiatConversion?this.commonService.convertCurrency(+this.paymentDecoded.amount,l.NT.SATS,l.NT.OTHER,this.selNode.currencyUnits&&this.selNode.currencyUnits.length>2?this.selNode.currencyUnits[2]:"",this.selNode.fiatConversion).pipe((0,_.R)(this.unSubs[4])).subscribe({next:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats ("+o.symbol+this.decimalPipe.transform(o.OTHER?o.OTHER:0,l.Xz.OTHER)+") | Memo: "+this.paymentDecoded.description},error:o=>{this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description+". Unable to convert currency."}}):this.paymentDecodedHint="Sending: "+this.decimalPipe.transform(this.paymentDecoded.amount?this.paymentDecoded.amount:0)+" Sats | Memo: "+this.paymentDecoded.description:this.paymentDecodedHint="Zero Amount Invoice | Memo: "+this.paymentDecoded.description})}openSendPaymentModal(){this.store.dispatch((0,E.qR)({payload:{data:{component:En}}}))}resetData(){this.paymentDecoded={},this.paymentRequest="",this.form.resetForm()}is_group(e,i){return i.parts&&i.parts.length>1}onPaymentClick(e){e.paymentHash&&""!==e.paymentHash.trim()?this.dataService.decodePayments(e.paymentHash).pipe((0,W.q)(1)).subscribe({next:i=>{setTimeout(()=>{this.showPaymentView(e,i.length&&i.length>0?i[0]:[])},0)},error:i=>{this.showPaymentView(e,[])}}):this.showPaymentView(e,[])}showPaymentView(e,i){this.store.dispatch((0,E.qR)({payload:{data:{sentPaymentInfo:i,payment:e,component:Nn}}}))}onPartClick(e,i){i.paymentHash&&""!==i.paymentHash.trim()?this.dataService.decodePayments(i.paymentHash).pipe((0,W.q)(1)).subscribe({next:o=>{setTimeout(()=>{this.showPartView(e,i,o.length&&o.length>0?o[0]:[])},0)},error:o=>{this.showPartView(e,i,[])}}):this.showPartView(e,i,[])}showPartView(e,i,o){const s=[[{key:"paymentHash",value:i.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"paymentPreimage",value:i.paymentPreimage,title:"Payment Preimage",width:100,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"Channel",width:100,type:l.Gi.STRING}],[{key:"id",value:e.id,title:"Part ID",width:50,type:l.Gi.STRING},{key:"timestamp",value:e.timestamp,title:"Time",width:50,type:l.Gi.DATE_TIME}],[{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER},{key:"feesPaid",value:e.feesPaid,title:"Fee (Sats)",width:50,type:l.Gi.NUMBER}]];o&&o.length>0&&o[0].paymentRequest&&o[0].paymentRequest.description&&""!==o[0].paymentRequest.description&&s.splice(3,0,[{key:"description",value:o[0].paymentRequest.description,title:"Description",width:100,type:l.Gi.STRING}]),this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Payment Part Information",message:s}}}))}onDownloadCSV(){if(this.payments.data&&this.payments.data.length>0){const e=JSON.parse(JSON.stringify(this.payments.data)),i=null==e?void 0:e.reduce((o,s)=>(s.paymentHash&&""!==s.paymentHash.trim()&&(o=""===o?s.paymentHash:o+","+s.paymentHash),o),"");this.dataService.decodePayments(i).pipe((0,_.R)(this.unSubs[5])).subscribe(o=>{o.forEach((c,h)=>{c.length>0&&c[0].paymentRequest&&c[0].paymentRequest.description&&""!==c[0].paymentRequest.description&&(e[h].description=c[0].paymentRequest.description)});const s=null==e?void 0:e.reduce((c,h)=>c.concat(h),[]);this.commonService.downloadFile(s,"Payments")})}}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(nt.V),t.Y36(u.JJ),t.Y36(bt.D),t.Y36(u.uU),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lightning-payments"]],viewQuery:function(e,i){if(1&e&&(t.Gf(On,5),t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{calledFrom:"calledFrom"},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Payments")}])],decls:4,vars:3,consts:[["fxLayout","column","fxFlex","colWidth","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",4,"ngIf"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["sendPaymentForm","ngForm"],["fxFlex","colWidth"],["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"],["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.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],["fxLayout","row","fxLayoutAlign","start start"],["fxLayout","column","fxLayoutAlign","start center","fxFlex","colWidth",1,"table-container",3,"perfectScrollbar"],["mode","indeterminate",4,"ngIf"],["mat-table","","fxFlex","colWidth","matSort","",3,"dataSource","ngClass"],["table",""],["matColumnDef","firstPartTimestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","id"],["matColumnDef","recipientNodeId"],["matColumnDef","recipientNodeAlias"],["matColumnDef","description"],["matColumnDef","paymentHash"],["matColumnDef","paymentPreimage"],["matColumnDef","recipientAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_payment"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["matColumnDef","group_firstPartTimestamp"],["matColumnDef","group_id"],["matColumnDef","group_recipientNodeId"],["matColumnDef","group_recipientNodeAlias"],["matColumnDef","group_recipientAmount"],["matColumnDef","group_description"],["matColumnDef","group_paymentHash"],["matColumnDef","group_paymentPreimage"],["matColumnDef","group_actions"],["mat-row","",4,"matRowDef","matRowDefColumns","matRowDefWhen"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],["fxLayoutAlign","start center",1,"part-row-span"],["fxLayoutAlign","start center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","start center",1,"ellipsis-parent","part-row-span",3,"ngStyle"],["fxLayoutAlign","end center",1,"part-row-span"],["fxLayoutAlign","end center","class","part-row-span",4,"ngFor","ngForOf"],["fxLayoutAlign","end start"],["mat-flat-button","","color","primary","type","button","tabindex","5",1,"btn-part-expand",3,"click"],["fxLayoutAlign","end start",4,"ngFor","ngForOf"],["mat-stroked-button","","color","primary","type","button","tabindex","6",1,"btn-part-info",3,"click"],["mat-row",""],["mat-footer-row","",3,"ngClass"],["mat-header-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Rn,12,3,"form",1),t.YNc(2,kn,3,0,"div",2),t.YNc(3,Bi,69,19,"div",3),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf","home"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom),t.xp6(1),t.Q6J("ngIf","transactions"===i.calledFrom))},directives:[m.xw,m.yH,m.Wh,u.O5,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,d.Q7,H.$V,d.JJ,d.On,y.bx,y.TO,N.lW,q.BN,k.gD,u.sg,z.ey,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,u.PC,Z.Zl,k.$L,r.mD,r.yh,r.nj,r.Gk,r.Ke,r.Q2,r.as,r.XQ,A.NW],pipes:[u.uU,u.JJ],styles:[".mat-column-group_actions[_ngcontent-%COMP%]{min-height:4.8rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-expand[_ngcontent-%COMP%]{min-width:10rem;width:10rem}.mat-column-group_actions[_ngcontent-%COMP%] .btn-part-info[_ngcontent-%COMP%]{margin-top:.5rem;min-width:9rem;width:9rem}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%] .part-row-span[_ngcontent-%COMP%]:not(:first-of-type){padding-left:3rem}.part-row-span[_ngcontent-%COMP%]{min-height:4.2rem;place-content:center flex-start;align-items:center}.mat-column-group_firstPartTimestamp[_ngcontent-%COMP%]{min-width:17rem}"]}),n})();function Hi(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(11);t.Q6J("matMenuTriggerFor",e)}}function zi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw().$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Vi(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){return t.CHM(e),t.oxw(3).onsortChannelsBy()}),t._uU(1),t.qZA()}if(2&n){const e=t.oxw(3);t.xp6(1),t.hij("Sort By ","Balance Score"===e.sortField?"Capacity":"Balance Score","")}}function Gi(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function Wi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",29),2&n){const e=t.oxw(3);t.Q6J("information",e.information)("showColorFieldSeparately",!1)}}function $i(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function Xi(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-capacity-info",31),2&n){const e=t.oxw(3);t.Q6J("sortBy",e.sortField)("channelBalances",e.channelBalances)("allChannels",e.allChannelsCapacity)("errorMessage",e.errorMessages[2])}}function Ki(n,a){if(1&n&&t._UZ(0,"rtl-ecl-fee-info",32),2&n){const e=t.oxw(3);t.Q6J("fees",e.fees)("errorMessage",e.errorMessages[1])}}function ji(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-status-info",33),2&n){const e=t.oxw(3);t.Q6J("channelsStatus",e.channelsStatus)("errorMessage",e.errorMessages[2])}}function ta(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const Zt=function(n){return{"dashboard-card-content":!0,"error-border":n}};function ea(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",9)(2,"mat-card-header")(3,"mat-card-title",10)(4,"div"),t._UZ(5,"fa-icon",11),t.TgZ(6,"span"),t._uU(7),t.qZA()(),t.TgZ(8,"div"),t.YNc(9,Hi,3,1,"button",12),t.TgZ(10,"mat-menu",13,14),t.YNc(12,zi,2,1,"button",15),t.YNc(13,Vi,2,1,"button",16),t.qZA()()()(),t.TgZ(14,"mat-card-content",17),t.YNc(15,Gi,1,0,"mat-progress-bar",18),t.TgZ(16,"div",19),t.YNc(17,Wi,1,2,"rtl-ecl-node-info",20),t.YNc(18,$i,1,2,"rtl-ecl-balances-info",21),t.YNc(19,Xi,1,4,"rtl-ecl-channel-capacity-info",22),t.YNc(20,Ki,1,2,"rtl-ecl-fee-info",23),t.YNc(21,ji,1,2,"rtl-ecl-channel-status-info",24),t.YNc(22,ta,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(5),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions),t.xp6(1),t.Q6J("ngIf","capacity"===e.id),t.xp6(1),t.s9C("fxFlex","capacity"===e.id?90:70),t.Q6J("ngClass",t.VKq(16,Zt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("capacity"===e.id||"status"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||"fee"===e.id&&i.apiCallStatusFees.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","capacity"),t.xp6(1),t.Q6J("ngSwitchCase","fee"),t.xp6(1),t.Q6J("ngSwitchCase","status")}}function na(n,a){if(1&n&&(t.TgZ(0,"div",2)(1,"div",3),t._UZ(2,"fa-icon",4),t.TgZ(3,"span",5),t._uU(4),t.qZA()(),t.TgZ(5,"mat-grid-list",6),t.YNc(6,ea,23,18,"mat-grid-tile",7),t.qZA()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("icon",e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.ERROR?e.faFrown:e.faSmile),t.xp6(2),t.Oqu(e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.COMPLETED?"Welcome "+e.information.alias+"! Your node is up and running.":e.apiCallStatusNodeInfo.status===e.apiCallStatusEnum.INITIATED?"Wait! Getting your node information...":"Error! Please check the server connection."),t.xp6(1),t.Q6J("rowHeight",e.operatorCardHeight),t.xp6(1),t.Q6J("ngForOf",e.operatorCards)}}function ia(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()()),2&n){t.oxw();const e=t.MAs(9);t.Q6J("matMenuTriggerFor",e)}}function aa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(2).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function oa(n,a){if(1&n&&(t.TgZ(0,"mat-card-header")(1,"mat-card-title",10)(2,"div"),t._UZ(3,"fa-icon",11),t.TgZ(4,"span"),t._uU(5),t.qZA()(),t.TgZ(6,"div"),t.YNc(7,ia,3,1,"button",12),t.TgZ(8,"mat-menu",13,42),t.YNc(10,aa,2,1,"button",15),t.qZA()()()()),2&n){const e=t.oxw().$implicit;t.xp6(3),t.Q6J("icon",e.icon),t.xp6(2),t.Oqu(e.title),t.xp6(2),t.Q6J("ngIf",e.links[0]),t.xp6(3),t.Q6J("ngForOf",e.goToOptions)}}function sa(n,a){1&n&&t._UZ(0,"mat-progress-bar",28)}function la(n,a){if(1&n&&t._UZ(0,"rtl-ecl-node-info",43),2&n){const e=t.oxw(3);t.Q6J("information",e.information)}}function ra(n,a){if(1&n&&t._UZ(0,"rtl-ecl-balances-info",30),2&n){const e=t.oxw(3);t.Q6J("balances",e.balances)("errorMessage",e.errorMessages[2]+" "+e.errorMessages[3])}}function ca(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","In")("totalLiquidity",e.totalInboundLiquidity)("allChannels",e.allInboundChannels)("errorMessage",e.errorMessages[2])}}function ua(n,a){if(1&n&&t._UZ(0,"rtl-ecl-channel-liquidity-info",44),2&n){const e=t.oxw(3);t.Q6J("direction","Out")("totalLiquidity",e.totalOutboundLiquidity)("allChannels",e.allOutboundChannels)("errorMessage",e.errorMessages[2])}}function pa(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",27),t.NdJ("click",function(){const s=t.CHM(e).index,c=t.oxw(3).$implicit;return t.oxw(2).onNavigateTo(c.links[s])}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function ma(n,a){if(1&n&&(t.TgZ(0,"button",26)(1,"mat-icon"),t._uU(2,"more_vert"),t.qZA()(),t.TgZ(3,"mat-menu",13,53),t.YNc(5,pa,2,1,"button",15),t.qZA()),2&n){const e=t.MAs(4),i=t.oxw(2).$implicit;t.Q6J("matMenuTriggerFor",e),t.xp6(5),t.Q6J("ngForOf",i.goToOptions)}}function da(n,a){1&n&&(t.TgZ(0,"span",45)(1,"mat-tab-group",46)(2,"mat-tab",47),t._UZ(3,"rtl-ecl-lightning-invoices",48),t.qZA(),t.TgZ(4,"mat-tab",49),t._UZ(5,"rtl-ecl-lightning-payments",50),t.qZA(),t.TgZ(6,"mat-tab",51),t.YNc(7,ma,6,2,"ng-template",52),t.qZA()()()),2&n&&(t.xp6(3),t.Q6J("calledFrom","home"),t.xp6(2),t.Q6J("calledFrom","home"),t.xp6(1),t.Q6J("disabled",!0))}function ha(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find information!"),t.qZA())}const _a=function(n){return{"p-0":n}};function ga(n,a){if(1&n&&(t.TgZ(0,"mat-grid-tile",8)(1,"mat-card",36),t.YNc(2,oa,11,4,"mat-card-header",37),t.TgZ(3,"mat-card-content",38),t.YNc(4,sa,1,0,"mat-progress-bar",18),t.TgZ(5,"div",19),t.YNc(6,la,1,1,"rtl-ecl-node-info",39),t.YNc(7,ra,1,2,"rtl-ecl-balances-info",21),t.YNc(8,ca,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(9,ua,1,4,"rtl-ecl-channel-liquidity-info",40),t.YNc(10,da,8,3,"span",41),t.YNc(11,ha,2,0,"h3",25),t.qZA()()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("colspan",e.cols)("rowspan",e.rows),t.xp6(1),t.Q6J("ngClass",t.VKq(13,_a,"transactions"===e.id)),t.xp6(1),t.Q6J("ngIf","transactions"!==e.id),t.xp6(1),t.s9C("fxFlex","transactions"===e.id?100:"balance"===e.id?70:90),t.Q6J("ngClass",t.VKq(15,Zt,"node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.ERROR||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.ERROR)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.ERROR)),t.xp6(1),t.Q6J("ngIf","node"===e.id&&i.apiCallStatusNodeInfo.status===i.apiCallStatusEnum.INITIATED||"balance"===e.id&&(i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED||i.apiCallStatusOCBal.status===i.apiCallStatusEnum.INITIATED)||("inboundLiq"===e.id||"outboundLiq"===e.id)&&i.apiCallStatusAllChannels.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngSwitch",e.id),t.xp6(1),t.Q6J("ngSwitchCase","node"),t.xp6(1),t.Q6J("ngSwitchCase","balance"),t.xp6(1),t.Q6J("ngSwitchCase","inboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","outboundLiq"),t.xp6(1),t.Q6J("ngSwitchCase","transactions")}}function fa(n,a){if(1&n&&(t.TgZ(0,"div",34),t._UZ(1,"fa-icon",4),t.TgZ(2,"span",5),t._uU(3),t.qZA()(),t.TgZ(4,"mat-grid-list",35),t.YNc(5,ga,12,17,"mat-grid-tile",7),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faSmile),t.xp6(2),t.hij("Welcome ",e.information.alias,"! Your node is up and running."),t.xp6(1),t.Q6J("rowHeight",e.merchantCardHeight),t.xp6(1),t.Q6J("ngForOf",e.merchantCards)}}let Ca=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.commonService=o,this.router=s,this.faSmile=xt.ctA,this.faFrown=xt.KfU,this.faAngleDoubleDown=L.Sbq,this.faAngleDoubleUp=L.Vfw,this.faChartPie=L.OS1,this.faBolt=L.BDt,this.faServer=L.xf3,this.faNetworkWired=L.kXW,this.userPersonaEnum=l.ol,this.channelBalances={localBalance:0,remoteBalance:0,balancedness:0},this.selNode={},this.information={},this.channels=[],this.onchainBalance={},this.balances={onchain:-1,lightning:-1,total:0},this.channelsStatus={},this.allChannelsCapacity=[],this.allInboundChannels=[],this.allOutboundChannels=[],this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.operatorCards=[],this.merchantCards=[],this.screenSize="",this.operatorCardHeight="405px",this.merchantCardHeight="65px",this.sortField="Balance Score",this.errorMessages=["","","",""],this.apiCallStatusNodeInfo={status:l.Bn.COMPLETED},this.apiCallStatusFees={status:l.Bn.COMPLETED},this.apiCallStatusOCBal={status:l.Bn.COMPLETED},this.apiCallStatusAllChannels={status:l.Bn.COMPLETED},this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,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===l.cu.XS?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:10,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:10,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:10,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:10,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:6,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:6,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:6,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:6,rows:8}]):this.screenSize===l.cu.SM||this.screenSize===l.cu.MD?(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:5,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:5,rows:1},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:5,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:5,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:10,rows:2}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:4},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:3,rows:4},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:3,rows:8},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:3,rows:8}]):(this.operatorCards=[{id:"node",goToOptions:[],links:[],icon:this.faServer,title:"Node Information",cols:3,rows:1},{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:3,rows:1},{id:"capacity",goToOptions:["Channels"],links:["connections"],icon:this.faNetworkWired,title:"Channels Capacity",cols:4,rows:2},{id:"fee",goToOptions:["Routing","Fees Summary"],links:["routing","reports"],icon:this.faBolt,title:"Routing Fee",cols:3,rows:1},{id:"status",goToOptions:["Channels","Inactive Channels"],links:["connections","connections/channels/inactive"],icon:this.faNetworkWired,title:"Channels",cols:3,rows:1}],this.merchantCards=[{id:"balance",goToOptions:["On-Chain"],links:["onchain"],icon:this.faChartPie,title:"Balances",cols:2,rows:5},{id:"inboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleDown,title:"In-Bound Liquidity",cols:2,rows:10},{id:"outboundLiq",goToOptions:["Channels"],links:["connections"],icon:this.faAngleDoubleUp,title:"Out-Bound Liquidity",cols:2,rows:10},{id:"transactions",goToOptions:["Transactions","Transactions Summary"],links:["transactions","reports/transactions"],title:"",cols:2,rows:5}])}ngOnInit(){this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.selNode=e}),this.store.select(C.T$).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessages[0]="",this.apiCallStatusNodeInfo=e.apiCallStatus,this.apiCallStatusNodeInfo.status===l.Bn.ERROR&&(this.errorMessages[0]="object"==typeof this.apiCallStatusNodeInfo.message?JSON.stringify(this.apiCallStatusNodeInfo.message):this.apiCallStatusNodeInfo.message?this.apiCallStatusNodeInfo.message:""),this.information=e.information}),this.store.select(C.JG).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessages[1]="",this.apiCallStatusFees=e.apiCallStatus,this.apiCallStatusFees.status===l.Bn.ERROR&&(this.errorMessages[1]="object"==typeof this.apiCallStatusFees.message?JSON.stringify(this.apiCallStatusFees.message):this.apiCallStatusFees.message?this.apiCallStatusFees.message:""),this.fees=e.fees}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[3]),(0,ot.M)(this.store.select(C.kY))).subscribe(([e,i])=>{var o,s;this.errorMessages[2]="",this.errorMessages[3]="",this.apiCallStatusAllChannels=e.apiCallStatus,this.apiCallStatusOCBal=i.apiCallStatus,this.apiCallStatusAllChannels.status===l.Bn.ERROR&&(this.errorMessages[2]="object"==typeof this.apiCallStatusAllChannels.message?JSON.stringify(this.apiCallStatusAllChannels.message):this.apiCallStatusAllChannels.message?this.apiCallStatusAllChannels.message:""),this.apiCallStatusOCBal.status===l.Bn.ERROR&&(this.errorMessages[3]="object"==typeof this.apiCallStatusOCBal.message?JSON.stringify(this.apiCallStatusOCBal.message):this.apiCallStatusOCBal.message?this.apiCallStatusOCBal.message:""),this.channels=e.activeChannels,this.onchainBalance=i.onchainBalance,this.balances.onchain=this.onchainBalance.total||0,this.balances.lightning=e.lightningBalance.localBalance,this.balances.total=this.balances.lightning+this.balances.onchain,this.balances=Object.assign({},this.balances);const c=e.lightningBalance.localBalance?+e.lightningBalance.localBalance:0,h=e.lightningBalance.remoteBalance?+e.lightningBalance.remoteBalance:0;this.channelBalances={localBalance:c,remoteBalance:h,balancedness:+(1-Math.abs((c-h)/(c+h))).toFixed(3)},this.channelsStatus=e.channelsStatus,this.totalInboundLiquidity=0,this.totalOutboundLiquidity=0,this.allChannelsCapacity=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(this.channels,"balancedness"))),this.allInboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(o=this.channels)||void 0===o?void 0:o.filter(v=>(v.toRemote||0)>0),"toRemote"))),this.allOutboundChannels=JSON.parse(JSON.stringify(this.commonService.sortDescByKey(null===(s=this.channels)||void 0===s?void 0:s.filter(v=>(v.toLocal||0)>0),"toLocal"))),this.channels.forEach(v=>{this.totalInboundLiquidity=this.totalInboundLiquidity+Math.ceil(v.toRemote||0),this.totalOutboundLiquidity=this.totalOutboundLiquidity+Math.floor(v.toLocal||0)}),this.logger.info(e)})}onNavigateTo(e){this.router.navigateByUrl("/ecl/"+e)}onsortChannelsBy(){"Balance Score"===this.sortField?(this.sortField="Capacity",this.allChannelsCapacity=this.channels.sort((e,i)=>{const o=+(e.toLocal||0)+ +(e.toRemote||0),s=+(i.toLocal||0)+ +(i.toRemote||0);return o>s?-1:o{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(P.v),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-home"]],decls:3,vars:2,consts:[["fxLayout","column",4,"ngIf","ngIfElse"],["merchantDashboard",""],["fxLayout","column"],["fxLayout","row","fxLayoutAlign","start start",1,"page-title-container","mb-2"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["cols","10","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan",4,"ngFor","ngForOf"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",3,"colspan","rowspan"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card"],["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",4,"ngFor","ngForOf"],["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"],["mat-menu-item","",3,"click"],["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-2"],["cols","6","gutterSize","20px",3,"rowHeight"],["fxFlex","100","fxLayout","column","fxLayoutAlign","start stretch",1,"h-100","dashboard-card",3,"ngClass"],[4,"ngIf"],["fxLayout","column","fxLayoutAlign","start stretch",3,"fxFlex","ngClass"],["fxFlex","100",3,"information",4,"ngSwitchCase"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage",4,"ngSwitchCase"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start",4,"ngSwitchCase"],["menuMerchant","matMenu"],["fxFlex","100",3,"information"],["fxFlex","100",3,"direction","totalLiquidity","allChannels","errorMessage"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between start"],["fxLayout","column",1,"w-100","dashboard-tabs-group"],["label","Receive"],[1,"h-100",3,"calledFrom"],["label","Pay"],[3,"calledFrom"],[3,"disabled"],["mat-tab-label",""],["menuTransactions","matMenu"]],template:function(e,i){if(1&e&&(t.YNc(0,na,7,4,"div",0),t.YNc(1,fa,6,4,"ng-template",null,1,t.W1O)),2&e){const o=t.MAs(2);t.Q6J("ngIf",(null==i.selNode?null:i.selNode.userPersona)===i.userPersonaEnum.OPERATOR)("ngIfElse",o)}},directives:[u.O5,m.xw,m.Wh,q.BN,yt.Il,u.sg,yt.DX,m.yH,b.a8,b.dk,b.n5,N.lW,st.p6,vt.Hw,st.VK,st.OP,b.dn,u.mk,Z.oO,M.pW,u.RF,u.n9,Wt,Kt,se,ce,me,u.ED,Ze,R.SP,R.uX,Lt,St,R.uD],styles:[""]}),n})();var xa=f(8377);const ya=["form"];function va(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Bitcoin address is required."),t.qZA())}function Ta(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.amountError)}}function La(n,a){if(1&n&&(t.TgZ(0,"mat-option",29),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e)}}function ba(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Target Confirmation Blocks is required."),t.qZA())}function Sa(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.sendFundError)}}function Za(n,a){if(1&n&&(t.TgZ(0,"div",30),t._UZ(1,"fa-icon",31),t.YNc(2,Sa,2,1,"span",12),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.sendFundError)}}let At=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.logger=i,this.store=o,this.commonService=s,this.decimalPipe=c,this.actions=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.addressTypes=[],this.selectedAddress=l._t[1],this.blockchainBalance={},this.information={},this.newAddress="",this.transaction={},this.sendFundError="",this.fiatConversion=!1,this.amountUnits=l.uA,this.selAmountUnit=l.uA[0],this.currConvertorRate={},this.unitConversionValue=0,this.currencyUnitFormats=l.Xz,this.amountError="Amount is Required.",this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.store.select(xa.dT).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.fiatConversion=e.settings.fiatConversion,this.amountUnits=e.settings.currencyUnits,this.logger.info(e)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(e=>e.type===l.lr.UPDATE_API_CALL_STATUS_ECL||e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL)).subscribe(e=>{e.type===l.lr.SEND_ONCHAIN_FUNDS_RES_ECL&&(this.store.dispatch((0,E.jW)({payload:"Fund Sent Successfully!"})),this.dialogRef.close()),e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"SendOnchainFunds"===e.payload.action&&(this.sendFundError=e.payload.message)})}onSendFunds(){if(this.invalidValues)return!0;this.sendFundError="",this.transaction.amount&&this.selAmountUnit!==l.NT.SATS?this.commonService.convertCurrency(this.transaction.amount,this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit,l.NT.SATS,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[2])).subscribe({next:e=>{this.transaction.amount=parseInt(e[l.NT.SATS]),this.selAmountUnit=l.NT.SATS,this.store.dispatch((0,U.Iy)({payload:this.transaction}))},error:e=>{this.selAmountUnit=l.NT.SATS,this.amountError="Conversion Error: "+e}}):this.store.dispatch((0,U.Iy)({payload:this.transaction}))}get invalidValues(){return!this.transaction.address||""===this.transaction.address||!this.transaction.amount||this.transaction.amount<=0||!this.transaction.blocks||this.transaction.blocks<=0}resetData(){this.sendFundError="",this.transaction={}}onAmountUnitChange(e){const i=this,o=this.selAmountUnit===this.amountUnits[2]?l.NT.OTHER:this.selAmountUnit;let s=e.value===this.amountUnits[2]?l.NT.OTHER:e.value;this.transaction.amount&&this.selAmountUnit!==e.value&&this.commonService.convertCurrency(this.transaction.amount,o,s,this.amountUnits[2],this.fiatConversion).pipe((0,_.R)(this.unSubs[3])).subscribe({next:c=>{this.selAmountUnit=e.value,i.transaction.amount=+i.decimalPipe.transform(c[s],i.currencyUnitFormats[s]).replace(/,/g,"")},error:c=>{this.amountError="Conversion Error: "+c,this.selAmountUnit=o,s=o}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(O.mQ),t.Y36(w.yh),t.Y36(P.v),t.Y36(u.JJ),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-send-modal"]],viewQuery:function(e,i){if(1&e&&t.Gf(ya,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:36,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","default","","mat-button","",1,"btn-close-x","p-0",3,"mat-dialog-close"],[1,"padding-gap-x-large"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","space-between start",1,"overflow-x-hidden",3,"submit","reset"],["form","ngForm"],["fxFlex","55"],["matInput","","autoFocus","","placeholder","Bitcoin Address","tabindex","1","name","addr","required","",3,"ngModel","ngModelChange"],["addrs","ngModel"],[4,"ngIf"],["fxFlex","30"],["matInput","","placeholder","Amount","name","amt","type","number","tabindex","2","required","",3,"ngModel","step","min","ngModelChange"],["amnt","ngModel"],["matSuffix",""],["fxFlex","10","fxLayoutAlign","start end"],["tabindex","3","required","","name","amountUnit",3,"value","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","60","fxLayoutAlign","space-between stretch","fxLayout","row wrap"],["fxFlex","48","fxLayout","row","fxLayoutAlign","start center"],["matInput","","placeholder","Target Confirmation Blocks","type","number","name","blocks","tabindex","8","required","true",3,"ngModel","step","min","ngModelChange"],["blocks","ngModel"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","7","type","reset",1,"mr-1"],["mat-button","","color","primary","type","submit","tabindex","8"],[3,"value"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Send Payment"),t.qZA()(),t.TgZ(6,"button",5),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onSendFunds()})("reset",function(){return i.resetData()}),t.TgZ(11,"mat-form-field",9)(12,"input",10,11),t.NdJ("ngModelChange",function(s){return i.transaction.address=s}),t.qZA(),t.YNc(14,va,2,0,"mat-error",12),t.qZA(),t.TgZ(15,"mat-form-field",13)(16,"input",14,15),t.NdJ("ngModelChange",function(s){return i.transaction.amount=s}),t.qZA(),t.TgZ(18,"span",16),t._uU(19),t.qZA(),t.YNc(20,Ta,2,1,"mat-error",12),t.qZA(),t.TgZ(21,"mat-form-field",17)(22,"mat-select",18),t.NdJ("selectionChange",function(s){return i.onAmountUnitChange(s)}),t.YNc(23,La,2,2,"mat-option",19),t.qZA()(),t.TgZ(24,"div",20)(25,"mat-form-field",21)(26,"input",22,23),t.NdJ("ngModelChange",function(s){return i.transaction.blocks=s}),t.qZA(),t.YNc(28,ba,2,0,"mat-error",12),t.qZA()(),t._UZ(29,"div",24),t.YNc(30,Za,3,2,"div",25),t.TgZ(31,"div",26)(32,"button",27),t._uU(33,"Clear Fields"),t.qZA(),t.TgZ(34,"button",28),t._uU(35,"Send Funds"),t.qZA()()()()()()),2&e&&(t.xp6(6),t.Q6J("mat-dialog-close",!1),t.xp6(6),t.Q6J("ngModel",i.transaction.address),t.xp6(2),t.Q6J("ngIf",!i.transaction.address),t.xp6(2),t.Q6J("ngModel",i.transaction.amount)("step",100)("min",0),t.xp6(3),t.hij("",i.selAmountUnit," "),t.xp6(1),t.Q6J("ngIf",!i.transaction.amount),t.xp6(2),t.Q6J("value",i.selAmountUnit),t.xp6(1),t.Q6J("ngForOf",i.amountUnits),t.xp6(3),t.Q6J("ngModel",i.transaction.blocks)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",!i.transaction.blocks),t.xp6(2),t.Q6J("ngIf",""!==i.sendFundError))},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,J.ZT,b.dn,d._Y,d.JL,d.F,y.KE,Y.Nt,d.Fj,j.h,d.Q7,d.JJ,d.On,u.O5,y.TO,d.wV,d.qQ,tt.q,y.R9,k.gD,u.sg,z.ey,q.BN],styles:[""]}),n})();var ut=f(1203);function Aa(n,a){if(1&n&&(t.TgZ(0,"mat-option",34),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Ea(n,a){1&n&&t._UZ(0,"mat-progress-bar",35)}function wa(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Date/Time"),t.qZA())}function Ia(n,a){if(1&n&&(t.TgZ(0,"td",37),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.xi3(2,1,1e3*(null==e?null:e.timestamp),"dd/MMM/y HH:mm"))}}function Fa(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Address"),t.qZA())}const pt=function(n){return{width:n}};function qa(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.address)}}function Na(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Blockhash"),t.qZA())}function Oa(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.blockHash)}}function Pa(n,a){1&n&&(t.TgZ(0,"th",36),t._uU(1,"Transaction ID"),t.qZA())}function Ua(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"div",38)(2,"span",39),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.txid)}}function Ra(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Amount (Sats)"),t.qZA())}function ka(n,a){if(1&n&&(t.TgZ(0,"span",43),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.amount))}}function Da(n,a){if(1&n&&(t.TgZ(0,"span",44),t._uU(1),t.ALo(2,"number"),t.qZA()),2&n){const e=t.oxw().$implicit;t.xp6(1),t.hij("(",t.lcZ(2,1,-1*(null==e?null:e.amount)),")")}}function Ja(n,a){if(1&n&&(t.TgZ(0,"td",37),t.YNc(1,ka,3,3,"span",41),t.YNc(2,Da,3,3,"span",42),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",(null==e?null:e.amount)>0||0===(null==e?null:e.amount)),t.xp6(1),t.Q6J("ngIf",(null==e?null:e.amount)<0)}}function Ma(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Fees (Sats)"),t.qZA())}function Qa(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.fees))}}function Ya(n,a){1&n&&(t.TgZ(0,"th",40),t._uU(1,"Confirmations"),t.qZA())}function Ba(n,a){if(1&n&&(t.TgZ(0,"td",37)(1,"span",43),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.lcZ(3,1,null==e?null:e.confirmations)," ")}}function Ha(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",48),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function za(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",49)(1,"button",50),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onTransactionClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function Va(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No transaction available."),t.qZA())}function Ga(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting transactions..."),t.qZA())}function Wa(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function $a(n,a){if(1&n&&(t.TgZ(0,"td",51),t.YNc(1,Va,2,0,"p",52),t.YNc(2,Ga,2,0,"p",52),t.YNc(3,Wa,2,1,"p",52),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.listTransactions&&e.listTransactions.data)||(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Xa=function(n){return{"display-none":n}};function Ka(n,a){if(1&n&&t._UZ(0,"tr",53),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Xa,(null==e.listTransactions?null:e.listTransactions.data)&&(null==e.listTransactions||null==e.listTransactions.data?null:e.listTransactions.data.length)>0))}}function ja(n,a){1&n&&t._UZ(0,"tr",54)}function to(n,a){1&n&&t._UZ(0,"tr",55)}const eo=function(){return["all"]},no=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},io=function(){return["no_transaction"]};let ao=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.camelCaseWithSpaces=c,this.faHistory=L.qO$,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="on_chain",this.tableSetting={tableId:"transaction",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.listTransactions=new r.by([]),this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.dispatch((0,U.mC)()),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.dx).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),e.transactions&&this.loadTransactionsTable(e.transactions),this.logger.info(e)})}applyFilter(){this.listTransactions.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.listTransactions.filterPredicate=(e,i)=>{var o,s;let c="";switch(this.selFilterBy){case"all":c=(e.timestamp?null===(o=this.datePipe.transform(new Date(1e3*e.timestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":c=(null===(s=this.datePipe.transform(new Date(1e3*(e[this.selFilterBy]||0)),"dd/MMM/y HH:mm"))||void 0===s?void 0:s.toLowerCase())||"";break;default:c=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return c.includes(i)}}onTransactionClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Transaction Information",message:[[{key:"blockHash",value:e.blockHash,title:"Block Hash",width:100}],[{key:"txid",value:e.txid,title:"Transaction ID",width:100}],[{key:"timestamp",value:e.timestamp,title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"confirmations",value:e.confirmations,title:"Number of Confirmations",width:50,type:l.Gi.NUMBER}],[{key:"fees",value:e.fees,title:"Fees (Sats)",width:50,type:l.Gi.NUMBER},{key:"amount",value:e.amount,title:"Amount (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"address",value:e.address,title:"Address",width:100,type:l.Gi.STRING}]]}}}))}loadTransactionsTable(e){var i;this.listTransactions=new r.by([...e]),this.listTransactions.sort=this.sort,this.listTransactions.sortingDataAccessor=(o,s)=>o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,null===(i=this.listTransactions.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.listTransactions.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),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 n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(u.uU),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-transaction-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Transactions")}])],decls:47,vars:17,consts:[["fxLayout","row wrap","fxLayoutAlign","start start","fxLayout.gt-sm","column","fxFlex","100","fxLayoutAlign.gt-sm","start stretch"],["fxLayout","column","fxLayout.gt-xs","row wrap","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","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","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","address"],["matColumnDef","blockHash"],["matColumnDef","txid"],["matColumnDef","amount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","fees"],["matColumnDef","confirmations"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["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",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"div",2),t._UZ(3,"fa-icon",3),t.TgZ(4,"span",4),t._uU(5,"Transaction History"),t.qZA()(),t.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(9,Aa,2,2,"mat-option",8),t.qZA()(),t.TgZ(10,"mat-form-field",6)(11,"input",9),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(12,"div",10)(13,"div",11),t.YNc(14,Ea,1,0,"mat-progress-bar",12),t.TgZ(15,"table",13,14),t.ynx(17,15),t.YNc(18,wa,2,0,"th",16),t.YNc(19,Ia,3,4,"td",17),t.BQk(),t.ynx(20,18),t.YNc(21,Fa,2,0,"th",16),t.YNc(22,qa,4,4,"td",17),t.BQk(),t.ynx(23,19),t.YNc(24,Na,2,0,"th",16),t.YNc(25,Oa,4,4,"td",17),t.BQk(),t.ynx(26,20),t.YNc(27,Pa,2,0,"th",16),t.YNc(28,Ua,4,4,"td",17),t.BQk(),t.ynx(29,21),t.YNc(30,Ra,2,0,"th",22),t.YNc(31,Ja,3,2,"td",17),t.BQk(),t.ynx(32,23),t.YNc(33,Ma,2,0,"th",22),t.YNc(34,Qa,4,3,"td",17),t.BQk(),t.ynx(35,24),t.YNc(36,Ya,2,0,"th",22),t.YNc(37,Ba,4,3,"td",17),t.BQk(),t.ynx(38,25),t.YNc(39,Ha,6,0,"th",26),t.YNc(40,za,3,0,"td",27),t.BQk(),t.ynx(41,28),t.YNc(42,$a,4,3,"td",29),t.BQk(),t.YNc(43,Ka,1,3,"tr",30),t.YNc(44,ja,1,0,"tr",31),t.YNc(45,to,1,0,"tr",32),t.qZA(),t._UZ(46,"mat-paginator",33),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("icon",i.faHistory),t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(13,eo).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(3),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.listTransactions)("ngClass",t.VKq(14,no,""!==i.errorMessage)),t.xp6(28),t.Q6J("matFooterRowDef",t.DdM(16,io)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,q.BN,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,u.PC,Z.Zl,k.$L,N.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.uU,u.JJ],styles:[""]}),n})();function oo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",12),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let so=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.selNode={},this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.LR).pipe((0,_.R)(this.unSubs[1])).subscribe(i=>{this.selNode=i}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[2])).subscribe(i=>{this.balances=[{title:"Total Balance",dataValue:i.onchainBalance.total||0},{title:"Confirmed",dataValue:i.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:i.onchainBalance.unconfirmed||0}]})}openSendFundsModal(){this.store.dispatch((0,E.qR)({payload:{data:{component:At}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain"]],decls:21,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"],["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,"padding-gap-x-large","mt-2"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"padding-gap-x-large"],["fxLayout","row","fxFlex","100"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"On-chain Transactions"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",7),t.YNc(16,oo,2,3,"div",8),t.qZA(),t.TgZ(17,"div",9),t._UZ(18,"router-outlet"),t.qZA(),t.TgZ(19,"div",10),t._UZ(20,"rtl-ecl-on-chain-transaction-history",11),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,ut.D,R.BU,u.sg,R.Nj,x.rH,m.yH,x.lC,ao],styles:[""]}),n})();var Et=f(7544);function lo(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Channels"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activeChannels)}}function ro(n,a){if(1&n&&(t.TgZ(0,"span",10),t._uU(1,"Peers"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.activePeers)}}let co=(()=>{class n{constructor(e,i){this.store=e,this.router=i,this.activePeers=0,this.activeChannels=0,this.faUsers=L.FVb,this.faChartPie=L.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,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.activePeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.activeChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.balances=[{title:"Total Balance",dataValue:e.onchainBalance.total||0},{title:"Confirmed",dataValue:e.onchainBalance.confirmed||0},{title:"Unconfirmed",dataValue:e.onchainBalance.unconfirmed||0}]})}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"On-chain Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",0),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Connections"),t.qZA()(),t.TgZ(12,"div",6)(13,"mat-card")(14,"mat-card-content",4)(15,"mat-tab-group",7),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(16,"mat-tab"),t.YNc(17,lo,2,1,"ng-template",8),t.qZA(),t.TgZ(18,"mat-tab"),t.YNc(19,ro,2,1,"ng-template",8),t.qZA()(),t.TgZ(20,"div",9),t._UZ(21,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faUsers),t.xp6(6),t.Q6J("selectedIndex",i.activeLink))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,ut.D,R.SP,R.uX,R.uD,Et.k,m.yH,x.lC],styles:[""]}),n})();function uo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let po=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.faExchangeAlt=L.Ssp,this.faChartPie=L.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"}],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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1]),(0,ot.M)(this.store.select(C.LR))).subscribe(([i,o])=>{this.currencyUnits=(null==o?void 0:o.currencyUnits)||[],this.balances=o&&o.userPersona===l.ol.OPERATOR?[{title:"Local Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Remote Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}]:[{title:"Outbound Capacity",dataValue:i.lightningBalance.localBalance,tooltip:"Amount you can send"},{title:"Inbound Capacity",dataValue:i.lightningBalance.remoteBalance,tooltip:"Amount you can receive"}],this.logger.info(i)})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Lightning Balance"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4),t._UZ(7,"rtl-currency-unit-converter",5),t.qZA()()(),t.TgZ(8,"div",6),t._UZ(9,"fa-icon",1),t.TgZ(10,"span",2),t._uU(11,"Lightning Transactions"),t.qZA()(),t.TgZ(12,"div",7)(13,"mat-card")(14,"mat-card-content",4)(15,"nav",8),t.YNc(16,uo,2,3,"div",9),t.qZA(),t.TgZ(17,"div",10),t._UZ(18,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartPie),t.xp6(6),t.Q6J("values",i.balances),t.xp6(2),t.Q6J("icon",i.faExchangeAlt),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,ut.D,R.BU,u.sg,R.Nj,x.rH,m.yH,x.lC],styles:[""]}),n})();function mo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",11),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let ho=(()=>{class n{constructor(e){this.router=e,this.faMapSigns=L.SuH,this.events=[],this.flgLoading=[!0],this.errorMessage="",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(){const e=this.links.find(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing"]],decls:13,vars:2,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"],["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",1,"padding-gap-x-large"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"fa-icon",2),t.TgZ(3,"span",3),t._uU(4,"Routing"),t.qZA()(),t.TgZ(5,"div",4)(6,"mat-card",5)(7,"mat-card-content",6)(8,"div",7)(9,"nav",8),t.YNc(10,mo,2,3,"div",9),t.qZA()(),t.TgZ(11,"div",10),t._UZ(12,"router-outlet"),t.qZA()()()()()),2&e&&(t.xp6(2),t.Q6J("icon",i.faMapSigns),t.xp6(8),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,m.yH,b.a8,b.dn,R.BU,u.sg,R.Nj,x.rH,x.lC],styles:[""]}),n})();var it=f(9814),wt=f(7261),It=f(6895);function _o(n,a){if(1&n&&(t.TgZ(0,"span",9)(1,"div"),t._uU(2),t.ALo(3,"titlecase"),t.qZA()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.AsE("",i.nodeFeaturesEnum[e.key]||e.key,": ",t.lcZ(3,2,e.value),"")}}function go(n,a){1&n&&(t.TgZ(0,"th",23),t._uU(1,"Address"),t.qZA())}function fo(n,a){if(1&n&&(t.TgZ(0,"td",24),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(e)}}function Co(n,a){1&n&&(t.TgZ(0,"th",25)(1,"div",26),t._uU(2,"Actions"),t.qZA()())}function xo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",24)(1,"span",27)(2,"button",28),t.NdJ("copied",function(o){return t.CHM(e),t.oxw(2).onCopyNodeURI(o)}),t._uU(3,"Copy Node URI"),t.qZA()()()}if(2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(2),t.Q6J("payload",(null==i.lookupResult?null:i.lookupResult.nodeId)+"@"+e)}}function yo(n,a){1&n&&t._UZ(0,"tr",29)}function vo(n,a){1&n&&t._UZ(0,"tr",30)}const To=function(n){return{"background-color":n}};function Lo(n,a){if(1&n&&(t.TgZ(0,"div",1),t._UZ(1,"mat-divider",2),t.TgZ(2,"div",3)(3,"div",4)(4,"h4",5),t._uU(5,"Alias"),t.qZA(),t.TgZ(6,"span",6),t._uU(7),t.TgZ(8,"span",7),t._uU(9),t.qZA()()(),t.TgZ(10,"div",8)(11,"h4",5),t._uU(12,"Pub Key"),t.qZA(),t.TgZ(13,"span",9),t._uU(14),t.qZA()()(),t._UZ(15,"mat-divider",2),t.TgZ(16,"div",3)(17,"div",4)(18,"h4",5),t._uU(19,"Date/Time"),t.qZA(),t.TgZ(20,"span",6),t._uU(21),t.ALo(22,"date"),t.qZA()(),t.TgZ(23,"div",8)(24,"h4",5),t._uU(25,"Features"),t.qZA(),t.YNc(26,_o,4,4,"span",10),t.ALo(27,"keyvalue"),t.qZA()(),t._UZ(28,"mat-divider",2),t.TgZ(29,"div",3)(30,"div",11)(31,"h4",5),t._uU(32,"Signature"),t.qZA(),t.TgZ(33,"span",6),t._uU(34),t.qZA()()(),t._UZ(35,"mat-divider",2),t.TgZ(36,"div",1)(37,"h4",12),t._uU(38,"Addresses"),t.qZA(),t.TgZ(39,"div",13)(40,"table",14,15),t.ynx(42,16),t.YNc(43,go,2,0,"th",17),t.YNc(44,fo,2,1,"td",18),t.BQk(),t.ynx(45,19),t.YNc(46,Co,3,0,"th",20),t.YNc(47,xo,4,1,"td",18),t.BQk(),t.YNc(48,yo,1,0,"tr",21),t.YNc(49,vo,1,0,"tr",22),t.qZA()()()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.alias),t.xp6(1),t.Q6J("ngStyle",t.VKq(19,To,null==e.lookupResult?null:e.lookupResult.rgbColor)),t.xp6(1),t.Oqu(null!=e.lookupResult&&e.lookupResult.rgbColor?null==e.lookupResult?null:e.lookupResult.rgbColor:""),t.xp6(5),t.Oqu(null==e.lookupResult?null:e.lookupResult.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.xi3(22,14,1e3*(null==e.lookupResult?null:e.lookupResult.timestamp),"dd/MMM/y HH:mm")),t.xp6(5),t.Q6J("ngForOf",t.lcZ(27,17,null==e.lookupResult?null:e.lookupResult.features.activated)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(null==e.lookupResult?null:e.lookupResult.signature),t.xp6(1),t.Q6J("inset",!0),t.xp6(5),t.Q6J("dataSource",e.addresses),t.xp6(8),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}let bo=(()=>{class n{constructor(e,i){this.logger=e,this.snackBar=i,this.lookupResult={},this.addresses=new r.by([]),this.displayedColumns=["address","actions"],this.nodeFeaturesEnum=l.H_}ngOnInit(){this.addresses=new r.by(this.lookupResult.addresses?[...this.lookupResult.addresses]:[]),this.addresses.data=this.lookupResult.addresses||[],this.addresses.sort=this.sort,this.addresses.sortingDataAccessor=(e,i)=>e[i]&&isNaN(e[i])?e[i].toLocaleLowerCase():e[i]?+e[i]:null}onCopyNodeURI(e){this.snackBar.open("Node URI copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(wt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-node-lookup"]],viewQuery:function(e,i){if(1&e&&t.Gf(S.YE,5),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first)}},inputs:{lookupResult:"lookupResult"},decls:1,vars:1,consts:[["fxLayout","column",4,"ngIf"],["fxLayout","column"],[1,"my-1",3,"inset"],["fxLayout","row"],["fxFlex","30"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"ml-2",3,"ngStyle"],["fxFlex","70"],[1,"foreground-secondary-text","w-100"],["class","foreground-secondary-text w-100",4,"ngFor","ngForOf"],["fxFlex","100"],["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","",1,"overflow-auto",3,"dataSource"],["table",""],["matColumnDef","address"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select","btn-action"],["fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","1","rtlClipboard","",1,"btn-action-copy",3,"payload","copied"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&t.YNc(0,Lo,50,21,"div",0),2&e&&t.Q6J("ngIf",i.lookupResult)},directives:[u.O5,m.xw,K.d,m.yH,m.Wh,u.PC,Z.Zl,u.sg,H.$V,r.BZ,S.YE,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,N.lW,It.y,r.as,r.XQ,r.nj,r.Gk],pipes:[u.uU,u.Nd,u.rS],styles:["div.bordered-box.table-actions-select.btn-action[_ngcontent-%COMP%]{min-width:13rem;width:13rem;min-height:3.6rem}button.mat-stroked-button.btn-action-copy[_ngcontent-%COMP%]{min-width:13rem;width:13rem}"]}),n})();const So=["form"];function Zo(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder," is required.")}}function Ao(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Invalid ",null==e.lookupFields[e.selectedFieldId]?null:e.lookupFields[e.selectedFieldId].placeholder,".")}}function Eo(n,a){if(1&n&&(t.TgZ(0,"div"),t._UZ(1,"rtl-ecl-node-lookup",25),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Q6J("lookupResult",e.nodeLookupValue)}}function wo(n,a){if(1&n&&(t.TgZ(0,"span",23),t.YNc(1,Eo,2,1,"div",24),t.qZA()),2&n){const e=t.oxw(2),i=t.MAs(21);t.xp6(1),t.Q6J("ngIf",e.nodeLookupValue.nodeId)("ngIfElse",i)}}function Io(n,a){1&n&&(t.TgZ(0,"span",23)(1,"h3"),t._uU(2,"Error! Unable to find details!"),t.qZA()())}function Fo(n,a){if(1&n&&(t.TgZ(0,"div",17)(1,"div",18)(2,"span",19),t._uU(3),t.qZA()(),t.TgZ(4,"div",20),t.YNc(5,wo,2,2,"span",21),t.YNc(6,Io,3,0,"span",22),t.qZA()()),2&n){const e=t.oxw();t.xp6(3),t.hij("",e.lookupFields[e.selectedFieldId].name," Details"),t.xp6(1),t.Q6J("ngSwitch",e.selectedFieldId),t.xp6(1),t.Q6J("ngSwitchCase",0)}}function qo(n,a){1&n&&(t.TgZ(0,"h3"),t._uU(1,"Error! Unable to find details!"),t.qZA())}const No=function(n){return{"mt-1":!0,"mt-2":n}};let Oo=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.actions=s,this.lookupKeyCtrl=new d.NI,this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1,this.messageObj=[],this.selectedFieldId=0,this.lookupFields=[{id:0,name:"Node",placeholder:"Node ID"},{id:1,name:"Channel",placeholder:"Short Channel ID"}],this.flgLoading=[!0],this.faSearch=L.wn1,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.actions.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(e=>e.type===l.lr.SET_LOOKUP_ECL||e.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(e=>{if(e.type===l.lr.SET_LOOKUP_ECL){switch(this.flgLoading[0]=!0,this.selectedFieldId){case 0:this.nodeLookupValue=e.payload[0]?JSON.parse(JSON.stringify(e.payload[0])):{nodeid:""};break;case 1:this.channelLookupValue=JSON.parse(JSON.stringify(e.payload))||[]}this.flgSetLookupValue=!0,this.logger.info(this.nodeLookupValue),this.logger.info(this.channelLookupValue)}e.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&e.payload.status===l.Bn.ERROR&&"Lookup"===e.payload.action&&(this.flgLoading[0]="error")}),this.lookupKeyCtrl.valueChanges.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1})}onLookup(){return this.lookupKeyCtrl.value?this.lookupKeyCtrl.value&&(this.lookupKeyCtrl.value.includes("@")||this.lookupKeyCtrl.value.includes(","))?(this.lookupKeyCtrl.setErrors({invalid:!0}),!0):void(0===(this.selectedFieldId||(this.selectedFieldId=0),this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.selectedFieldId)&&this.store.dispatch((0,U.Sf)({payload:this.lookupKeyCtrl.value.trim()}))):(this.lookupKeyCtrl.setErrors({required:!0}),!0)}onSelectChange(e){this.resetData(),this.selectedFieldId=e.value}resetData(){this.flgSetLookupValue=!1,this.nodeLookupValue={},this.channelLookupValue=[],this.lookupKeyCtrl.setValue(""),this.lookupKeyCtrl.setErrors(null),this.form.resetForm()}clearLookupValue(){this.nodeLookupValue={},this.channelLookupValue=[],this.flgSetLookupValue=!1}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-lookups"]],viewQuery:function(e,i){if(1&e&&t.Gf(So,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:22,vars:9,consts:[["fxLayout","column"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["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","100","fxLayoutAlign","start end"],["color","primary","tabindex","1","name","lookupField"],["checked","",1,"mr-4",3,"value"],["fxFlex","100","fxLayoutAlign","start end",3,"ngClass"],["matInput","","name","lookupKey","tabindex","2","required","",3,"formControl","placeholder"],["key",""],[4,"ngIf"],["fxLayout","row","fxFlex","100",1,"mt-1"],["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","column","fxLayout.gt-sm","row wrap","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch","class","w-100 mt-2",4,"ngIf"],["errorBlock",""],["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"],[4,"ngIf","ngIfElse"],[3,"lookupResult"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-content",2)(3,"form",3,4)(5,"div",5)(6,"mat-radio-group",6)(7,"mat-radio-button",7),t._uU(8,"Node"),t.qZA()()(),t.TgZ(9,"mat-form-field",8),t._UZ(10,"input",9,10),t.YNc(12,Zo,2,1,"mat-error",11),t.YNc(13,Ao,2,1,"mat-error",11),t.qZA(),t.TgZ(14,"div",12)(15,"button",13),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",14),t.NdJ("click",function(){return i.onLookup()}),t._uU(18,"Lookup"),t.qZA()()(),t.YNc(19,Fo,7,3,"div",15),t.qZA()()(),t.YNc(20,qo,2,0,"ng-template",null,16,t.W1O)),2&e&&(t.xp6(7),t.Q6J("value",0),t.xp6(2),t.Q6J("ngClass",t.VKq(7,No,i.screenSize===i.screenSizeEnum.XS||i.screenSize===i.screenSizeEnum.SM)),t.xp6(1),t.Q6J("formControl",i.lookupKeyCtrl)("placeholder",(null==i.lookupFields[i.selectedFieldId]?null:i.lookupFields[i.selectedFieldId].placeholder)||"Lookup Key"),t.xp6(2),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.lookupKeyCtrl.errors?null:i.lookupKeyCtrl.errors.invalid),t.xp6(6),t.Q6J("ngIf",i.flgSetLookupValue))},directives:[m.xw,m.yH,m.Wh,b.dn,d._Y,d.JL,d.F,it.VQ,it.U0,y.KE,u.mk,Z.oO,Y.Nt,d.Fj,d.Q7,d.JJ,d.oH,u.O5,y.TO,N.lW,u.RF,u.n9,bo,u.ED],styles:[".tree-invisible[_ngcontent-%COMP%]{display:none}.lookup-tree[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .lookup-tree[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{margin-top:0;margin-bottom:0;list-style-type:none}"]}),n})();var Po=f(9122);let Uo=(()=>{class n{constructor(e,i){this.store=e,this.eclEffects=i,this.newAddress=""}onGenerateAddress(){this.store.dispatch((0,U._E)()),this.eclEffects.setNewAddress.pipe((0,W.q)(1)).subscribe(e=>{this.newAddress=e,setTimeout(()=>{this.store.dispatch((0,E.qR)({payload:{data:{address:this.newAddress,addressType:"",component:Po.n}}}))},0)})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(ct.o))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-on-chain-receive"]],decls:4,vars:0,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row"],["mat-flat-button","","color","primary","tabindex","1",3,"click"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onGenerateAddress()}),t._uU(3,"Generate Address"),t.qZA()()())},directives:[m.xw,m.yH,m.Wh,N.lW],styles:[""]}),n})(),Ro=(()=>{class n{constructor(e,i){this.store=e,this.activatedRoute=i,this.sweepAll=!1,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.activatedRoute.data.pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.sweepAll=e.sweepAll})}openSendFundsModal(){this.store.dispatch((0,E.qR)({payload:{data:{sweepAll:this.sweepAll,component:At}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(x.gz))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.openSendFundsModal()}),t._uU(3),t.qZA()()()),2&e&&(t.xp6(3),t.Oqu(i.sweepAll?"Sweep All":"Send Funds"))},directives:[m.xw,m.yH,m.Wh,N.lW],styles:[""]}),n})();var ko=f(8675),Ft=f(4004),qt=f(1079),Do=f(9843),Nt=f(2368);const Jo=["form"];function Mo(n,a){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.Q6J("value",e),t.xp6(1),t.Oqu(e.alias?e.alias:e.nodeId?e.nodeId:"")}}function Qo(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer alias is required."),t.qZA())}function Yo(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Peer not found in the list."),t.qZA())}function Bo(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-form-field",1)(1,"input",31),t.NdJ("change",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.qZA(),t.TgZ(2,"mat-autocomplete",32,33),t.NdJ("optionSelected",function(){return t.CHM(e),t.oxw().onSelectedPeerChanged()}),t.YNc(4,Mo,2,2,"mat-option",34),t.ALo(5,"async"),t.qZA(),t.YNc(6,Qo,2,0,"mat-error",17),t.YNc(7,Yo,2,0,"mat-error",17),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("formControl",i.selectedPeer)("matAutocomplete",e),t.xp6(1),t.Q6J("displayWith",i.displayFn),t.xp6(2),t.Q6J("ngForOf",t.lcZ(5,6,i.filteredPeers)),t.xp6(2),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.selectedPeer.errors?null:i.selectedPeer.errors.notfound)}}function Ho(n,a){1&n&&t.GkF(0)}function zo(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Vo(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function Go(n,a){if(1&n&&(t.TgZ(0,"span"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.channelConnectionError)}}function Wo(n,a){if(1&n&&(t.TgZ(0,"div",36),t._UZ(1,"fa-icon",37),t.YNc(2,Go,2,1,"span",17),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(1),t.Q6J("ngIf",""!==e.channelConnectionError)}}function $o(n,a){if(1&n&&(t.TgZ(0,"mat-expansion-panel",39)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span"),t._uU(4,"Peer: \xa0"),t.qZA(),t.TgZ(5,"strong",40),t._uU(6),t.qZA()()(),t.TgZ(7,"div",9)(8,"div",0)(9,"div",1)(10,"h4",41),t._uU(11,"Pubkey"),t.qZA(),t.TgZ(12,"span",42),t._uU(13),t.qZA()()(),t._UZ(14,"mat-divider",43),t.TgZ(15,"div",0)(16,"div",44)(17,"h4",41),t._uU(18,"Address"),t.qZA(),t.TgZ(19,"span",45),t._uU(20),t.qZA()(),t.TgZ(21,"div",44)(22,"h4",41),t._uU(23,"State"),t.qZA(),t.TgZ(24,"span",45),t._uU(25),t.ALo(26,"titlecase"),t.qZA()()()()()),2&n){const e=t.oxw(2);t.xp6(6),t.Oqu((null==e.peer?null:e.peer.alias)||(null==e.peer?null:e.peer.nodeId)),t.xp6(7),t.Oqu(e.peer.nodeId),t.xp6(7),t.Oqu(null==e.peer?null:e.peer.address),t.xp6(5),t.Oqu(t.lcZ(26,4,null==e.peer?null:e.peer.state))}}function Xo(n,a){if(1&n&&t.YNc(0,$o,27,6,"mat-expansion-panel",38),2&n){const e=t.oxw();t.Q6J("ngIf",e.peer)}}let Ot=(()=>{class n{constructor(e,i,o,s){this.dialogRef=e,this.data=i,this.store=o,this.actions=s,this.selNode={},this.selectedPeer=new d.NI,this.faExclamationTriangle=L.eHv,this.channelConnectionError="",this.advancedTitle="Advanced Options",this.totalBalance=0,this.selectedPubkey="",this.isPrivate=!1,this.feeRate=null,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.data.message?(this.information=this.data.message.information,this.totalBalance=this.data.message.balance,this.peer=this.data.message.peer||null,this.peers=this.data.message.peers||[]):(this.information={},this.totalBalance=0,this.peer=null,this.peers=[]),this.alertTitle=this.data.alertTitle||"Alert",this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(o=>{this.selNode=o,this.isPrivate=!!(null==o?void 0:o.unannouncedChannels)}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(o=>o.type===l.lr.UPDATE_API_CALL_STATUS_ECL||o.type===l.lr.FETCH_CHANNELS_ECL)).subscribe(o=>{o.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&o.payload.status===l.Bn.ERROR&&"SaveNewChannel"===o.payload.action&&(this.channelConnectionError=o.payload.message),o.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close()});let e="",i="";this.sortedPeers=this.peers.sort((o,s)=>(e=o.alias?o.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",i=s.alias?s.alias.toLowerCase():o.nodeId?o.nodeId.toLowerCase():"",ei?1:0)),this.filteredPeers=this.selectedPeer.valueChanges.pipe((0,_.R)(this.unSubs[2]),(0,ko.O)(""),(0,Ft.U)(o=>"string"==typeof o?o:o.alias?o.alias:o.nodeId),(0,Ft.U)(o=>o?this.filterPeers(o):this.sortedPeers.slice()))}filterPeers(e){var i;return null===(i=this.sortedPeers)||void 0===i?void 0:i.filter(o=>{var s;return 0===(null===(s=o.alias)||void 0===s?void 0:s.toLowerCase().indexOf(e?e.toLowerCase():""))})}displayFn(e){return e&&e.alias?e.alias:e&&e.nodeId?e.nodeId:""}onSelectedPeerChanged(){var e;if(this.channelConnectionError="",this.selectedPubkey=this.selectedPeer.value&&this.selectedPeer.value.nodeId?this.selectedPeer.value.nodeId:null,"string"==typeof this.selectedPeer.value){const i=null===(e=this.peers)||void 0===e?void 0:e.filter(o=>{var s,c;return(null===(s=o.alias)||void 0===s?void 0:s.length)===this.selectedPeer.value.length&&0===(null===(c=o.alias)||void 0===c?void 0:c.toLowerCase().indexOf(this.selectedPeer.value?this.selectedPeer.value.toLowerCase():""))});1===i.length&&i[0].nodeId&&(this.selectedPubkey=i[0].nodeId)}this.selectedPeer.setErrors(this.selectedPeer.value&&!this.selectedPubkey?{notfound:!0}:null)}onClose(){this.dialogRef.close(!1)}resetData(){var e;this.feeRate=null,this.selectedPeer.setValue(""),this.fundingAmount=null,this.isPrivate=!!(null===(e=this.selNode)||void 0===e?void 0:e.unannouncedChannels),this.channelConnectionError="",this.advancedTitle="Advanced Options",this.form.resetForm()}onAdvancedPanelToggle(e){this.advancedTitle="Advanced Options",e&&this.feeRate&&this.feeRate>0&&(this.advancedTitle=this.advancedTitle+" | Fee (Sats/vByte): "+this.feeRate)}onOpenChannel(){if(!this.peer&&!this.selectedPubkey||!this.fundingAmount||this.totalBalance-this.fundingAmount<0)return!0;const e={nodeId:this.peer&&this.peer.nodeId?this.peer.nodeId:this.selectedPubkey,amount:this.fundingAmount,private:this.isPrivate};this.feeRate&&(e.feeRate=this.feeRate),this.store.dispatch((0,U.YX)({payload:e}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(w.yh),t.Y36(X.eX))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-open-channel"]],viewQuery:function(e,i){if(1&e&&t.Gf(Jo,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:48,vars:18,consts:[["fxLayout","row"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","space-between center",1,"modal-info-header"],["fxFlex","95","fxLayoutAlign","start start"],[1,"page-title"],["tabindex","11","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","70","fxLayoutAlign","start end"],["matInput","","placeholder","Amount","type","number","tabindex","1","required","","name","amount",3,"ngModel","step","min","max","ngModelChange"],["amount","ngModel"],["matSuffix",""],[4,"ngIf"],["fxFlex","25","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","100","fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","49"],["matInput","","placeholder","Fee (Sats/vByte)","type","number","name","fee","tabindex","7",3,"ngModel","step","min","ngModelChange"],["fee","ngModel"],["fxFlex","100","class","alert alert-danger mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",1,"mt-2"],["mat-button","","color","primary","tabindex","9","type","reset",1,"mr-1"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","10"],["peerDetailsExpansionBlock",""],["type","text","placeholder","Peer Alias","aria-label","Peers","matInput","","tabindex","1","required","",3,"formControl","matAutocomplete","change"],[3,"displayWith","optionSelected"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[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,i){if(1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"form",7,8),t.NdJ("submit",function(){return i.onOpenChannel()})("reset",function(){return i.resetData()}),t.TgZ(11,"div",9),t.YNc(12,Bo,8,8,"mat-form-field",10),t.qZA(),t.YNc(13,Ho,1,0,"ng-container",11),t.TgZ(14,"div",9)(15,"div",12)(16,"mat-form-field",13)(17,"input",14,15),t.NdJ("ngModelChange",function(s){return i.fundingAmount=s}),t.qZA(),t.TgZ(19,"mat-hint"),t._uU(20),t.ALo(21,"number"),t.qZA(),t.TgZ(22,"span",16),t._uU(23," Sats "),t.qZA(),t.YNc(24,zo,2,0,"mat-error",17),t.YNc(25,Vo,2,1,"mat-error",17),t.qZA(),t.TgZ(26,"div",18)(27,"mat-slide-toggle",19),t.NdJ("ngModelChange",function(s){return i.isPrivate=s}),t._uU(28,"Private Channel"),t.qZA()()(),t.TgZ(29,"mat-expansion-panel",20),t.NdJ("closed",function(){return i.onAdvancedPanelToggle(!0)})("opened",function(){return i.onAdvancedPanelToggle(!1)}),t.TgZ(30,"mat-expansion-panel-header")(31,"mat-panel-title")(32,"span"),t._uU(33),t.qZA()()(),t.TgZ(34,"div",21)(35,"div",12)(36,"div",22)(37,"mat-form-field",23)(38,"input",24,25),t.NdJ("ngModelChange",function(s){return i.feeRate=s}),t.qZA()()()()()()(),t.YNc(40,Wo,3,2,"div",26),t.TgZ(41,"div",27)(42,"button",28),t._uU(43,"Clear Fields"),t.qZA(),t.TgZ(44,"button",29),t._uU(45,"Open Channel"),t.qZA()()()()()(),t.YNc(46,Xo,1,1,"ng-template",null,30,t.W1O)),2&e){const o=t.MAs(18),s=t.MAs(47);t.xp6(5),t.Oqu(i.alertTitle),t.xp6(7),t.Q6J("ngIf",!i.peer&&i.peers&&i.peers.length>0),t.xp6(1),t.Q6J("ngTemplateOutlet",s),t.xp6(4),t.Q6J("ngModel",i.fundingAmount)("step",1e3)("min",1)("max",i.totalBalance),t.xp6(3),t.hij("Remaining Bal: ",t.lcZ(21,16,i.totalBalance-(i.fundingAmount?i.fundingAmount:0)),""),t.xp6(4),t.Q6J("ngIf",null==o.errors?null:o.errors.required),t.xp6(1),t.Q6J("ngIf",null==o.errors?null:o.errors.max),t.xp6(2),t.Q6J("ngModel",i.isPrivate),t.xp6(6),t.Oqu(i.advancedTitle),t.xp6(5),t.Q6J("ngModel",i.feeRate)("step",1)("min",0),t.xp6(2),t.Q6J("ngIf",""!==i.channelConnectionError)}},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,b.dn,d._Y,d.JL,d.F,u.O5,y.KE,Y.Nt,d.Fj,qt.ZL,d.Q7,d.JJ,d.oH,qt.XC,u.sg,z.ey,y.TO,u.tP,d.wV,d.qQ,d.Fd,tt.q,Do.F,d.On,y.bx,y.R9,Nt.Rr,V.ib,V.yz,V.yK,q.BN,j.h,K.d],pipes:[u.Ov,u.JJ,u.rS],styles:[".open-inputs-box[_ngcontent-%COMP%]{padding:1.2rem 2.4rem .8rem!important}"]}),n})();function Ko(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Open"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfOpenChannels)}}function jo(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Pending"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfPendingChannels)}}function ts(n,a){if(1&n&&(t.TgZ(0,"span",7),t._uU(1,"Inactive"),t.qZA()),2&n){const e=t.oxw();t.s9C("matBadge",e.numOfInactiveChannels)}}let es=(()=>{class n{constructor(e,i,o){this.logger=e,this.store=i,this.router=o,this.numOfOpenChannels=0,this.numOfPendingChannels=0,this.numOfInactiveChannels=0,this.selNode={},this.information={},this.peers=[],this.totalBalance=0,this.links=[{link:"open",name:"Open"},{link:"pending",name:"Pending"},{link:"inactive",name:"Inactive"}],this.activeLink=0,this.unSubs=[new p.x,new p.x,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,_.R)(this.unSubs[0]),(0,Q.h)(e=>e instanceof x.Av)).subscribe({next:e=>{this.activeLink=this.links.findIndex(i=>i.link===e.urlAfterRedirects.substring(e.urlAfterRedirects.lastIndexOf("/")+1))}}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.numOfOpenChannels=e.channelsStatus&&e.channelsStatus.active&&e.channelsStatus.active.channels?e.channelsStatus.active.channels:0,this.numOfPendingChannels=e.channelsStatus&&e.channelsStatus.pending&&e.channelsStatus.pending.channels?e.channelsStatus.pending.channels:0,this.numOfInactiveChannels=e.channelsStatus&&e.channelsStatus.inactive&&e.channelsStatus.inactive.channels?e.channelsStatus.inactive.channels:0,this.logger.info(e)}),this.store.select(C.LR).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.selNode=e}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.peers=e.peers}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[5])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}onOpenChannel(){this.store.dispatch((0,E.qR)({payload:{data:{alertTitle:"Open Channel",message:{peers:this.peers,information:this.information,balance:this.totalBalance},component:Ot}}}))}onSelectedTabChange(e){this.router.navigateByUrl("/ecl/connections/channels/"+this.links[e.index].link)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channels-tables"]],decls:14,vars:1,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["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,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"button",2),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(3,"Open Channel"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-tab-group",4),t.NdJ("selectedIndexChange",function(s){return i.activeLink=s})("selectedTabChange",function(s){return i.onSelectedTabChange(s)}),t.TgZ(6,"mat-tab"),t.YNc(7,Ko,2,1,"ng-template",5),t.qZA(),t.TgZ(8,"mat-tab"),t.YNc(9,jo,2,1,"ng-template",5),t.qZA(),t.TgZ(10,"mat-tab"),t.YNc(11,ts,2,1,"ng-template",5),t.qZA()(),t.TgZ(12,"div",6),t._UZ(13,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(5),t.Q6J("selectedIndex",i.activeLink))},directives:[m.xw,m.yH,m.Wh,N.lW,R.SP,R.uX,R.uD,Et.k,x.lC],styles:[""]}),n})();function ns(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"Short Channel ID"),t.qZA(),t.TgZ(3,"span",13),t._uU(4),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(e.channel.shortChannelId)}}function is(n,a){if(1&n&&(t.TgZ(0,"div",11)(1,"h4",12),t._uU(2,"State"),t.qZA(),t.TgZ(3,"span",15),t._uU(4),t.ALo(5,"titlecase"),t.qZA()()),2&n){const e=t.oxw();t.xp6(4),t.Oqu(t.lcZ(5,1,e.channel.state))}}function as(n,a){if(1&n&&(t.TgZ(0,"div")(1,"div",9)(2,"div",11)(3,"h4",12),t._uU(4,"Local Balance (Sats)"),t.qZA(),t.TgZ(5,"span",15),t._uU(6),t.ALo(7,"number"),t.qZA()(),t.TgZ(8,"div",11)(9,"h4",12),t._uU(10,"Remote Balance (Sats)"),t.qZA(),t.TgZ(11,"span",15),t._uU(12),t.ALo(13,"number"),t.qZA()()(),t._UZ(14,"mat-divider",14),t.TgZ(15,"div",9)(16,"div",11)(17,"h4",12),t._uU(18,"Base Fee (mSats)"),t.qZA(),t.TgZ(19,"span",15),t._uU(20),t.ALo(21,"number"),t.qZA()(),t.TgZ(22,"div",11)(23,"h4",12),t._uU(24,"Fee Rate (mili mSats)"),t.qZA(),t.TgZ(25,"span",15),t._uU(26),t.ALo(27,"number"),t.qZA()()(),t._UZ(28,"mat-divider",14),t.qZA()),2&n){const e=t.oxw();t.xp6(6),t.Oqu(t.lcZ(7,6,e.channel.toLocal)),t.xp6(6),t.Oqu(t.lcZ(13,8,e.channel.toRemote)),t.xp6(2),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(21,10,e.channel.feeBaseMsat)),t.xp6(6),t.Oqu(t.lcZ(27,12,e.channel.feeProportionalMillionths)),t.xp6(2),t.Q6J("inset",!0)}}function os(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Show Advanced"),t.qZA())}function ss(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Hide Advanced"),t.qZA())}function ls(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",21),t.NdJ("click",function(){return t.CHM(e),t.oxw().onShowAdvanced()}),t.YNc(1,os,2,0,"p",22),t.YNc(2,ss,2,0,"ng-template",null,23,t.W1O),t.qZA()}if(2&n){const e=t.MAs(3),i=t.oxw();t.xp6(1),t.Q6J("ngIf",!i.showAdvanced)("ngIfElse",e)}}function rs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",24),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Short Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.shortChannelId)}}function cs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"button",25),t.NdJ("copied",function(o){return t.CHM(e),t.oxw().onCopyChanID(o)}),t._uU(1,"Copy Channel ID"),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("payload",e.channel.channelId)}}const us=function(n){return{"xs-scroll-y":n}},ps=function(n,a){return{"mt-2":n,"mt-1":a}};let mt=(()=>{class n{constructor(e,i,o,s,c){this.dialogRef=e,this.data=i,this.logger=o,this.commonService=s,this.snackBar=c,this.faReceipt=L.dLy,this.showAdvanced=!1,this.channelsType="open",this.screenSize="",this.screenSizeEnum=l.cu}ngOnInit(){this.channel=this.data.channel,this.channelsType=this.data.channelsType||"",this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyChanID(e){this.snackBar.open("open"===this.channelsType?"Short channel ID "+e+" copied.":"Channel ID copied."),this.logger.info("Copied Text: "+e)}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(O.mQ),t.Y36(P.v),t.Y36(wt.ux))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-information"]],decls:64,vars:28,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",4,"ngIf"],["fxFlex","50"],["fxLayoutAlign","start",1,"font-bold-500"],[1,"foreground-secondary-text"],[1,"my-1",3,"inset"],[1,"overflow-wrap","foreground-secondary-text"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center","fxFlex","100",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1","class","mr-1",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","3","type","submit","rtlClipboard","",3,"payload","copied"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span",5),t._uU(6,"Channel Information"),t.qZA()(),t.TgZ(7,"button",6),t.NdJ("click",function(){return i.onClose()}),t._uU(8,"X"),t.qZA()(),t.TgZ(9,"mat-card-content",7)(10,"div",8)(11,"div",9),t.YNc(12,ns,5,1,"div",10),t.TgZ(13,"div",11)(14,"h4",12),t._uU(15,"Peer Alias"),t.qZA(),t.TgZ(16,"span",13),t._uU(17),t.qZA()(),t.YNc(18,is,6,3,"div",10),t.qZA(),t._UZ(19,"mat-divider",14),t.TgZ(20,"div",9)(21,"div",1)(22,"h4",12),t._uU(23,"Channel ID"),t.qZA(),t.TgZ(24,"span",13),t._uU(25),t.qZA()()(),t._UZ(26,"mat-divider",14),t.TgZ(27,"div",9)(28,"div",1)(29,"h4",12),t._uU(30,"Peer Public Key"),t.qZA(),t.TgZ(31,"span",13),t._uU(32),t.qZA()()(),t._UZ(33,"mat-divider",14),t.TgZ(34,"div",9)(35,"div",11)(36,"h4",12),t._uU(37,"Private"),t.qZA(),t.TgZ(38,"span",15),t._uU(39),t.qZA()(),t.TgZ(40,"div",11)(41,"h4",12),t._uU(42,"Funder"),t.qZA(),t.TgZ(43,"span",15),t._uU(44),t.qZA()()(),t._UZ(45,"mat-divider",14),t.TgZ(46,"div",9)(47,"div",11)(48,"h4",12),t._uU(49,"State"),t.qZA(),t.TgZ(50,"span",15),t._uU(51),t.ALo(52,"titlecase"),t.qZA()(),t.TgZ(53,"div",11)(54,"h4",12),t._uU(55,"Buried"),t.qZA(),t.TgZ(56,"span",15),t._uU(57),t.qZA()()(),t._UZ(58,"mat-divider",14),t.YNc(59,as,29,14,"div",16),t.TgZ(60,"div",17),t.YNc(61,ls,4,2,"button",18),t.YNc(62,rs,2,1,"button",19),t.YNc(63,cs,2,1,"button",20),t.qZA()()()()()),2&e&&(t.xp6(4),t.Q6J("icon",i.faReceipt),t.xp6(5),t.Q6J("ngClass",t.VKq(23,us,i.screenSize===i.screenSizeEnum.XS)),t.xp6(3),t.Q6J("ngIf","open"===i.channelsType),t.xp6(5),t.Oqu(i.channel.alias),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.channelId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.nodeId),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(i.channel.announceChannel?"No":"Yes"),t.xp6(5),t.Oqu(i.channel.isFunder?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(6),t.Oqu(t.lcZ(52,21,i.channel.state)),t.xp6(6),t.Oqu(i.channel.buried?"Yes":"No"),t.xp6(1),t.Q6J("inset",!0),t.xp6(1),t.Q6J("ngIf",i.showAdvanced&&"open"===i.channelsType),t.xp6(1),t.Q6J("ngClass",t.WLB(25,ps,!i.showAdvanced,i.showAdvanced)),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"===i.channelsType),t.xp6(1),t.Q6J("ngIf","open"!==i.channelsType))},directives:[m.xw,m.Wh,m.yH,b.dk,q.BN,N.lW,b.dn,u.mk,Z.oO,u.O5,K.d,j.h,It.y],pipes:[u.rS,u.JJ],styles:[""]}),n})();function ms(n,a){if(1&n&&(t.TgZ(0,"mat-option",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function ds(n,a){1&n&&t._UZ(0,"mat-progress-bar",39)}function hs(n,a){1&n&&t._UZ(0,"th",40)}function _s(n,a){if(1&n&&(t.TgZ(0,"span",44),t._UZ(1,"fa-icon",45),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function gs(n,a){if(1&n&&(t.TgZ(0,"span",46),t._UZ(1,"fa-icon",45),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}function fs(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,_s,2,1,"span",42),t.YNc(2,gs,2,1,"span",43),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==e?null:e.announceChannel)}}function Cs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Short Channel ID"),t.qZA())}function xs(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.shortChannelId)}}function ys(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Channel ID"),t.qZA())}const dt=function(n){return{width:n}};function vs(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function Ts(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Alias"),t.qZA())}function Ls(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function bs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Node ID"),t.qZA())}function Ss(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,dt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function Zs(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Funder"),t.qZA())}function As(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.isFunder?"Yes":"No")}}function Es(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Buried"),t.qZA())}function ws(n,a){if(1&n&&(t.TgZ(0,"td",41),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.buried?"Yes":"No")}}function Is(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Base Fee (mSats)"),t.qZA())}function Fs(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeBaseMsat,"1.0-0")," ")}}function qs(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Fee Rate (mili mSats)"),t.qZA())}function Ns(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeProportionalMillionths,"1.0-0")," ")}}function Os(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Local Balance (Sats)"),t.qZA())}function Ps(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Us(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function Rs(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function ks(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Fee/KW"),t.qZA())}function Ds(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeRatePerKw,"1.0-0")," ")}}function Js(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Balance Score"),t.qZA())}function Ms(n,a){if(1&n&&(t.TgZ(0,"td",41)(1,"div",52)(2,"mat-hint",53),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",54),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",null!=e&&e.toLocal&&(null==e?null:e.toLocal)>0?+(null==e?null:e.toLocal)/(+(null==e?null:e.toLocal)+ +(null==e?null:e.toRemote))*100:0)}}function Qs(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",55)(1,"div",56)(2,"mat-select",57),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().onChannelUpdate("all")}),t._uU(5,"Update Fee Policy"),t.qZA(),t.TgZ(6,"mat-option",58),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(7,"Download CSV"),t.qZA()()()()}}function Ys(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",59)(1,"div",56)(2,"mat-select",60),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",58),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",58),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelUpdate(s)}),t._uU(7,"Update Fee Policy"),t.qZA(),t.TgZ(8,"mat-option",58),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!1)}),t._uU(9,"Close Channel"),t.qZA(),t.TgZ(10,"mat-option",58),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(11,"Force Close"),t.qZA()()()()}}function Bs(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No peers connected. Add a peer in order to open a channel?."),t.qZA())}function Hs(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No channel available."),t.qZA())}function zs(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting channels..."),t.qZA())}function Vs(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Gs(n,a){if(1&n&&(t.TgZ(0,"td",61),t.YNc(1,Bs,2,0,"p",62),t.YNc(2,Hs,2,0,"p",62),t.YNc(3,zs,2,0,"p",62),t.YNc(4,Vs,2,1,"p",62),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.numPeers<1&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",e.numPeers>0&&(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Ws=function(n){return{"display-none":n}};function $s(n,a){if(1&n&&t._UZ(0,"tr",63),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Ws,e.numPeers>0&&(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Xs(n,a){1&n&&t._UZ(0,"tr",64)}function Ks(n,a){1&n&&t._UZ(0,"tr",65)}const js=function(){return["all"]},tl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},el=function(){return["no_peer"]};let nl=(()=>{class n{constructor(e,i,o,s,c,h){var g,v,B,T,F,gt;this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.router=c,this.camelCaseWithSpaces=h,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"open_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new r.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize(),this.selFilter=(null===(B=null===(v=null===(g=this.router.getCurrentNavigation())||void 0===g?void 0:g.extras)||void 0===v?void 0:v.state)||void 0===B?void 0:B.filter)?null===(gt=null===(F=null===(T=this.router.getCurrentNavigation())||void 0===T?void 0:T.extras)||void 0===F?void 0:F.state)||void 0===gt?void 0:gt.filter:""}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.activeChannels=e.activeChannels,this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.activeChannels.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadChannelsTable()}onChannelUpdate(e){"all"!==e&&"NORMAL"!==e.state||(this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Update Fee Policy",noBtnText:"Cancel",yesBtnText:"Update",message:[],titleMessage:"all"===e?"Update fee policy for all channels":"Update fee policy for Channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),flgShowInput:!0,getInputs:[{placeholder:"Base Fee (mSats)",inputType:"number",inputValue:e&&void 0!==e.feeBaseMsat?e.feeBaseMsat:1e3,width:48},{placeholder:"Fee Rate (mili mSats)",inputType:"number",inputValue:e&&void 0!==e.feeProportionalMillionths?e.feeProportionalMillionths:100,min:1,width:48,hintFunction:this.percentHintFunction}]}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(s=>{if(s){const c=s[0].inputValue,h=s[1].inputValue;let g=null;if(this.commonService.isVersionCompatible(this.information.version,"0.6.2")){let v="";"all"===e?(this.activeChannels.forEach(B=>{v=v+","+B.nodeId}),v=v.substring(1),g={baseFeeMsat:c,feeRate:h,nodeIds:v}):g={baseFeeMsat:c,feeRate:h,nodeId:e.nodeId}}else{let v="";"all"===e?(this.activeChannels.forEach(B=>{v=v+","+B.channelId}),v=v.substring(1),g={baseFeeMsat:c,feeRate:h,channelIds:v}):g={baseFeeMsat:c,feeRate:h,channelId:e.channelId}}this.store.dispatch((0,U.pW)({payload:g}))}}),this.applyFilter())}percentHintFunction(e){return(e/1e4).toString()+"%"}onChannelClose(e,i){this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[6])).subscribe(h=>{h&&this.store.dispatch((0,U.BL)({payload:{channelId:e.channelId,force:i}}))})}onChannelClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{channel:e,channelsType:"open",component:mt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,i)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(e).toLowerCase();break;case"announceChannel":o=(null==e?void 0:e.announceChannel)?"public":"private";break;default:o=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return o.includes(i)}}loadChannelsTable(){var e;this.channels=new r.by([...this.activeChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,null===(e=this.channels.sort)||void 0===e||e.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"ActiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(nt.V),t.Y36(P.v),t.Y36(x.F0),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-open-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Channels")}])],decls:61,vars:16,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","shortChannelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isFunder"],["matColumnDef","buried"],["matColumnDef","feeBaseMsat"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","feeProportionalMillionths"],["matColumnDef","toLocal"],["matColumnDef","toRemote"],["matColumnDef","feeRatePerKw"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-select",5),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(6,ms,2,2,"mat-option",6),t.qZA()(),t.TgZ(7,"mat-form-field",4)(8,"input",7),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(9,"div",8),t.YNc(10,ds,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,hs,1,0,"th",13),t.YNc(15,fs,3,2,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Cs,2,0,"th",16),t.YNc(18,xs,2,1,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,ys,2,0,"th",16),t.YNc(21,vs,4,4,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,Ts,2,0,"th",16),t.YNc(24,Ls,4,4,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,bs,2,0,"th",16),t.YNc(27,Ss,4,4,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,Zs,2,0,"th",16),t.YNc(30,As,2,1,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,Es,2,0,"th",16),t.YNc(33,ws,2,1,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,Is,2,0,"th",23),t.YNc(36,Fs,4,4,"td",14),t.BQk(),t.ynx(37,24),t.YNc(38,qs,2,0,"th",23),t.YNc(39,Ns,4,4,"td",14),t.BQk(),t.ynx(40,25),t.YNc(41,Os,2,0,"th",23),t.YNc(42,Ps,4,4,"td",14),t.BQk(),t.ynx(43,26),t.YNc(44,Us,2,0,"th",23),t.YNc(45,Rs,4,4,"td",14),t.BQk(),t.ynx(46,27),t.YNc(47,ks,2,0,"th",23),t.YNc(48,Ds,4,4,"td",14),t.BQk(),t.ynx(49,28),t.YNc(50,Js,2,0,"th",16),t.YNc(51,Ms,6,4,"td",14),t.BQk(),t.ynx(52,29),t.YNc(53,Qs,8,0,"th",30),t.YNc(54,Ys,12,0,"td",31),t.BQk(),t.ynx(55,32),t.YNc(56,Gs,5,4,"td",33),t.BQk(),t.YNc(57,$s,1,3,"tr",34),t.YNc(58,Xs,1,0,"tr",35),t.YNc(59,Ks,1,0,"tr",36),t.qZA()(),t._UZ(60,"mat-paginator",37),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(12,js).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(13,tl,""!==i.errorMessage)),t.xp6(46),t.Q6J("matFooterRowDef",t.DdM(15,el)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,q.BN,u.PC,Z.Zl,y.bx,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:2rem;min-width:15rem;max-width:30rem}"]}),n})();function il(n,a){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function al(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function ol(n,a){1&n&&t._UZ(0,"th",37)}function sl(n,a){if(1&n&&(t.TgZ(0,"span",41),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function ll(n,a){if(1&n&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}function rl(n,a){if(1&n&&(t.TgZ(0,"td",38),t.YNc(1,sl,2,1,"span",39),t.YNc(2,ll,2,1,"span",40),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",!(null!=e&&e.announceChannel)),t.xp6(1),t.Q6J("ngIf",null==e?null:e.announceChannel)}}function cl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"State"),t.qZA())}function ul(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.state))}}function pl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Channel ID"),t.qZA())}const Pt=function(n){return{width:n}};function ml(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function dl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Alias"),t.qZA())}function hl(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.alias)}}function _l(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Node ID"),t.qZA())}function gl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",45)(2,"span",46),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Pt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function fl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Funder"),t.qZA())}function Cl(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.isFunder?"Yes":"No")}}function xl(n,a){1&n&&(t.TgZ(0,"th",44),t._uU(1,"Buried"),t.qZA())}function yl(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.buried?"Yes":"No")}}function vl(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Local Balance (Sats)"),t.qZA())}function Tl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function Ll(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function bl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function Sl(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Fee/KW"),t.qZA())}function Zl(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"span",48),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeRatePerKw,"1.0-0")," ")}}function Al(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",49)(1,"div",50)(2,"mat-select",51),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",52),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function El(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",53)(1,"button",54),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function wl(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No pending channel available."),t.qZA())}function Il(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting pending channels..."),t.qZA())}function Fl(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function ql(n,a){if(1&n&&(t.TgZ(0,"td",55),t.YNc(1,wl,2,0,"p",56),t.YNc(2,Il,2,0,"p",56),t.YNc(3,Fl,2,1,"p",56),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Nl=function(n){return{"display-none":n}};function Ol(n,a){if(1&n&&t._UZ(0,"tr",57),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Nl,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Pl(n,a){1&n&&t._UZ(0,"tr",58)}function Ul(n,a){1&n&&t._UZ(0,"tr",59)}const Rl=function(){return["all"]},kl=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Dl=function(){return["no_channel"]};let Jl=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.store=i,this.commonService=o,this.camelCaseWithSpaces=s,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"pending_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new r.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.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()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.pendingChannels=e.pendingChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.pendingChannels.length>0&&this.loadChannelsTable()}onChannelClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{channel:e,channelsType:"pending",component:mt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,i)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(e).toLowerCase();break;case"announceChannel":o=(null==e?void 0:e.announceChannel)?"public":"private";break;default:o=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return o.includes(i)}}loadChannelsTable(){var e;this.channels=new r.by([...this.pendingChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,null===(e=this.channels.sort)||void 0===e||e.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"PendingChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(P.v),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-pending-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Channels")}])],decls:52,vars:16,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isFunder"],["matColumnDef","buried"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","feeRatePerKw"],["matColumnDef","actions"],["mat-header-cell","",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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-select",5),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(6,il,2,2,"mat-option",6),t.qZA()(),t.TgZ(7,"mat-form-field",4)(8,"input",7),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(9,"div",8),t.YNc(10,al,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,ol,1,0,"th",13),t.YNc(15,rl,3,2,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,cl,2,0,"th",16),t.YNc(18,ul,3,3,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,pl,2,0,"th",16),t.YNc(21,ml,4,4,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,dl,2,0,"th",16),t.YNc(24,hl,2,1,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,_l,2,0,"th",16),t.YNc(27,gl,4,4,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,fl,2,0,"th",16),t.YNc(30,Cl,2,1,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,xl,2,0,"th",16),t.YNc(33,yl,2,1,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,vl,2,0,"th",23),t.YNc(36,Tl,4,4,"td",14),t.BQk(),t.ynx(37,24),t.YNc(38,Ll,2,0,"th",23),t.YNc(39,bl,4,4,"td",14),t.BQk(),t.ynx(40,25),t.YNc(41,Sl,2,0,"th",23),t.YNc(42,Zl,4,4,"td",14),t.BQk(),t.ynx(43,26),t.YNc(44,Al,6,0,"th",27),t.YNc(45,El,3,0,"td",28),t.BQk(),t.ynx(46,29),t.YNc(47,ql,4,3,"td",30),t.BQk(),t.YNc(48,Ol,1,3,"tr",31),t.YNc(49,Pl,1,0,"tr",32),t.YNc(50,Ul,1,0,"tr",33),t.qZA()(),t._UZ(51,"mat-paginator",34),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(12,Rl).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(13,kl,""!==i.errorMessage)),t.xp6(37),t.Q6J("matFooterRowDef",t.DdM(15,Dl)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,q.BN,u.PC,Z.Zl,k.$L,N.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}"]}),n})();var ht=f(5615);const Ml=["peersForm"],Ql=["stepper"];function Yl(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.peerFormLabel)}}function Bl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Address is required."),t.qZA())}function Hl(n,a){if(1&n&&(t.TgZ(0,"div",32),t._UZ(1,"fa-icon",33),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.peerConnectionError)}}function zl(n,a){if(1&n&&t._uU(0),2&n){const e=t.oxw();t.Oqu(e.channelFormLabel)}}function Vl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Gl(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount must be a positive number."),t.qZA())}function Wl(n,a){if(1&n&&(t.TgZ(0,"mat-error"),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.hij("Amount must be less than or equal to ",e.totalBalance,".")}}function $l(n,a){if(1&n&&(t.TgZ(0,"div",32),t._UZ(1,"fa-icon",33),t.TgZ(2,"span"),t._uU(3),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("icon",e.faExclamationTriangle),t.xp6(2),t.Oqu(e.channelConnectionError)}}let Xl=(()=>{class n{constructor(e,i,o,s,c,h){this.dialogRef=e,this.data=i,this.store=o,this.formBuilder=s,this.actions=c,this.logger=h,this.faExclamationTriangle=L.eHv,this.selNode={},this.peerAddress="",this.totalBalance=0,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(){var e;this.data.message?(this.totalBalance=this.data.message.balance,this.peerAddress=this.data.message.peer&&this.data.message.peer.nodeId&&this.data.message.peer.address?this.data.message.peer.nodeId+"@"+this.data.message.peer.address:this.data.message.peer&&this.data.message.peer.nodeId&&!this.data.message.peer.address?this.data.message.peer.nodeId:""):(this.totalBalance=0,this.peerAddress=""),this.peerFormGroup=this.formBuilder.group({hiddenAddress:["",[d.kI.required]],peerAddress:[this.peerAddress,[d.kI.required]]}),this.channelFormGroup=this.formBuilder.group({fundingAmount:["",[d.kI.required,d.kI.min(1),d.kI.max(this.totalBalance)]],isPrivate:[!!(null===(e=this.selNode)||void 0===e?void 0:e.unannouncedChannels)],feeRate:[null],hiddenAmount:["",[d.kI.required]]}),this.statusFormGroup=this.formBuilder.group({}),this.store.select(C.LR).pipe((0,_.R)(this.unSubs[0])).subscribe(i=>{this.selNode=i,this.channelFormGroup.controls.isPrivate.setValue(!!(null==i?void 0:i.unannouncedChannels))}),this.actions.pipe((0,_.R)(this.unSubs[1]),(0,Q.h)(i=>i.type===l.lr.NEWLY_ADDED_PEER_ECL||i.type===l.lr.FETCH_CHANNELS_ECL||i.type===l.lr.UPDATE_API_CALL_STATUS_ECL)).subscribe(i=>{i.type===l.lr.NEWLY_ADDED_PEER_ECL&&(this.logger.info(i.payload),this.flgEditable=!1,this.newlyAddedPeer=i.payload.peer,this.peerFormGroup.controls.hiddenAddress.setValue(this.peerFormGroup.controls.peerAddress.value),this.stepper.next()),i.type===l.lr.FETCH_CHANNELS_ECL&&this.dialogRef.close(),i.type===l.lr.UPDATE_API_CALL_STATUS_ECL&&i.payload.status===l.Bn.ERROR&&("SaveNewPeer"===i.payload.action?this.peerConnectionError=i.payload.message:"SaveNewChannel"===i.payload.action&&(this.channelConnectionError=i.payload.message))})}onConnectPeer(){if(!this.peerFormGroup.controls.peerAddress.value)return!0;this.peerConnectionError="",this.store.dispatch((0,U.El)({payload:{id:this.peerFormGroup.controls.peerAddress.value}}))}onOpenChannel(){var e;if(!this.channelFormGroup.controls.fundingAmount.value||this.totalBalance-this.channelFormGroup.controls.fundingAmount.value<0)return!0;this.channelConnectionError="",this.store.dispatch((0,U.YX)({payload:{nodeId:null===(e=this.newlyAddedPeer)||void 0===e?void 0:e.nodeId,amount:this.channelFormGroup.controls.fundingAmount.value,private:this.channelFormGroup.controls.isPrivate.value,feeRate:this.channelFormGroup.controls.feeRate.value}}))}onClose(){this.dialogRef.close(!1)}stepSelectionChanged(e){var i,o,s,c;switch(e.selectedIndex){case 0:default:this.peerFormLabel="Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 1:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(i=this.newlyAddedPeer)||void 0===i?void 0:i.alias)?this.newlyAddedPeer.alias:null===(o=this.newlyAddedPeer)||void 0===o?void 0:o.nodeId):"Peer Details",this.channelFormLabel="Open Channel (Optional)";break;case 2:this.peerFormLabel=this.peerFormGroup.controls.peerAddress.value?"Peer Added: "+((null===(s=this.newlyAddedPeer)||void 0===s?void 0:s.alias)?this.newlyAddedPeer.alias:null===(c=this.newlyAddedPeer)||void 0===c?void 0:c.nodeId):"Peer Details",this.channelFormLabel=this.channelFormGroup.controls.fundingAmount.value?"Opening Channel for "+this.channelFormGroup.controls.fundingAmount.value+" Sats":"Open Channel (Optional)"}e.selectedIndex{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(J.so),t.Y36(J.WI),t.Y36(w.yh),t.Y36(d.qu),t.Y36(X.eX),t.Y36(O.mQ))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-connect-peer"]],viewQuery:function(e,i){if(1&e&&(t.Gf(Ml,5),t.Gf(Ql,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first),t.iGM(o=t.CRH())&&(i.stepper=o.first)}},decls:48,vars:20,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-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","30","fxLayoutAlign","start end"],["matInput","","autoFocus","","formControlName","fundingAmount","placeholder","Amount","type","number","tabindex","1","required","",3,"step"],["matSuffix",""],["fxFlex","30"],["matInput","","formControlName","feeRate","placeholder","Fee (Sats/vByte)","type","number","name","feeRate","tabindex","7",3,"step","min"],["fxFlex","35","fxLayoutAlign","start center"],["tabindex","2","color","primary","formControlName","isPrivate","name","isPrivate"],["mat-button","","color","primary","tabindex","8","type","button",3,"click"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center"],["mat-button","","color","primary","tabindex","12","type","button","default","",3,"click"],["fxFlex","100",1,"alert","alert-danger","mt-1"],[1,"mr-1","alert-icon",3,"icon"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),t._uU(5,"Connect to a new peer"),t.qZA()(),t.TgZ(6,"button",5),t.NdJ("click",function(){return i.onClose()}),t._uU(7,"X"),t.qZA()(),t.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),t.NdJ("selectionChange",function(s){return i.stepSelectionChanged(s)}),t.TgZ(12,"mat-step",10)(13,"form",11),t.YNc(14,Yl,1,1,"ng-template",12),t.TgZ(15,"mat-form-field",1),t._UZ(16,"input",13),t.YNc(17,Bl,2,0,"mat-error",14),t.qZA(),t.YNc(18,Hl,4,2,"div",15),t.TgZ(19,"div",16)(20,"button",17),t.NdJ("click",function(){return i.onConnectPeer()}),t._uU(21),t.qZA()()()(),t.TgZ(22,"mat-step",10)(23,"form",18),t.YNc(24,zl,1,1,"ng-template",19),t.TgZ(25,"div",20)(26,"div",21)(27,"mat-form-field",22),t._UZ(28,"input",23),t.TgZ(29,"mat-hint"),t._uU(30),t.qZA(),t.TgZ(31,"span",24),t._uU(32," Sats "),t.qZA(),t.YNc(33,Vl,2,0,"mat-error",14),t.YNc(34,Gl,2,0,"mat-error",14),t.YNc(35,Wl,2,1,"mat-error",14),t.qZA(),t.TgZ(36,"mat-form-field",25),t._UZ(37,"input",26),t.qZA(),t.TgZ(38,"div",27)(39,"mat-slide-toggle",28),t._uU(40,"Private Channel"),t.qZA()()()(),t.YNc(41,$l,4,2,"div",15),t.TgZ(42,"div",16)(43,"button",29),t.NdJ("click",function(){return i.onOpenChannel()}),t._uU(44),t.qZA()()()()(),t.TgZ(45,"div",30)(46,"button",31),t.NdJ("click",function(){return i.onClose()}),t._uU(47),t.qZA()()()()()()),2&e&&(t.xp6(10),t.Q6J("linear",!0),t.xp6(2),t.Q6J("stepControl",i.peerFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.peerFormGroup),t.xp6(4),t.Q6J("ngIf",null==i.peerFormGroup.controls.peerAddress.errors?null:i.peerFormGroup.controls.peerAddress.errors.required),t.xp6(1),t.Q6J("ngIf",""!==i.peerConnectionError),t.xp6(3),t.Oqu(""!==i.peerConnectionError?"Retry":"Add Peer"),t.xp6(1),t.Q6J("stepControl",i.channelFormGroup)("editable",i.flgEditable),t.xp6(1),t.Q6J("formGroup",i.channelFormGroup),t.xp6(5),t.Q6J("step",1e3),t.xp6(2),t.hij("Remaining Bal: ",i.totalBalance-(i.channelFormGroup.controls.fundingAmount.value?i.channelFormGroup.controls.fundingAmount.value:0),""),t.xp6(3),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.required),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.min),t.xp6(1),t.Q6J("ngIf",null==i.channelFormGroup.controls.fundingAmount.errors?null:i.channelFormGroup.controls.fundingAmount.errors.max),t.xp6(2),t.Q6J("step",1)("min",0),t.xp6(4),t.Q6J("ngIf",""!==i.channelConnectionError),t.xp6(3),t.Oqu(""!==i.channelConnectionError?"Retry":"Open Channel"),t.xp6(3),t.Oqu(null!=i.newlyAddedPeer&&i.newlyAddedPeer.nodeId?"Do It Later":"Close"))},directives:[m.xw,m.yH,b.dk,m.Wh,N.lW,b.dn,ht.Vq,ht.C0,d._Y,d.JL,d.sg,ht.VY,y.KE,Y.Nt,d.Fj,j.h,d.JJ,d.u,d.Q7,u.O5,y.TO,q.BN,d.wV,y.bx,y.R9,d.qQ,tt.q,Nt.Rr],styles:[""]}),n})();function Kl(n,a){if(1&n&&(t.TgZ(0,"mat-option",35),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function jl(n,a){1&n&&t._UZ(0,"mat-progress-bar",36)}function tr(n,a){1&n&&t._UZ(0,"th",37)}const Ut=function(n){return{"mr-0":n}};function er(n,a){if(1&n&&t._UZ(0,"span",41),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ut,e.screenSize===e.screenSizeEnum.XS))}}function nr(n,a){if(1&n&&t._UZ(0,"span",42),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Ut,e.screenSize===e.screenSizeEnum.XS))}}function ir(n,a){if(1&n&&(t.TgZ(0,"td",38),t.YNc(1,er,1,3,"span",39),t.YNc(2,nr,1,3,"span",40),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state)}}function ar(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Alias"),t.qZA())}const Rt=function(n){return{width:n}};function or(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function sr(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Node ID"),t.qZA())}function lr(n,a){if(1&n&&(t.TgZ(0,"td",38)(1,"div",44)(2,"span",45),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,Rt,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function rr(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Network Address"),t.qZA())}function cr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",null==e?null:e.address," ")}}function ur(n,a){1&n&&(t.TgZ(0,"th",43),t._uU(1,"Channels"),t.qZA())}function pr(n,a){if(1&n&&(t.TgZ(0,"td",38),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.channels)}}function mr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",46)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function dr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onPeerDetach(o)}),t._uU(1,"Disconnect"),t.qZA()}}function hr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"mat-option",49),t.NdJ("click",function(){t.CHM(e);const o=t.oxw().$implicit;return t.oxw().onConnectPeer(o)}),t._uU(1,"Reconnect"),t.qZA()}}function _r(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",50)(1,"div",47)(2,"mat-select",48),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",49),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onPeerClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",49),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onOpenChannel(s)}),t._uU(7,"Open Channel"),t.qZA(),t.YNc(8,dr,2,0,"mat-option",51),t.YNc(9,hr,2,0,"mat-option",51),t.qZA()()()}if(2&n){const e=a.$implicit;t.xp6(8),t.Q6J("ngIf","CONNECTED"===e.state),t.xp6(1),t.Q6J("ngIf","DISCONNECTED"===e.state)}}function gr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No connected peer."),t.qZA())}function fr(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting peers..."),t.qZA())}function Cr(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function xr(n,a){if(1&n&&(t.TgZ(0,"td",52),t.YNc(1,gr,2,0,"p",53),t.YNc(2,fr,2,0,"p",53),t.YNc(3,Cr,2,1,"p",53),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.peers&&e.peers.data)||(null==e.peers||null==e.peers.data?null:e.peers.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const yr=function(n){return{"display-none":n}};function vr(n,a){if(1&n&&t._UZ(0,"tr",54),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,yr,(null==e.peers?null:e.peers.data)&&(null==e.peers||null==e.peers.data?null:e.peers.data.length)>0))}}function Tr(n,a){1&n&&t._UZ(0,"tr",55)}function Lr(n,a){1&n&&t._UZ(0,"tr",56)}const br=function(){return["all"]},Sr=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},Zr=function(){return["no_peer"]};let Ar=(()=>{class n{constructor(e,i,o,s,c,h){this.logger=e,this.store=i,this.rtlEffects=o,this.actions=s,this.commonService=c,this.camelCaseWithSpaces=h,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"peers",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.faUsers=L.FVb,this.newlyAddedPeer="",this.displayedColumns=[],this.peerAddress="",this.peersData=[],this.peers=new r.by([]),this.information={},this.availableBalance=0,this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.selFilter="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.yD).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.information=e}),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("state"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.peersData=e.peers,this.loadPeersTable(this.peersData),this.logger.info(e)}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.availableBalance=e.onchainBalance.total||0}),this.actions.pipe((0,_.R)(this.unSubs[4]),(0,Q.h)(e=>e.type===l.lr.SET_PEERS_ECL)).subscribe(e=>{this.peerAddress=null})}ngAfterViewInit(){this.peersData.length>0&&this.loadPeersTable(this.peersData)}onPeerClick(e,i){const o=[[{key:"nodeId",value:e.nodeId,title:"Public Key",width:100}],[{key:"address",value:e.address,title:"Address",width:50},{key:"alias",value:e.alias,title:"Alias",width:50}],[{key:"state",value:this.commonService.titleCase(e.state||""),title:"State",width:50},{key:"channels",value:e.channels,title:"Channels",width:50}]];this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Peer Information",showQRName:"Public Key",showQRField:e.nodeId,message:o}}}))}onConnectPeer(e){this.store.dispatch((0,E.qR)({payload:{data:{message:{peer:e.nodeId?e:null,information:this.information,balance:this.availableBalance},component:Xl}}}))}onOpenChannel(e){this.store.dispatch((0,E.qR)({payload:{data:{alertTitle:"Open Channel",message:{peer:e,information:this.information,balance:this.availableBalance},newlyAdded:!1,component:Ot}}}))}onPeerDetach(e){this.store.dispatch(e&&e.channels&&e.channels>0?(0,E.qR)({payload:{data:{type:l.n_.ERROR,alertTitle:"Disconnect Not Allowed",titleMessage:"Channel active with this peer."}}}):(0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:"Disconnect Peer",titleMessage:"Disconnect peer: "+(e.alias?e.alias:e.nodeId),noBtnText:"Cancel",yesBtnText:"Disconnect"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(i=>{i&&this.store.dispatch((0,U.GD)({payload:{nodeId:e.nodeId||""}}))})}applyFilter(){this.peers.filter=this.selFilter.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.peers.filterPredicate=(e,i)=>{var o;let s="";switch(this.selFilterBy){case"all":s=JSON.stringify(e).toLowerCase();break;case"state":s=(null===(o=null==e?void 0:e.state)||void 0===o?void 0:o.toLowerCase())||"";break;default:s=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===s.indexOf(i):s.includes(i)}}loadPeersTable(e){var i;this.peers=new r.by(e?[...e]:[]),this.peers.sort=this.sort,this.peers.sortingDataAccessor=(o,s)=>o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,null===(i=this.peers.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.peers.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter()}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 n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(nt.V),t.Y36(X.eX),t.Y36(P.v),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Peers")}])],decls:45,vars:17,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","column","fxLayoutAlign","space-between stretch","fxLayout.gt-sm","row wrap"],["peersForm","ngForm"],["mat-flat-button","","color","primary","type","submit","tabindex","1",3,"click"],["fxLayout","column"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxFlex","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","nodeId"],["matColumnDef","address"],["matColumnDef","channels"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["matColumnDef","no_peer"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","State"],["mat-cell",""],["class","dot green","matTooltip","Connected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red","matTooltip","Disconnected","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["matTooltip","Connected","matTooltipPosition","right",1,"dot","green",3,"ngClass"],["matTooltip","Disconnected","matTooltipPosition","right",1,"dot","red",3,"ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],[3,"click",4,"ngIf"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"form",1,2)(3,"button",3),t.NdJ("click",function(){return i.onConnectPeer({})}),t._uU(4,"Add Peer"),t.qZA()(),t.TgZ(5,"div",4)(6,"div",5)(7,"div",6),t._UZ(8,"fa-icon",7),t.TgZ(9,"span",8),t._uU(10,"Peers"),t.qZA()(),t.TgZ(11,"div",9)(12,"mat-form-field",10)(13,"mat-select",11),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(14,Kl,2,2,"mat-option",12),t.qZA()(),t.TgZ(15,"mat-form-field",10)(16,"input",13),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(17,"div",14),t.YNc(18,jl,1,0,"mat-progress-bar",15),t.TgZ(19,"table",16,17),t.ynx(21,18),t.YNc(22,tr,1,0,"th",19),t.YNc(23,ir,3,2,"td",20),t.BQk(),t.ynx(24,21),t.YNc(25,ar,2,0,"th",22),t.YNc(26,or,4,4,"td",20),t.BQk(),t.ynx(27,23),t.YNc(28,sr,2,0,"th",22),t.YNc(29,lr,4,4,"td",20),t.BQk(),t.ynx(30,24),t.YNc(31,rr,2,0,"th",22),t.YNc(32,cr,2,1,"td",20),t.BQk(),t.ynx(33,25),t.YNc(34,ur,2,0,"th",22),t.YNc(35,pr,2,1,"td",20),t.BQk(),t.ynx(36,26),t.YNc(37,mr,6,0,"th",27),t.YNc(38,_r,10,2,"td",28),t.BQk(),t.ynx(39,29),t.YNc(40,xr,4,3,"td",30),t.BQk(),t.YNc(41,vr,1,3,"tr",31),t.YNc(42,Tr,1,0,"tr",32),t.YNc(43,Lr,1,0,"tr",33),t.qZA()(),t._UZ(44,"mat-paginator",34),t.qZA()()),2&e&&(t.xp6(8),t.Q6J("icon",i.faUsers),t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(13,br).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.peers)("ngClass",t.VKq(14,Sr,""!==i.errorMessage)),t.xp6(22),t.Q6J("matFooterRowDef",t.DdM(16,Zr)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.yH,m.Wh,d._Y,d.JL,d.F,N.lW,q.BN,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,u.PC,Z.Zl,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],styles:[".mat-column-state[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}"]}),n})();const Er=["queryRoutesForm"];function wr(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Destination Node ID is required."),t.qZA())}function Ir(n,a){1&n&&(t.TgZ(0,"mat-error"),t._uU(1,"Amount is required."),t.qZA())}function Fr(n,a){1&n&&t._UZ(0,"mat-progress-bar",21)}function qr(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," Alias"),t.qZA())}const kt=function(n){return{"max-width":n}};function Nr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41)(2,"span",42),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,kt,i.screenSize===i.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function Or(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1," ID"),t.qZA())}function Pr(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",41)(2,"span",42),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,kt,i.screenSize===i.screenSizeEnum.XS?"10rem":"30rem")),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function Ur(n,a){1&n&&(t.TgZ(0,"th",39)(1,"div",43),t._uU(2,"Actions"),t.qZA()())}function Rr(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",44)(1,"button",45),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw(2).onHopClick(s)}),t._uU(2,"View Info"),t.qZA()()}}function kr(n,a){1&n&&t._UZ(0,"tr",46)}function Dr(n,a){1&n&&t._UZ(0,"tr",47)}const Jr=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}};function Mr(n,a){if(1&n&&(t.TgZ(0,"div",22)(1,"mat-expansion-panel",23)(2,"mat-expansion-panel-header")(3,"mat-panel-title",24)(4,"span",25),t._uU(5),t.qZA(),t.TgZ(6,"span",26),t._uU(7),t.ALo(8,"number"),t.qZA()()(),t.TgZ(9,"mat-panel-description",27)(10,"div",28)(11,"table",29,30),t.ynx(13,31),t.YNc(14,qr,2,0,"th",32),t.YNc(15,Nr,4,4,"td",33),t.BQk(),t.ynx(16,34),t.YNc(17,Or,2,0,"th",32),t.YNc(18,Pr,4,4,"td",33),t.BQk(),t.ynx(19,35),t.YNc(20,Ur,3,0,"th",32),t.YNc(21,Rr,3,0,"td",36),t.BQk(),t.YNc(22,kr,1,0,"tr",37),t.YNc(23,Dr,1,0,"tr",38),t.qZA()()()()()),2&n){const e=a.$implicit,i=a.index,o=t.oxw();t.xp6(5),t.hij("Route ",i+1,""),t.xp6(2),t.Oqu(t.lcZ(8,6,e.amount/1e3)),t.xp6(4),t.Q6J("dataSource",o.qrHops[i])("ngClass",t.VKq(8,Jr,"error"===o.flgLoading[0])),t.xp6(11),t.Q6J("matHeaderRowDef",o.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",o.displayedColumns)}}let Qr=(()=>{class n{constructor(e,i,o){this.store=e,this.eclEffects=i,this.commonService=o,this.allQRoutes=[],this.nodeId="",this.amount=0,this.qrHops=[],this.displayedColumns=["alias","nodeId","actions"],this.flgLoading=[!1],this.faRoute=L.FpQ,this.faExclamationTriangle=L.eHv,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.qrHops[0]=new r.by([]),this.qrHops[0].data=[],this.eclEffects.setQueryRoutes.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{e&&e.routes&&e.routes.length?(this.flgLoading[0]=!1,this.allQRoutes=e.routes,this.allQRoutes.forEach((i,o)=>{this.qrHops[o]=new r.by([...i.nodeIds])})):(this.flgLoading[0]="error",this.allQRoutes=[],this.qrHops=[])})}onQueryRoutes(){if(!this.nodeId||!this.amount)return!0;this.qrHops=[],this.flgLoading[0]=!0,this.store.dispatch((0,U.WO)({payload:{nodeId:this.nodeId,amount:1e3*this.amount}}))}resetData(){this.allQRoutes=[],this.nodeId="",this.amount=0,this.flgLoading[0]=!1,this.qrHops=[],this.form.resetForm()}onHopClick(e){this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Route Information",message:[[{key:"alias",value:e.alias,title:"Alias",width:100,type:l.Gi.STRING}],[{key:"nodeId",value:e.nodeId,title:"Node ID",width:100,type:l.Gi.STRING}]]}}}))}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(w.yh),t.Y36(ct.o),t.Y36(P.v))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-query-routes"]],viewQuery:function(e,i){if(1&e&&t.Gf(Er,7),2&e){let o;t.iGM(o=t.CRH())&&(i.form=o.first)}},decls:28,vars:10,consts:[["fxLayout","column","fxFlex","100"],["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 Node ID","name","nodeId","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-1"],["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","fxLayoutAlign","start center",1,"page-sub-title-container","mt-2","mb-1"],["fxFlex","70"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["mode","indeterminate",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","start start",1,"padding-gap-x"],["fxFlex","100",4,"ngFor","ngForOf"],["mode","indeterminate"],["fxFlex","100"],[1,"flat-expansion-panel","help-expansion","mb-2px"],["fxLayout","row","fxLayoutAlign","space-between start"],["fxFlex","50","fxLayoutAlign","start start"],["fxFlex","50","fxLayoutAlign","end end"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch"],["fxLayout","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"table-container","mb-2",3,"perfectScrollbar"],["mat-table","",3,"dataSource","ngClass"],["table[i]",""],["matColumnDef","alias"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","nodeId"],["matColumnDef","actions"],["mat-cell","","fxLayoutAlign","end center",4,"matCellDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mat-header-cell",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-header-row",""],["mat-row",""]],template:function(e,i){if(1&e){const o=t.EpF();t.TgZ(0,"div",0)(1,"form",1,2),t.NdJ("ngSubmit",function(){return t.CHM(o),t.MAs(2).form.valid&&i.onQueryRoutes()}),t.TgZ(3,"div",3),t._UZ(4,"fa-icon",4),t.TgZ(5,"span"),t._uU(6,"The actual routing fee on a payment can be different from the fee shown on query routes."),t.qZA()(),t.TgZ(7,"mat-form-field",5)(8,"input",6,7),t.NdJ("ngModelChange",function(c){return i.nodeId=c}),t.qZA(),t.YNc(10,wr,2,0,"mat-error",8),t.qZA(),t.TgZ(11,"mat-form-field",9)(12,"input",10),t.NdJ("ngModelChange",function(c){return i.amount=c}),t.qZA(),t.YNc(13,Ir,2,0,"mat-error",8),t.qZA(),t.TgZ(14,"div",11)(15,"button",12),t.NdJ("click",function(){return i.resetData()}),t._uU(16,"Clear"),t.qZA(),t.TgZ(17,"button",13),t._uU(18,"Query Route"),t.qZA()()(),t.TgZ(19,"div",14)(20,"div",15),t._UZ(21,"fa-icon",16),t.TgZ(22,"span",17),t._uU(23,"Transaction Route"),t.qZA()()(),t.YNc(24,Fr,1,0,"mat-progress-bar",18),t.TgZ(25,"div",19)(26,"div",0),t.YNc(27,Mr,24,10,"div",20),t.qZA()()()}2&e&&(t.xp6(4),t.Q6J("icon",i.faExclamationTriangle),t.xp6(4),t.Q6J("ngModel",i.nodeId),t.xp6(2),t.Q6J("ngIf",!i.nodeId),t.xp6(2),t.Q6J("ngModel",i.amount)("step",1e3)("min",0),t.xp6(1),t.Q6J("ngIf",!i.amount),t.xp6(8),t.Q6J("icon",i.faRoute),t.xp6(3),t.Q6J("ngIf",!0===i.flgLoading[0]),t.xp6(3),t.Q6J("ngForOf",i.allQRoutes))},directives:[m.xw,m.yH,d._Y,d.JL,d.F,m.Wh,q.BN,y.KE,Y.Nt,d.Fj,d.Q7,d.JJ,d.On,u.O5,y.TO,d.wV,d.qQ,tt.q,N.lW,M.pW,u.sg,V.ib,V.yz,V.yK,V.u4,H.$V,r.BZ,u.mk,Z.oO,r.w1,r.fO,r.ge,r.Dz,r.ev,u.PC,Z.Zl,r.as,r.XQ,r.nj,r.Gk],pipes:[u.JJ],styles:[""]}),n})();function Yr(n,a){if(1&n&&(t.TgZ(0,"mat-option",37),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw();t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}function Br(n,a){1&n&&t._UZ(0,"mat-progress-bar",38)}function Hr(n,a){1&n&&t._UZ(0,"th",39)}function zr(n,a){if(1&n&&(t.TgZ(0,"span",43),t._UZ(1,"fa-icon",44),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEyeSlash)}}function Vr(n,a){if(1&n&&(t.TgZ(0,"span",45),t._UZ(1,"fa-icon",44),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("icon",e.faEye)}}function Gr(n,a){if(1&n&&(t.TgZ(0,"td",40),t.YNc(1,zr,2,1,"span",41),t.YNc(2,Vr,2,1,"span",42),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf",!e.announceChannel),t.xp6(1),t.Q6J("ngIf",e.announceChannel)}}function Wr(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"State"),t.qZA())}function $r(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.ALo(2,"titlecase"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(t.lcZ(2,1,null==e?null:e.state))}}function Xr(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Short Channel ID"),t.qZA())}function Kr(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.shortChannelId)}}function jr(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Channel ID"),t.qZA())}const _t=function(n){return{width:n}};function tc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",47)(2,"span",48),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function ec(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Alias"),t.qZA())}function nc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",47)(2,"span",48),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(e.alias)}}function ic(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Node ID"),t.qZA())}function ac(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",47)(2,"span",48),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw();t.xp6(1),t.Q6J("ngStyle",t.VKq(2,_t,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.nodeId)}}function oc(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Funder"),t.qZA())}function sc(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.isFunder?"Yes":"No")}}function lc(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Buried"),t.qZA())}function rc(n,a){if(1&n&&(t.TgZ(0,"td",40),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null!=e&&e.buried?"Yes":"No")}}function cc(n,a){1&n&&(t.TgZ(0,"th",49),t._uU(1,"Local Balance (Sats)"),t.qZA())}function uc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",50),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toLocal,"1.0-0")," ")}}function pc(n,a){1&n&&(t.TgZ(0,"th",49),t._uU(1,"Remote Balance (Sats)"),t.qZA())}function mc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",50),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.toRemote,"1.0-0")," ")}}function dc(n,a){1&n&&(t.TgZ(0,"th",49),t._uU(1,"Local Fee/KW"),t.qZA())}function hc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"span",50),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.hij(" ",t.xi3(3,1,null==e?null:e.feeRatePerKw,"1.0-0")," ")}}function _c(n,a){1&n&&(t.TgZ(0,"th",46),t._uU(1,"Balance Score"),t.qZA())}function gc(n,a){if(1&n&&(t.TgZ(0,"td",40)(1,"div",51)(2,"mat-hint",52),t._uU(3),t.ALo(4,"number"),t.qZA()(),t._UZ(5,"mat-progress-bar",53),t.qZA()),2&n){const e=a.$implicit;t.xp6(3),t.Oqu(t.lcZ(4,2,(null==e?null:e.balancedness)||0)),t.xp6(2),t.s9C("value",e.toLocal&&e.toLocal>0?+e.toLocal/(+e.toLocal+ +e.toRemote)*100:0)}}function fc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",54)(1,"div",55)(2,"mat-select",56),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",57),t.NdJ("click",function(){return t.CHM(e),t.oxw().onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function Cc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",58)(1,"div",55)(2,"mat-select",59),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",57),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw().onChannelClick(c,o)}),t._uU(5,"View Info"),t.qZA(),t.TgZ(6,"mat-option",57),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().onChannelClose(s,!0)}),t._uU(7,"Force Close"),t.qZA()()()()}}function xc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No inactive channel available."),t.qZA())}function yc(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting inactive channels..."),t.qZA())}function vc(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Oqu(e.errorMessage)}}function Tc(n,a){if(1&n&&(t.TgZ(0,"td",60),t.YNc(1,xc,2,0,"p",61),t.YNc(2,yc,2,0,"p",61),t.YNc(3,vc,2,1,"p",61),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.channels&&e.channels.data)||(null==e.channels||null==e.channels.data?null:e.channels.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Lc=function(n){return{"display-none":n}};function bc(n,a){if(1&n&&t._UZ(0,"tr",62),2&n){const e=t.oxw();t.Q6J("ngClass",t.VKq(1,Lc,(null==e.channels?null:e.channels.data)&&(null==e.channels||null==e.channels.data?null:e.channels.data.length)>0))}}function Sc(n,a){1&n&&t._UZ(0,"tr",63)}function Zc(n,a){1&n&&t._UZ(0,"tr",64)}const Ac=function(){return["all"]},Ec=function(n){return{"overflow-auto error-border":n,"overflow-auto":!0}},wc=function(){return["no_channel"]};let Ic=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.store=i,this.rtlEffects=o,this.commonService=s,this.camelCaseWithSpaces=c,this.faEye=L.Mdf,this.faEyeSlash=L.Aq,this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="peers_channels",this.tableSetting={tableId:"inactive_channels",recordsPerPage:l.IV,sortBy:"alias",sortOrder:l.Pi.DESCENDING},this.totalBalance=0,this.displayedColumns=[],this.channels=new r.by([]),this.myChanPolicy={},this.information={},this.numPeers=-1,this.feeRateTypes=l.vn,this.selFilter="",this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("announceChannel"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.Xz).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.inactiveChannels=e.inactiveChannels,this.loadChannelsTable(),this.logger.info(e)}),this.store.select(C.yD).pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{this.information=e}),this.store.select(C.Bo).pipe((0,_.R)(this.unSubs[3])).subscribe(e=>{this.numPeers=e.peers&&e.peers.length?e.peers.length:0}),this.store.select(C.kY).pipe((0,_.R)(this.unSubs[4])).subscribe(e=>{this.totalBalance=e.onchainBalance.total||0})}ngAfterViewInit(){this.inactiveChannels.length>0&&this.loadChannelsTable()}onChannelClose(e,i){this.store.dispatch((0,E.c1)({payload:{data:{type:l.n_.CONFIRM,alertTitle:i?"Force Close Channel":"Close Channel",titleMessage:i?"Force closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId):"Closing channel: "+(e.alias||e.shortChannelId?e.alias&&e.shortChannelId?e.alias+" ("+e.shortChannelId+")":e.alias?e.alias:e.shortChannelId:e.channelId),noBtnText:"Cancel",yesBtnText:i?"Force Close":"Close Channel"}}})),this.rtlEffects.closeConfirm.pipe((0,_.R)(this.unSubs[5])).subscribe(h=>{h&&this.store.dispatch((0,U.BL)({payload:{channelId:e.channelId||"",force:i}}))})}onChannelClick(e,i){this.store.dispatch((0,E.qR)({payload:{data:{channel:e,channelsType:"inactive",component:mt}}}))}applyFilter(){this.channels.filter=this.selFilter.trim().toLocaleLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):"announceChannel"===e?"Private":this.commonService.titleCase(e)}setFilterPredicate(){this.channels.filterPredicate=(e,i)=>{let o="";switch(this.selFilterBy){case"all":o=JSON.stringify(e).toLowerCase();break;case"announceChannel":o=(null==e?void 0:e.announceChannel)?"public":"private";break;default:o=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return o.includes(i)}}loadChannelsTable(){var e;this.channels=new r.by([...this.inactiveChannels]),this.channels.sort=this.sort,this.channels.sortingDataAccessor=(i,o)=>i[o]&&isNaN(i[o])?i[o].toLocaleLowerCase():i[o]?+i[o]:null,null===(e=this.channels.sort)||void 0===e||e.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.channels.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.channels)}onDownloadCSV(){this.channels.data&&this.channels.data.length>0&&this.commonService.downloadFile(this.channels.data,"InactiveChannels")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(w.yh),t.Y36(nt.V),t.Y36(P.v),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-channel-inactive-table"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Channels")}])],decls:58,vars:16,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["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","",3,"dataSource","ngClass"],["table",""],["matColumnDef","announceChannel"],["mat-header-cell","","mat-sort-header","","matTooltip","Private",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","shortChannelId"],["matColumnDef","channelId"],["matColumnDef","alias"],["matColumnDef","nodeId"],["matColumnDef","isFunder"],["matColumnDef","buried"],["matColumnDef","toLocal"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","toRemote"],["matColumnDef","feeRatePerKw"],["matColumnDef","balancedness"],["matColumnDef","actions"],["mat-header-cell","",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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","matTooltip","Private"],["mat-cell",""],["class","mr-1","matTooltip","Private","matTooltipPosition","right",4,"ngIf"],["class","mr-1","matTooltip","Public","matTooltipPosition","right",4,"ngIf"],["matTooltip","Private","matTooltipPosition","right",1,"mr-1"],[3,"icon"],["matTooltip","Public","matTooltipPosition","right",1,"mr-1"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row"],["fxFlex","100","fxLayoutAlign","center center",1,"font-size-80"],["mode","determinate",3,"value"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["placeholder","Actions","tabindex","2",1,"mr-0"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"div",1),t._UZ(2,"div",2),t.TgZ(3,"div",3)(4,"mat-form-field",4)(5,"mat-select",5),t.NdJ("ngModelChange",function(s){return i.selFilterBy=s})("selectionChange",function(){return i.selFilter="",i.applyFilter()}),t.YNc(6,Yr,2,2,"mat-option",6),t.qZA()(),t.TgZ(7,"mat-form-field",4)(8,"input",7),t.NdJ("ngModelChange",function(s){return i.selFilter=s})("input",function(){return i.applyFilter()})("keyup",function(){return i.applyFilter()}),t.qZA()()()(),t.TgZ(9,"div",8),t.YNc(10,Br,1,0,"mat-progress-bar",9),t.TgZ(11,"table",10,11),t.ynx(13,12),t.YNc(14,Hr,1,0,"th",13),t.YNc(15,Gr,3,2,"td",14),t.BQk(),t.ynx(16,15),t.YNc(17,Wr,2,0,"th",16),t.YNc(18,$r,3,3,"td",14),t.BQk(),t.ynx(19,17),t.YNc(20,Xr,2,0,"th",16),t.YNc(21,Kr,2,1,"td",14),t.BQk(),t.ynx(22,18),t.YNc(23,jr,2,0,"th",16),t.YNc(24,tc,4,4,"td",14),t.BQk(),t.ynx(25,19),t.YNc(26,ec,2,0,"th",16),t.YNc(27,nc,4,4,"td",14),t.BQk(),t.ynx(28,20),t.YNc(29,ic,2,0,"th",16),t.YNc(30,ac,4,4,"td",14),t.BQk(),t.ynx(31,21),t.YNc(32,oc,2,0,"th",16),t.YNc(33,sc,2,1,"td",14),t.BQk(),t.ynx(34,22),t.YNc(35,lc,2,0,"th",16),t.YNc(36,rc,2,1,"td",14),t.BQk(),t.ynx(37,23),t.YNc(38,cc,2,0,"th",24),t.YNc(39,uc,4,4,"td",14),t.BQk(),t.ynx(40,25),t.YNc(41,pc,2,0,"th",24),t.YNc(42,mc,4,4,"td",14),t.BQk(),t.ynx(43,26),t.YNc(44,dc,2,0,"th",24),t.YNc(45,hc,4,4,"td",14),t.BQk(),t.ynx(46,27),t.YNc(47,_c,2,0,"th",16),t.YNc(48,gc,6,4,"td",14),t.BQk(),t.ynx(49,28),t.YNc(50,fc,6,0,"th",29),t.YNc(51,Cc,8,0,"td",30),t.BQk(),t.ynx(52,31),t.YNc(53,Tc,4,3,"td",32),t.BQk(),t.YNc(54,bc,1,3,"tr",33),t.YNc(55,Sc,1,0,"tr",34),t.YNc(56,Zc,1,0,"tr",35),t.qZA()(),t._UZ(57,"mat-paginator",36),t.qZA()),2&e&&(t.xp6(5),t.Q6J("ngModel",i.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(12,Ac).concat(i.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",i.selFilter),t.xp6(2),t.Q6J("ngIf",i.apiCallStatus.status===i.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",i.channels)("ngClass",t.VKq(13,Ec,""!==i.errorMessage)),t.xp6(43),t.Q6J("matFooterRowDef",t.DdM(15,wc)),t.xp6(1),t.Q6J("matHeaderRowDef",i.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",i.displayedColumns),t.xp6(1),t.Q6J("pageSize",i.pageSize)("pageSizeOptions",i.pageSizeOptions)("showFirstLastButtons",i.screenSize!==i.screenSizeEnum.XS))},directives:[m.xw,m.Wh,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,u.O5,M.pW,r.BZ,S.YE,u.mk,Z.oO,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,q.BN,u.PC,Z.Zl,y.bx,k.$L,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.rS,u.JJ],styles:[".mat-column-announceChannel[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}.mat-column-balancedness[_ngcontent-%COMP%]{padding-left:3rem;min-width:15rem;max-width:30rem}"]}),n})();function Fc(n,a){if(1&n&&(t.TgZ(0,"div",5),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function qc(n,a){if(1&n&&(t.TgZ(0,"mat-option",13),t._uU(1),t.qZA()),2&n){const e=a.$implicit,i=t.oxw(2);t.Q6J("value",e),t.xp6(1),t.Oqu(i.getLabel(e))}}const Nc=function(){return["all"]};function Oc(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",6),t._UZ(1,"div",7),t.TgZ(2,"div",8)(3,"mat-form-field",9)(4,"mat-select",10),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilterBy=o})("selectionChange",function(){t.CHM(e);const o=t.oxw();return o.selFilter="",o.applyFilter()}),t.YNc(5,qc,2,2,"mat-option",11),t.qZA()(),t.TgZ(6,"mat-form-field",9)(7,"input",12),t.NdJ("ngModelChange",function(o){return t.CHM(e),t.oxw().selFilter=o})("input",function(){return t.CHM(e),t.oxw().applyFilter()})("keyup",function(){return t.CHM(e),t.oxw().applyFilter()}),t.qZA()()()()}if(2&n){const e=t.oxw();t.xp6(4),t.Q6J("ngModel",e.selFilterBy),t.xp6(1),t.Q6J("ngForOf",t.DdM(3,Nc).concat(e.displayedColumns.slice(0,-1))),t.xp6(2),t.Q6J("ngModel",e.selFilter)}}function Pc(n,a){1&n&&t._UZ(0,"mat-progress-bar",42)}function Uc(n,a){1&n&&t._UZ(0,"th",43)}const Rc=function(n){return{"ml-0":n}};function kc(n,a){if(1&n&&(t._UZ(0,"span",46),t.ALo(1,"camelcase")),2&n){const e=t.oxw().$implicit,i=t.oxw(2);t.s9C("matTooltip",t.lcZ(1,2,null==e?null:e.type)),t.Q6J("ngClass",t.VKq(4,Rc,i.screenSize===i.screenSizeEnum.XS))}}function Dc(n,a){if(1&n&&(t.TgZ(0,"td",44),t.YNc(1,kc,2,6,"span",45),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Q6J("ngIf","payment-relayed"!==(null==e?null:e.type))}}function Jc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Date/Time"),t.qZA())}function Mc(n,a){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.ALo(2,"date"),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.hij(" ",t.xi3(2,1,null==e?null:e.timestamp,"dd/MMM/y HH:mm")," ")}}function Qc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"In Channel ID"),t.qZA())}const et=function(n){return{width:n}};function Yc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.fromChannelId)}}function Bc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"In Channel Short ID"),t.qZA())}function Hc(n,a){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.fromShortChannelId)}}function zc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"In Channel"),t.qZA())}function Vc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.fromChannelAlias)}}function Gc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel ID"),t.qZA())}function Wc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.toChannelId)}}function $c(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel Short ID"),t.qZA())}function Xc(n,a){if(1&n&&(t.TgZ(0,"td",44),t._uU(1),t.qZA()),2&n){const e=a.$implicit;t.xp6(1),t.Oqu(null==e?null:e.toShortChannelId)}}function Kc(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Out Channel"),t.qZA())}function jc(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.toChannelAlias)}}function tu(n,a){1&n&&(t.TgZ(0,"th",47),t._uU(1,"Payment Hash"),t.qZA())}function eu(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"div",48)(2,"span",49),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,et,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.paymentHash)}}function nu(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Amount In (Sats)"),t.qZA())}function iu(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountIn))}}function au(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Amount Out (Sats)"),t.qZA())}function ou(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,null==e?null:e.amountOut))}}function su(n,a){1&n&&(t.TgZ(0,"th",50),t._uU(1,"Fee Earned (Sats)"),t.qZA())}function lu(n,a){if(1&n&&(t.TgZ(0,"td",44)(1,"span",51),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,(null==e?null:e.amountIn)-(null==e?null:e.amountOut)))}}function ru(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"th",52)(1,"div",53)(2,"mat-select",54),t._UZ(3,"mat-select-trigger"),t.TgZ(4,"mat-option",55),t.NdJ("click",function(){return t.CHM(e),t.oxw(2).onDownloadCSV()}),t._uU(5,"Download CSV"),t.qZA()()()()}}function cu(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"td",56)(1,"button",57),t.NdJ("click",function(o){const c=t.CHM(e).$implicit;return t.oxw(2).onForwardingEventClick(c,o)}),t._uU(2,"View Info"),t.qZA()()}}function uu(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No forwarding history available."),t.qZA())}function pu(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting forwarding history..."),t.qZA())}function mu(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function du(n,a){if(1&n&&(t.TgZ(0,"td",58),t.YNc(1,uu,2,0,"p",59),t.YNc(2,pu,2,0,"p",59),t.YNc(3,mu,2,1,"p",59),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.forwardingHistoryEvents&&e.forwardingHistoryEvents.data)||(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const hu=function(n){return{"display-none":n}};function _u(n,a){if(1&n&&t._UZ(0,"tr",60),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,hu,(null==e.forwardingHistoryEvents?null:e.forwardingHistoryEvents.data)&&(null==e.forwardingHistoryEvents||null==e.forwardingHistoryEvents.data?null:e.forwardingHistoryEvents.data.length)>0))}}function gu(n,a){1&n&&t._UZ(0,"tr",61)}function fu(n,a){1&n&&t._UZ(0,"tr",62)}const Cu=function(){return["no_event"]};function xu(n,a){if(1&n&&(t.TgZ(0,"div",14),t.YNc(1,Pc,1,0,"mat-progress-bar",15),t.TgZ(2,"table",16,17),t.ynx(4,18),t.YNc(5,Uc,1,0,"th",19),t.YNc(6,Dc,2,1,"td",20),t.BQk(),t.ynx(7,21),t.YNc(8,Jc,2,0,"th",22),t.YNc(9,Mc,3,4,"td",20),t.BQk(),t.ynx(10,23),t.YNc(11,Qc,2,0,"th",22),t.YNc(12,Yc,4,4,"td",20),t.BQk(),t.ynx(13,24),t.YNc(14,Bc,2,0,"th",22),t.YNc(15,Hc,2,1,"td",20),t.BQk(),t.ynx(16,25),t.YNc(17,zc,2,0,"th",22),t.YNc(18,Vc,4,4,"td",20),t.BQk(),t.ynx(19,26),t.YNc(20,Gc,2,0,"th",22),t.YNc(21,Wc,4,4,"td",20),t.BQk(),t.ynx(22,27),t.YNc(23,$c,2,0,"th",22),t.YNc(24,Xc,2,1,"td",20),t.BQk(),t.ynx(25,28),t.YNc(26,Kc,2,0,"th",22),t.YNc(27,jc,4,4,"td",20),t.BQk(),t.ynx(28,29),t.YNc(29,tu,2,0,"th",22),t.YNc(30,eu,4,4,"td",20),t.BQk(),t.ynx(31,30),t.YNc(32,nu,2,0,"th",31),t.YNc(33,iu,4,3,"td",20),t.BQk(),t.ynx(34,32),t.YNc(35,au,2,0,"th",31),t.YNc(36,ou,4,3,"td",20),t.BQk(),t.ynx(37,33),t.YNc(38,su,2,0,"th",31),t.YNc(39,lu,4,3,"td",20),t.BQk(),t.ynx(40,34),t.YNc(41,ru,6,0,"th",35),t.YNc(42,cu,3,0,"td",36),t.BQk(),t.ynx(43,37),t.YNc(44,du,4,3,"td",38),t.BQk(),t.YNc(45,_u,1,3,"tr",39),t.YNc(46,gu,1,0,"tr",40),t.YNc(47,fu,1,0,"tr",41),t.qZA()()),2&n){const e=t.oxw();t.xp6(1),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.forwardingHistoryEvents),t.xp6(43),t.Q6J("matFooterRowDef",t.DdM(5,Cu)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns)}}function yu(n,a){if(1&n&&t._UZ(0,"mat-paginator",63),2&n){const e=t.oxw();t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let Dt=(()=>{class n{constructor(e,i,o,s,c){this.logger=e,this.commonService=i,this.store=o,this.datePipe=s,this.camelCaseWithSpaces=c,this.pageId="routing",this.tableId="forwarding_history",this.eventsData=[],this.selFilter="",this.nodePageDefs=l.Xk,this.selFilterBy="all",this.colWidth="20rem",this.tableSetting={tableId:"forwarding_history",recordsPerPage:l.IV,sortBy:"timestamp",sortOrder:l.Pi.DESCENDING},this.displayedColumns=[],this.forwardingHistoryEvents=new r.by([]),this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting.tableId=this.tableId,this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.pageId))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.pageId))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.unshift("type"),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{0===this.eventsData.length&&(this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.eventsData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.eventsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadForwardingEventsTable(this.eventsData),this.logger.info(this.eventsData))})}ngAfterViewInit(){this.eventsData.length>0&&this.loadForwardingEventsTable(this.eventsData)}ngOnChanges(e){e.eventsData&&(this.apiCallStatus={status:l.Bn.COMPLETED,action:"FetchPayments"},this.eventsData=e.eventsData.currentValue,e.eventsData.firstChange||this.loadForwardingEventsTable(this.eventsData)),e.selFilter&&!e.selFilter.firstChange&&(this.selFilterBy="all",this.applyFilter())}onForwardingEventClick(e,i){const o=[[{key:"paymentHash",value:e.paymentHash,title:"Payment Hash",width:100,type:l.Gi.STRING}],[{key:"timestamp",value:Math.round((e.timestamp||0)/1e3),title:"Date/Time",width:50,type:l.Gi.DATE_TIME},{key:"fee",value:(e.amountIn||0)-(e.amountOut||0),title:"Fee Earned (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"amountIn",value:e.amountIn,title:"Amount In (Sats)",width:50,type:l.Gi.NUMBER},{key:"amountOut",value:e.amountOut,title:"Amount Out (Sats)",width:50,type:l.Gi.NUMBER}],[{key:"fromChannelAlias",value:e.fromChannelAlias,title:"From Channel Alias",width:50,type:l.Gi.STRING},{key:"fromShortChannelId",value:e.fromShortChannelId,title:"From Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"fromChannelId",value:e.fromChannelId,title:"From Channel ID",width:100,type:l.Gi.STRING}],[{key:"toChannelAlias",value:e.toChannelAlias,title:"To Channel Alias",width:50,type:l.Gi.STRING},{key:"toShortChannelId",value:e.toShortChannelId,title:"To Short Channel ID",width:50,type:l.Gi.STRING}],[{key:"toChannelId",value:e.toChannelId,title:"To Channel ID",width:100,type:l.Gi.STRING}]];"payment-relayed"!==e.type&&(null==o||o.unshift([{key:"type",value:this.commonService.camelCase(e.type),title:"Relay Type",width:100,type:l.Gi.STRING}])),this.store.dispatch((0,E.qR)({payload:{data:{type:l.n_.INFORMATION,alertTitle:"Event Information",message:o}}}))}applyFilter(){this.forwardingHistoryEvents&&(this.forwardingHistoryEvents.filter=this.selFilter.trim().toLowerCase())}getLabel(e){const i=this.nodePageDefs[this.pageId][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column):this.commonService.titleCase(e)}setFilterPredicate(){this.forwardingHistoryEvents.filterPredicate=(e,i)=>{var o,s;let c="";switch(this.selFilterBy){case"all":c=(e.timestamp?null===(o=this.datePipe.transform(new Date(e.timestamp),"dd/MMM/y HH:mm"))||void 0===o?void 0:o.toLowerCase():"")+JSON.stringify(e).toLowerCase();break;case"timestamp":c=(null===(s=this.datePipe.transform(new Date(e.timestamp||0),"dd/MMM/y HH:mm"))||void 0===s?void 0:s.toLowerCase())||"";break;case"fee":c=(e.amountIn-e.amountOut).toString()||"0";break;default:c=void 0===e[this.selFilterBy]?"":"string"==typeof e[this.selFilterBy]?e[this.selFilterBy].toLowerCase():"boolean"==typeof e[this.selFilterBy]?e[this.selFilterBy]?"yes":"no":e[this.selFilterBy].toString()}return c.includes(i)}}loadForwardingEventsTable(e){var i;this.forwardingHistoryEvents=new r.by([...e]),this.forwardingHistoryEvents.sort=this.sort,this.forwardingHistoryEvents.sortingDataAccessor=(o,s)=>"fee"===s?o.amountIn-o.amountOut:o[s]&&isNaN(o[s])?o[s].toLocaleLowerCase():o[s]?+o[s]:null,null===(i=this.forwardingHistoryEvents.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.forwardingHistoryEvents.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.forwardingHistoryEvents)}onDownloadCSV(){this.forwardingHistoryEvents&&this.forwardingHistoryEvents.data&&this.forwardingHistoryEvents.data.length>0&&this.commonService.downloadFile(this.forwardingHistoryEvents.data,"Forwarding-history")}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(u.uU),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-forwarding-history"]],viewQuery:function(e,i){if(1&e&&(t.Gf(S.YE,5),t.Gf(A.NW,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sort=o.first),t.iGM(o=t.CRH())&&(i.paginator=o.first)}},inputs:{pageId:"pageId",tableId:"tableId",eventsData:"eventsData",selFilter:"selFilter"},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Events")}]),t.TTD],decls:5,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x"],["class","p-2 error-border my-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","my-2"],["fxLayout","column","fxLayout.gt-xs","row","fxLayoutAlign.gt-xs","start center","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","70"],["fxFlex","30","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","keyup"],[3,"value"],["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","type"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","timestamp"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["matColumnDef","fromChannelId"],["matColumnDef","fromShortChannelId"],["matColumnDef","fromChannelAlias"],["matColumnDef","toChannelId"],["matColumnDef","toShortChannelId"],["matColumnDef","toChannelAlias"],["matColumnDef","paymentHash"],["matColumnDef","amountIn"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","amountOut"],["matColumnDef","fee"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header","","arrowPosition","before","matTooltip","Type (if not payment relayed)"],["mat-cell",""],["class","dot yellow","matTooltipPosition","right",3,"matTooltip","ngClass",4,"ngIf"],["matTooltipPosition","right",1,"dot","yellow",3,"matTooltip","ngClass"],["mat-header-cell","","mat-sort-header",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",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,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Fc,2,1,"div",1),t.YNc(2,Oc,8,4,"div",2),t.YNc(3,xu,48,6,"div",3),t.YNc(4,yu,1,3,"mat-paginator",4),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,y.KE,k.gD,d.JJ,d.On,u.sg,z.ey,Y.Nt,d.Fj,H.$V,M.pW,r.BZ,S.YE,r.w1,r.fO,r.ge,S.nU,$.gM,r.Dz,r.ev,u.mk,Z.oO,u.PC,Z.Zl,k.$L,N.lW,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[G.h9,u.uU,u.JJ],styles:[".mat-column-type[_ngcontent-%COMP%]{max-width:1.2rem;width:1.2rem}.mat-column-type[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{max-width:1.6rem;width:1.6rem}"]}),n})();const vu=["tableIn"],Tu=["tableOut"],Lu=["paginatorIn"],bu=["paginatorOut"];function Su(n,a){if(1&n&&(t.TgZ(0,"div",3),t._uU(1),t.qZA()),2&n){const e=t.oxw();t.xp6(1),t.Oqu(e.errorMessage)}}function Zu(n,a){1&n&&t._UZ(0,"mat-progress-bar",34)}function Au(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}const at=function(n){return{width:n}};function Eu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function wu(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function Iu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function Fu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function qu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Nu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Ou(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function Pu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function Uu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function Ru(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No incoming routing peer available."),t.qZA())}function ku(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting incoming routing peers..."),t.qZA())}function Du(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function Ju(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,Ru,2,0,"p",42),t.YNc(2,ku,2,0,"p",42),t.YNc(3,Du,2,1,"p",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersIncoming&&e.routingPeersIncoming.data)||(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}const Jt=function(n){return{"display-none":n}};function Mu(n,a){if(1&n&&t._UZ(0,"tr",43),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Jt,(null==e.routingPeersIncoming?null:e.routingPeersIncoming.data)&&(null==e.routingPeersIncoming||null==e.routingPeersIncoming.data?null:e.routingPeersIncoming.data.length)>0))}}function Qu(n,a){1&n&&t._UZ(0,"tr",44)}function Yu(n,a){1&n&&t._UZ(0,"tr",45)}function Bu(n,a){1&n&&t._UZ(0,"mat-progress-bar",34)}function Hu(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Channel ID"),t.qZA())}function zu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.channelId)}}function Vu(n,a){1&n&&(t.TgZ(0,"th",35),t._uU(1,"Peer Alias"),t.qZA())}function Gu(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"div",37)(2,"span",38),t._uU(3),t.qZA()()()),2&n){const e=a.$implicit,i=t.oxw(2);t.xp6(1),t.Q6J("ngStyle",t.VKq(2,at,i.screenSize===i.screenSizeEnum.XS?"10rem":i.colWidth)),t.xp6(2),t.Oqu(null==e?null:e.alias)}}function Wu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Events"),t.qZA())}function $u(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.events))}}function Xu(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Amount (Sats)"),t.qZA())}function Ku(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalAmount))}}function ju(n,a){1&n&&(t.TgZ(0,"th",39),t._uU(1,"Fee (Sats)"),t.qZA())}function tp(n,a){if(1&n&&(t.TgZ(0,"td",36)(1,"span",40),t._uU(2),t.ALo(3,"number"),t.qZA()()),2&n){const e=a.$implicit;t.xp6(2),t.Oqu(t.lcZ(3,1,e.totalFee))}}function ep(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"No outgoing routing peer available."),t.qZA())}function np(n,a){1&n&&(t.TgZ(0,"p"),t._uU(1,"Getting outgoing routing peers..."),t.qZA())}function ip(n,a){if(1&n&&(t.TgZ(0,"p"),t._uU(1),t.qZA()),2&n){const e=t.oxw(3);t.xp6(1),t.Oqu(e.errorMessage)}}function ap(n,a){if(1&n&&(t.TgZ(0,"td",41),t.YNc(1,ep,2,0,"p",42),t.YNc(2,np,2,0,"p",42),t.YNc(3,ip,2,1,"p",42),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.COMPLETED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("ngIf",(!(null!=e.routingPeersOutgoing&&e.routingPeersOutgoing.data)||(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)<1)&&e.apiCallStatus.status===e.apiCallStatusEnum.ERROR)}}function op(n,a){if(1&n&&t._UZ(0,"tr",43),2&n){const e=t.oxw(2);t.Q6J("ngClass",t.VKq(1,Jt,(null==e.routingPeersOutgoing?null:e.routingPeersOutgoing.data)&&(null==e.routingPeersOutgoing||null==e.routingPeersOutgoing.data?null:e.routingPeersOutgoing.data.length)>0))}}function sp(n,a){1&n&&t._UZ(0,"tr",44)}function lp(n,a){1&n&&t._UZ(0,"tr",45)}const rp=function(n,a){return{"mt-2":n,"mt-1":a}},cp=function(){return["no_incoming_event"]},up=function(n){return{"mt-2":n}},pp=function(){return["no_outgoing_event"]};function mp(n,a){if(1&n&&(t.TgZ(0,"div",4)(1,"div",5)(2,"div",6)(3,"div",7),t._uU(4,"Incoming"),t.qZA(),t._UZ(5,"div",8),t.qZA(),t.TgZ(6,"div",9),t.YNc(7,Zu,1,0,"mat-progress-bar",10),t.TgZ(8,"table",11,12),t.ynx(10,13),t.YNc(11,Au,2,0,"th",14),t.YNc(12,Eu,4,4,"td",15),t.BQk(),t.ynx(13,16),t.YNc(14,wu,2,0,"th",14),t.YNc(15,Iu,4,4,"td",15),t.BQk(),t.ynx(16,17),t.YNc(17,Fu,2,0,"th",18),t.YNc(18,qu,4,3,"td",15),t.BQk(),t.ynx(19,19),t.YNc(20,Nu,2,0,"th",18),t.YNc(21,Ou,4,3,"td",15),t.BQk(),t.ynx(22,20),t.YNc(23,Pu,2,0,"th",18),t.YNc(24,Uu,4,3,"td",15),t.BQk(),t.ynx(25,21),t.YNc(26,Ju,4,3,"td",22),t.BQk(),t.YNc(27,Mu,1,3,"tr",23),t.YNc(28,Qu,1,0,"tr",24),t.YNc(29,Yu,1,0,"tr",25),t.qZA()(),t._UZ(30,"mat-paginator",26,27),t.qZA(),t.TgZ(32,"div",28)(33,"div",6)(34,"div",7),t._uU(35,"Outgoing"),t.qZA(),t._UZ(36,"div",8),t.qZA(),t.TgZ(37,"div",29),t.YNc(38,Bu,1,0,"mat-progress-bar",10),t.TgZ(39,"table",30,31),t.ynx(41,13),t.YNc(42,Hu,2,0,"th",14),t.YNc(43,zu,4,4,"td",15),t.BQk(),t.ynx(44,16),t.YNc(45,Vu,2,0,"th",14),t.YNc(46,Gu,4,4,"td",15),t.BQk(),t.ynx(47,17),t.YNc(48,Wu,2,0,"th",18),t.YNc(49,$u,4,3,"td",15),t.BQk(),t.ynx(50,19),t.YNc(51,Xu,2,0,"th",18),t.YNc(52,Ku,4,3,"td",15),t.BQk(),t.ynx(53,20),t.YNc(54,ju,2,0,"th",18),t.YNc(55,tp,4,3,"td",15),t.BQk(),t.ynx(56,32),t.YNc(57,ap,4,3,"td",22),t.BQk(),t.YNc(58,op,1,3,"tr",23),t.YNc(59,sp,1,0,"tr",24),t.YNc(60,lp,1,0,"tr",25),t.qZA(),t._UZ(61,"mat-paginator",26,33),t.qZA()()()),2&n){const e=t.oxw();t.xp6(2),t.Q6J("ngClass",t.WLB(18,rp,e.screenSize===e.screenSizeEnum.XS,e.screenSize===e.screenSizeEnum.SM)),t.xp6(5),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.routingPeersIncoming),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(21,cp)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS),t.xp6(3),t.Q6J("ngClass",t.VKq(22,up,e.screenSize!==e.screenSizeEnum.LG)),t.xp6(5),t.Q6J("ngIf",e.apiCallStatus.status===e.apiCallStatusEnum.INITIATED),t.xp6(1),t.Q6J("dataSource",e.routingPeersOutgoing),t.xp6(19),t.Q6J("matFooterRowDef",t.DdM(24,pp)),t.xp6(1),t.Q6J("matHeaderRowDef",e.displayedColumns),t.xp6(1),t.Q6J("matRowDefColumns",e.displayedColumns),t.xp6(1),t.Q6J("pageSize",e.pageSize)("pageSizeOptions",e.pageSizeOptions)("showFirstLastButtons",e.screenSize!==e.screenSizeEnum.XS)}}let dp=(()=>{class n{constructor(e,i,o,s){this.logger=e,this.commonService=i,this.store=o,this.camelCaseWithSpaces=s,this.nodePageDefs=l.Xk,this.selFilterByIn="all",this.selFilterByOut="all",this.colWidth="20rem",this.PAGE_ID="routing",this.tableSetting={tableId:"routing_peers",recordsPerPage:l.IV,sortBy:"totalFee",sortOrder:l.Pi.DESCENDING},this.routingPeersData=[],this.displayedColumns=[],this.routingPeersIncoming=new r.by([]),this.routingPeersOutgoing=new r.by([]),this.pageSize=l.IV,this.pageSizeOptions=l.TJ,this.screenSize="",this.screenSizeEnum=l.cu,this.errorMessage="",this.filterIn="",this.filterOut="",this.apiCallStatus=null,this.apiCallStatusEnum=l.Bn,this.unSubs=[new p.x,new p.x,new p.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message||""),this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:l.IV,this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/(2*this.displayedColumns.length)/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{this.errorMessage="",this.apiCallStatus=e.apiCallStatus,this.apiCallStatus.status===l.Bn.ERROR&&(this.errorMessage=this.apiCallStatus.message?"object"==typeof this.apiCallStatus.message?JSON.stringify(this.apiCallStatus.message):this.apiCallStatus.message:""),this.routingPeersData=e.payments&&e.payments.relayed?e.payments.relayed:[],this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData),this.logger.info(e)})}ngAfterViewInit(){this.routingPeersData.length>0&&this.sortIn&&this.paginatorIn&&this.sortOut&&this.paginatorOut&&this.loadRoutingPeersTable(this.routingPeersData)}applyFilterIncoming(){this.routingPeersIncoming.filter=this.filterIn.trim().toLowerCase()}applyFilterOutgoing(){this.routingPeersOutgoing.filter=this.filterOut.trim().toLowerCase()}getLabel(e){const i=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(o=>o.column===e);return i?i.label?i.label:this.camelCaseWithSpaces.transform(i.column,"_"):this.commonService.titleCase(e)}setFilterPredicate(){this.routingPeersIncoming.filterPredicate=(e,i)=>{let o="";return o="all"===this.selFilterByIn?JSON.stringify(e).toLowerCase():"string"==typeof e[this.selFilterByIn]?e[this.selFilterByIn].toLowerCase():"boolean"==typeof e[this.selFilterByIn]?e[this.selFilterByIn]?"yes":"no":e[this.selFilterByIn].toString(),o.includes(i)},this.routingPeersOutgoing.filterPredicate=(e,i)=>{var o;let s="";switch(this.selFilterByOut){case"all":s=JSON.stringify(e).toLowerCase();break;case"total_amount":case"total_fee":s=(null===(o=+(e[this.selFilterByOut]||0)/1e3)||void 0===o?void 0:o.toString())||"";break;default:s="string"==typeof e[this.selFilterByOut]?e[this.selFilterByOut].toLowerCase():"boolean"==typeof e[this.selFilterByOut]?e[this.selFilterByOut]?"yes":"no":e[this.selFilterByOut].toString()}return s.includes(i)}}loadRoutingPeersTable(e){var i,o;if(e.length>0){const s=this.groupRoutingPeers(e);this.routingPeersIncoming=new r.by(s[0]),this.routingPeersIncoming.sort=this.sortIn,null===(i=this.routingPeersIncoming.sort)||void 0===i||i.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.routingPeersIncoming.paginator=this.paginatorIn,this.logger.info(this.routingPeersIncoming),this.routingPeersOutgoing=new r.by(s[1]),this.routingPeersOutgoing.sort=this.sortOut,null===(o=this.routingPeersOutgoing.sort)||void 0===o||o.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.routingPeersOutgoing.paginator=this.paginatorOut,this.logger.info(this.routingPeersOutgoing)}else this.routingPeersIncoming=new r.by([]),this.routingPeersOutgoing=new r.by([]);this.setFilterPredicate(),this.applyFilterIncoming(),this.applyFilterOutgoing()}groupRoutingPeers(e){const i=[],o=[];return e.forEach(s=>{const c=i.find(g=>g.channelId===s.fromChannelId),h=o.find(g=>g.channelId===s.toChannelId);c?(c.events++,c.totalAmount=+c.totalAmount+ +s.amountIn,c.totalFee=s.amountIn-s.amountOut+ +c.totalFee):i.push({channelId:s.fromChannelId,alias:s.fromChannelAlias,events:1,totalAmount:+s.amountIn,totalFee:s.amountIn-s.amountOut}),h?(h.events++,h.totalAmount=+h.totalAmount+ +s.amountOut,h.totalFee=s.amountIn-s.amountOut+ +h.totalFee):o.push({channelId:s.toChannelId,alias:s.toChannelAlias,events:1,totalAmount:+s.amountOut,totalFee:s.amountIn-s.amountOut})}),[this.commonService.sortDescByKey(i,"totalFee"),this.commonService.sortDescByKey(o,"totalFee")]}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh),t.Y36(G.i1))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-peers"]],viewQuery:function(e,i){if(1&e&&(t.Gf(vu,5,S.YE),t.Gf(Tu,5,S.YE),t.Gf(Lu,5),t.Gf(bu,5)),2&e){let o;t.iGM(o=t.CRH())&&(i.sortIn=o.first),t.iGM(o=t.CRH())&&(i.sortOut=o.first),t.iGM(o=t.CRH())&&(i.paginatorIn=o.first),t.iGM(o=t.CRH())&&(i.paginatorOut=o.first)}},features:[t._Bn([{provide:A.ye,useValue:(0,l.pt)("Peers")}])],decls:3,vars:2,consts:[["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap"],["class","p-2 error-border my-2",4,"ngIf"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch","class","page-sub-title-container mt-2",4,"ngIf"],[1,"p-2","error-border","my-2"],["fxLayout","column","fxLayout.gt-md","row","fxFlex","100","fxLayoutAlign","space-between stretch",1,"page-sub-title-container","mt-2"],["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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["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","channelId"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","alias"],["matColumnDef","events"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","totalAmount"],["matColumnDef","totalFee"],["matColumnDef","no_incoming_event"],["mat-footer-cell","","colspan","4",4,"matFooterCellDef"],["mat-footer-row","",3,"ngClass",4,"matFooterRowDef"],["mat-header-row","",4,"matHeaderRowDef"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],["paginatorIn",""],["fxLayout","column","fxFlex","49","fxLayoutAlign","end stretch",1,"mb-4"],["fxLayout","column","fxLayoutAlign","start end","fxFlex","100",1,"table-container",3,"perfectScrollbar"],["mat-table","","matSort","",1,"overflow-auto","outgoing-table",3,"dataSource"],["tableOut",""],["matColumnDef","no_outgoing_event"],["paginatorOut",""],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],[1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(e,i){1&e&&(t.TgZ(0,"div",0),t.YNc(1,Su,2,1,"div",1),t.YNc(2,mp,63,25,"div",2),t.qZA()),2&e&&(t.xp6(1),t.Q6J("ngIf",""!==i.errorMessage),t.xp6(1),t.Q6J("ngIf",""===i.errorMessage))},directives:[m.xw,m.Wh,u.O5,m.yH,u.mk,Z.oO,H.$V,M.pW,r.BZ,S.YE,r.w1,r.fO,r.ge,S.nU,r.Dz,r.ev,u.PC,Z.Zl,r.mD,r.yh,r.Ke,r.Q2,r.as,r.XQ,r.nj,r.Gk,A.NW],pipes:[u.JJ],styles:[""]}),n})();function hp(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",7),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}let _p=(()=>{class n{constructor(e){this.router=e,this.faChartBar=L.koM,this.links=[{link:"routingreport",name:"Routing"},{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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Reports"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,hp,2,3,"div",6),t.qZA(),t._UZ(9,"router-outlet"),t.qZA()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faChartBar),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,R.BU,u.sg,R.Nj,x.rH,x.lC],styles:[""]}),n})();var Mt=f(7772),Qt=f(7671),Yt=f(1210);function gp(n,a){if(1&n&&(t.TgZ(0,"div",13),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.totalFeeSat),t.xp6(1),t.AsE("",t.xi3(2,3,e.totalFeeSat||0,"1.0-2")," Sats/",t.lcZ(3,6,e.filteredEventsBySelectedPeriod.length||0)," Events")}}function fp(n,a){1&n&&(t.TgZ(0,"div",14),t._uU(1,"No routing report for the selected period"),t.qZA())}function Cp(n,a){if(1&n&&(t.TgZ(0,"span")(1,"span",17),t._uU(2),t.ALo(3,"number"),t.qZA(),t.TgZ(4,"span",17),t._uU(5),t.ALo(6,"number"),t.qZA()()),2&n){const e=a.model,i=t.oxw(2);t.xp6(2),t.hij("Events: ",t.lcZ(3,2,(i.selReportBy===i.reportBy.EVENTS?e.value:e.extra.totalEvents)||0),""),t.xp6(3),t.hij("Fee: ",t.xi3(6,4,(i.selReportBy===i.reportBy.EVENTS?e.extra.totalFees:e.value)||0,"1.0-2"),"")}}function xp(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical",15),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Cp,7,7,"ng-template",null,16,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.Q6J("view",e.view)("results",e.routingReportData)("gradient",!1)("xAxis",!0)("yAxis",!0)("showXAxisLabel",!0)("showYAxisLabel",e.showYAxisLabel)("xAxisLabel",e.xAxisLabel)("yAxisLabel",e.yAxisLabel)("showGridLines",!1)("showDataLabel",!1)}}function yp(n,a){if(1&n&&t._UZ(0,"rtl-ecl-forwarding-history",18),2&n){const e=t.oxw();t.Q6J("pageId","reports")("tableId","routing")("eventsData",e.filteredEventsBySelectedPeriod)("selFilter",e.eventFilterValue)}}let vp=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.events=[],this.filteredEventsBySelectedPeriod=[],this.eventFilterValue="",this.reportBy=l.Xr,this.selReportBy=l.Xr.FEES,this.totalFeeSat=null,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.routingReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Fee (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{this.events=e.payments&&e.payments.relayed?e.payments.relayed:[],this.filterForwardingEvents(this.startDate,this.endDate),this.logger.info(e)}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[1])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}filterForwardingEvents(e,i){const o=Math.round(e.getTime()/1e3),s=Math.round(i.getTime()/1e3);this.logger.info("Filtering Forwarding Events Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()+" To "+i.toLocaleString()),this.filteredEventsBySelectedPeriod=[],this.routingReportData=[],this.totalFeeSat=null,this.events&&this.events.length>0&&(this.events.forEach(c=>{Math.floor((c.timestamp||0)/1e3)>=o&&Math.floor((c.timestamp||0)/1e3)0&&"ngx-charts"===e.srcElement.classList[0]&&(this.eventFilterValue="")}onChartBarSelected(e){this.eventFilterValue=this.reportPeriod===l.op[1]?e.name+"/"+this.startDate.getFullYear():e.name.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}prepareFeeReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Fee Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalEvents:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+((h.amountIn||0)-(h.amountOut||0)),c[g].extra.totalEvents=c[g].extra.totalEvents+1,this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Fee Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}prepareEventsReport(e){var i,o;const s=Math.round(e.getTime()/1e3),c=[];if(this.totalFeeSat=0,this.logger.info("Events Report Prepare Starting at "+new Date(Date.now()).toLocaleString()+" From "+e.toLocaleString()),this.reportPeriod===l.op[1]){for(let h=0;h<12;h++)c.push({name:l.gg[h].name,value:0,extra:{totalFees:0}});null===(i=this.filteredEventsBySelectedPeriod)||void 0===i||i.map(h=>{const g=new Date(h.timestamp||0).getMonth();return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}else{for(let h=0;h{const g=Math.floor((Math.floor((h.timestamp||0)/1e3)-s)/this.secondsInADay);return c[g].value=c[g].value+1,c[g].extra.totalFees=c[g].extra.totalFees+((h.amountIn||0)-(h.amountOut||0)),this.totalFeeSat=(this.totalFeeSat?this.totalFeeSat:0)+((h.amountIn||0)-(h.amountOut||0)),this.filteredEventsBySelectedPeriod})}return this.logger.info("Events Report Prepare Finished at "+new Date(Date.now()).toLocaleString()),c}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.filterForwardingEvents(this.startDate,this.endDate),this.eventFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}onSelReportByChange(){this.yAxisLabel=this.selReportBy===this.reportBy.EVENTS?"Events":"Fee (Sats)",this.routingReportData=this.selReportBy===this.reportBy.EVENTS?this.prepareEventsReport(this.startDate):this.prepareFeeReport(this.startDate)}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-routing-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:17,vars:7,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["fxLayout","column","fxLayoutAlign","center center",1,"padding-gap-x"],["color","primary","name","selReportBy","fxFlex","100","fxLayoutAlign","start start",1,"my-1",3,"ngModel","ngModelChange","change"],[1,"mr-2"],["tabindex","1",1,"mr-2",3,"value"],["tabindex","2",3,"value"],["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"],[1,"mt-1"],["class","one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup",4,"ngIf"],[3,"pageId","tableId","eventsData","selFilter",4,"ngIf"],["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"],[1,"one-color",3,"view","results","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"pageId","tableId","eventsData","selFilter"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2)(3,"mat-radio-group",3),t.NdJ("ngModelChange",function(s){return i.selReportBy=s})("change",function(){return i.onSelReportByChange()}),t.TgZ(4,"span",4),t._uU(5,"Report By: "),t.qZA(),t.TgZ(6,"mat-radio-button",5),t._uU(7,"Fees"),t.qZA(),t.TgZ(8,"mat-radio-button",6),t._uU(9,"Events"),t.qZA()()(),t.TgZ(10,"div",7),t.YNc(11,gp,4,8,"div",8),t.YNc(12,fp,2,0,"div",9),t.TgZ(13,"div",10),t.YNc(14,xp,3,11,"ngx-charts-bar-vertical",11),t.qZA(),t.TgZ(15,"div",10),t.YNc(16,yp,1,4,"rtl-ecl-forwarding-history",12),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngModel",i.selReportBy),t.xp6(3),t.s9C("value",i.reportBy.FEES),t.xp6(2),t.s9C("value",i.reportBy.EVENTS),t.xp6(3),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(1),t.Q6J("ngIf",i.routingReportData.length<=0||i.filteredEventsBySelectedPeriod.length<=0),t.xp6(2),t.Q6J("ngIf",i.routingReportData.length>0&&i.filteredEventsBySelectedPeriod.length>0),t.xp6(2),t.Q6J("ngIf",i.filteredEventsBySelectedPeriod.length>0))},directives:[m.xw,m.Wh,m.yH,Qt.D,it.VQ,d.JJ,d.On,it.U0,u.O5,Yt.K$,Dt],pipes:[u.JJ],styles:[""],data:{animation:[Mt.J]}}),n})();var Tp=f(165);function Lp(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Paid ",t.xi3(2,2,e.transactionsReportSummary.amountPaidSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.paymentsSelectedPeriod)," Payments ")}}function bp(n,a){if(1&n&&(t.TgZ(0,"div",10),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=t.oxw(2);t.xp6(1),t.AsE(" Received ",t.xi3(2,2,e.transactionsReportSummary.amountReceivedSelectedPeriod||0,"1.0-2")," Sats/",t.lcZ(3,5,e.transactionsReportSummary.invoicesSelectedPeriod)," Invoices ")}}function Sp(n,a){if(1&n&&(t.TgZ(0,"div",8),t.YNc(1,Lp,4,7,"div",9),t.YNc(2,bp,4,7,"div",9),t.qZA()),2&n){const e=t.oxw();t.Q6J("@fadeIn",e.transactionsReportSummary),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.paymentsSelectedPeriod),t.xp6(1),t.Q6J("ngIf",e.transactionsReportSummary.invoicesSelectedPeriod)}}function Zp(n,a){1&n&&(t.TgZ(0,"div",11),t._uU(1,"No transactions report for the selected period"),t.qZA())}function Ap(n,a){if(1&n&&(t.TgZ(0,"span",14),t._uU(1),t.ALo(2,"number"),t.ALo(3,"number"),t.qZA()),2&n){const e=a.model;t.xp6(1),t.HOy("",e.name,": ",t.xi3(2,4,e.value||0,"1.0-2"),"/# ","Paid"===e.name?"Payments":"Invoices",": ",t.lcZ(3,7,(null==e.extra?null:e.extra.total)||0),"")}}function Ep(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"ngx-charts-bar-vertical-2d",12),t.NdJ("select",function(o){return t.CHM(e),t.oxw().onChartBarSelected(o)})("mouseup",function(o){return t.CHM(e),t.oxw().onChartMouseUp(o)}),t.YNc(1,Ap,4,9,"ng-template",null,13,t.W1O),t.qZA()}if(2&n){const e=t.oxw();t.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 wp(n,a){if(1&n&&t._UZ(0,"rtl-transactions-report-table",15),2&n){const e=t.oxw();t.Q6J("displayedColumns",e.displayedColumns)("tableSetting",e.tableSetting)("dataList",e.transactionsNonZeroReportData)("dataRange",e.reportPeriod)("selFilter",e.transactionFilterValue)}}let Ip=(()=>{class n{constructor(e,i,o){this.logger=e,this.commonService=i,this.store=o,this.scrollRanges=l.op,this.reportPeriod=l.op[0],this.secondsInADay=86400,this.payments=[],this.invoices=[],this.colWidth="20rem",this.PAGE_ID="reports",this.tableSetting={tableId:"transactions",recordsPerPage:l.IV,sortBy:"date",sortOrder:l.Pi.DESCENDING},this.displayedColumns=["date","amount_paid","num_payments","amount_received","num_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=[],this.transactionsNonZeroReportData=[],this.view=[350,350],this.screenPaddingX=100,this.gradient=!0,this.xAxisLabel="Date",this.yAxisLabel="Amount (Sats)",this.showYAxisLabel=!0,this.screenSize="",this.screenSizeEnum=l.cu,this.unSubs=[new p.x,new p.x,new p.x,new p.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),this.showYAxisLabel=!(this.screenSize===l.cu.XS||this.screenSize===l.cu.SM),this.store.select(C.nF).pipe((0,_.R)(this.unSubs[0])).subscribe(e=>{var i,o;this.tableSetting=(null===(i=e.pageSettings.find(s=>s.pageId===this.PAGE_ID))||void 0===i?void 0:i.tables.find(s=>s.tableId===this.tableSetting.tableId))||(null===(o=l.c3.find(s=>s.pageId===this.PAGE_ID))||void 0===o?void 0:o.tables.find(s=>s.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===l.cu.XS||this.screenSize===l.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)}),this.store.select(C.PP).pipe((0,_.R)(this.unSubs[1]),(0,ot.M)(this.store.select(C.Ef))).subscribe(([e,i])=>{this.payments=e.payments.sent?e.payments.sent:[],this.invoices=i.invoices?i.invoices:[],(this.payments.length>0||this.invoices.length>0)&&(this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData())}),this.commonService.containerSizeUpdated.pipe((0,_.R)(this.unSubs[2])).subscribe(e=>{switch(this.screenSize){case l.cu.MD:this.screenPaddingX=e.width/10;break;case l.cu.LG:this.screenPaddingX=e.width/16;break;default:this.screenPaddingX=e.width/20}this.view=[e.width-this.screenPaddingX,e.height/2.2],this.logger.info("Container Size: "+JSON.stringify(e)),this.logger.info("View: "+JSON.stringify(this.view))})}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===l.op[1]?e.series.toString()+"/"+this.startDate.getFullYear():e.series.toString().padStart(2,"0")+"/"+l.gg[this.startDate.getMonth()].name+"/"+this.startDate.getFullYear()}filterTransactionsForSelectedPeriod(e,i){var o,s;const c=Math.round(e.getTime()/1e3),h=Math.round(i.getTime()/1e3),g=[];this.transactionsReportSummary={paymentsSelectedPeriod:0,invoicesSelectedPeriod:0,amountPaidSelectedPeriod:0,amountReceivedSelectedPeriod:0};const v=null===(o=this.payments)||void 0===o?void 0:o.filter(T=>T.firstPartTimestamp&&Math.floor(T.firstPartTimestamp/1e3)>=c&&Math.floor(T.firstPartTimestamp/1e3)"received"===T.status&&T.timestamp&&T.timestamp>=c&&T.timestamp{const F=new Date(T.firstPartTimestamp||0).getMonth();return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(T.recipientAmount||0),g[F].series[0].value=g[F].series[0].value+T.recipientAmount,g[F].series[0].extra.total=g[F].series[0].extra.total+1,this.transactionsReportSummary}),null==B||B.map(T=>{const F=new Date(1e3*(T.timestamp||0)).getMonth();return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(T.amountSettled||0),g[F].series[1].value=g[F].series[1].value+T.amountSettled,g[F].series[1].extra.total=g[F].series[1].extra.total+1,this.transactionsReportSummary})}else{for(let T=0;T{const F=Math.floor((Math.floor((T.firstPartTimestamp||0)/1e3)-c)/this.secondsInADay);return this.transactionsReportSummary.amountPaidSelectedPeriod=this.transactionsReportSummary.amountPaidSelectedPeriod+(T.recipientAmount||0),g[F].series[0].value=g[F].series[0].value+T.recipientAmount,g[F].series[0].extra.total=g[F].series[0].extra.total+1,this.transactionsReportSummary}),null==B||B.map(T=>{const F=Math.floor(((T.timestamp||0)-c)/this.secondsInADay);return this.transactionsReportSummary.amountReceivedSelectedPeriod=this.transactionsReportSummary.amountReceivedSelectedPeriod+(T.amountSettled||0),g[F].series[1].value=g[F].series[1].value+T.amountSettled,g[F].series[1].extra.total=g[F].series[1].extra.total+1,this.transactionsReportSummary})}return g}prepareTableData(){var e;return null===(e=this.transactionsReportData)||void 0===e?void 0:e.reduce((i,o)=>o.series[0].extra.total>0||o.series[1].extra.total>0?i.concat({date:o.date,amount_paid:o.series[0].value,num_payments:o.series[0].extra.total,amount_received:o.series[1].value,num_invoices:o.series[1].extra.total}):i,[])}onSelectionChange(e){const i=e.selDate.getMonth(),o=e.selDate.getFullYear();this.reportPeriod=e.selScrollRange,this.reportPeriod===l.op[1]?(this.startDate=new Date(o,0,1,0,0,0),this.endDate=new Date(o,11,31,23,59,59)):(this.startDate=new Date(o,i,1,0,0,0),this.endDate=new Date(o,i,this.getMonthDays(i,o),23,59,59)),this.transactionsReportData=this.filterTransactionsForSelectedPeriod(this.startDate,this.endDate),this.transactionsNonZeroReportData=this.prepareTableData(),this.transactionFilterValue=""}getMonthDays(e,i){return 1===e&&i%4==0?l.gg[e].days+1:l.gg[e].days}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(O.mQ),t.Y36(P.v),t.Y36(w.yh))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-transactions-report"]],hostBindings:function(e,i){1&e&&t.NdJ("mouseup",function(s){return i.onChartMouseUp(s)})},decls:9,vars:4,consts:[["fxLayout","column","fxLayoutAlign","start stretch","fxFlex","100",1,"padding-gap-x-large"],[3,"stepChanged"],["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"],[1,"mt-1"],["class","two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup",4,"ngIf"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter",4,"ngIf"],["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"],[1,"two-color",3,"view","results","noBarWhenZero","gradient","xAxis","yAxis","showXAxisLabel","showYAxisLabel","xAxisLabel","yAxisLabel","showGridLines","showDataLabel","groupPadding","select","mouseup"],["tooltipTemplate",""],[1,"tooltip-label"],[3,"displayedColumns","tableSetting","dataList","dataRange","selFilter"]],template:function(e,i){1&e&&(t.TgZ(0,"div",0)(1,"rtl-horizontal-scroller",1),t.NdJ("stepChanged",function(s){return i.onSelectionChange(s)}),t.qZA(),t.TgZ(2,"div",2),t.YNc(3,Sp,3,3,"div",3),t.YNc(4,Zp,2,0,"div",4),t.TgZ(5,"div",5),t.YNc(6,Ep,3,13,"ngx-charts-bar-vertical-2d",6),t.qZA(),t.TgZ(7,"div",5),t.YNc(8,wp,1,5,"rtl-transactions-report-table",7),t.qZA()()()),2&e&&(t.xp6(3),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(1),t.Q6J("ngIf",i.transactionsNonZeroReportData.length<=0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0),t.xp6(2),t.Q6J("ngIf",i.transactionsNonZeroReportData.length>0))},directives:[m.xw,m.Wh,m.yH,Qt.D,u.O5,Yt.H5,Tp.g],pipes:[u.JJ],styles:[""],data:{animation:[Mt.J]}}),n})();var I=f(1643),Fp=f(9442);function qp(n,a){if(1&n){const e=t.EpF();t.TgZ(0,"div",8),t.NdJ("click",function(){const s=t.CHM(e).$implicit;return t.oxw().activeLink=s.link}),t._uU(1),t.qZA()}if(2&n){const e=a.$implicit,i=t.oxw();t.s9C("routerLink",e.link),t.Q6J("active",i.activeLink===e.link),t.xp6(1),t.Oqu(e.name)}}const Pp=x.Bz.forChild([{path:"",component:Ct,children:[{path:"",pathMatch:"full",redirectTo:"home"},{path:"home",component:Ca,canActivate:[I.fY]},{path:"onchain",component:so,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"receive"},{path:"receive",component:Uo,canActivate:[I.fY]},{path:"send",component:Ro,canActivate:[I.fY]}]},{path:"connections",component:co,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"channels"},{path:"channels",component:es,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"open"},{path:"open",component:nl,canActivate:[I.fY]},{path:"pending",component:Jl,canActivate:[I.fY]},{path:"inactive",component:Ic,canActivate:[I.fY]}]},{path:"peers",component:Ar,data:{sweepAll:!1},canActivate:[I.fY]}]},{path:"transactions",component:po,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"payments"},{path:"payments",component:St,canActivate:[I.fY]},{path:"invoices",component:Lt,canActivate:[I.fY]}]},{path:"routing",component:ho,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"forwardinghistory"},{path:"forwardinghistory",component:Dt,canActivate:[I.fY]},{path:"peers",component:dp,canActivate:[I.fY]}]},{path:"reports",component:_p,canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"routingreport"},{path:"routingreport",component:vp,canActivate:[I.fY]},{path:"transactions",component:Ip,canActivate:[I.fY]}]},{path:"graph",component:(()=>{class n{constructor(e){this.router=e,this.faSearch=L.wn1,this.links=[{link:"lookups",name:"Lookup"},{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(i=>this.router.url.includes(i.link));this.activeLink=e?e.link:this.links[0].link,this.router.events.pipe((0,_.R)(this.unSubs[0]),(0,Q.h)(i=>i instanceof x.Av)).subscribe({next:i=>{const o=this.links.find(s=>i.urlAfterRedirects.includes(s.link));this.activeLink=o?o.link:this.links[0].link}})}ngOnDestroy(){this.unSubs.forEach(e=>{e.next(null),e.complete()})}}return n.\u0275fac=function(e){return new(e||n)(t.Y36(x.F0))},n.\u0275cmp=t.Xpm({type:n,selectors:[["rtl-ecl-graph"]],decls:11,vars:2,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"],["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,i){1&e&&(t.TgZ(0,"div",0),t._UZ(1,"fa-icon",1),t.TgZ(2,"span",2),t._uU(3,"Graph Lookups"),t.qZA()(),t.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),t.YNc(8,qp,2,3,"div",6),t.qZA(),t.TgZ(9,"div",7),t._UZ(10,"router-outlet"),t.qZA()()()()),2&e&&(t.xp6(1),t.Q6J("icon",i.faSearch),t.xp6(7),t.Q6J("ngForOf",i.links))},directives:[m.xw,m.Wh,q.BN,b.a8,b.dn,R.BU,u.sg,R.Nj,x.rH,m.yH,x.lC],styles:[""]}),n})(),canActivate:[I.fY],children:[{path:"",pathMatch:"full",redirectTo:"lookups"},{path:"lookups",component:Oo,canActivate:[I.fY]},{path:"queryroutes",component:Qr,canActivate:[I.fY]}]},{path:"**",component:Fp.w}]}]);var Up=f(8750);let Rp=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.oAB({type:n,bootstrap:[Ct]}),n.\u0275inj=t.cJS({providers:[I.fY],imports:[[u.ez,Up.m,Pp]]}),n})()}}]); \ No newline at end of file diff --git a/frontend/index.html b/frontend/index.html index 3b256c89..80115a05 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -13,6 +13,6 @@ - + \ No newline at end of file diff --git a/frontend/main.6682ae4e27664a40.js b/frontend/main.6682ae4e27664a40.js new file mode 100644 index 00000000..8a152acb --- /dev/null +++ b/frontend/main.6682ae4e27664a40.js @@ -0,0 +1 @@ +var ES=Object.defineProperty,TS=Object.defineProperties,AS=Object.getOwnPropertyDescriptors,J9=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,DS=Object.prototype.propertyIsEnumerable,X9=(Be,K,p)=>K in Be?ES(Be,K,{enumerable:!0,configurable:!0,writable:!0,value:p}):Be[K]=p,eo=(Be,K)=>{for(var p in K||(K={}))LS.call(K,p)&&X9(Be,p,K[p]);if(J9)for(var p of J9(K))DS.call(K,p)&&X9(Be,p,K[p]);return Be},$9=(Be,K)=>TS(Be,AS(K));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(Be,K,p)=>{"use strict";p.d(K,{$A:()=>X,$W:()=>ue,BL:()=>V,CN:()=>h,CX:()=>L,EG:()=>E,EK:()=>x,El:()=>re,HI:()=>r,HJ:()=>S,I8:()=>k,JK:()=>tt,Lu:()=>B,Ly:()=>ce,Ni:()=>f,Nr:()=>Ve,OG:()=>N,QJ:()=>Ee,RX:()=>D,Rd:()=>Me,SN:()=>w,Sf:()=>H,TM:()=>c,UH:()=>Te,UR:()=>I,VD:()=>W,WM:()=>j,WO:()=>v,Wi:()=>Oe,X3:()=>q,YP:()=>J,YX:()=>_,Z8:()=>ne,ZH:()=>Q,Zu:()=>Ce,_9:()=>Zt,_E:()=>ae,aL:()=>Ie,as:()=>y,cQ:()=>i,d7:()=>di,dh:()=>fe,e9:()=>Yt,eF:()=>R,eM:()=>xe,en:()=>ui,g3:()=>Z,g6:()=>ut,i9:()=>pt,kL:()=>T,n7:()=>he,oV:()=>u,oo:()=>a,pW:()=>n,pd:()=>d,u0:()=>Pe,uT:()=>Dt,v_:()=>be,wD:()=>C,xH:()=>M,xS:()=>Y,yl:()=>te,z:()=>_e});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),a=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),d=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),R=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),h=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),L=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_FEES_CLN),D=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),S=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),B=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),Z=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Y=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),ae=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),ue=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),ne=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),re=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),q=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),_e=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),x=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),r=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),c=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),y=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),_=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),V=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),H=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),he=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),be=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),Ee=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),j=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),Ve=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Me=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),Oe=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),ce=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Te=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),xe=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),te=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),Ce=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),Q=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),pt=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),tt=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Dt=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),di=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),Yt=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Zt=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),ui=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(Be,K,p)=>{"use strict";p.d(K,{J:()=>q});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),C=p(4004),d=p(262),R=p(2340),h=p(1786),L=p(5566),w=p(7731),D=p(7861),S=p(429),k=p(9828),E=p(1462),B=p(5e3),Z=p(8138),Y=p(5620),ae=p(5986),ee=p(62),ue=p(5043),ne=p(1402),re=p(7998),ge=p(9808);let q=(()=>{class _e{constructor(i,r,u,c,v,T,I,y,n){this.actions=i,this.httpClient=r,this.store=u,this.sessionService=c,this.commonService=v,this.logger=T,this.router=I,this.wsService=y,this.location=n,this.CHILD_API_URL=R.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,M.z)(_=>(this.flgInitialized=!1,this.store.dispatch((0,D.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,D.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,C.U)(V=>(this.logger.info(V),V.chains&&V.chains.length&&V.chains[0]&&"object"==typeof V.chains[0]&&V.chains[0].hasOwnProperty("chain")&&(null==V?void 0:V.chains[0].chain)&&(null==V?void 0:V.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,D.ts)()),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(V,_.payload.loadPage),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:V||{}}))),(0,d.K)(V=>{const N=this.commonService.extractErrorCode(V),H="ETIMEDOUT"===N?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(V);return this.router.navigate(["/error"],{state:{errorCode:N,errorMessage:H}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:N,error:H}),(0,f.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/feeRates/"+_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:V||{}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchFeeRates"+_.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.BALANCE_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressCode).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,D.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:V&&V.address?V.address:{}})),(0,d.K)(V=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressId,V),(0,f.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",_),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API,{id:_.payload.id}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:V||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:V.find(N=>0===_.payload.id.indexOf(N.id?N.id:""))}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id+"?force="+_.payload.force).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,D.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,D.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:_.payload.id}})),(0,d.K)(V=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id,V),(0,f.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listChannels"))),(0,C.U)(_=>{this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}}));const V={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return _.forEach(N=>{"CHANNELD_NORMAL"===N.state?N.connected?V.activeChannels.push(N):V.inactiveChannels.push(N):V.pendingChannels.push(N)}),{type:w.AB.SET_CHANNELS_CLN,payload:V}}),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,M.z)(_=>{this.store.dispatch((0,D.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const V={id:_.payload.peerId,satoshis:_.payload.satoshis,feeRate:_.payload.feeRate,announce:_.payload.announce};return _.payload.minconf&&(V.minconf=_.payload.minconf),_.payload.utxos&&(V.utxos=_.payload.utxos),_.payload.requestAmount&&(V.request_amt=_.payload.requestAmount),_.payload.compactLease&&(V.compact_lease=_.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,V).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(N=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",N),(0,f.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/setChannelFee",{id:_.payload.channelId,base:_.payload.baseFeeMsat,ppm:_.payload.feeRate}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,D.jW)("all"===_.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,V),(0,f.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/"+_.payload.channelId+(_.payload.force?"?force="+_.payload.force:"")).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.g3)()),this.store.dispatch((0,D.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:_.payload})),(0,d.K)(N=>(this.handleErrorWithAlert("CloseChannel",_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API+"/fetchOfferInvoice",_.payload).pipe((0,C.U)(V=>{this.logger.info(V),setTimeout(()=>{this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,S.VD)({payload:V||{}}))},500)}),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",V),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.Ni)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,_.payload).pipe((0,C.U)(V=>{this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let N="Payment Sent Successfully!";V.saveToDBError&&(N="Payment Sent Successfully but Offer Saving to Database Failed."),V.saveToDBResponse&&"NA"!==V.saveToDBResponse&&(this.store.dispatch((0,S.e9)({payload:V.saveToDBResponse})),N="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.cQ)()),this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,D.jW)({payload:N})),this.store.dispatch((0,S.TM)({payload:V.paymentResponse}))},1e3)}),(0,d.K)(V=>(this.logger.error("Error: "+JSON.stringify(V)),_.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",V):this.handleErrorWithAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,V),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:V})),(0,d.K)(V=>(this.store.dispatch((0,S.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount,V),(0,f.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,C.U)(_=>_.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload,V),(0,f.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(_.payload.showError?this.handleErrorWithAlert("Lookup",_.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID,V):this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.v_)({payload:[]})),(0,f.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?label="+_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_INVOICE})),V.invoices&&V.invoices.length&&V.invoices.length>0&&this.store.dispatch((0,S.aL)({payload:V.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:V.invoices&&V.invoices.length&&V.invoices.length>0?V.invoices[0]:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",V),this.store.dispatch((0,D.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,M.z)(_=>{const V=_.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,S.Ni)({payload:{action:"FetchForwardingHistory"+V,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,S.Ni)({payload:{action:"FetchForwardingHistory"+V,status:w.Bn.COMPLETED}})),_.payload.status===w.OO.FAILED?this.store.dispatch((0,S.QJ)({payload:{status:w.OO.FAILED,totalForwards:N.length,listForwards:N}})):_.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,S.QJ)({payload:{status:w.OO.LOCAL_FAILED,totalForwards:N.length,listForwards:N}})):_.payload.status===w.OO.SETTLED&&this.store.dispatch((0,S.QJ)({payload:{status:w.OO.SETTLED,totalForwards:N.length,listForwards:N}})),{type:w.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("FetchForwardingHistory"+V,w.m6.NO_SPINNER,"Get "+_.payload.status+" Forwarding History Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status,N),(0,f.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.INVOICES_API+(_.payload?"?maxexpiry="+_.payload:"")).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,D.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(N=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+R.NZ.INVOICES_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,{label:_.payload.label,amount:_.payload.amount,description:_.payload.description,expiry:_.payload.expiry,private:_.payload.private}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.ADD_INVOICE})),V.msatoshi=_.payload.amount,V.label=_.payload.label,V.expires_at=Math.round((new Date).getTime()/1e3+_.payload.expiry),V.description=_.payload.description,V.status="unpaid",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{invoice:V,newlyAdded:!0,component:L.y}}}))},200),{type:w.AB.ADD_INVOICE_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API,{amount:_.payload.amount,description:_.payload.description,vendor:_.payload.vendor}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{offer:V,newlyAdded:!0,component:E.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?num_max_invoices="+(_.payload.num_max_invoices?_.payload.num_max_invoices:1e6)+"&index_offset="+(_.payload.index_offset?_.payload.index_offset:0)+"&reversed="+(!_.payload.reversed||_.payload.reversed)).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:X})),(0,d.K)(X=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",X),(0,f.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:V.offers?V.offers:[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,S.Ni)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/"+_.payload.offer_id).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,D.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:V}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmarks").pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,S.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,D.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:_.payload.bolt12}})),(0,d.K)(V=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12,V),(0,f.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,S.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/utxos"))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.AB.SET_UTXOS_CLN,payload:_.outputs||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAGE_SETTINGS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",_),(0,f.of)({type:w.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_PAGE_SETTINGS_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.Ni)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,D.jW)({payload:"Page Layout Updated Successfully!"})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",R.NZ.PAGE_SETTINGS_API,V),(0,f.of)({type:w.pg.VOID})))))))),this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(_=>{_.FetchInfo.status!==w.Bn.COMPLETED&&_.FetchInfo.status!==w.Bn.ERROR||_.FetchFees.status!==w.Bn.COMPLETED&&_.FetchFees.status!==w.Bn.ERROR||_.FetchChannels.status!==w.Bn.COMPLETED&&_.FetchChannels.status!==w.Bn.ERROR||_.FetchBalance.status!==w.Bn.COMPLETED&&_.FetchBalance.status!==w.Bn.ERROR||_.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&_.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,D.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(_=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(_)),_)switch(_.event){case w.nM.INVOICE:this.logger.info(_),_&&_.data&&_.data.label&&this.store.dispatch((0,S.aL)({payload:_.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(_);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(_))}})}initializeRemainingData(i,r){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,D.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,D._V)({payload:u}));let c=this.location.path();c.includes("/lnd/")?c=null==c?void 0:c.replace("/lnd/","/cln/"):c.includes("/ecl/")&&(c=null==c?void 0:c.replace("/ecl/","/cln/")),(c.includes("/login")||c.includes("/error")||""===c||"HOME"===r||c.includes("?access-key="))&&(c="/cln/home"),this.router.navigate([c]),this.store.dispatch((0,S.wD)()),this.store.dispatch((0,S.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.g3)()),this.store.dispatch((0,S.HJ)({payload:"perkw"})),this.store.dispatch((0,S.HJ)({payload:"perkb"})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.Ly)()),this.store.dispatch((0,S.cQ)())}handleErrorWithoutAlert(i,r,u,c){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(c)),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const v=this.commonService.extractErrorMessage(c,u);this.store.dispatch((0,S.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:c.status.toString(),message:v}}))}}handleErrorWithAlert(i,r,u,c,v){if(this.logger.error(v),401===v.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const T=this.commonService.extractErrorMessage(v);this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:v.status,message:T,URL:c},component:h.H}}})),this.store.dispatch((0,S.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:v.status.toString(),message:T,URL:c}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return _e.\u0275fac=function(i){return new(i||_e)(B.LFG(t.eX),B.LFG(Z.eN),B.LFG(Y.yh),B.LFG(ae.m),B.LFG(ee.v),B.LFG(ue.mQ),B.LFG(ne.F0),B.LFG(re.d),B.LFG(ge.Ye))},_e.\u0275prov=B.Yz7({token:_e,factory:_e.\u0275fac}),_e})()},9828:(Be,K,p)=>{"use strict";p.d(K,{AS:()=>M,Ao:()=>re,Bo:()=>Y,EQ:()=>_e,Hz:()=>ge,JG:()=>L,OL:()=>ue,PP:()=>R,Rn:()=>B,T4:()=>k,Wi:()=>h,Wj:()=>Z,Y_:()=>q,ZW:()=>E,ey:()=>a,gc:()=>S,hx:()=>D,jK:()=>ne,lK:()=>ee,lw:()=>f,xQ:()=>ae,yA:()=>d,zm:()=>w});var t=p(5620);const e=(0,t.ZF)("cln"),f=(0,t.P1)(e,i=>i.nodeSettings),M=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,i=>i.information),d=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),R=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,i=>({fees:i.fees,apiCallStatus:i.apisCallStatus.FetchFees})),w=(0,t.P1)(e,i=>({feeRatesPerKB:i.feeRatesPerKB,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkb})),D=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),S=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),E=(0,t.P1)(e,i=>({activeChannels:i.activeChannels,pendingChannels:i.pendingChannels,inactiveChannels:i.inactiveChannels,apiCallStatus:i.apisCallStatus.FetchChannels})),B=(0,t.P1)(e,i=>({balance:i.balance,apiCallStatus:i.apisCallStatus.FetchBalance})),Z=(0,t.P1)(e,i=>({localRemoteBalance:i.localRemoteBalance,apiCallStatus:i.apisCallStatus.FetchLocalRemoteBalance})),Y=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),ae=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ee=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),ue=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),ne=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),re=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),ge=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,apisCallStatus:[i.apisCallStatus.FetchInfo,i.apisCallStatus.FetchForwardingHistoryS]})),q=(0,t.P1)(e,i=>({offers:i.offers,apiCallStatus:i.apisCallStatus.FetchOffers})),_e=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(Be,K,p)=>{"use strict";p.d(K,{y:()=>ut});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(9828),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),B=p(9224),Z=p(9546),Y=p(7238),ae=p(7423),ee=p(4834),ue=p(773),ne=p(3390),re=p(6895);function ge(Oe,we){if(1&Oe&&d._UZ(0,"qr-code",33),2&Oe){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function q(Oe,we){1&Oe&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const _e=function(Oe){return{"mr-0":Oe}};function x(Oe,we){if(1&Oe&&d._UZ(0,"span",35),2&Oe){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,_e,ce.screenSize===ce.screenSizeEnum.XS))}}function i(Oe,we){if(1&Oe&&d._UZ(0,"span",36),2&Oe){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,_e,ce.screenSize===ce.screenSizeEnum.XS))}}function r(Oe,we){if(1&Oe&&d._UZ(0,"span",37),2&Oe){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,_e,ce.screenSize===ce.screenSizeEnum.XS))}}function u(Oe,we){if(1&Oe&&d._UZ(0,"qr-code",33),2&Oe){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function c(Oe,we){1&Oe&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function v(Oe,we){1&Oe&&d._UZ(0,"mat-divider",39),2&Oe&&d.Q6J("inset",!0)}function T(Oe,we){if(1&Oe&&(d.TgZ(0,"div",19)(1,"div",40),d._UZ(2,"fa-icon",41),d.TgZ(3,"span"),d._uU(4),d.qZA()()()),2&Oe){const ce=d.oxw();d.xp6(2),d.Q6J("icon",ce.faExclamationTriangle),d.xp6(2),d.Oqu(null==ce.invoice?null:ce.invoice.warning_capacity)}}function I(Oe,we){1&Oe&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function y(Oe,we){1&Oe&&d._UZ(0,"span",47)}const n=function(){return[]};function _(Oe,we){if(1&Oe&&(d.TgZ(0,"div",43)(1,"div",44)(2,"span",45),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,y,1,0,"span",46),d.qZA()()),2&Oe){const ce=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function V(Oe,we){if(1&Oe&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Oe){const ce=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats")}}function N(Oe,we){if(1&Oe&&(d.ynx(0),d.YNc(1,_,6,5,"div",42),d.YNc(2,V,3,3,"div",23),d.BQk()),2&Oe){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf",ce.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ce.flgInvoicePaid)}}function H(Oe,we){1&Oe&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function X(Oe,we){1&Oe&&d._UZ(0,"mat-spinner",49),2&Oe&&d.Q6J("diameter",20)}function he(Oe,we){if(1&Oe&&(d.ynx(0),d.YNc(1,H,2,0,"span",23),d.YNc(2,X,1,1,"mat-spinner",48),d.BQk()),2&Oe){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ce.invoice?null:ce.invoice.status)||!ce.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ce.invoice?null:ce.invoice.status)&&ce.flgVersionCompatible)}}function be(Oe,we){if(1&Oe&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",25),d.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),d._uU(5,"Payment Hash"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",25),d.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),d._uU(12,"Label"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()()(),d._UZ(15,"mat-divider",25),d.qZA()),2&Oe){const ce=d.oxw();d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.payment_hash),d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.label)}}function Pe(Oe,we){1&Oe&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ee(Oe,we){1&Oe&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function j(Oe,we){if(1&Oe){const ce=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(xe){return d.CHM(ce),d.oxw().onCopyPayment(xe)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Oe){const ce=d.oxw();d.Q6J("payload",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))}}function Ve(Oe,we){if(1&Oe){const ce=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(ce),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Me=function(Oe){return{"display-none":Oe}},J=function(Oe){return{"xs-scroll-y":Oe}},Ie=function(Oe,we){return{"mt-2":Oe,"mt-1":we}};let ut=(()=>{class Oe{constructor(ce,Te,xe,W,te,Ce){this.dialogRef=ce,this.data=Te,this.logger=xe,this.commonService=W,this.snackBar=te,this.store=Ce,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.api_version,"0.6.0")}),this.store.select(C.gc).pipe((0,M.R)(this.unSubs[1])).subscribe(ce=>{const Te=this.invoice.status,xe=ce.listInvoices.invoices||[],W=(null==xe?void 0:xe.find(te=>te.payment_hash===this.invoice.payment_hash))||null;W&&(this.invoice=W),Te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ce)}ngOnDestroy(){this.unSubs.forEach(ce=>{ce.next(null),ce.complete()})}}return Oe.\u0275fac=function(ce){return new(ce||Oe)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},Oe.\u0275cmp=d.Xpm({type:Oe,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,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,"value","size","errorCorrectionLevel",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"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["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,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Te){if(1&ce&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ge,1,3,"qr-code",2),d.YNc(3,q,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.YNc(10,x,1,3,"span",9),d.YNc(11,i,1,3,"span",10),d.YNc(12,r,1,3,"span",11),d.qZA()(),d.TgZ(13,"button",12),d.NdJ("click",function(){return Te.onClose()}),d._uU(14,"X"),d.qZA()(),d.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),d.YNc(18,u,1,3,"qr-code",2),d.YNc(19,c,2,0,"span",16),d.qZA(),d.YNc(20,v,1,1,"mat-divider",17),d.YNc(21,T,5,2,"div",18),d.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),d._uU(25),d.qZA(),d.TgZ(26,"span",22),d._uU(27),d.ALo(28,"number"),d.YNc(29,I,2,0,"ng-container",23),d.qZA()(),d.TgZ(30,"div",20)(31,"h4",21),d._uU(32,"Amount Received"),d.qZA(),d.TgZ(33,"span",24),d.YNc(34,N,3,2,"ng-container",23),d.YNc(35,he,3,2,"ng-container",23),d.qZA()()(),d._UZ(36,"mat-divider",25),d.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),d._uU(40,"Date Expiry"),d.qZA(),d.TgZ(41,"span",22),d._uU(42),d.ALo(43,"date"),d.qZA()(),d.TgZ(44,"div",20)(45,"h4",21),d._uU(46,"Date Settled"),d.qZA(),d.TgZ(47,"span",22),d._uU(48),d.ALo(49,"date"),d.qZA()()(),d._UZ(50,"mat-divider",25),d.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),d._uU(54,"Description"),d.qZA(),d.TgZ(55,"span",22),d._uU(56),d.qZA()()(),d._UZ(57,"mat-divider",25),d.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),d._uU(61),d.qZA(),d.TgZ(62,"span",24),d._uU(63),d.qZA()()(),d.YNc(64,be,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return Te.onShowAdvanced()}),d.YNc(67,Pe,2,0,"p",29),d.YNc(68,Ee,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,j,2,1,"button",31),d.YNc(71,Ve,2,0,"button",32),d.qZA()()()()()),2&ce){const xe=d.MAs(69);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(40,Me,Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(4),d.Q6J("icon",Te.faReceipt),d.xp6(2),d.hij(" ",Te.screenSize===Te.screenSizeEnum.XS?Te.newlyAdded?"Created":"Invoice":Te.newlyAdded?"Invoice Created":"Invoice Information"," "),d.xp6(1),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","expired"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(3),d.Q6J("ngClass",d.VKq(42,J,Te.screenSize===Te.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(44,Me,Te.screenSize!==Te.screenSizeEnum.XS&&Te.screenSize!==Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngIf",null==Te.invoice?null:Te.invoice.warning_capacity),d.xp6(4),d.Oqu(Te.screenSize===Te.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij(" ",d.lcZ(28,32,(null==Te.invoice?null:Te.invoice.msatoshi)/1e3||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.msatoshi)||"0"===(null==Te.invoice?null:Te.invoice.msatoshi)),d.xp6(5),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","paid"!==(null==Te.invoice?null:Te.invoice.status)),d.xp6(7),d.Oqu(d.xi3(43,34,1e3*(null==Te.invoice?null:Te.invoice.expires_at),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(49,37,1e3*(null==Te.invoice?null:Te.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),d.xp6(8),d.Oqu((null==Te.invoice?null:Te.invoice.description)||"-"),d.xp6(5),d.hij("",null!=Te.invoice&&Te.invoice.bolt12?"Bolt12":null!=Te.invoice&&Te.invoice.bolt11&&!Te.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),d.xp6(2),d.Oqu((null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(46,Ie,!Te.showAdvanced,Te.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",xe),d.xp6(3),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,B.dk,Z.BN,Y.gM,ae.lW,B.dn,ee.d,S.sg,ue.Ou,ne.h,re.y],pipes:[S.JJ,S.uU],styles:[""]}),Oe})()},1462:(Be,K,p)=>{"use strict";p.d(K,{k:()=>H});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(9828),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(8104),S=p(7093),k=p(9808),E=p(3322),B=p(159),Z=p(9224),Y=p(9546),ae=p(7423),ee=p(4834),ue=p(3390),ne=p(6895);function re(X,he){if(1&X&&d._UZ(0,"qr-code",28),2&X){const be=d.oxw();d.Q6J("value",null==be.offer?null:be.offer.bolt12)("size",be.qrWidth)("errorCorrectionLevel","L")}}function ge(X,he){1&X&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function q(X,he){if(1&X&&d._UZ(0,"qr-code",28),2&X){const be=d.oxw();d.Q6J("value",null==be.offer?null:be.offer.bolt12)("size",be.qrWidth)("errorCorrectionLevel","L")}}function _e(X,he){1&X&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(X,he){1&X&&d._UZ(0,"mat-divider",31),2&X&&d.Q6J("inset",!0)}function i(X,he){1&X&&d._UZ(0,"mat-divider",19)}function r(X,he){if(1&X&&(d.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),d._uU(3,"Used"),d.qZA(),d.TgZ(4,"span",18),d._uU(5),d.qZA()(),d.TgZ(6,"div",16)(7,"h4",17),d._uU(8,"Single Use"),d.qZA(),d.TgZ(9,"span",18),d._uU(10),d.qZA()()()),2&X){const be=d.oxw(2);d.xp6(5),d.hij(" ",null!=be.offer&&be.offer.used?null!=be.offer&&be.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=be.offer&&be.offer.single_use?null!=be.offer&&be.offer.single_use?"Yes":"No":"N/K"," ")}}function u(X,he){1&X&&d._UZ(0,"mat-divider",19)}function c(X,he){if(1&X&&(d.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),d._uU(3,"Vendor"),d.qZA(),d.TgZ(4,"span",34),d._uU(5),d.qZA()()()),2&X){const be=d.oxw(2);d.xp6(5),d.Oqu((null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer))}}function v(X,he){if(1&X&&(d.TgZ(0,"div"),d.YNc(1,i,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,u,1,0,"mat-divider",32),d.YNc(4,c,6,1,"div",33),d._UZ(5,"mat-divider",19),d.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),d._uU(9,"Offer ID"),d.qZA(),d.TgZ(10,"span",18),d._uU(11),d.qZA()()(),d._UZ(12,"mat-divider",19),d.qZA()),2&X){const be=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==be.offer?null:be.offer.used)||(null==be.offer?null:be.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==be.offer?null:be.offer.used)||(null==be.offer?null:be.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer)),d.xp6(7),d.Oqu(be.offerDecoded.offer_id)}}function T(X,he){1&X&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function I(X,he){1&X&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function y(X,he){if(1&X){const be=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(Ee){return d.CHM(be),d.oxw().onCopyOffer(Ee)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&X){const be=d.oxw();d.Q6J("payload",null==be.offer?null:be.offer.bolt12)}}function n(X,he){if(1&X){const be=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(be),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const _=function(X){return{"display-none":X}},V=function(X){return{"xs-scroll-y":X}},N=function(X,he){return{"mt-2":X,"mt-1":he}};let H=(()=>{class X{constructor(be,Pe,Ee,j,Ve,Me,J){this.dialogRef=be,this.data=Pe,this.logger=Ee,this.commonService=j,this.snackBar=Ve,this.store=Me,this.dataService=J,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(be.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,M.R)(this.unSubs[1])).subscribe(be=>{var Pe;this.offerDecoded=be,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+(null===(Pe=this.offerDecoded.amount_msat)||void 0===Pe?void 0:Pe.slice(0,-4)):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(be){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+be)}ngOnDestroy(){this.unSubs.forEach(be=>{be.next(null),be.complete()})}}return X.\u0275fac=function(be){return new(be||X)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh),d.Y36(D.D))},X.\u0275cmp=d.Xpm({type:X,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,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,"value","size","errorCorrectionLevel",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"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(be,Pe){if(1&be&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,re,1,3,"qr-code",2),d.YNc(3,ge,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Pe.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,q,1,3,"qr-code",2),d.YNc(16,_e,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested (Sats)"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.qZA()(),d.TgZ(25,"div",16)(26,"h4",17),d._uU(27,"Active"),d.qZA(),d.TgZ(28,"span",18),d._uU(29),d.qZA()()(),d._UZ(30,"mat-divider",19),d.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),d._uU(34,"Description"),d.qZA(),d.TgZ(35,"span",18),d._uU(36),d.qZA()()(),d._UZ(37,"mat-divider",19),d.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),d._uU(41,"Offer Request"),d.qZA(),d.TgZ(42,"span",18),d._uU(43),d.qZA()()(),d.YNc(44,v,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return Pe.onShowAdvanced()}),d.YNc(47,T,2,0,"p",24),d.YNc(48,I,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,y,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&be){const Ee=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Pe.offer&&Pe.offer.bolt12&&""!==(null==Pe.offer?null:Pe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,_,Pe.screenSize===Pe.screenSizeEnum.XS||Pe.screenSize===Pe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(4),d.Q6J("icon",Pe.faReceipt),d.xp6(2),d.Oqu(Pe.screenSize===Pe.screenSizeEnum.XS?Pe.newlyAdded?"Created":"Offer":Pe.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,V,Pe.screenSize===Pe.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Pe.offer&&Pe.offer.bolt12&&""!==(null==Pe.offer?null:Pe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,_,Pe.screenSize!==Pe.screenSizeEnum.XS&&Pe.screenSize!==Pe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",Pe.screenSize===Pe.screenSizeEnum.XS||Pe.screenSize===Pe.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=Pe.offerDecoded&&Pe.offerDecoded.amount_msat&&0!==(null==Pe.offerDecoded?null:Pe.offerDecoded.amount)?d.lcZ(24,22,(null==Pe.offerDecoded?null:Pe.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=Pe.offer&&Pe.offer.active?null!=Pe.offer&&Pe.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==Pe.offerDecoded?null:Pe.offerDecoded.description," "),d.xp6(7),d.Oqu(null==Pe.offer?null:Pe.offer.bolt12),d.xp6(1),d.Q6J("ngIf",Pe.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,N,!Pe.showAdvanced,Pe.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Pe.showAdvanced)("ngIfElse",Ee),d.xp6(3),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12))}},directives:[S.xw,S.Wh,S.yH,k.mk,E.oO,k.O5,B.uU,Z.dk,Y.BN,ae.lW,Z.dn,ee.d,ue.h,ne.y],pipes:[k.JJ],styles:[""]}),X})()},2994:(Be,K,p)=>{"use strict";p.d(K,{$W:()=>ue,BL:()=>v,Bw:()=>Y,CX:()=>L,DJ:()=>Oe,EK:()=>x,El:()=>re,Fd:()=>M,GD:()=>_e,HG:()=>ee,HI:()=>y,Iy:()=>he,Lf:()=>X,Nr:()=>Ee,OG:()=>T,On:()=>ae,QZ:()=>f,RX:()=>D,SN:()=>w,Sf:()=>J,TM:()=>N,TW:()=>E,UR:()=>S,WM:()=>Pe,WO:()=>n,YP:()=>Ve,YX:()=>u,Z$:()=>j,Z8:()=>ne,Zr:()=>a,_E:()=>i,aL:()=>Me,cQ:()=>I,eF:()=>R,eN:()=>k,i:()=>B,iL:()=>Z,iz:()=>h,kL:()=>_,mC:()=>H,n7:()=>Ie,oV:()=>V,pW:()=>c,pd:()=>d,ti:()=>we,wD:()=>C});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),a=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),C=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),d=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),R=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),h=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),L=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.FETCH_FEES_ECL),D=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),S=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),E=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),B=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),Z=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),Y=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),ae=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),ue=(0,t.PH)(e.lr.FETCH_PEERS_ECL),ne=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),re=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),_e=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),x=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),u=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),c=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),y=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),V=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),H=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),X=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),he=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),Pe=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),Ee=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),Ve=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Me=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),J=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Ie=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),Oe=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),we=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(Be,K,p)=>{"use strict";p.d(K,{o:()=>ge});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),C=p(4004),d=p(262),R=p(2340),h=p(1786),L=p(7731),w=p(7861),D=p(7766),S=p(2994),k=p(2501),E=p(5e3),B=p(8138),Z=p(5620),Y=p(5986),ae=p(62),ee=p(5043),ue=p(1402),ne=p(7998),re=p(9808);let ge=(()=>{class q{constructor(x,i,r,u,c,v,T,I,y){this.actions=x,this.httpClient=i,this.store=r,this.sessionService=u,this.commonService=c,this.logger=v,this.router=T,this.wsService=I,this.location=y,this.CHILD_API_URL=R.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_INFO_ECL),(0,M.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(L.pg.SET_SELECTED_NODE))),(0,C.U)(_=>(this.logger.info(_),this.initializeRemainingData(_,n.payload.loadPage),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:_||{}})),(0,d.K)(_=>{const V=this.commonService.extractErrorCode(_),N=503===V?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(_);return this.router.navigate(["/error"],{state:{errorCode:V,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:V,error:N}),(0,f.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_FEES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_CHANNELS_ECL),(0,M.z)(n=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.rawChannelsList=_,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,S.cQ)()),{type:L.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,f.of)({type:L.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PEERS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,M.z)(()=>(this.store.dispatch((0,w.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n),(0,f.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,C.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),_=_||[],this.store.dispatch((0,w.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:_})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:_.find(V=>V.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.DETACH_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,w.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(_=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId,_),(0,f.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}}));const _={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(_.fundingFeerateSatByte=n.payload.feeRate),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,_).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,w.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",V),(0,f.of)({type:L.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let _="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return _=n.payload.nodeIds?_+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?_+"&nodeId="+n.payload.nodeId:n.payload.channelIds?_+"&channelIds="+n.payload.channelIds:_+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+_,{}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,w.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,V),(0,f.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,C.U)(_=>(this.logger.info(_),setTimeout(()=>{this.store.dispatch((0,w.uO)({payload:n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,w.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,M.z)(n=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,C.U)(_=>(this.logger.info(_),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:_})),(0,d.K)(_=>(this.store.dispatch((0,S.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,_),(0,f.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,C.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SEND_PAYMENT_ECL),(0,M.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.latestPaymentRes=_,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,d.K)(_=>(this.logger.error("Error: "+JSON.stringify(_)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",_):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,f.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,S.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.CREATE_INVOICE_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.CREATE_INVOICE})),_.timestamp=Math.round((new Date).getTime()/1e3),_.expiresAt=Math.round(_.timestamp+n.payload.expireIn),_.description=n.payload.description,_.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:_,newlyAdded:!0,component:D.R}}}))},200),{type:L.lr.ADD_INVOICE_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_INVOICES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.PEER_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload,_),(0,f.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.aL)({payload:_})),{type:L.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",_),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:L.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_LOOKUP_ECL),(0,C.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PAGE_SETTINGS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPageSettings",status:L.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPageSettings",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAGE_SETTINGS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPageSettings",L.m6.NO_SPINNER,"Fetching Page Settings Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_PAGE_SETTINGS_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.QZ)({payload:{action:"SavePageSettings",status:L.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SavePageSettings",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.jW)({payload:"Page Layout Updated Successfully!"})),{type:L.lr.SET_PAGE_SETTINGS_ECL,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithAlert("SavePageSettings",L.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",R.NZ.PAGE_SETTINGS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,S.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,w.jW)({payload:n}))},this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==L.Bn.COMPLETED&&n.FetchInfo.status!==L.Bn.ERROR||n.FetchFees.status!==L.Bn.COMPLETED&&n.FetchFees.status!==L.Bn.ERROR||n.FetchOnchainBalance.status!==L.Bn.COMPLETED&&n.FetchOnchainBalance.status!==L.Bn.ERROR||n.FetchChannels.status!==L.Bn.COMPLETED&&n.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{var _;this.logger.info("Received new message from the service: "+JSON.stringify(n));let V="";if(n)switch(n.type){case L.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case L.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,S.aL)({payload:n}));break;case L.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,S.ti)({payload:n}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=null===(_=this.rawChannelsList)||void 0===_?void 0:_.map(N=>(N.channelId===n.channelId&&N.nodeId===n.remoteNodeId&&(N.state=n.currentState),N)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,S.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let x=0,i=0,r=0,u={localBalance:0,remoteBalance:0},c=[];const v=[],T=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((y,n)=>{var _,V,N,H,X;y&&("NORMAL"===y.state?(x=(y.toLocal||0)+(y.toRemote||0),i+=y.toLocal||0,r+=y.toRemote||0,y.balancedness=0===x?1:+(1-Math.abs(((y.toLocal||0)-(y.toRemote||0))/x)).toFixed(3),c.push(y),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+(y.toLocal||0)):(null===(_=y.state)||void 0===_?void 0:_.includes("WAIT"))||(null===(V=y.state)||void 0===V?void 0:V.includes("CLOSING"))||(null===(N=y.state)||void 0===N?void 0:N.includes("SYNCING"))?(y.state=null===(H=y.state)||void 0===H?void 0:H.replace(/_/g," "),v.push(y),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+(y.toLocal||0)):(y.state=null===(X=y.state)||void 0===X?void 0:X.replace(/_/g," "),T.push(y),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+(y.toLocal||0)))}),u={localBalance:i,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(v)),this.logger.info("Inactive Channels: "+JSON.stringify(T)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:v,inactive:T,balances:u,status:I})),this.store.dispatch((0,S.eN)({payload:c})),this.store.dispatch((0,S.TW)({payload:v})),this.store.dispatch((0,S.i)({payload:T})),this.store.dispatch((0,S.On)({payload:u})),this.store.dispatch((0,S.HG)({payload:I}))}initializeRemainingData(x,i){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:x.nodeId,alias:x.alias,testnet:"testnet"===x.network,chains:x.publicAddresses,uris:x.uris,version:x.version,numberOfPendingChannels:0};this.store.dispatch((0,w.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:r}));let u=this.location.path();u.includes("/lnd/")?u=null==u?void 0:u.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=null==u?void 0:u.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,S.wD)()),this.store.dispatch((0,S.WM)()),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,S.$W)())}handleErrorWithoutAlert(x,i,r,u){this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:i})),this.store.dispatch((0,S.QZ)({payload:{action:x,status:L.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,r)}})))}handleErrorWithAlert(x,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:i}));const v=this.commonService.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:v,URL:u},component:h.H}}})),this.store.dispatch((0,S.QZ)({payload:{action:x,status:L.Bn.ERROR,statusCode:c.status.toString(),message:v,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return q.\u0275fac=function(x){return new(x||q)(E.LFG(t.eX),E.LFG(B.eN),E.LFG(Z.yh),E.LFG(Y.m),E.LFG(ae.v),E.LFG(ee.mQ),E.LFG(ue.F0),E.LFG(ne.d),E.LFG(re.Ye))},q.\u0275prov=E.Yz7({token:q,factory:q.\u0275fac}),q})()},2501:(Be,K,p)=>{"use strict";p.d(K,{Bo:()=>k,Ef:()=>S,JG:()=>L,LR:()=>f,PP:()=>h,T$:()=>C,Xz:()=>w,dx:()=>D,kY:()=>E,nF:()=>M,yA:()=>R,yD:()=>a});var t=p(5620);const e=(0,t.ZF)("ecl"),f=(0,t.P1)(e,B=>B.nodeSettings),M=(0,t.P1)(e,B=>({pageSettings:B.pageSettings,apiCallStatus:B.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,B=>B.information),C=(0,t.P1)(e,B=>({information:B.information,apiCallStatus:B.apisCallStatus.FetchInfo})),R=((0,t.P1)(e,B=>B.apisCallStatus.FetchInfo),(0,t.P1)(e,B=>B.apisCallStatus)),h=(0,t.P1)(e,B=>({payments:B.payments,apiCallStatus:B.apisCallStatus.FetchPayments})),L=(0,t.P1)(e,B=>({fees:B.fees,apiCallStatus:B.apisCallStatus.FetchFees})),w=(0,t.P1)(e,B=>({activeChannels:B.activeChannels,pendingChannels:B.pendingChannels,inactiveChannels:B.inactiveChannels,lightningBalance:B.lightningBalance,channelsStatus:B.channelsStatus,apiCallStatus:B.apisCallStatus.FetchChannels})),D=(0,t.P1)(e,B=>({transactions:B.transactions,apiCallStatus:B.apisCallStatus.FetchTransactions})),S=(0,t.P1)(e,B=>({invoices:B.invoices,apiCallStatus:B.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,B=>({peers:B.peers,apiCallStatus:B.apisCallStatus.FetchPeers})),E=(0,t.P1)(e,B=>({onchainBalance:B.onchainBalance,apiCallStatus:B.apisCallStatus.FetchOnchainBalance}))},7766:(Be,K,p)=>{"use strict";p.d(K,{R:()=>Ee});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(2501),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),B=p(9224),Z=p(9546),Y=p(7423),ae=p(4834),ee=p(773),ue=p(3390),ne=p(6895);function re(j,Ve){if(1&j&&d._UZ(0,"qr-code",29),2&j){const Me=d.oxw();d.Q6J("value",null==Me.invoice?null:Me.invoice.serialized)("size",Me.qrWidth)("errorCorrectionLevel","L")}}function ge(j,Ve){1&j&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function q(j,Ve){if(1&j&&d._UZ(0,"qr-code",29),2&j){const Me=d.oxw();d.Q6J("value",null==Me.invoice?null:Me.invoice.serialized)("size",Me.qrWidth)("errorCorrectionLevel","L")}}function _e(j,Ve){1&j&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(j,Ve){1&j&&d._UZ(0,"mat-divider",32),2&j&&d.Q6J("inset",!0)}function i(j,Ve){1&j&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(j,Ve){1&j&&d._UZ(0,"span",38)}const u=function(){return[]};function c(j,Ve){if(1&j&&(d.TgZ(0,"div",34)(1,"div",35)(2,"span",36),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,r,1,0,"span",37),d.qZA()()),2&j){const Me=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Me.invoice?null:Me.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,u).constructor(35))}}function v(j,Ve){if(1&j&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&j){const Me=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Me.invoice?null:Me.invoice.amountSettled)," Sats")}}function T(j,Ve){if(1&j&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,v,3,3,"div",19),d.BQk()),2&j){const Me=d.oxw();d.xp6(1),d.Q6J("ngIf",Me.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Me.flgInvoicePaid)}}function I(j,Ve){1&j&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function y(j,Ve){1&j&&d._UZ(0,"mat-spinner",40),2&j&&d.Q6J("diameter",20)}function n(j,Ve){if(1&j&&(d.ynx(0),d.YNc(1,I,2,0,"span",19),d.YNc(2,y,1,1,"mat-spinner",39),d.BQk()),2&j){const Me=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==Me.invoice?null:Me.invoice.status)||!Me.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Me.invoice?null:Me.invoice.status)&&Me.flgVersionCompatible)}}function _(j,Ve){if(1&j&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",20),d.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),d._uU(5,"Date Expiry"),d.qZA(),d.TgZ(6,"span",18),d._uU(7),d.ALo(8,"date"),d.qZA()(),d.TgZ(9,"div",42)(10,"h4",17),d._uU(11,"Date Settled"),d.qZA(),d.TgZ(12,"span",21),d._uU(13),d.ALo(14,"date"),d.qZA()()(),d._UZ(15,"mat-divider",20),d.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),d._uU(19,"Payment Hash"),d.qZA(),d.TgZ(20,"span",21),d._uU(21),d.qZA()()(),d._UZ(22,"mat-divider",20),d.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),d._uU(26,"Node ID"),d.qZA(),d.TgZ(27,"span",21),d._uU(28),d.qZA()()(),d._UZ(29,"mat-divider",20),d.qZA()),2&j){const Me=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==Me.invoice?null:Me.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==Me.invoice?null:Me.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==Me.invoice?null:Me.invoice.paymentHash),d.xp6(7),d.Oqu(null==Me.invoice?null:Me.invoice.nodeId)}}function V(j,Ve){1&j&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function N(j,Ve){1&j&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function H(j,Ve){if(1&j){const Me=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Ie){return d.CHM(Me),d.oxw().onCopyPayment(Ie)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&j){const Me=d.oxw();d.Q6J("payload",null==Me.invoice?null:Me.invoice.serialized)}}function X(j,Ve){if(1&j){const Me=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(Me),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const he=function(j){return{"display-none":j}},be=function(j){return{"xs-scroll-y":j}},Pe=function(j,Ve){return{"mt-2":j,"mt-1":Ve}};let Ee=(()=>{class j{constructor(Me,J,Ie,ut,Oe,we){this.dialogRef=Me,this.data=J,this.logger=Ie,this.commonService=ut,this.snackBar=Oe,this.store=we,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.yD).pipe((0,M.R)(this.unSubs[0])).subscribe(Me=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Me.version,"0.5.0")}),this.store.select(C.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(Me=>{const J=this.invoice.status,Ie=Me.invoices&&Me.invoices.length>0?Me.invoices:[],ut=(null==Ie?void 0:Ie.find(Oe=>Oe.paymentHash===this.invoice.paymentHash))||null;ut&&(this.invoice=ut),J!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Me)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Me){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Me)}ngOnDestroy(){this.unSubs.forEach(Me=>{Me.next(null),Me.complete()})}}return j.\u0275fac=function(Me){return new(Me||j)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},j.\u0275cmp=d.Xpm({type:j,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,"value","size","errorCorrectionLevel",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-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Me,J){if(1&Me&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,re,1,3,"qr-code",2),d.YNc(3,ge,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return J.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,q,1,3,"qr-code",2),d.YNc(16,_e,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.YNc(25,i,2,0,"ng-container",19),d.qZA()(),d.TgZ(26,"div",16)(27,"h4",17),d._uU(28,"Amount Settled"),d.qZA(),d.TgZ(29,"span",18),d.YNc(30,T,3,2,"ng-container",19),d.YNc(31,n,3,2,"ng-container",19),d.qZA()()(),d._UZ(32,"mat-divider",20),d.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),d._uU(36,"Date Created"),d.qZA(),d.TgZ(37,"span",21),d._uU(38),d.ALo(39,"date"),d.qZA()(),d.TgZ(40,"div",16)(41,"h4",17),d._uU(42,"Status"),d.qZA(),d.TgZ(43,"span",21),d._uU(44),d.ALo(45,"titlecase"),d.qZA()()(),d._UZ(46,"mat-divider",20),d.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),d._uU(50,"Description"),d.qZA(),d.TgZ(51,"span",18),d._uU(52),d.qZA()()(),d._UZ(53,"mat-divider",20),d.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),d._uU(57,"Invoice"),d.qZA(),d.TgZ(58,"span",21),d._uU(59),d.qZA()()(),d.YNc(60,_,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return J.onShowAdvanced()}),d.YNc(63,V,2,0,"p",25),d.YNc(64,N,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,H,2,1,"button",27),d.YNc(67,X,2,0,"button",28),d.qZA()()()()()),2&Me){const Ie=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=J.invoice&&J.invoice.serialized&&""!==(null==J.invoice?null:J.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,he,J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==J.invoice?null:J.invoice.serialized)&&""!==(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.serialized)||""===(null==J.invoice?null:J.invoice.serialized)),d.xp6(4),d.Q6J("icon",J.faReceipt),d.xp6(2),d.Oqu(J.screenSize===J.screenSizeEnum.XS?J.newlyAdded?"Created":"Invoice":J.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,be,J.screenSize===J.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=J.invoice&&J.invoice.serialized&&""!==(null==J.invoice?null:J.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,he,J.screenSize!==J.screenSizeEnum.XS&&J.screenSize!==J.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==J.invoice?null:J.invoice.serialized)&&""!==(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.serialized)||""===(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==J.invoice?null:J.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.amount)||"0"===(null==J.invoice?null:J.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==J.invoice?null:J.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==J.invoice?null:J.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==J.invoice?null:J.invoice.status)),d.xp6(8),d.Oqu((null==J.invoice?null:J.invoice.description)||"-"),d.xp6(7),d.Oqu((null==J.invoice?null:J.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",J.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,Pe,!J.showAdvanced,J.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!J.showAdvanced)("ngIfElse",Ie),d.xp6(3),d.Q6J("ngIf",(null==J.invoice?null:J.invoice.serialized)&&""!==(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.serialized)||""===(null==J.invoice?null:J.invoice.serialized))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,B.dk,Z.BN,Y.lW,B.dn,ae.d,S.sg,ee.Ou,ue.h,ne.y],pipes:[S.JJ,S.uU,S.rS],styles:[""]}),j})()},6523:(Be,K,p)=>{"use strict";p.d(K,{$A:()=>ui,$W:()=>w,BL:()=>I,B_:()=>X,Bl:()=>ne,CX:()=>L,Cp:()=>_,EK:()=>B,El:()=>S,Fr:()=>ke,HI:()=>we,JT:()=>a,Jl:()=>re,Jo:()=>Re,Lf:()=>J,Ll:()=>M,Ly:()=>Ie,Nr:()=>Ee,OG:()=>y,PC:()=>f,QJ:()=>bt,RX:()=>ue,Rd:()=>Z,Rv:()=>ge,SN:()=>ee,Sf:()=>Zt,TW:()=>r,UH:()=>ut,UR:()=>_e,Vv:()=>n,WM:()=>Pe,WO:()=>ti,Wi:()=>fe,YP:()=>ae,YX:()=>T,Z7:()=>i,Z8:()=>D,Zh:()=>u,_E:()=>te,_L:()=>c,aL:()=>j,as:()=>x,cQ:()=>Oe,dV:()=>xe,eF:()=>R,fu:()=>pt,kL:()=>Qt,ks:()=>q,mC:()=>Me,n7:()=>Ot,oV:()=>ce,pW:()=>v,pd:()=>d,qY:()=>Ve,sQ:()=>h,tb:()=>H,u0:()=>it,vV:()=>he,wD:()=>C,xG:()=>Yt,y2:()=>Dt,yZ:()=>Nt,z:()=>E});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),a=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),d=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),R=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),h=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),L=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),w=(0,t.PH)(e.uR.FETCH_PEERS_LND),D=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),S=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),E=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),B=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),Z=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),ae=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ee=(0,t.PH)(e.uR.FETCH_FEES_LND),ue=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),ne=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),re=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),ge=(0,t.PH)(e.uR.FETCH_NETWORK_LND),q=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),_e=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),x=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),r=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),c=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),v=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),_=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),H=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),X=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),Pe=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),Ee=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),j=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),Ve=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Me=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),J=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Ie=(0,t.PH)(e.uR.FETCH_UTXOS_LND),ut=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),Oe=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),we=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),ce=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),xe=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),te=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),fe=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),pt=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Dt=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),Yt=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),Zt=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),ui=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),Ot=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Nt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),it=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),bt=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),ti=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),Qt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),Re=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ke=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(Be,K,p)=>{"use strict";p.d(K,{l:()=>_e});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),C=p(4004),d=p(262),R=p(1365),h=p(2340),L=p(8627),w=p(1786),D=p(7731),S=p(7861),k=p(6523),E=p(6529),B=p(5e3),Z=p(8138),Y=p(5620),ae=p(5043),ee=p(62),ue=p(5986),ne=p(8966),re=p(1402),ge=p(7998),q=p(9808);let _e=(()=>{class x{constructor(r,u,c,v,T,I,y,n,_,V){this.actions=r,this.httpClient=u,this.store=c,this.logger=v,this.commonService=T,this.sessionService=I,this.dialog=y,this.router=n,this.wsService=_,this.location=V,this.CHILD_API_URL=h.T5+"/lnd",this.invoicesPageSize=D.IV,this.paymentsPageSize=D.IV,this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INFO_LND),(0,M.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.ac)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(D.pg.SET_SELECTED_NODE))),(0,C.U)(H=>(this.logger.info(H),H.chains&&H.chains.length&&H.chains[0]&&("string"==typeof H.chains[0]&&H.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof H.chains[0]&&H.chains[0].hasOwnProperty("chain")&&H.chains[0].chain&&H.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:D.pg.LOGOUT}):H.identity_pubkey?(H.lnImplementation="LND",this.initializeRemainingData(H,N.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),{type:D.uR.SET_INFO_LND,payload:H||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:D.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(H=>{if("string"==typeof H.error.error&&H.error.error.includes("Not Found")||"string"==typeof H.error.error&&H.error.error.includes("wallet locked")||502===H.status&&!H.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",H);else if("string"==typeof H.error.error&&H.error.error.includes("starting up")&&500===H.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const X=this.commonService.extractErrorCode(H),he=503===X?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(H);this.router.navigate(["/error"],{state:{errorCode:X,errorMessage:he}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:X,error:he})}return(0,f.of)({type:D.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PEERS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PEERS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:H||[]})),{type:D.uR.NEWLY_ADDED_PEER_LND,payload:{peer:H[0]}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.DETACH_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Peer Disconnected Successfully."})),{type:D.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,d.K)(H=>(this.handleErrorWithAlert("DetachPeer",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey,H),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_INVOICE_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(H.memo=N.payload.memo,H.value=N.payload.invoiceValue,H.expiry=N.payload.expiry,H.cltv_expiry="144",H.private=N.payload.private,H.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:H,newlyAdded:!0,component:L.v}}}))},200),{type:D.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:D.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:H.payment_request}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,{node_pubkey:N.payload.selectedPeerPubkey,local_funding_amount:N.payload.fundingAmount,private:N.payload.private,trans_type:N.payload.transType,trans_type_value:N.payload.transTypeValue,spend_unconfirmed:N.payload.spendUnconfirmed}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:D.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UPDATE_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,max_htlc_msat:N.payload.maxHtlcMsat,min_htlc_msat:N.payload.minHtlcMsat,chanPoint:N.payload.chanPoint}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:D.uR.FETCH_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithAlert("UpdateChannels",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",H),(0,f.of)({type:D.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CLOSE_CHANNEL_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL}));let H=this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(H=H+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(H=H+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(H).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,S.uO)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:X.message}})),{type:D.pg.VOID})),(0,d.K)(X=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,X),(0,f.of)({type:D.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.BACKUP_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,S.jW)({payload:N.payload.showMessage+" "+H.message})),{type:D.uR.BACKUP_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.VERIFY_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,S.jW)({payload:H.message})),{type:D.uR.VERIFY_CHANNEL_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("VerifyChannel",D.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,S.jW)({payload:H.message})),this.store.dispatch((0,k.B_)({payload:H.list})),{type:D.uR.RESTORE_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("RestoreChannels",D.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_FEES_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:D.uR.SET_FEES_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,C.U)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.COMPLETED}})),this.logger.info(N),{type:D.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",D.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_NETWORK_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/info"))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.COMPLETED}})),{type:D.uR.SET_NETWORK_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",D.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PENDING_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/pending").pipe((0,C.U)(N=>{this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.COMPLETED}}));const H={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 N&&(H.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(H.closing.num_channels=N.pending_closing_channels.length,H.total_channels=H.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(X=>{H.closing.limbo_balance=+H.closing.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.pending_force_closing_channels&&(H.force_closing.num_channels=N.pending_force_closing_channels.length,H.total_channels=H.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(X=>{H.force_closing.limbo_balance=+H.force_closing.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.pending_open_channels&&(H.open.num_channels=N.pending_open_channels.length,H.total_channels=H.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(X=>{H.open.limbo_balance=+H.open.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.waiting_close_channels&&(H.waiting_close.num_channels=N.waiting_close_channels.length,H.total_channels=H.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(X=>{H.waiting_close.limbo_balance=+H.waiting_close.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)}))),{type:D.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:H}:{pendingChannels:{},pendingChannelsSummary:H}}}),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",D.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CLOSED_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/closed").pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",D.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INVOICES_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(N.payload.num_max_invoices?N.payload.num_max_invoices:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,C.U)(be=>(this.logger.info(be),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(be.total_invoices=+(be.last_index_offset||0)),{type:D.uR.SET_INVOICES_LND,payload:be})),(0,d.K)(be=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",be),(0,f.of)({type:D.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_TRANSACTIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",D.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(E.Q5)),(0,M.z)(([N,H])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/getUTXOs?max_confs="+(H&&H.block_height?H.block_height:1e9)))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.COMPLETED}})),{type:D.uR.SET_UTXOS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",D.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PAYMENTS_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"?max_payments="+(N.payload.max_payments?N.payload.max_payments:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,C.U)(be=>(this.logger.info(be),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PAYMENTS_LND,payload:be})),(0,d.K)(be=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",be),(0,f.of)({type:D.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SEND_PAYMENT_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.INITIATED}}));const H={};return H.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(H.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(H.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(H.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(H.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==D.Vc[0].id&&(H.feeLimit={},H.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",H).pipe((0,C.U)(X=>{if(this.logger.info(X),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),X.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:X}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",X.payment_error),{type:D.pg.VOID});if(this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:this.paymentsPageSize,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}));else{let he="Payment Sent Successfully.";X.payment_route&&X.payment_route.total_fees_msat&&(he="Payment sent successfully with the total fee "+X.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,S.jW)({payload:he}))}return{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:X}}),(0,d.K)(X=>(this.logger.error("Error: "+JSON.stringify(X)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),(0,f.of)({type:D.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(X)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",X),(0,f.of)({type:D.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_GRAPH_NODE_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.COMPLETED}})),{type:D.uR.SET_GRAPH_NODE_LND,payload:H&&H.node?{node:H.node}:{node:null}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("FetchGraphNode",D.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_GRAPH_NODE_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_NEW_ADDRESS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.uR.SET_NEW_ADDRESS_LND,payload:H&&H.address?H.address:{}})),(0,d.K)(H=>(this.handleErrorWithAlert("GetNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,H),(0,f.of)({type:D.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_NEW_ADDRESS_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_CHANNEL_TRANSACTION_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API,{amount:N.payload.amount,address:N.payload.address,sendAll:N.payload.sendAll,fees:N.payload.fees,blocks:N.payload.blocks}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:D.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SetChannelTransaction",D.m6.SEND_FUNDS,"Sending Fund Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_FORWARDING_HISTORY_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.SWITCH_API,{num_max_events:N.payload.num_max_events,index_offset:N.payload.index_offset,end_time:N.payload.end_time,start_time:N.payload.start_time}).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.COMPLETED}})),{type:D.uR.SET_FORWARDING_HISTORY_LND,payload:X})),(0,d.K)(X=>(this.handleErrorWithAlert("FetchForwardingHistory",D.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+h.NZ.SWITCH_API,X),(0,f.of)({type:D.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_QUERY_ROUTES_LND),(0,M.z)(N=>{let H=this.CHILD_API_URL+h.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(H=H+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(H).pipe((0,C.U)(X=>(this.logger.info(X),{type:D.uR.SET_QUERY_ROUTES_LND,payload:X})),(0,d.K)(X=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API,X),(0,f.of)({type:D.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_QUERY_ROUTES_LND),(0,C.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,C.U)(H=>(this.logger.info("Generated GenSeed!"),this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GEN_SEED})),{type:D.uR.GEN_SEED_RESPONSE_LND,payload:H.cipher_seed_mnemonic})),(0,d.K)(H=>(this.handleErrorWithAlert("GenSeed",D.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload,H),(0,f.of)({type:D.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,M.z)(()=>this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,C.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:D.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",D.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,f.of)({type:D.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_RESPONSE_LND),(0,C.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_RESPONSE_LND),(0,C.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:N.payload.pwd,cipher_seed_mnemonic:N.payload.cipher?N.payload.cipher:"",aezeed_passphrase:N.payload.passphrase?N.payload.passphrase:""}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.INITIALIZE_WALLET})),{type:D.uR.INIT_WALLET_RESPONSE_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("InitWallet",D.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/initwallet",H),(0,f.of)({type:D.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UNLOCK_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,C.U)(H=>(this.logger.info(H),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,S.uO)({payload:D.m6.UNLOCK_WALLET})),this.store.dispatch((0,S.ac)({payload:D.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,S.uO)({payload:D.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:D.pg.VOID})),(0,d.K)(H=>(this.handleErrorWithAlert("UnlockWallet",D.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/unlockwallet",H),(0,f.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PEER_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload,H),(0,f.of)({type:D.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CHANNEL_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID,H),(0,f.of)({type:D.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INVOICE_LOOKUP_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}}));let H=this.CHILD_API_URL+h.NZ.INVOICES_API+"/lookup";return H=N.payload.paymentAddress&&""!==N.payload.paymentAddress?H+"?payment_addr="+N.payload.paymentAddress:H+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(H).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:X})),{type:D.uR.SET_LOOKUP_LND,payload:X})),(0,d.K)(X=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",X),N.payload.openSnackBar&&this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:X}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PAYMENT_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:H})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",H),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:H}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_LOOKUP_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LIST_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.COMPLETED}})),{type:D.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,d.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",D.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API,N),(0,f.of)({type:D.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/alltransactions").pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",D.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PAGE_SETTINGS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPageSettings",status:D.Bn.INITIATED}})),this.httpClient.get(h.NZ.PAGE_SETTINGS_API).pipe((0,C.U)(N=>{var H,X,he,be;return this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPageSettings",status:D.Bn.COMPLETED}})),this.invoicesPageSize=(N&&Object.keys(N).length>0?null===(H=N.find(Pe=>"transactions"===Pe.pageId))||void 0===H?void 0:H.tables.find(Pe=>"invoices"===Pe.tableId):null===(X=D.gK.find(Pe=>"transactions"===Pe.pageId))||void 0===X?void 0:X.tables.find(Pe=>"invoices"===Pe.tableId)).recordsPerPage,this.paymentsPageSize=(N&&Object.keys(N).length>0?null===(he=N.find(Pe=>"transactions"===Pe.pageId))||void 0===he?void 0:he.tables.find(Pe=>"payments"===Pe.tableId):null===(be=D.gK.find(Pe=>"transactions"===Pe.pageId))||void 0===be?void 0:be.tables.find(Pe=>"payments"===Pe.tableId)).recordsPerPage,this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:D.uR.SET_PAGE_SETTINGS_LND,payload:N||[]}}),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPageSettings",D.m6.NO_SPINNER,"Fetching Page Settings Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_PAGE_SETTINGS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,k.PC)({payload:{action:"SavePageSettings",status:D.Bn.INITIATED}})),this.httpClient.post(h.NZ.PAGE_SETTINGS_API,N.payload).pipe((0,C.U)(H=>{var X,he,be,Pe;this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SavePageSettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.jW)({payload:"Page Layout Updated Successfully!"}));const Ee=((null===(X=H.find(Ve=>"transactions"===Ve.pageId))||void 0===X?void 0:X.tables.find(Ve=>"invoices"===Ve.tableId))||(null===(he=D.gK.find(Ve=>"transactions"===Ve.pageId))||void 0===he?void 0:he.tables.find(Ve=>"invoices"===Ve.tableId))).recordsPerPage,j=((null===(be=H.find(Ve=>"transactions"===Ve.pageId))||void 0===be?void 0:be.tables.find(Ve=>"payments"===Ve.tableId))||(null===(Pe=D.gK.find(Ve=>"transactions"===Ve.pageId))||void 0===Pe?void 0:Pe.tables.find(Ve=>"payments"===Ve.tableId))).recordsPerPage;return Ee!==this.invoicesPageSize&&(this.invoicesPageSize=Ee,this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}))),j!==this.paymentsPageSize&&(this.paymentsPageSize=j),{type:D.uR.SET_PAGE_SETTINGS_LND,payload:H||[]}}),(0,d.K)(H=>(this.handleErrorWithAlert("SavePageSettings",D.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",h.NZ.PAGE_SETTINGS_API,H),(0,f.of)({type:D.pg.VOID})))))))),this.store.select(E.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(N=>{N.FetchInfo.status!==D.Bn.COMPLETED&&N.FetchInfo.status!==D.Bn.ERROR||N.FetchFees.status!==D.Bn.COMPLETED&&N.FetchFees.status!==D.Bn.ERROR||N.FetchBalanceBlockchain.status!==D.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==D.Bn.ERROR||N.FetchAllChannels.status!==D.Bn.COMPLETED&&N.FetchAllChannels.status!==D.Bn.ERROR||N.FetchPendingChannels.status!==D.Bn.COMPLETED&&N.FetchPendingChannels.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===D.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,k.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(r,u){this.sessionService.setItem("lndUnlocked","true");const c={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,S.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._V)({payload:c}));let v=this.location.path();v.includes("/cln/")?v=null==v?void 0:v.replace("/cln/","/lnd/"):v.includes("/ecl/")&&(v=null==v?void 0:v.replace("/ecl/","/lnd/")),(v.includes("/unlock")||v.includes("/login")||v.includes("/error")||""===v||"HOME"===u||v.includes("?access-key="))&&(v="/lnd/home"),this.router.navigate([v]),this.store.dispatch((0,k.wD)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,u,c,v){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(v)),401===v.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:u})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:v.status.toString(),message:this.commonService.extractErrorMessage(v,c)}})))}handleErrorWithAlert(r,u,c,v,T){if(this.logger.error(T),401===T.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:u}));const I=this.commonService.extractErrorMessage(T);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:T.status,message:I,URL:v},component:w.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:T.status.toString(),message:I,URL:v}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(B.LFG(t.eX),B.LFG(Z.eN),B.LFG(Y.yh),B.LFG(ae.mQ),B.LFG(ee.v),B.LFG(ue.m),B.LFG(ne.uw),B.LFG(re.F0),B.LFG(ge.d),B.LFG(q.Ye))},x.\u0275prov=B.Yz7({token:x,factory:x.\u0275fac}),x})()},6529:(Be,K,p)=>{"use strict";p.d(K,{$k:()=>f,Bo:()=>R,Ef:()=>S,JG:()=>L,N7:()=>ue,P2:()=>Z,PP:()=>h,Pr:()=>M,Q5:()=>a,T4:()=>ee,Wi:()=>w,ZW:()=>k,_f:()=>re,bx:()=>ge,dx:()=>D,l5:()=>ne,ni:()=>B,qU:()=>Y,yA:()=>d});var t=p(5620);const e=(0,t.ZF)("lnd"),f=(0,t.P1)(e,q=>q.nodeSettings),M=(0,t.P1)(e,q=>({pageSettings:q.pageSettings,apiCallStatus:q.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,q=>q.information),d=((0,t.P1)(e,q=>({information:q.information,apiCallStatus:q.apisCallStatus.FetchInfo})),(0,t.P1)(e,q=>q.apisCallStatus)),R=(0,t.P1)(e,q=>({forwardingHistory:q.forwardingHistory,apiCallStatus:q.apisCallStatus.FetchForwardingHistory})),h=(0,t.P1)(e,q=>({listPayments:q.listPayments,apiCallStatus:q.apisCallStatus.FetchPayments})),L=(0,t.P1)(e,q=>({fees:q.fees,apiCallStatus:q.apisCallStatus.FetchFees})),w=(0,t.P1)(e,q=>({peers:q.peers,apiCallStatus:q.apisCallStatus.FetchPeers})),D=(0,t.P1)(e,q=>({transactions:q.transactions,apiCallStatus:q.apisCallStatus.FetchTransactions})),S=(0,t.P1)(e,q=>({listInvoices:q.listInvoices,apiCallStatus:q.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,q=>({channels:q.channels,channelsSummary:q.channelsSummary,lightningBalance:q.lightningBalance,apiCallStatus:q.apisCallStatus.FetchAllChannels})),B=((0,t.P1)(e,q=>({channelsSummary:q.channelsSummary,pendingChannels:q.pendingChannels,closedChannels:q.closedChannels,apiCallStatus:q.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,q=>({pendingChannels:q.pendingChannels,pendingChannelsSummary:q.pendingChannelsSummary,apiCallStatus:q.apisCallStatus.FetchPendingChannels}))),Z=(0,t.P1)(e,q=>({closedChannels:q.closedChannels,apiCallStatus:q.apisCallStatus.FetchClosedChannels})),Y=(0,t.P1)(e,q=>({blockchainBalance:q.blockchainBalance,apiCallStatus:q.apisCallStatus.FetchBalanceBlockchain})),ee=((0,t.P1)(e,q=>({lightningBalance:q.lightningBalance,apiCallStatus:q.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,q=>({utxos:q.utxos,apiCallStatus:q.apisCallStatus.FetchUTXOs}))),ue=(0,t.P1)(e,q=>({networkInfo:q.networkInfo,apiCallStatus:q.apisCallStatus.FetchNetwork})),ne=(0,t.P1)(e,q=>({allLightningTransactions:q.allLightningTransactions,apiCallStatus:q.apisCallStatus.FetchLightningTransactions})),re=(0,t.P1)(e,q=>({channels:q.channels,pendingChannels:q.pendingChannels,closedChannels:q.closedChannels})),ge=(0,t.P1)(e,q=>({information:q.information,nodeSettings:q.nodeSettings,apiCallStatus:q.apisCallStatus.FetchInfo}))},8627:(Be,K,p)=>{"use strict";p.d(K,{v:()=>Ce});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(6529),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),B=p(9224),Z=p(9546),Y=p(7423),ae=p(4834),ee=p(773),ue=p(5245),ne=p(3390),re=p(6895),ge=p(1125),q=p(7238);const _e=["scrollContainer"];function x(fe,Q){if(1&fe&&d._UZ(0,"qr-code",33),2&fe){const pt=d.oxw();d.Q6J("value",null==pt.invoice?null:pt.invoice.payment_request)("size",pt.qrWidth)("errorCorrectionLevel","L")}}function i(fe,Q){1&fe&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}function r(fe,Q){if(1&fe&&d._UZ(0,"qr-code",33),2&fe){const pt=d.oxw();d.Q6J("value",null==pt.invoice?null:pt.invoice.payment_request)("size",pt.qrWidth)("errorCorrectionLevel","L")}}function u(fe,Q){1&fe&&(d.TgZ(0,"span",35),d._uU(1,"QR Code Not Applicable"),d.qZA())}function c(fe,Q){1&fe&&d._UZ(0,"mat-divider",22),2&fe&&d.Q6J("inset",!0)}function v(fe,Q){1&fe&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function T(fe,Q){1&fe&&d._UZ(0,"span",41)}const I=function(){return[]};function y(fe,Q){if(1&fe&&(d.TgZ(0,"div",37)(1,"div",38)(2,"span",39),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,T,1,0,"span",40),d.qZA()()),2&fe){const pt=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==pt.invoice?null:pt.invoice.amt_paid_sat)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,I).constructor(35))}}function n(fe,Q){if(1&fe&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&fe){const pt=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==pt.invoice?null:pt.invoice.amt_paid_sat)," Sats")}}function _(fe,Q){if(1&fe&&(d.ynx(0),d.YNc(1,y,6,5,"div",36),d.YNc(2,n,3,3,"div",21),d.BQk()),2&fe){const pt=d.oxw();d.xp6(1),d.Q6J("ngIf",pt.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!pt.flgInvoicePaid)}}function V(fe,Q){1&fe&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function N(fe,Q){1&fe&&d._UZ(0,"mat-spinner",43),2&fe&&d.Q6J("diameter",20)}function H(fe,Q){if(1&fe&&(d.ynx(0),d.YNc(1,V,2,0,"span",21),d.YNc(2,N,1,1,"mat-spinner",42),d.BQk()),2&fe){const pt=d.oxw();d.xp6(1),d.Q6J("ngIf","OPEN"!==(null==pt.invoice?null:pt.invoice.state)||!pt.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","OPEN"===(null==pt.invoice?null:pt.invoice.state)&&pt.flgVersionCompatible)}}function X(fe,Q){1&fe&&d.GkF(0)}function he(fe,Q){if(1&fe&&(d.TgZ(0,"div"),d.YNc(1,X,1,0,"ng-container",44),d.qZA()),2&fe){d.oxw();const pt=d.MAs(79);d.xp6(1),d.Q6J("ngTemplateOutlet",pt)}}function be(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"div",45)(1,"button",46),d.NdJ("click",function(){return d.CHM(pt),d.oxw().onScrollDown()}),d.TgZ(2,"mat-icon",47),d._uU(3,"arrow_downward"),d.qZA()()()}}function Pe(fe,Q){1&fe&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ee(fe,Q){1&fe&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function j(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"button",48),d.NdJ("copied",function(Dt){return d.CHM(pt),d.oxw().onCopyPayment(Dt)}),d._uU(1),d.qZA()}if(2&fe){const pt=d.oxw();d.Q6J("payload",null==pt.invoice?null:pt.invoice.payment_request),d.xp6(1),d.Oqu(pt.screenSize===pt.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function Ve(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"button",49),d.NdJ("click",function(){return d.CHM(pt),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Me=function(fe){return{"mr-0":fe}};function J(fe,Q){if(1&fe&&d._UZ(0,"span",66),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Me,pt.screenSize===pt.screenSizeEnum.XS))}}function Ie(fe,Q){if(1&fe&&d._UZ(0,"span",67),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Me,pt.screenSize===pt.screenSizeEnum.XS))}}function ut(fe,Q){if(1&fe&&d._UZ(0,"span",68),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Me,pt.screenSize===pt.screenSizeEnum.XS))}}function Oe(fe,Q){if(1&fe&&(d.TgZ(0,"div",55)(1,"div",60)(2,"span",61),d.YNc(3,J,1,3,"span",62),d.YNc(4,Ie,1,3,"span",63),d.YNc(5,ut,1,3,"span",64),d._uU(6),d.qZA(),d.TgZ(7,"span",65),d._uU(8),d.ALo(9,"number"),d.qZA()(),d._UZ(10,"mat-divider",22),d.qZA()),2&fe){const pt=Q.$implicit,tt=d.oxw(3);d.xp6(3),d.Q6J("ngIf","SETTLED"===pt.state),d.xp6(1),d.Q6J("ngIf","ACCEPTED"===pt.state),d.xp6(1),d.Q6J("ngIf","CANCELED"===pt.state),d.xp6(1),d.hij(" ",pt.chan_id," "),d.xp6(2),d.Oqu(d.xi3(9,6,+pt.amt_msat/1e3||0,tt.getDecimalFormat(pt))),d.xp6(2),d.Q6J("inset",!0)}}function we(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"div",17)(1,"mat-expansion-panel",53),d.NdJ("opened",function(){return d.CHM(pt),d.oxw(2).flgOpened=!0})("closed",function(){return d.CHM(pt),d.oxw(2).onExpansionClosed()}),d.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",54),d._uU(5,"HTLCs"),d.qZA()()(),d.TgZ(6,"div",55)(7,"div",56)(8,"span",57),d._uU(9,"Channel ID"),d.qZA(),d.TgZ(10,"span",58),d._uU(11,"Amount (Sats)"),d.qZA()(),d._UZ(12,"mat-divider",22),d.YNc(13,Oe,11,9,"div",59),d.qZA()()()}if(2&fe){const pt=d.oxw(2);d.xp6(12),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngForOf",null==pt.invoice?null:pt.invoice.htlcs)}}function ce(fe,Q){1&fe&&d._UZ(0,"mat-divider",22),2&fe&&d.Q6J("inset",!0)}function Te(fe,Q){if(1&fe&&(d._UZ(0,"mat-divider",22),d.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),d._uU(4,"Preimage"),d.qZA(),d.TgZ(5,"span",24),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",22),d.TgZ(8,"div",17)(9,"div",50)(10,"h4",19),d._uU(11,"State"),d.qZA(),d.TgZ(12,"span",24),d._uU(13),d.qZA()(),d.TgZ(14,"div",51)(15,"h4",19),d._uU(16,"Expiry"),d.qZA(),d.TgZ(17,"span",24),d._uU(18),d.qZA()(),d.TgZ(19,"div",51)(20,"h4",19),d._uU(21,"Private Routing Hints"),d.qZA(),d.TgZ(22,"span",24),d._uU(23),d.qZA()()(),d._UZ(24,"mat-divider",22),d.YNc(25,we,14,2,"div",52),d.YNc(26,ce,1,1,"mat-divider",14)),2&fe){const pt=d.oxw();d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==pt.invoice?null:pt.invoice.r_preimage)||"-"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==pt.invoice?null:pt.invoice.state),d.xp6(5),d.Oqu(null==pt.invoice?null:pt.invoice.expiry),d.xp6(5),d.Oqu(null!=pt.invoice&&pt.invoice.private?"Yes":"No"),d.xp6(1),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngIf",(null==pt.invoice?null:pt.invoice.htlcs)&&(null==pt.invoice?null:pt.invoice.htlcs.length)>0),d.xp6(1),d.Q6J("ngIf",(null==pt.invoice?null:pt.invoice.htlcs)&&(null==pt.invoice?null:pt.invoice.htlcs.length)>0)}}const xe=function(fe){return{"display-none":fe}},W=function(fe){return{"xs-scroll-y":fe}},te=function(fe){return{"h-50":fe}};let Ce=(()=>{class fe{constructor(pt,tt,Dt,di,Yt,Zt){this.dialogRef=pt,this.data=tt,this.logger=Dt,this.commonService=di,this.snackBar=Yt,this.store=Zt,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}set container(pt){pt&&(this.scrollContainer=pt)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.Q5).pipe((0,M.R)(this.unSubs[0])).subscribe(tt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(tt.version,"0.11.0")});const pt=JSON.parse(JSON.stringify(this.invoice));this.store.select(C.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(tt=>{var Dt,di,Yt;const Zt=null===(Dt=this.invoice)||void 0===Dt?void 0:Dt.state,Ot=(tt.listInvoices.invoices||[]).find(Nt=>Nt.r_hash===pt.r_hash)||null;Ot&&(this.invoice=Ot),Zt!==(null===(di=this.invoice)||void 0===di?void 0:di.state)&&"SETTLED"===(null===(Yt=this.invoice)||void 0===Yt?void 0:Yt.state)&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(tt)})}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(pt){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+pt)}getDecimalFormat(pt){return pt.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(pt=>{pt.next(null),pt.complete()})}}return fe.\u0275fac=function(pt){return new(pt||fe)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},fe.\u0275cmp=d.Xpm({type:fe,selectors:[["rtl-invoice-information"]],viewQuery:function(pt,tt){if(1&pt&&d.Gf(_e,5),2&pt){let Dt;d.iGM(Dt=d.CRH())&&(tt.container=Dt.first)}},decls:80,vars:49,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,"value","size","errorCorrectionLevel",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,"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-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["advancedBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["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-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["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"]],template:function(pt,tt){if(1&pt&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,x,1,3,"qr-code",2),d.YNc(3,i,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return tt.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,r,1,3,"qr-code",2),d.YNc(16,u,2,0,"span",13),d.qZA(),d.YNc(17,c,1,1,"mat-divider",14),d.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),d._uU(23),d.qZA(),d.TgZ(24,"span",20),d._uU(25),d.ALo(26,"number"),d.YNc(27,v,2,0,"ng-container",21),d.qZA()(),d.TgZ(28,"div",18)(29,"h4",19),d._uU(30,"Amount Settled"),d.qZA(),d.TgZ(31,"span",20),d.YNc(32,_,3,2,"ng-container",21),d.YNc(33,H,3,2,"ng-container",21),d.qZA()()(),d._UZ(34,"mat-divider",22),d.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),d._uU(38,"Date Created"),d.qZA(),d.TgZ(39,"span",20),d._uU(40),d.ALo(41,"date"),d.qZA()(),d.TgZ(42,"div",18)(43,"h4",19),d._uU(44,"Date Settled"),d.qZA(),d.TgZ(45,"span",20),d._uU(46),d.ALo(47,"date"),d.qZA()()(),d._UZ(48,"mat-divider",22),d.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),d._uU(52,"Memo"),d.qZA(),d.TgZ(53,"span",20),d._uU(54),d.qZA()()(),d._UZ(55,"mat-divider",22),d.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),d._uU(59,"Payment Request"),d.qZA(),d.TgZ(60,"span",24),d._uU(61),d.qZA()()(),d._UZ(62,"mat-divider",22),d.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),d._uU(66,"Payment Hash"),d.qZA(),d.TgZ(67,"span",24),d._uU(68),d.qZA()()(),d.YNc(69,he,2,1,"div",21),d.qZA()()(),d.YNc(70,be,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return tt.onShowAdvanced()}),d.YNc(73,Pe,2,0,"p",28),d.YNc(74,Ee,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,j,2,2,"button",30),d.YNc(77,Ve,2,0,"button",31),d.qZA()()(),d.YNc(78,Te,27,9,"ng-template",null,32,d.W1O)),2&pt){const Dt=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=tt.invoice&&tt.invoice.payment_request&&""!==(null==tt.invoice?null:tt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,xe,tt.screenSize===tt.screenSizeEnum.XS||tt.screenSize===tt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.payment_request)&&""!==(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.payment_request)||""===(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(4),d.Q6J("icon",tt.faReceipt),d.xp6(2),d.Oqu(tt.screenSize===tt.screenSizeEnum.XS?tt.newlyAdded?"Created":"Invoice":tt.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,W,tt.screenSize===tt.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=tt.invoice&&tt.invoice.payment_request&&""!==(null==tt.invoice?null:tt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,xe,tt.screenSize!==tt.screenSizeEnum.XS&&tt.screenSize!==tt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.payment_request)&&""!==(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.payment_request)||""===(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",tt.screenSize===tt.screenSizeEnum.XS||tt.screenSize===tt.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,te,(null==tt.invoice?null:tt.invoice.htlcs)&&(null==tt.invoice?null:tt.invoice.htlcs.length)>0&&tt.showAdvanced)),d.xp6(5),d.Oqu(tt.screenSize===tt.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==tt.invoice?null:tt.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.value)||"0"===(null==tt.invoice?null:tt.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.amt_paid_sat)&&"OPEN"!==(null==tt.invoice?null:tt.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.amt_paid_sat)||"0"===(null==tt.invoice?null:tt.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==tt.invoice?null:tt.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==tt.invoice?null:tt.invoice.settle_date)?d.xi3(47,38,1e3*+(null==tt.invoice?null:tt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==tt.invoice?null:tt.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==tt.invoice?null:tt.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==tt.invoice?null:tt.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",tt.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.htlcs)&&(null==tt.invoice?null:tt.invoice.htlcs.length)>0&&tt.showAdvanced&&tt.flgOpened),d.xp6(3),d.Q6J("ngIf",!tt.showAdvanced)("ngIfElse",Dt),d.xp6(3),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.payment_request)&&""!==(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.payment_request)||""===(null==tt.invoice?null:tt.invoice.payment_request))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,B.dk,Z.BN,Y.lW,B.dn,ae.d,S.sg,ee.Ou,S.tP,ue.Hw,ne.h,re.y,ge.ib,ge.yz,ge.yK,q.gM],pipes:[S.JJ,S.uU],styles:[""]}),fe})()},7772:(Be,K,p)=>{"use strict";p.d(K,{J:()=>f,_:()=>e});var t=p(1777);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],f=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Be,K,p)=>{"use strict";p.d(K,{g:()=>e});var t=p(1777);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Be,K,p)=>{"use strict";p.d(K,{l:()=>e});var t=p(1777);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(Be,K,p)=>{"use strict";p.d(K,{H:()=>w});var t=p(8966),e=p(5e3),f=p(5043),M=p(7093),a=p(9224),C=p(7423),d=p(9808),R=p(4834),h=p(3390);function L(D,S){if(1&D&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&D){const k=e.oxw();e.xp6(1),e.Oqu(k.data.titleMessage)}}let w=(()=>{class D{constructor(k,E,B){this.dialogRef=k,this.data=E,this.logger=B,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&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 D.\u0275fac=function(k){return new(k||D)(e.Y36(t.so),e.Y36(t.WI),e.Y36(f.mQ))},D.\u0275cmp=e.Xpm({type:D,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-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(k,E){1&k&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return E.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,L,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&k&&(e.xp6(5),e.Oqu(E.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",E.data.titleMessage),e.xp6(4),e.Oqu(E.data.message.code),e.xp6(5),e.Oqu(E.errorMessage),e.xp6(5),e.Oqu(E.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},directives:[M.xw,M.yH,a.dk,M.Wh,C.lW,a.dn,d.O5,R.d,h.h,t.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),D})()},2615:(Be,K,p)=>{"use strict";p.d(K,{a:()=>Ui});var t=p(3075),e=p(7579),f=p(2722),M=p(8966),a=p(2687),C=p(7772),d=p(7731),R=p(6529),h=p(5e3),L=p(5620),w=p(9107),D=p(9808),S=p(5043),k=p(1402),E=p(62),B=p(7093),Z=p(9224),Y=p(7423),ae=p(5615),ee=p(1125),ue=p(3322),ne=p(5245),re=p(7238),ge=p(4834);function q(Ue,Tt){1&Ue&&h.GkF(0)}function _e(Ue,Tt){1&Ue&&h.GkF(0)}const x=function(Ue){return{"h-5":Ue}};function i(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA()()(),h.YNc(6,_e,1,0,"ng-container",0),h.qZA()),2&Ue){const ve=h.oxw(),Qe=h.MAs(4);h.Q6J("expanded",ve.panelExpanded)("ngClass",h.VKq(7,x,!ve.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",ve.termCaption," amount (",h.lcZ(5,5,ve.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",Qe)}}function r(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",19)(1,"h4",8),h._uU(2," Prepay Amount (Sats) "),h.TgZ(3,"mat-icon",20),h._uU(4,"info_outline"),h.qZA()(),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"number"),h.qZA()()),2&Ue){const ve=h.oxw(2);h.xp6(6),h.Oqu(h.lcZ(7,1,null==ve.quote?null:ve.quote.prepay_amt_sat))}}function u(Ue,Tt){1&Ue&&h._UZ(0,"mat-divider",13)}function c(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),h._uU(3," Swap Server Node Pubkey "),h.TgZ(4,"mat-icon",22),h._uU(5,"info_outline"),h.qZA()(),h.TgZ(6,"span",10),h._uU(7),h.qZA()()()),2&Ue){const ve=h.oxw(2);h.xp6(7),h.Oqu(null==ve.quote?null:ve.quote.swap_payment_dest)}}function v(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),h._uU(4," Swap Fee (Sats) "),h.TgZ(5,"mat-icon",9),h._uU(6,"info_outline"),h.qZA()(),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"number"),h.qZA()(),h.TgZ(10,"div",7)(11,"h4",8),h._uU(12),h.TgZ(13,"mat-icon",11),h._uU(14,"info_outline"),h.qZA()(),h.TgZ(15,"span",10),h._uU(16),h.ALo(17,"number"),h.qZA()(),h.YNc(18,r,8,3,"div",12),h.qZA(),h._UZ(19,"mat-divider",13),h.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),h._uU(23," Max Off-chain Swap Routing Fee (Sats) "),h.TgZ(24,"mat-icon",15),h._uU(25,"info_outline"),h.qZA()(),h.TgZ(26,"span",10),h._uU(27),h.ALo(28,"number"),h.qZA()(),h.TgZ(29,"div",14)(30,"h4",8),h._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),h.TgZ(32,"mat-icon",16),h._uU(33,"info_outline"),h.qZA()(),h.TgZ(34,"span",10),h._uU(35,"36"),h.qZA()()(),h.YNc(36,u,1,0,"mat-divider",17),h.YNc(37,c,8,1,"div",18),h.qZA()),2&Ue){const ve=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"30":"50"),h.xp6(6),h.Oqu(h.lcZ(9,9,null==ve.quote?null:ve.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"35":"50"),h.xp6(2),h.hij(" ",null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ve.quote&&ve.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),h.xp6(4),h.Oqu(h.lcZ(17,11,null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?ve.quote.htlc_sweep_fee_sat:null!=ve.quote&&ve.quote.htlc_publish_fee_sat?ve.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==ve.quote?null:ve.quote.prepay_amt_sat),h.xp6(9),h.Oqu(h.lcZ(28,13,(null==ve.quote?null:ve.quote.amount)*((null!=ve.quote&&ve.quote.off_chain_swap_routing_fee_percentage?null==ve.quote?null:ve.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(9),h.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest))}}let T=(()=>{class Ue{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=h.Xpm({type:Ue,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"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",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",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(ve,Qe){if(1&ve&&(h.YNc(0,q,1,0,"ng-container",0),h.YNc(1,i,7,9,"ng-template",null,1,h.W1O),h.YNc(3,v,38,15,"ng-template",null,2,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4);h.Q6J("ngTemplateOutlet",Qe.showPanel?_t:se)}},directives:[D.tP,ee.ib,B.yH,D.mk,ue.oO,ee.yz,ee.yK,B.Wh,B.xw,ne.Hw,re.gM,D.O5,ge.d],pipes:[D.JJ],styles:[""]}),Ue})();var I=p(7322),y=p(7531),n=p(3390),_=p(2368),V=p(9814),N=p(5899);function H(Ue,Tt){1&Ue&&h.GkF(0)}function X(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",3)(1,"span",4),h._uU(2),h.qZA()()),2&Ue){const ve=h.oxw();h.xp6(2),h.Oqu(null!=ve.loopStatus&&ve.loopStatus.error?null==ve.loopStatus?null:ve.loopStatus.error:"Unknown Error.")}}function he(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA()()()()),2&Ue){const ve=h.oxw();h.xp6(6),h.Oqu(null==ve.loopStatus?null:ve.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==ve.loopStatus?null:ve.loopStatus.htlc_address)}}let be=(()=>{class Ue{constructor(){}}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=h.Xpm({type:Ue,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(ve,Qe){if(1&ve&&(h.YNc(0,H,1,0,"ng-container",0),h.YNc(1,X,3,1,"ng-template",null,1,h.W1O),h.YNc(3,he,14,2,"ng-template",null,2,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=Qe.loopStatus&&Qe.loopStatus.error?_t:se)}},directives:[D.tP,B.xw,B.yH,B.Wh,ge.d],styles:[""]}),Ue})();var Pe=p(113);function Ee(Ue,Tt){1&Ue&&h.GkF(0)}const j=function(Ue,Tt){return{"small-svg":Ue,"large-svg":Tt}};function Ve(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA()(),h.TgZ(29,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Me(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),h._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),h.qZA(),h._UZ(43,"path",71),h.qZA()(),h._UZ(44,"circle",72),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA()(),h.TgZ(48,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function J(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",73)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",74),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",75)(11,"g",76),h._UZ(12,"circle",77)(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),h.TgZ(29,"g",94)(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)(35,"g",41)(36,"g",42),h._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),h.qZA(),h.TgZ(52,"g",56),h._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),h.qZA(),h._UZ(67,"path",111),h.qZA()()()()()(),h.kcU(),h.TgZ(68,"div",30)(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA()(),h.TgZ(71,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Ie(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",112)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),h._UZ(9,"circle",12)(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),h.qZA()(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),h.TgZ(42,"g",94)(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.kcU(),h.TgZ(47,"div",30)(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA()(),h.TgZ(50,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function ut(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",124)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),h._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),h.qZA(),h.TgZ(28,"g",142)(29,"g",143)(30,"g",144),h._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),h.qZA(),h.TgZ(45,"g",159),h._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),h.qZA(),h._UZ(59,"path",173),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA()(),h.TgZ(63,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let Oe=(()=>{class Ue{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(h.Y36(E.v))},Ue.\u0275cmp=h.Xpm({type:Ue,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(ve,Qe){if(1&ve&&(h.YNc(0,Ee,1,0,"ng-container",0),h.YNc(1,Ve,32,5,"ng-template",null,1,h.W1O),h.YNc(3,Me,51,5,"ng-template",null,2,h.W1O),h.YNc(5,J,74,5,"ng-template",null,3,h.W1O),h.YNc(7,Ie,53,5,"ng-template",null,4,h.W1O),h.YNc(9,ut,66,5,"ng-template",null,5,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4),Xe=h.MAs(6),xt=h.MAs(8),Bt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Qe.stepNumber?_t:2===Qe.stepNumber?se:3===Qe.stepNumber?Xe:4===Qe.stepNumber?xt:Bt)}},directives:[D.tP,B.xw,B.yH,B.Wh,D.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:[Pe.l]}}),Ue})();function we(Ue,Tt){1&Ue&&h.GkF(0)}const ce=function(Ue,Tt){return{"small-svg":Ue,"large-svg":Tt}};function Te(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA()(),h.TgZ(29,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function xe(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),h._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56)(29,"g",57)(30,"g",58),h._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),h.qZA(),h.TgZ(45,"g",73),h._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),h.qZA(),h._UZ(59,"path",87),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA()(),h.TgZ(63,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function W(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",88)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",89),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),h._UZ(14,"circle",95)(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),h.TgZ(31,"g",112)(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA()()(),h.TgZ(35,"g",116)(36,"g",40),h._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),h.qZA(),h.TgZ(53,"g",56)(54,"g",57)(55,"g",58),h._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),h.qZA(),h.TgZ(70,"g",73),h._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),h.qZA(),h._UZ(84,"path",139),h.qZA()()()(),h._UZ(85,"path",140)(86,"path",141),h.qZA()()()(),h.kcU(),h.TgZ(87,"div",30)(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA()(),h.TgZ(90,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function te(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",142)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),h._UZ(10,"circle",12)(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),h.qZA()(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),h.TgZ(43,"g",112)(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA()()(),h._UZ(47,"path",153),h.qZA()()()(),h.kcU(),h.TgZ(48,"div",30)(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA()(),h.TgZ(51,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Ce(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",154)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),h._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),h.qZA(),h.TgZ(28,"g",172),h._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),h.qZA(),h._UZ(43,"path",187),h.qZA()(),h._UZ(44,"circle",188),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA()(),h.TgZ(48,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let fe=(()=>{class Ue{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(h.Y36(E.v))},Ue.\u0275cmp=h.Xpm({type:Ue,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(ve,Qe){if(1&ve&&(h.YNc(0,we,1,0,"ng-container",0),h.YNc(1,Te,32,5,"ng-template",null,1,h.W1O),h.YNc(3,xe,66,5,"ng-template",null,2,h.W1O),h.YNc(5,W,93,5,"ng-template",null,3,h.W1O),h.YNc(7,te,54,5,"ng-template",null,4,h.W1O),h.YNc(9,Ce,51,5,"ng-template",null,5,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4),Xe=h.MAs(6),xt=h.MAs(8),Bt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Qe.stepNumber?_t:2===Qe.stepNumber?se:3===Qe.stepNumber?Xe:4===Qe.stepNumber?xt:Bt)}},directives:[D.tP,B.xw,B.yH,B.Wh,D.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:[Pe.l]}}),Ue})();const Q=["stepper"];function pt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",48)(1,"p",49)(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50)(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,ve.channel.remote_alias)),h.xp6(5),h.Oqu(ve.channel.chan_id)}}function tt(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(2);h.Oqu(ve.inputFormLabel)}}function Dt(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function di(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,ve.minQuote.amount),".")}}function Yt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,ve.maxQuote.amount),".")}}function Zt(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function ui(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function Ot(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function Nt(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function gt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,Ot,2,0,"mat-error",25),h.YNc(3,Nt,2,0,"mat-error",25),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.min)}}function it(Ue,Tt){1&Ue&&(h.TgZ(0,"div",52)(1,"mat-slide-toggle",53),h._uU(2,"Fast"),h.qZA(),h.TgZ(3,"mat-icon",54),h._uU(4,"info_outline"),h.qZA()())}function bt(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(2);h.Oqu(ve.quoteFormLabel)}}function ti(Ue,Tt){1&Ue&&(h.TgZ(0,"p",55)(1,"mat-icon",56),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function Qt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",57),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Re(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",58),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&Ue){const ve=h.oxw(2);h.xp6(1),h.hij("Initiate ",ve.loopDirectionCaption,"")}}function ke(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(3);h.Oqu(ve.addressFormLabel)}}function de(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function ye(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"mat-step",16)(1,"form",17),h.YNc(2,ke,1,1,"ng-template",18),h.TgZ(3,"div",59)(4,"mat-radio-group",60),h.NdJ("change",function(_t){return h.CHM(ve),h.oxw(2).onAddressTypeChange(_t)}),h.TgZ(5,"mat-radio-button",61),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",62),h._uU(8,"External Address"),h.qZA()(),h.TgZ(9,"mat-form-field",63),h._UZ(10,"input",64),h.YNc(11,de,2,0,"mat-error",25),h.qZA()(),h.TgZ(12,"div",29)(13,"button",65),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onLoop()}),h._uU(14),h.qZA()()()()}if(2&Ue){const ve=h.oxw(2);h.Q6J("stepControl",ve.addressFormGroup)("editable",ve.flgEditable),h.xp6(1),h.Q6J("formGroup",ve.addressFormGroup),h.xp6(9),h.Q6J("required","external"===ve.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==ve.addressFormGroup.controls.address.errors?null:ve.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",ve.loopDirectionCaption,"")}}function ht(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(2);h.hij("",ve.loopDirectionCaption," Status")}}function mt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-icon",66),h._uU(1),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.Oqu(ve.loopStatus&&null!=ve.loopStatus&&ve.loopStatus.id_bytes?"check":"close")}}function Ft(Ue,Tt){1&Ue&&h._UZ(0,"div")}function nt(Ue,Tt){1&Ue&&h._UZ(0,"mat-progress-bar",67)}function He(Ue,Tt){if(1&Ue&&(h.TgZ(0,"h4",68),h._uU(1),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.Oqu(ve.loopStatus&&ve.loopStatus.error?ve.loopDirectionCaption+" failed.":ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel?ve.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ve.loopDirectionCaption+" request placed successfully.")}}function rt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",69),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function et(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",70),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Ae(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),h._uU(5),h.qZA()(),h.TgZ(6,"div",8)(7,"button",9),h.NdJ("click",function(){return h.CHM(ve),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(ve),h.oxw().onClose()}),h._uU(10,"X"),h.qZA()()(),h.TgZ(11,"mat-card-content",11)(12,"div",12),h.YNc(13,pt,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(_t){return h.CHM(ve),h.oxw().stepSelectionChanged(_t)}),h.TgZ(16,"mat-step",16)(17,"form",17),h.YNc(18,tt,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21)(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,Dt,2,0,"mat-error",25),h.YNc(32,di,3,3,"mat-error",25),h.YNc(33,Yt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,Zt,2,0,"mat-error",25),h.YNc(37,ui,2,0,"mat-error",25),h.qZA(),h.YNc(38,gt,4,3,"mat-form-field",27),h.qZA(),h.YNc(39,it,5,0,"div",28),h.TgZ(40,"div",29)(41,"button",30),h.NdJ("click",function(){return h.CHM(ve),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA()()()(),h.TgZ(43,"mat-step",16)(44,"form",17),h.YNc(45,bt,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,ti,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,Qt,2,0,"button",33),h.YNc(50,Re,2,1,"button",34),h.qZA()()(),h.YNc(51,ye,15,6,"mat-step",35),h.TgZ(52,"mat-step",36)(53,"form",17),h.YNc(54,ht,1,1,"ng-template",18),h.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),h._uU(60),h.YNc(61,mt,2,1,"mat-icon",40),h.qZA()()(),h.YNc(62,Ft,1,0,"div",41),h.qZA(),h.YNc(63,nt,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,He,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,rt,2,0,"button",44),h.YNc(67,et,2,0,"button",45),h.qZA()()()(),h.TgZ(68,"div",46)(69,"button",47),h._uU(70,"Close"),h.qZA()()()()()()}if(2&Ue){const ve=h.oxw(),Qe=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(ve.channel?"Channel "+ve.loopDirectionCaption:ve.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",ve.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",ve.inputFormGroup)("editable",ve.flgEditable),h.xp6(1),h.Q6J("formGroup",ve.inputFormGroup),h.xp6(3),h.Q6J("quote",ve.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",ve.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"35":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,ve.minQuote.amount),"-",h.lcZ(28,53,ve.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",ve.quoteFormGroup)("editable",ve.flgEditable),h.xp6(1),h.Q6J("formGroup",ve.quoteFormGroup),h.xp6(2),h.Q6J("quote",ve.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",ve.inputFormGroup.controls.amount.value>ve.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",ve.statusFormGroup),h.xp6(1),h.Q6J("formGroup",ve.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!ve.loopStatus),h.xp6(4),h.Oqu(ve.loopStatus?ve.loopStatus.id_bytes?ve.loopDirectionCaption+" request details":ve.loopDirectionCaption+" error details":"Waiting for "+ve.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",ve.loopStatus),h.xp6(1),h.Q6J("ngIf",!ve.loopStatus)("ngIfElse",Qe),h.xp6(1),h.Q6J("ngIf",!ve.loopStatus),h.xp6(1),h.Q6J("ngIf",ve.loopStatus),h.xp6(2),h.Q6J("ngIf",ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel),h.xp6(1),h.Q6J("ngIf",ve.loopStatus&&(ve.loopStatus.error||!ve.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Ge(Ue,Tt){if(1&Ue&&h._UZ(0,"rtl-loop-status",71),2&Ue){const ve=h.oxw();h.Q6J("loopStatus",ve.loopStatus)}}function ot(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",88),h.NdJ("stepNumberChange",function(_t){return h.CHM(ve),h.oxw(2).stepNumber=_t}),h.qZA()}if(2&Ue){const ve=h.oxw(2);h.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}function lt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",88),h.NdJ("stepNumberChange",function(_t){return h.CHM(ve),h.oxw(2).stepNumber=_t}),h.qZA()}if(2&Ue){const ve=h.oxw(2);h.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}const Ct=function(Ue,Tt){return{"dot-primary":Ue,"dot-primary-lighter":Tt}};function mi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"span",89),h.NdJ("click",function(){const se=h.CHM(ve).$implicit;return h.oxw(2).onStepChanged(se)}),h._UZ(1,"p",90),h.qZA()}if(2&Ue){const ve=Tt.$implicit,Qe=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,Ct,Qe.stepNumber===ve,Qe.stepNumber!==ve))}}function Jt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function ei(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function Qi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function hi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function si(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",95),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.onStepChanged(_t.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function Ji(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",96),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.onStepChanged(_t.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const Zi=function(){return[1,2,3,4,5]};function Vi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",75)(6,"button",76),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw();return _t.flgShowInfo=!1,_t.stepNumber=1}),h._uU(7,"X"),h.qZA()()(),h.TgZ(8,"mat-card-content",77),h.YNc(9,ot,1,2,"rtl-loop-out-info-graphics",78),h.YNc(10,lt,1,2,"rtl-loop-in-info-graphics",78),h.qZA(),h.TgZ(11,"div",79),h.YNc(12,mi,2,4,"span",80),h.qZA(),h.TgZ(13,"div",81),h.YNc(14,Jt,2,0,"button",82),h.YNc(15,ei,2,0,"button",83),h.YNc(16,Qi,2,0,"button",84),h.YNc(17,hi,2,0,"button",85),h.YNc(18,si,2,0,"button",86),h.YNc(19,Ji,2,0,"button",87),h.qZA()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,Zi)),h.xp6(2),h.Q6J("ngIf",5===ve.stepNumber),h.xp6(1),h.Q6J("ngIf",5===ve.stepNumber),h.xp6(1),h.Q6J("ngIf",5===ve.stepNumber),h.xp6(1),h.Q6J("ngIf",ve.stepNumber<5),h.xp6(1),h.Q6J("ngIf",ve.stepNumber>1&&ve.stepNumber<5),h.xp6(1),h.Q6J("ngIf",ve.stepNumber<5)}}let Ui=(()=>{class Ue{constructor(ve,Qe,_t,se,Xe,xt,Bt,bi,Ei){this.dialogRef=ve,this.data=Qe,this.store=_t,this.loopService=se,this.formBuilder=Xe,this.decimalPipe=xt,this.logger=Bt,this.router=bi,this.commonService=Ei,this.faInfoCircle=a.sqG,this.LoopTypeEnum=d.$I,this.direction=d.$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=d.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.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||d.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===d.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,f.R)(this.unSubs[6])).subscribe(ve=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:ve.lightningBalance&&ve.lightningBalance.local?+ve.lightningBalance.local:null})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[4])).subscribe(ve=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[5])).subscribe(ve=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(ve){"external"===ve.value?(this.addressFormGroup.controls.address.setValidators([t.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.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){var ve;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===d.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===d.$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,null===(ve=this.stepper.selected)||void 0===ve||ve.stepControl.setErrors(null),this.stepper.next(),this.direction===d.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,f.R)(this.unSubs[0])).subscribe({next:Qe=>{this.loopStatus=Qe,this.loopService.listSwaps(),this.flgEditable=!0},error:Qe=>{this.loopStatus={error:Qe},this.flgEditable=!0,this.logger.error(Qe)}});else{const Qe=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),_t="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",se=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,Qe,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),se,_t).pipe((0,f.R)(this.unSubs[1])).subscribe({next:Xe=>{this.loopStatus=Xe,this.loopService.listSwaps(),this.flgEditable=!0},error:Xe=>{this.loopStatus={error:Xe},this.flgEditable=!0,this.logger.error(Xe)}})}}onEstimateQuote(){var ve;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const Qe=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===d.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Qe).pipe((0,f.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,Qe).pipe((0,f.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}),null===(ve=this.stepper.selected)||void 0===ve||ve.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(ve){switch(ve.selectedIndex){case 0:default: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===d.$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===d.$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"}(this.direction===d.$I.LOOP_OUT&&1!==ve.selectedIndex&&ve.selectedIndex{ve.next(null),ve.complete()})}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(h.Y36(M.so),h.Y36(M.WI),h.Y36(L.yh),h.Y36(w.W),h.Y36(t.qu),h.Y36(D.JJ),h.Y36(S.mQ),h.Y36(k.F0),h.Y36(E.v))},Ue.\u0275cmp=h.Xpm({type:Ue,selectors:[["rtl-loop-modal"]],viewQuery:function(ve,Qe){if(1&ve&&h.Gf(Q,5),2&ve){let _t;h.iGM(_t=h.CRH())&&(Qe.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"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-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-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-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-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-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"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-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-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-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-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-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-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-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(ve,Qe){1&ve&&(h.YNc(0,Ae,71,55,"div",0),h.YNc(1,Ge,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Vi,20,11,"div",2)),2&ve&&(h.Q6J("ngIf",!Qe.flgShowInfo),h.xp6(3),h.Q6J("ngIf",Qe.flgShowInfo))},directives:[D.O5,B.xw,B.yH,B.Wh,Z.dk,Y.lW,Z.dn,ae.Vq,ae.C0,t._Y,t.JL,t.sg,ae.VY,T,I.KE,y.Nt,t.wV,t.Fj,n.h,t.JJ,t.u,t.Q7,I.bx,I.R9,I.TO,_.Rr,ne.Hw,re.gM,V.VQ,V.U0,ee.ib,ee.yz,ee.yK,N.pW,M.ZT,be,Oe,fe,D.sg,D.mk,ue.oO],pipes:[D.rS,D.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[C._]}}),Ue})()},9442:(Be,K,p)=>{"use strict";p.d(K,{w:()=>R});var t=p(2687),e=p(5e3),f=p(1402),M=p(7093),a=p(9546),C=p(9224),d=p(7423);let R=(()=>{class h{constructor(w){this.router=w,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return h.\u0275fac=function(w){return new(w||h)(e.Y36(f.F0))},h.\u0275cmp=e.Xpm({type:h,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(w,D){1&w&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return D.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&w&&(e.xp6(1),e.Q6J("icon",D.faTimes))},directives:[M.xw,M.Wh,a.BN,C.a8,C.dn,M.yH,d.lW],encapsulation:2}),h})()},3390:(Be,K,p)=>{"use strict";p.d(K,{h:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return f.\u0275fac=function(a){return new(a||f)(t.Y36(t.SBq))},f.\u0275dir=t.lG2({type:f,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),f})()},6895:(Be,K,p)=>{"use strict";p.d(K,{y:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(){this.copied=new t.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},C=>{this.copied.emit("Error could not copy text: "+JSON.stringify(C))})}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=t.lG2({type:f,selectors:[["","rtlClipboard",""]],hostBindings:function(a,C){1&a&&t.NdJ("click",function(R){return C.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),f})()},9843:(Be,K,p)=>{"use strict";p.d(K,{F:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(C){return this.max?t.kI.max(+this.max)(C):null}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},6534:(Be,K,p)=>{"use strict";p.d(K,{q:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(C){return this.min?t.kI.min(+this.min)(C):null}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},9445:(Be,K,p)=>{"use strict";p.d(K,{D3:()=>a,al:()=>e,h9:()=>f,i1:()=>M});var t=p(5e3);let e=(()=>{class C{transform(R,h){return null==R?void 0:R.replace(/^[0]+/g,"")}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:C,pure:!0}),C})(),f=(()=>{class C{transform(R,h){var L,w;return null===(w=null===(L=null==R?void 0:R.replace(/(?:^\w|[A-Z]|\b\w)/g,(D,S)=>D.toUpperCase()))||void 0===L?void 0:L.replace(/\s+/g,""))||void 0===w?void 0:w.replace(/-/g," ")}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"camelcase",type:C,pure:!0}),C})(),M=(()=>{class C{transform(R,h,L){return R.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,D)=>" "+w.toUpperCase())}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:C,pure:!0}),C})(),a=(()=>{class C{transform(R,h,L){var w;return R=null===(w=null==R?void 0:R.toLowerCase().replace(/\s+/g,""))||void 0===w?void 0:w.replace(/-/g," "),h&&(R=R.replace(new RegExp(h,"g")," ")),L&&(R=R.replace(new RegExp(L,"g")," ")),R.replace(/(?:^\w|[A-Z]|\b\w)/g,(D,S)=>D.toUpperCase())}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:C,pure:!0}),C})()},1643:(Be,K,p)=>{"use strict";p.d(K,{QM:()=>C,a1:()=>a,eQ:()=>d,fY:()=>R});var t=p(4004),e=p(5e3),f=p(1402),M=p(5986);let a=(()=>{class h{constructor(w,D){this.router=w,this.sessionService=D}canActivate(w){return!(!this.sessionService.getItem("token")||"settings"!==w.url[0].path&&"auth"!==w.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(f.F0),e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),C=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.lndUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),d=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.clUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),R=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.eclUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},62:(Be,K,p)=>{"use strict";p.d(K,{v:()=>w});var t=p(1135),e=p(9646),f=p(2843),M=p(5698),a=p(4004),C=p(262),d=p(7731),R=p(5e3),h=p(8104),L=p(5043);let w=(()=>{class D{constructor(k,E){this.dataService=k,this.logger=E,this.currencyUnits=[],this.CurrencyUnitEnum=d.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=d.Bn.UN_INITIATED,this.screenSize=d.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,E){this.containerSize={width:k,height:E},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,E,B,Z="asc"){return k.sort("number"===B?"desc"===Z?(Y,ae)=>+Y[E]>+ae[E]?-1:1:(Y,ae)=>+Y[E]>+ae[E]?1:-1:"desc"===Z?(Y,ae)=>Y[E]>ae[E]?-1:1:(Y,ae)=>Y[E]>ae[E]?1:-1)}sortDescByKey(k,E){return k.sort((B,Z)=>{const Y=+B[E],ae=+Z[E];return Y>ae?-1:Y{const Y=+B[E],ae=+Z[E];return Yae?1:0})}camelCase(k){var E,B;return null===(B=null===(E=null==k?void 0:k.replace(/(?:^\w|[A-Z]|\b\w)/g,(Z,Y)=>Z.toUpperCase()))||void 0===E?void 0:E.replace(/\s+/g,""))||void 0===B?void 0:B.replace(/-/g," ")}titleCase(k,E,B){var Z,Y;return E&&B&&""!==E&&""!==B&&(k=null==k?void 0:k.replace(new RegExp(E,"g"),B)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?null===(Z=k.split("\n"))||void 0===Z?void 0:Z.reduce((ae,ee)=>ae+ee.charAt(0).toUpperCase()+ee.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?null===(Y=k.split(" "))||void 0===Y?void 0:Y.reduce((ae,ee)=>ae+ee.charAt(0).toUpperCase()+ee.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,E,B,Z,Y){const ae=(new Date).valueOf();return Y&&Z&&this.ratesAPIStatus!==d.Bn.INITIATED&&(E===d.NT.OTHER||B===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ae(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=ae,this.convertWithFiat(k,E,Z))),(0,C.K)(ee=>(this.ratesAPIStatus=d.Bn.ERROR,(0,f._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(k,E))}convertWithoutFiat(k,E){const B={};switch(B[d.NT.SATS]=0,B[d.NT.BTC]=0,E){case d.NT.SATS:B[d.NT.SATS]=k,B[d.NT.BTC]=1e-8*k;break;case d.NT.BTC:B[d.NT.SATS]=1e8*k,B[d.NT.BTC]=k}return B}convertWithFiat(k,E,B){const Z={unit:B,symbol:this.conversionData.data[B].symbol};switch(Z[d.NT.SATS]=0,Z[d.NT.BTC]=0,Z[d.NT.OTHER]=0,E){case d.NT.SATS:Z[d.NT.SATS]=k,Z[d.NT.BTC]=1e-8*k,Z[d.NT.OTHER]=1e-8*k*this.conversionData.data[B].last;break;case d.NT.BTC:Z[d.NT.SATS]=1e8*k,Z[d.NT.BTC]=k,Z[d.NT.OTHER]=k*this.conversionData.data[B].last;break;case d.NT.OTHER:Z[d.NT.SATS]=k/this.conversionData.data[B].last*1e8,Z[d.NT.BTC]=k/this.conversionData.data[B].last,Z[d.NT.OTHER]=k}return Z}convertTime(k,E,B){switch(E){case d.Qk.SECS:switch(B){case d.Qk.MINS:k/=60;break;case d.Qk.HOURS:k/=3600;break;case d.Qk.DAYS:k/=86400}break;case d.Qk.MINS:switch(B){case d.Qk.SECS:k*=60;break;case d.Qk.HOURS:k/=60;break;case d.Qk.DAYS:k/=1440}break;case d.Qk.HOURS:switch(B){case d.Qk.SECS:k*=3600;break;case d.Qk.MINS:k*=60;break;case d.Qk.DAYS:k/=24}break;case d.Qk.DAYS:switch(B){case d.Qk.SECS:k=3600*k*24;break;case d.Qk.MINS:k=60*k*24;break;case d.Qk.HOURS:k*=24}}return k}downloadFile(k,E,B=".json",Z=".csv"){let Y=new Blob;Y=".json"===B?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const ae=document.createElement("a"),ee=URL.createObjectURL(Y);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ae.setAttribute("target","_blank"),ae.setAttribute("href",ee),ae.setAttribute("download",E+Z),ae.style.visibility="hidden",document.body.appendChild(ae),ae.click(),document.body.removeChild(ae)}convertToCSV(k){const E=[];let B="",Z="",Y="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((ee,ue)=>{for(const ne in ee)E.findIndex(re=>re===ne)<0&&E.push(ne)}),Y=E.join(",")+"\r\n",k.forEach(ee=>{B="",E.forEach(ue=>{var ne;ee.hasOwnProperty(ue)?Array.isArray(ee[ue])?(Z="",ee[ue].forEach((re,ge)=>{var q;Z+="object"==typeof re?"("+(null===(q=JSON.stringify(re))||void 0===q?void 0:q.replace(/\,/g,";"))+")":"("+re+")"}),B+=Z+","):B+="object"==typeof ee[ue]?(null===(ne=JSON.stringify(ee[ue]))||void 0===ne?void 0:ne.replace(/\,/g,";"))+",":ee[ue]+",":B+=","}),Y+=B.slice(0,-1)+"\r\n"}),Y}isVersionCompatible(k,E){var B;if(k){const Z=(null===(B=k.trim())||void 0===B?void 0:B.replace("v","").split("-")[0].split("."))||[],Y=E.split(".");return+Z[0]>+Y[0]||+Z[0]==+Y[0]&&+Z[1]>+Y[1]||+Z[0]==+Y[0]&&+Z[1]==+Y[1]&&+Z[2]>=+Y[2]}return!1}extractErrorMessage(k,E="Unknown Error."){const B=this.titleCase(k.error&&k.error.text&&"string"==typeof k.error.text&&k.error.text.includes('')?"API Route Does Not Exist.":k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:E);return this.logger.info("Error Message: "+B),B}extractErrorCode(k,E=500){const B=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:E;return this.logger.info("Error Code: "+B),B}extractErrorNumber(k,E=500){const B=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:E;return this.logger.info("Error Number: "+B),B}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return D.\u0275fac=function(k){return new(k||D)(R.LFG(h.D),R.LFG(L.mQ))},D.\u0275prov=R.Yz7({token:D,factory:D.\u0275fac}),D})()},7731:(Be,K,p)=>{"use strict";p.d(K,{$I:()=>r,$v:()=>k,AB:()=>he,At:()=>xe,Bn:()=>n,Df:()=>Pe,Dr:()=>L,Er:()=>a,Fq:()=>i,Gi:()=>ne,HW:()=>ge,H_:()=>Ee,IV:()=>d,IX:()=>V,JX:()=>I,LO:()=>C,NT:()=>ue,OJ:()=>ae,OO:()=>Me,Pi:()=>we,Qk:()=>ee,Qw:()=>c,TJ:()=>R,Vc:()=>w,Xk:()=>fe,Xr:()=>N,Xz:()=>M,Zs:()=>x,_t:()=>h,c3:()=>Ce,cu:()=>re,g8:()=>B,gB:()=>Ve,gG:()=>Te,gK:()=>W,gg:()=>v,hG:()=>te,hZ:()=>j,hc:()=>u,kO:()=>y,lr:()=>be,m6:()=>_,nM:()=>E,n_:()=>Y,ol:()=>Z,op:()=>T,p7:()=>_e,pg:()=>H,pt:()=>e,uA:()=>f,uR:()=>X,vn:()=>D,wZ:()=>S,x$:()=>q,zZ:()=>ce});var t=p(6087);function e(Q){const pt=new t.ye;return pt.itemsPerPageLabel=Q+" per page:",pt}const f=["Sats","BTC"],M={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"}],C=["SECS","MINS","HOURS","DAYS"],d=10,R=[5,10,25,100],h=[{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)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],w=[{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"}],D=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],S={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 k=(()=>{return(Q=k||(k={})).PAYMENT_RECEIVED="payment-received",Q.PAYMENT_RELAYED="payment-relayed",Q.PAYMENT_SENT="payment-sent",Q.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Q.PAYMENT_FAILED="payment-failed",Q.CHANNEL_OPENED="channel-opened",Q.CHANNEL_STATE_CHANGED="channel-state-changed",Q.CHANNEL_CLOSED="channel-closed",k;var Q})(),E=(()=>{return(Q=E||(E={})).INVOICE="invoice",Q.BLOCK_HEIGHT="block-height",Q.SEND_PAYMENT="send-payment",E;var Q})(),B=(()=>((B||(B={})).INVOICE="invoice",B))(),Z=(()=>{return(Q=Z||(Z={})).OPERATOR="OPERATOR",Q.MERCHANT="MERCHANT",Q.ALL="ALL",Z;var Q})(),Y=(()=>{return(Q=Y||(Y={})).INFORMATION="Information",Q.WARNING="Warning",Q.ERROR="Error",Q.SUCCESS="Success",Q.CONFIRM="Confirm",Y;var Q})(),ae=(()=>{return(Q=ae||(ae={})).JWT="JWT",Q.PASSWORD="PASSWORD",ae;var Q})(),ee=(()=>{return(Q=ee||(ee={})).SECS="SECS",Q.MINS="MINS",Q.HOURS="HOURS",Q.DAYS="DAYS",ee;var Q})(),ue=(()=>{return(Q=ue||(ue={})).SATS="Sats",Q.BTC="BTC",Q.OTHER="OTHER",ue;var Q})(),ne=(()=>{return(Q=ne||(ne={})).ARRAY="ARRAY",Q.NUMBER="NUMBER",Q.STRING="STRING",Q.BOOLEAN="BOOLEAN",Q.PASSWORD="PASSWORD",Q.DATE="DATE",Q.DATE_TIME="DATE_TIME",ne;var Q})(),re=(()=>{return(Q=re||(re={})).XS="XS",Q.SM="SM",Q.MD="MD",Q.LG="LG",Q.XL="XL",re;var Q})();const ge={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"}},q={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:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var _e=(()=>{return(Q=_e||(_e={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Q.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Q.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Q.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Q.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Q.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Q.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Q.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Q.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Q.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Q.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Q.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Q.WIRE_CHANNEL_DISABLED="Channel Disabled",Q.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Q.WIRE_INVALID_REALM="Invalid Realm",Q.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Q.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Q.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Q.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Q.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Q.WIRE_MPP_TIMEOUT="MPP Timeout",Q.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Q.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",_e;var Q})(),x=(()=>{return(Q=x||(x={})).CHANNELD_NORMAL="Active",Q.OPENINGD="Opening",Q.CHANNELD_AWAITING_LOCKIN="Pending Open",Q.CHANNELD_SHUTTING_DOWN="Shutting Down",Q.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Q.CLOSINGD_COMPLETE="Closed",Q.AWAITING_UNILATERAL="Awaiting Unilateral Close",Q.FUNDING_SPEND_SEEN="Funding Spend Seen",Q.ONCHAIN="Onchain",Q.DUALOPEND_OPEN_INIT="Dual Open Initialized",Q.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var Q})(),i=(()=>{return(Q=i||(i={})).INITIATED="Initiated",Q.PREIMAGE_REVEALED="Preimage Revealed",Q.HTLC_PUBLISHED="HTLC Published",Q.SUCCESS="Successful",Q.FAILED="Failed",Q.INVOICE_SETTLED="Invoice Settled",i;var Q})(),r=(()=>{return(Q=r||(r={})).LOOP_OUT="LOOP_OUT",Q.LOOP_IN="LOOP_IN",r;var Q})(),u=(()=>{return(Q=u||(u={})).SWAP_OUT="SWAP_OUT",Q.SWAP_IN="SWAP_IN",u;var Q})(),c=(()=>{return(Q=c||(c={}))["swap.created"]="Swap Created",Q["swap.expired"]="Swap Expired",Q["invoice.set"]="Invoice Set",Q["invoice.paid"]="Invoice Paid",Q["invoice.pending"]="Invoice Pending",Q["invoice.settled"]="Invoice Settled",Q["invoice.failedToPay"]="Invoice Failed To Pay",Q["channel.created"]="Channel Created",Q["transaction.failed"]="Transaction Failed",Q["transaction.mempool"]="Transaction Mempool",Q["transaction.claimed"]="Transaction Claimed",Q["transaction.refunded"]="Transaction Refunded",Q["transaction.confirmed"]="Transaction Confirmed",Q["swap.refunded"]="Swap Refunded",Q["swap.abandoned"]="Swap Abandoned",c;var Q})();const v=[{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}],T=["MONTHLY","YEARLY"];var I=(()=>{return(Q=I||(I={})).LOOP="LOOP",Q.BOLTZ="BOLTZ",Q.OFFERS="OFFERS",Q.PEERSWAP="PEERSWAP",I;var Q})();const y=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(Q=n||(n={})).UN_INITIATED="UN_INITIATED",Q.INITIATED="INITIATED",Q.COMPLETED="COMPLETED",Q.ERROR="ERROR",n;var Q})();const _={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_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",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...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",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_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",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_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",LOG_OUT:"Logging Out..."};var V=(()=>{return(Q=V||(V={})).INVOICE="INVOICE",Q.OFFER="OFFER",Q.KEYSEND="KEYSEND",V;var Q})(),N=(()=>{return(Q=N||(N={})).FEES="FEES",Q.EVENTS="EVENTS",N;var Q})(),H=(()=>{return(Q=H||(H={})).VOID="VOID",Q.SET_API_URL_ECL="SET_API_URL_ECL",Q.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Q.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Q.RESET_ROOT_STORE="RESET_ROOT_STORE",Q.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Q.OPEN_SNACK_BAR="OPEN_SNACKBAR",Q.OPEN_SPINNER="OPEN_SPINNER",Q.CLOSE_SPINNER="CLOSE_SPINNER",Q.OPEN_ALERT="OPEN_ALERT",Q.CLOSE_ALERT="CLOSE_ALERT",Q.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Q.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Q.SHOW_PUBKEY="SHOW_PUBKEY",Q.FETCH_CONFIG="FETCH_CONFIG",Q.SHOW_CONFIG="SHOW_CONFIG",Q.FETCH_STORE="FETCH_STORE",Q.SET_STORE="SET_STORE",Q.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",Q.SET_RTL_CONFIG="SET_RTL_CONFIG",Q.SAVE_SSO="SAVE_SSO",Q.SAVE_SETTINGS="SAVE_SETTINGS",Q.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",Q.SET_SELECTED_NODE="SET_SELECTED_NODE",Q.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Q.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",Q.SET_NODE_DATA="SET_NODE_DATA",Q.IS_AUTHORIZED="IS_AUTHORIZED",Q.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Q.LOGIN="LOGIN",Q.VERIFY_TWO_FA="VERIFY_TWO_FA",Q.LOGOUT="LOGOUT",Q.RESET_PASSWORD="RESET_PASSWORD",Q.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Q.FETCH_FILE="FETCH_FILE",Q.SHOW_FILE="SHOW_FILE",H;var Q})(),X=(()=>{return(Q=X||(X={})).RESET_LND_STORE="RESET_LND_STORE",Q.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Q.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Q.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",Q.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",Q.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",Q.FETCH_INFO_LND="FETCH_INFO_LND",Q.SET_INFO_LND="SET_INFO_LND",Q.FETCH_PEERS_LND="FETCH_PEERS_LND",Q.SET_PEERS_LND="SET_PEERS_LND",Q.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Q.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Q.DETACH_PEER_LND="DETACH_PEER_LND",Q.REMOVE_PEER_LND="REMOVE_PEER_LND",Q.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Q.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Q.ADD_INVOICE_LND="ADD_INVOICE_LND",Q.FETCH_FEES_LND="FETCH_FEES_LND",Q.SET_FEES_LND="SET_FEES_LND",Q.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Q.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Q.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Q.SET_NETWORK_LND="SET_NETWORK_LND",Q.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Q.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Q.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Q.SET_CHANNELS_LND="SET_CHANNELS_LND",Q.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Q.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Q.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Q.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Q.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Q.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Q.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Q.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Q.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Q.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Q.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Q.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Q.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Q.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Q.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Q.SET_INVOICES_LND="SET_INVOICES_LND",Q.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Q.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Q.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Q.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Q.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Q.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Q.SET_UTXOS_LND="SET_UTXOS_LND",Q.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Q.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Q.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Q.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Q.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Q.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Q.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Q.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Q.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Q.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Q.GEN_SEED_LND="GEN_SEED_LND",Q.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Q.INIT_WALLET_LND="INIT_WALLET_LND",Q.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Q.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Q.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Q.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Q.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Q.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Q.SET_LOOKUP_LND="SET_LOOKUP_LND",Q.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Q.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Q.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Q.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Q.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Q.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",X;var Q})(),he=(()=>{return(Q=he||(he={})).RESET_CLN_STORE="RESET_CLN_STORE",Q.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Q.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Q.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",Q.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",Q.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",Q.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Q.SET_INFO_CLN="SET_INFO_CLN",Q.FETCH_FEES_CLN="FETCH_FEES_CLN",Q.SET_FEES_CLN="SET_FEES_CLN",Q.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Q.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Q.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",Q.SET_BALANCE_CLN="SET_BALANCE_CLN",Q.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",Q.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",Q.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Q.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Q.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",Q.SET_UTXOS_CLN="SET_UTXOS_CLN",Q.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Q.SET_PEERS_CLN="SET_PEERS_CLN",Q.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Q.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Q.ADD_PEER_CLN="ADD_PEER_CLN",Q.DETACH_PEER_CLN="DETACH_PEER_CLN",Q.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Q.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Q.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Q.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Q.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Q.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Q.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Q.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Q.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Q.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Q.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Q.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Q.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Q.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Q.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Q.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Q.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Q.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Q.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Q.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Q.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Q.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Q.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Q.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Q.SET_INVOICES_CLN="SET_INVOICES_CLN",Q.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Q.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Q.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Q.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Q.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Q.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Q.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Q.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Q.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Q.SET_OFFERS_CLN="SET_OFFERS_CLN",Q.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Q.ADD_OFFER_CLN="ADD_OFFER_CLN",Q.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Q.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Q.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Q.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Q.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Q.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Q.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",he;var Q})(),be=(()=>{return(Q=be||(be={})).RESET_ECL_STORE="RESET_ECL_STORE",Q.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Q.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Q.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",Q.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",Q.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",Q.FETCH_INFO_ECL="FETCH_INFO_ECL",Q.SET_INFO_ECL="SET_INFO_ECL",Q.FETCH_FEES_ECL="FETCH_FEES_ECL",Q.SET_FEES_ECL="SET_FEES_ECL",Q.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Q.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Q.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Q.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Q.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Q.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Q.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Q.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Q.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Q.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Q.SET_PEERS_ECL="SET_PEERS_ECL",Q.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Q.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Q.ADD_PEER_ECL="ADD_PEER_ECL",Q.DETACH_PEER_ECL="DETACH_PEER_ECL",Q.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Q.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Q.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Q.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Q.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Q.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Q.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Q.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Q.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Q.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Q.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Q.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Q.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Q.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Q.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Q.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Q.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Q.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Q.SET_INVOICES_ECL="SET_INVOICES_ECL",Q.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Q.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Q.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Q.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Q.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Q.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Q.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Q.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Q.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",be;var Q})();const Pe=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var Ee=(()=>{return(Q=Ee||(Ee={})).gossip_queries_ex="Gossip queries including additional information",Q.option_anchor_outputs="Anchor outputs",Q.option_data_loss_protect="Extra channel re-establish fields",Q.var_onion_optin="Variable-length routing onion payloads",Q.option_static_remotekey="Static key for remote output",Q.option_support_large_channel="Create large channels",Q.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Q.payment_secret="Payment secret field",Q.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Q.basic_mpp="Basic multi-part payments",Q.gossip_queries="More sophisticated gossip control",Q.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Q.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Q.amp="AMP",Ee;var Q})(),j=(()=>{return(Q=j||(j={}))["data-loss-protect"]="Extra channel re-establish fields",Q["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Q["gossip-queries"]="More sophisticated gossip control",Q["tlv-onion"]="Variable-length routing onion payloads",Q["ext-gossip-queries"]="Gossip queries can include additional information",Q["static-remote-key"]="Static key for remote output",Q["payment-addr"]="Payment secret field",Q["multi-path-payments"]="Basic multi-part payments",Q["wumbo-channels"]="Wumbo Channels",Q.anchors="Anchor outputs",Q["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Q.amp="AMP",j;var Q})();const Ve=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var Me=(()=>{return(Q=Me||(Me={})).OFFERED="offered",Q.SETTLED="settled",Q.FAILED="failed",Q.LOCAL_FAILED="local_failed",Me;var Q})(),we=(()=>{return(Q=we||(we={})).ASCENDING="asc",Q.DESCENDING="desc",we;var Q})();const ce=["asc","desc"],Te=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:we.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:we.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:d,sortBy:"msatoshi_to_us",sortOrder:we.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:d,sortBy:"state",sortOrder:we.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:we.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:d,sortBy:"channel_opening_fee",sortOrder:we.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"created_at",sortOrder:we.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:d,sortBy:"expires_at",sortOrder:we.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:d,sortBy:"offer_id",sortOrder:we.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:d,sortBy:"lastUpdatedAt",sortOrder:we.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"total_fee",sortOrder:we.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:we.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:d,sortBy:"msatoshi",sortOrder:we.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]},{pageId:"peerswap",tables:[{tableId:"swaps",recordsPerPage:d,sortBy:"created_at",sortOrder:we.DESCENDING,columnSelectionSM:["id","state","amount"],columnSelection:["id","alias","short_channel_id","created_at","state","amount"]}]}],xe={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"vendor"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}},peerswap:{swaps:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"short_channel_id"},{column:"created_at"},{column:"state"},{column:"amount"}]}}},W=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"tx_id",sortOrder:we.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:d,sortBy:"time_stamp",sortOrder:we.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"tx_id",sortOrder:we.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:d,sortBy:"balancedness",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:d,sortBy:"close_type",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:d,sortBy:"expiration_height",sortOrder:we.DESCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"creation_date",sortOrder:we.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:d,sortBy:"creation_date",sortOrder:we.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"total_amount",sortOrder:we.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:d,sortBy:"remote_alias",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:we.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:d,sortBy:"hop_sequence",sortOrder:we.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:d,sortBy:"initiation_time",sortOrder:we.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:d,sortBy:"status",sortOrder:we.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:d,sortBy:"status",sortOrder:we.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],te={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},Ce=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:we.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"firstPartTimestamp",sortOrder:we.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:d,sortBy:"receivedAt",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"totalFee",sortOrder:we.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:we.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],fe={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(Be,K,p)=>{"use strict";p.d(K,{D:()=>ge});var t=p(8138),e=p(1135),f=p(7579),M=p(2843),a=p(9646),C=p(590),d=p(5577),R=p(2722),h=p(4004),L=p(262),w=p(1365),D=p(2340),S=p(7731),k=p(1786),E=p(7861),B=p(6523),Z=p(6529),Y=p(9828),ae=p(5e3),ee=p(5620),ue=p(5043),ne=p(7261),re=p(9808);let ge=(()=>{class q{constructor(x,i,r,u,c){this.httpClient=x,this.store=i,this.logger=r,this.snackBar=u,this.titleCasePipe=c,this.APIUrl=D.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x],this.mapAliases=(v,T)=>(v&&v.length>0?v.forEach((I,y)=>{var n;if(T&&T.length>0)for(let _=0;_null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.PAYMENTS_API+"/decode/"+x;return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/decode/"+x),this.store.dispatch((0,E.ac)({payload:S.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,R.R)(this.unSubs[0]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:S.m6.DECODE_PAYMENT})),c)),(0,L.K)(c=>(i?this.handleErrorWithoutAlert("Decode Payment",S.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",S.m6.DECODE_PAYMENT,"Decode Payment Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(x){return this.lnImplementationUpdated.pipe((0,C.P)(i=>null!==i),(0,d.z)(i=>{let r="",u="";return"ecl"===i?(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API+"/getsentinfos",u=S.m6.GET_SENT_PAYMENTS):"cln"===i?(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API,u=S.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API,u=S.m6.DECODE_PAYMENTS),this.store.dispatch((0,E.ac)({payload:u})),this.httpClient.post(r,{payments:x}).pipe((0,R.R)(this.unSubs[1]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:u})),c)),(0,L.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(x,i){return this.lnImplementationUpdated.pipe((0,C.P)(r=>null!==r),(0,d.z)(r=>{if(i){const u=(new t.LE).set("pubkeys",x);return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/node/"+x)}))}signMessage(x){return this.lnImplementationUpdated.pipe((0,C.P)(i=>null!==i),(0,d.z)(i=>{let r=this.APIUrl+"/"+i+D.NZ.MESSAGE_API+"/sign";return"cln"===i&&(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,E.ac)({payload:S.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:x}).pipe((0,R.R)(this.unSubs[2]),(0,h.U)(u=>(this.store.dispatch((0,E.uO)({payload:S.m6.SIGN_MESSAGE})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("signMessageData",S.m6.SIGN_MESSAGE,"Sign Message Failed",r,u),(0,M._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(x,i){return this.lnImplementationUpdated.pipe((0,C.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.MESSAGE_API+"/verify";return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,E.ac)({payload:S.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:x,signature:i}).pipe((0,R.R)(this.unSubs[3]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:S.m6.VERIFY_MESSAGE})),c)),(0,L.K)(c=>(this.handleErrorWithAlert("verifyMessageData",S.m6.VERIFY_MESSAGE,"Verify Message Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(x,i,r,u){return this.lnImplementationUpdated.pipe((0,C.P)(c=>null!==c),(0,d.z)(c=>{const v={txid:x,outputIndex:i};return r&&(v.targetConf=r),u&&(v.satPerByte=u),this.store.dispatch((0,E.ac)({payload:S.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+D.NZ.WALLET_API+"/bumpfee",v).pipe((0,R.R)(this.unSubs[4]),(0,h.U)(T=>(this.store.dispatch((0,E.uO)({payload:S.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),T)),(0,L.K)(T=>(this.handleErrorWithoutAlert("Bump Fee",S.m6.BUMP_FEE,T),(0,M._)(()=>new Error(this.extractErrorMessage(T))))))}))}labelUTXO(x,i,r=!0){return this.lnImplementationUpdated.pipe((0,C.P)(u=>null!==u),(0,d.z)(u=>{const c={txid:x,label:i,overwrite:r};return this.store.dispatch((0,E.ac)({payload:S.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+D.NZ.WALLET_API+"/label",c).pipe((0,R.R)(this.unSubs[5]),(0,h.U)(v=>(this.store.dispatch((0,E.uO)({payload:S.m6.LABEL_UTXO})),v)),(0,L.K)(v=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LABEL_UTXO,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}))}leaseUTXO(x,i){return this.lnImplementationUpdated.pipe((0,C.P)(r=>null!==r),(0,d.z)(r=>{const u={txid:x,outputIndex:i};return this.store.dispatch((0,E.ac)({payload:S.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+D.NZ.WALLET_API+"/lease",u).pipe((0,R.R)(this.unSubs[6]),(0,h.U)(c=>{this.store.dispatch((0,E.uO)({payload:S.m6.LEASE_UTXO})),this.store.dispatch((0,B.mC)()),this.store.dispatch((0,B.Ly)());const v=new Date(1e3*c.expiration),T=Math.round(v.getTime())-60*v.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(T).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,L.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LEASE_UTXO,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(x,i,r,u){if("LND"===x){const c={end_time:r,start_time:i};return this.store.dispatch((0,E.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+D.NZ.SWITCH_API,c).pipe((0,R.R)(this.unSubs[7]),(0,w.M)(this.store.select(Z._f)),(0,d.z)(([v,T])=>{if(v.forwarding_events){const I=[...T.channels,...T.closedChannels];v.forwarding_events.forEach(y=>{var n,_;if(I&&I.length>0)for(let V=0;V(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+D.NZ.SWITCH_API,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}return"CLN"===x?(this.store.dispatch((0,E.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u).pipe((0,R.R)(this.unSubs[8]),(0,w.M)(this.store.select(Y.ZW)),(0,d.z)(([c,v])=>{const T=this.mapAliases(c,[...v.activeChannels,...v.pendingChannels,...v.inactiveChannels]);return this.store.dispatch((0,E.uO)({payload:S.m6.GET_FORWARDING_HISTORY})),(0,a.of)(T)}),(0,L.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(x=""){return this.lnImplementationUpdated.pipe((0,C.P)(i=>null!==i),(0,d.z)(i=>(this.store.dispatch((0,E.ac)({payload:S.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+D.NZ.NETWORK_API+"/listNodes"+x).pipe((0,R.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,E.uO)({payload:S.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,L.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",S.m6.LIST_NETWORK_NODES,r),(0,M._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,C.P)(x=>null!==x),(0,d.z)(x=>(this.store.dispatch((0,E.ac)({payload:S.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+x+D.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[10]),(0,d.z)(i=>(this.store.dispatch((0,E.uO)({payload:S.m6.GET_LIST_CONFIGS})),(0,a.of)(i))),(0,L.K)(i=>(this.handleErrorWithoutAlert("List Configurations",S.m6.GET_LIST_CONFIGS,i),(0,M._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(x,i,r,u,c,v){return this.lnImplementationUpdated.pipe((0,C.P)(T=>null!==T),(0,d.z)(T=>{const I=x?{policy:x,policy_mod:i,lease_fee_base_msat:r,lease_fee_basis:u,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:v}:null;return this.store.dispatch((0,E.ac)({payload:S.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+T+D.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,R.R)(this.unSubs[11]),(0,h.U)(y=>(this.store.dispatch((0,E.uO)({payload:S.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,E.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+y.compact_lease+"!"})),y)),(0,L.K)(y=>(this.handleErrorWithoutAlert("Funder Policy",S.m6.GET_FUNDER_POLICY,y),(0,M._)(()=>new Error(this.extractErrorMessage(y))))))}))}extractErrorMessage(x,i="Unknown Error."){return this.titleCasePipe.transform(x.error.text&&"string"==typeof x.error.text&&x.error.text.includes('')?"API Route Does Not Exist.":x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.error&&"string"==typeof x.error.error.error.error.error?x.error.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&"string"==typeof x.error.error.error.error?x.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&"string"==typeof x.error.error.error?x.error.error.error:x.error&&x.error.error&&"string"==typeof x.error.error?x.error.error:x.error&&"string"==typeof x.error?x.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.message&&"string"==typeof x.error.error.error.error.message?x.error.error.error.error.message:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.message&&"string"==typeof x.error.error.error.message?x.error.error.error.message:x.error&&x.error.error&&x.error.error.message&&"string"==typeof x.error.error.message?x.error.error.message:x.error&&x.error.message&&"string"==typeof x.error.message?x.error.message:x.message&&"string"==typeof x.message?x.message:i)}handleErrorWithoutAlert(x,i,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:i})),this.store.dispatch((0,E.qi)({payload:{action:x,status:S.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(x,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:i}));const v=this.extractErrorMessage(c);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:v,URL:u},component:k.H}}})),this.store.dispatch((0,E.qi)({payload:{action:x,status:S.Bn.ERROR,statusCode:c.status.toString(),message:v,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return q.\u0275fac=function(x){return new(x||q)(ae.LFG(t.eN),ae.LFG(ee.yh),ae.LFG(ue.mQ),ae.LFG(ne.ux),ae.LFG(re.rS))},q.\u0275prov=ae.Yz7({token:q,factory:q.\u0275fac}),q})()},5043:(Be,K,p)=>{"use strict";p.d(K,{LG:()=>d,mQ:()=>C});var t=p(2340),e=p(5e3);const{isDebugMode:f}=t.NZ,M=()=>null;let C=(()=>{class R{invokeConsoleMethod(L,w){}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})(),d=(()=>{class R{get info(){return f?console.log.bind(console):M}get warn(){return f?console.warn.bind(console):M}get error(){return f?console.error.bind(console):M}invokeConsoleMethod(L,w){(console[L]||console.log||M).apply(console,[w])}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(Be,K,p)=>{"use strict";p.d(K,{W:()=>Z});var t=p(8138),e=p(1135),f=p(7579),M=p(9646),a=p(2843),C=p(2722),d=p(262),R=p(4004),h=p(2340),L=p(7731),w=p(1786),D=p(7861),S=p(5e3),k=p(5043),E=p(5620),B=p(62);let Z=(()=>{class Y{constructor(ee,ue,ne,re){this.httpClient=ee,this.logger=ue,this.store=ne,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,D.ac)({payload:L.m6.GET_LOOP_SWAPS})),this.loopUrl=h.T5+h.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,C.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,D.uO)({payload:L.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(L.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,ue,ne,re,ge,q,_e,x,i,r){const u={amount:ee,targetConf:ne,swapRoutingFee:re,minerFee:ge,prepayRoutingFee:q,prepayAmt:_e,swapFee:x,swapPublicationDeadline:i,destAddress:r};return""!==ue&&(u.chanId=ue),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ue,L.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",L.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,ue,ne){let re=new t.LE;return re=re.append("targetConf",ue.toString()),re=re.append("swapPublicationDeadline",ne.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,D.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,C.R)(this.unSubs[1]),(0,R.U)(ge=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_QUOTE})),ge)),(0,d.K)(ge=>this.handleErrorWithoutAlert("Loop Out Quote",L.m6.GET_QUOTE,ge)))}getLoopOutTermsAndQuotes(ee){let ue=new t.LE;return ue=ue.append("targetConf",ee.toString()),ue=ue.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ue}).pipe((0,C.R)(this.unSubs[2]),(0,R.U)(ne=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_TERMS_QUOTES})),ne)),(0,d.K)(ne=>(0,M.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,ne))))}loopIn(ee,ue,ne,re,ge){const q={amount:ee,swapFee:ue,minerFee:ne,lastHop:re,externalHtlc:ge};return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,q).pipe((0,d.K)(_e=>this.handleErrorWithoutAlert("Loop In",L.m6.NO_SPINNER,_e)))}getLoopInTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",L.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,ue,ne){let re=new t.LE;return re=re.append("targetConf",ue.toString()),re=re.append("swapPublicationDeadline",ne.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,D.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,C.R)(this.unSubs[3]),(0,R.U)(ge=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_QUOTE})),ge)),(0,d.K)(ge=>this.handleErrorWithoutAlert("Loop In Qoute",L.m6.GET_QUOTE,ge)))}getLoopInTermsAndQuotes(ee){let ue=new t.LE;return ue=ue.append("targetConf",ee.toString()),ue=ue.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ue}).pipe((0,C.R)(this.unSubs[4]),(0,R.U)(ne=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_TERMS_QUOTES})),ne)),(0,d.K)(ne=>(0,M.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,ne))))}getSwap(ee){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,d.K)(ue=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,L.m6.NO_SPINNER,ue)))}handleErrorWithoutAlert(ee,ue,ne){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(ne)),this.store.dispatch((0,D.uO)({payload:ue})),401===ne.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)())):503===ne.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ne.status,message:"Unable to Connect to Loop Server",URL:ee},component:w.H}}}))):re=this.commonService.extractErrorMessage(ne),(0,a._)(()=>new Error(re))}handleErrorWithAlert(ee,ue,ne){let re="";if(this.logger.error(ne),this.store.dispatch((0,D.uO)({payload:ee})),401===ne.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)());else if(503===ne.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ne.status,message:"Unable to Connect to Loop Server",URL:ue},component:w.H}}}))},100);else{re=this.commonService.extractErrorMessage(ne);const ge=ne.error&&ne.error.error&&ne.error.error.code?ne.error.error.code:ne.error&&ne.error.code?ne.error.code:ne.code?ne.code:ne.status;setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"ERROR",message:{code:ge,message:re,URL:ue},component:w.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return Y.\u0275fac=function(ee){return new(ee||Y)(S.LFG(t.eN),S.LFG(k.mQ),S.LFG(E.yh),S.LFG(B.v))},Y.\u0275prov=S.Yz7({token:Y,factory:Y.\u0275fac}),Y})()},5986:(Be,K,p)=>{"use strict";p.d(K,{m:()=>f});var t=p(7579),e=p(5e3);let f=(()=>{class M{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(C){return sessionStorage.getItem(C)}getAllItems(){return sessionStorage}setItem(C,d){sessionStorage.setItem(C,d),this.sessionSub.next(sessionStorage)}removeItem(C){sessionStorage.removeItem(C),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})()},7998:(Be,K,p)=>{"use strict";p.d(K,{d:()=>k});var t=p(1135),e=p(7579),f=p(2722),M=p(930),a=p(8306),C=p(727),d=p(4707);const R={url:"",deserializer:E=>JSON.parse(E.data),serializer:E=>JSON.stringify(E)};class L extends e.u{constructor(B,Z){if(super(),this._socket=null,B instanceof a.y)this.destination=Z,this.source=B;else{const Y=this._config=Object.assign({},R);if(this._output=new e.x,"string"==typeof B)Y.url=B;else for(const ae in B)B.hasOwnProperty(ae)&&(Y[ae]=B[ae]);if(!Y.WebSocketCtor&&WebSocket)Y.WebSocketCtor=WebSocket;else if(!Y.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(B){const Z=new L(this._config,this.destination);return Z.operator=B,Z.source=this,Z}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new e.x}multiplex(B,Z,Y){const ae=this;return new a.y(ee=>{try{ae.next(B())}catch(ne){ee.error(ne)}const ue=ae.subscribe({next:ne=>{try{Y(ne)&&ee.next(ne)}catch(re){ee.error(re)}},error:ne=>ee.error(ne),complete:()=>ee.complete()});return()=>{try{ae.next(Z())}catch(ne){ee.error(ne)}ue.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:B,protocol:Z,url:Y,binaryType:ae}=this._config,ee=this._output;let ue=null;try{ue=Z?new B(Y,Z):new B(Y),this._socket=ue,ae&&(this._socket.binaryType=ae)}catch(re){return void ee.error(re)}const ne=new C.w0(()=>{this._socket=null,ue&&1===ue.readyState&&ue.close()});ue.onopen=re=>{const{_socket:ge}=this;if(!ge)return ue.close(),void this._resetState();const{openObserver:q}=this._config;q&&q.next(re);const _e=this.destination;this.destination=M.Lv.create(x=>{if(1===ue.readyState)try{const{serializer:i}=this._config;ue.send(i(x))}catch(i){this.destination.error(i)}},x=>{const{closingObserver:i}=this._config;i&&i.next(void 0),x&&x.code?ue.close(x.code,x.reason):ee.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:x}=this._config;x&&x.next(void 0),ue.close(),this._resetState()}),_e&&_e instanceof d.t&&ne.add(_e.subscribe(this.destination))},ue.onerror=re=>{this._resetState(),ee.error(re)},ue.onclose=re=>{ue===this._socket&&this._resetState();const{closeObserver:ge}=this._config;ge&&ge.next(re),re.wasClean?ee.complete():ee.error(re)},ue.onmessage=re=>{try{const{deserializer:ge}=this._config;ee.next(ge(re))}catch(ge){ee.error(ge)}}}_subscribe(B){const{source:Z}=this;return Z?Z.subscribe(B):(this._socket||this._connectSocket(),this._output.subscribe(B),B.add(()=>{const{_socket:Y}=this;0===this._output.observers.length&&(Y&&(1===Y.readyState||0===Y.readyState)&&Y.close(),this._resetState())}),B)}unsubscribe(){const{_socket:B}=this;B&&(1===B.readyState||0===B.readyState)&&B.close(),this._resetState(),super.unsubscribe()}}var w=p(5e3),D=p(5043),S=p(5986);let k=(()=>{class E{constructor(Z,Y){this.logger=Z,this.sessionService=Y,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Z,Y){(!this.socket||this.socket.closed)&&(this.wsUrl=Z,this.nodeIndex=Y,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:Z,protocol:[this.sessionService.getItem("token")||"",Y]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){var Z;null===(Z=this.socket)||void 0===Z||Z.pipe((0,f.R)(this.unSubs[1])).subscribe({next:Y=>{if((Y="string"==typeof Y?JSON.parse(Y):Y).error)this.handleError(Y.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Y)),Y.source){case"LND":this.lndWSMessages.next(Y);break;case"CLN":this.clWSMessages.next(Y);break;case"ECL":this.eclWSMessages.next(Y)}},error:Y=>this.handleError(Y),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Z){this.logger.error(Z),this.clWSMessages.error(Z),this.eclWSMessages.error(Z),this.lndWSMessages.error(Z),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return E.\u0275fac=function(Z){return new(Z||E)(w.LFG(D.mQ),w.LFG(S.m))},E.\u0275prov=w.Yz7({token:E,factory:E.\u0275fac}),E})()},8750:(Be,K,p)=>{"use strict";p.d(K,{m:()=>Bn});var t=p(9808),e=p(1402),f=p(3075),M=p(8138),a=p(9546),C=p(5e3),d=p(3270),R=p(3322),h=p(7093);p(3191);let Qe=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[d.IR]]}),It})(),se=(()=>{class It{constructor(vt,jt){(0,t.PM)(jt)&&!vt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(vt,jt=[]){return{ngModule:It,providers:vt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),vt)},{provide:d.Bs,useValue:jt,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),vt)},{provide:d.Bs,useValue:jt,multi:!0}]}}}return It.\u0275fac=function(vt){return new(vt||It)(C.LFG(d.wY),C.LFG(C.Lbi))},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[h.ae,R.aT,Qe],h.ae,R.aT,Qe]}),It})();var Xe=p(5113),xt=p(508),Bt=p(8966),bi=p(1079),Ei=p(7544),Xi=p(7423);p(449),p(5664);let In=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[xt.BQ,xt.si],xt.BQ]}),It})();var Rn=p(9224),tr=p(7446),gn=p(6856),Si=p(1125),Ki=p(3954),Sn=p(5245),qn=p(7531),sr=p(4623),ha=p(2181),_a=p(6087),Sr=p(5899),fa=p(773),zr=p(9814),ta=p(4107),ia=p(2638),na=p(2368);p(1159),p(6360),p(925),p(727),p(226);let ba=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[t.ez,xt.BQ],xt.BQ]}),It})();var or=p(7261),aa=p(4847),Ha=p(5615),ir=p(2075),sa=p(3251),Yr=p(4594),Nr=p(7238),Br=p(149),Sa=p(6688),Xa=p(1210),Xn=p(159),$e=p(8129),Et=p(9776);let Je=(()=>{class It extends Et.Xj{_createContainer(){const vt=document.createElement("div");vt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(vt),this._containerElement=vt}}return It.\u0275fac=function(){let ci;return function(jt){return(ci||(ci=C.n5z(It)))(jt||It)}}(),It.\u0275prov=C.Yz7({token:It,factory:It.\u0275fac}),It})();var kt=p(5043),Xt=p(7731),Mi=p(9445);const Pi={suppressScrollX:!1,suppressScrollY:!1};let en=(()=>{class It extends xt.LF{format(vt,jt){if("input"===jt){let Oi=vt.getDate().toString();return Oi=+Oi<10?"0"+Oi:Oi,Oi+"/"+Xt.gg[vt.getMonth()].name.toUpperCase()+"/"+vt.getFullYear()}return Xt.gg[vt.getMonth()].name.toUpperCase()+" "+vt.getFullYear()}}return It.\u0275fac=function(){let ci;return function(jt){return(ci||(ci=C.n5z(It)))(jt||It)}}(),It.\u0275prov=C.Yz7({token:It,factory:It.\u0275fac}),It})();const nr={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 Bn=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({providers:[{provide:kt.mQ,useClass:kt.LG},{provide:$e.op,useValue:Pi},{provide:or.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Bt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:xt._A,useClass:en},{provide:xt.sG,useValue:nr},{provide:Et.Xj,useClass:Je},t.JJ,t.rS,t.uU,Mi.al,Mi.h9,Mi.D3,Mi.i1],imports:[[t.ez,f.u5,f.UX,a.uH,se,Xe.xu,Bt.Is,Xi.ot,In,Rn.QW,tr.p9,Si.To,Ki.N6,gn.FA,xt.XK,Sn.Ps,qn.c,sr.ie,ha.Tx,Sr.Cv,fa.Cq,zr.Fk,Br.dp,Sa.Hi,ta.LD,ia.SJ,na.rP,aa.JX,ir.p0,Yr.g0,Nr.AV,Ei.g,_a.TU,Ha.T5,ba,sa.Nh,or.ZX,bi.Bb,Xa.a4,Xn.OF,e.Bz,M.JF,$e.Xd],f.u5,f.UX,a.uH,se,Xe.xu,Bt.Is,Xi.ot,In,Rn.QW,tr.p9,Si.To,Ki.N6,gn.FA,xt.XK,Sn.Ps,qn.c,sr.ie,ha.Tx,Sr.Cv,fa.Cq,zr.Fk,Br.dp,Sa.Hi,ta.LD,ia.SJ,na.rP,aa.JX,ir.p0,Yr.g0,Nr.AV,Ei.g,_a.TU,Ha.T5,ba,sa.Nh,or.ZX,bi.Bb,Xa.a4,Xn.OF,$e.Xd]}),It})()},7861:(Be,K,p)=>{"use strict";p.d(K,{M6:()=>w,Q2:()=>E,QO:()=>c,Tm:()=>ge,Uy:()=>ne,XT:()=>ee,_V:()=>_e,ac:()=>R,c0:()=>r,c1:()=>D,dc:()=>y,ey:()=>ae,fk:()=>re,jS:()=>q,jW:()=>d,kS:()=>i,lC:()=>M,qR:()=>L,qi:()=>a,tj:()=>k,ts:()=>C,tw:()=>Z,uO:()=>h,vI:()=>Y,x4:()=>T,yb:()=>S,zQ:()=>ue});var t=p(5620),e=p(7731);(0,t.PH)(e.pg.VOID);const M=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),a=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),C=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),d=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),R=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),h=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),D=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),S=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),k=(0,t.PH)(e.pg.SHOW_PUBKEY),E=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),Z=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),Y=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),ae=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ee=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),ue=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),ne=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),re=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),ge=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),q=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),_e=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),r=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),c=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),T=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),y=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(Be,K,p)=>{"use strict";p.d(K,{V:()=>pn});var t=p(6642),e=p(7579),f=p(9646),M=p(8306),a=p(4128),C=p(4004),d=p(5698),R=p(1365),h=p(5577),L=p(262),w=p(2722),D=p(2340),S=p(7731),k=p(8966),E=p(5e3),B=p(7093),Z=p(773);let Y=(()=>{class ii{constructor(st,Rt){this.dialogRef=st,this.data=Rt}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E._UZ(2,"mat-spinner"),E.TgZ(3,"h1"),E._uU(4),E.qZA()()()),2&st&&(E.xp6(4),E.Oqu(Rt.data.titleMessage))},directives:[B.xw,B.Wh,Z.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ii})();var ae=p(5043),ee=p(7261),ue=p(62),ne=p(9808),re=p(3322),ge=p(159),q=p(9224),_e=p(7423),x=p(8129),i=p(5245),r=p(3390),u=p(6895),c=p(4834);const v=["scrollContainer"];function T(ii,Ri){if(1&ii&&E._UZ(0,"qr-code",15),2&ii){const st=E.oxw();E.Q6J("value",st.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(ii,Ri){1&ii&&E.GkF(0)}const y=function(ii){return{"h-40":ii}};function n(ii,Ri){if(1&ii&&(E.ynx(0),E.TgZ(1,"mat-card-content",16,17),E.YNc(3,I,1,0,"ng-container",18),E.qZA(),E.BQk()),2&ii){const st=E.oxw(),Rt=E.MAs(20);E.xp6(1),E.Q6J("ngClass",E.VKq(2,y,st.data.scrollable)),E.xp6(2),E.Q6J("ngTemplateOutlet",Rt)}}function _(ii,Ri){1&ii&&E.GkF(0)}function V(ii,Ri){if(1&ii&&(E.ynx(0),E.TgZ(1,"mat-card-content",19),E.YNc(2,_,1,0,"ng-container",18),E.qZA(),E.BQk()),2&ii){E.oxw();const st=E.MAs(20);E.xp6(2),E.Q6J("ngTemplateOutlet",st)}}function N(ii,Ri){1&ii&&(E.TgZ(0,"mat-icon",23),E._uU(1,"arrow_downward"),E.qZA())}function H(ii,Ri){1&ii&&(E.TgZ(0,"mat-icon",23),E._uU(1,"arrow_upward"),E.qZA())}function X(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"div",20)(1,"button",21),E.NdJ("click",function(){return E.CHM(st),E.oxw().onScroll()}),E.YNc(2,N,2,0,"mat-icon",22),E.YNc(3,H,2,0,"mat-icon",22),E.qZA()()}if(2&ii){const st=E.oxw();E.xp6(2),E.Q6J("ngIf","DOWN"===st.scrollDirection),E.xp6(1),E.Q6J("ngIf","UP"===st.scrollDirection)}}function he(ii,Ri){1&ii&&(E.TgZ(0,"button",24),E._uU(1,"OK"),E.qZA()),2&ii&&E.Q6J("mat-dialog-close",!1)}function be(ii,Ri){1&ii&&(E.TgZ(0,"button",25),E._uU(1,"Close"),E.qZA()),2&ii&&E.Q6J("mat-dialog-close",!1)}function Pe(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",26),E.NdJ("copied",function(Wt){return E.CHM(st),E.oxw().onCopyField(Wt)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.Q6J("payload",st.showCopyField),E.xp6(1),E.hij("Copy ",st.showCopyName,"")}}function Ee(ii,Ri){1&ii&&(E.TgZ(0,"button",25),E._uU(1,"Close"),E.qZA()),2&ii&&E.Q6J("mat-dialog-close",!1)}function j(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",26),E.NdJ("copied",function(Wt){return E.CHM(st),E.oxw().onCopyField(Wt)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.Q6J("payload",st.showQRField),E.xp6(1),E.hij("Copy ",st.showQRName,"")}}function Ve(ii,Ri){if(1&ii&&E._UZ(0,"qr-code",15),2&ii){const st=E.oxw(2);E.Q6J("value",st.showQRField)("size",200)("errorCorrectionLevel","L")}}function Me(ii,Ri){if(1&ii&&(E.TgZ(0,"p",32),E._uU(1),E.qZA()),2&ii){const st=E.oxw(2);E.xp6(1),E.Oqu(st.data.titleMessage)}}function J(ii,Ri){1&ii&&E._UZ(0,"span",46),2&ii&&E.Q6J("innerHTML",Ri.$implicit,E.oJD)}function Ie(ii,Ri){if(1&ii&&(E.ynx(0),E.YNc(1,J,1,1,"span",45),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Q6J("ngForOf",st.value)}}function ut(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"date"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,1e3*st.value,"dd/MMM/y HH:mm"))}}function Oe(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"number"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,st.value,st.digitsInfo?st.digitsInfo:"1.0-3"))}}function we(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(st.value?"True":"False")}}function ce(ii,Ri){1&ii&&(E.TgZ(0,"mat-icon",51),E._uU(1,"info"),E.qZA())}const Te=function(ii){return{"failed-status":ii}};function xe(ii,Ri){if(1&ii&&(E.TgZ(0,"p",49),E._uU(1),E.YNc(2,ce,2,0,"mat-icon",50),E.qZA()),2&ii){const st=E.oxw(3).$implicit,Rt=E.oxw(4);E.Q6J("ngClass",E.VKq(3,Te,st.value===Rt.LoopStateEnum.FAILED)),E.xp6(1),E.hij(" ",st.value," "),E.xp6(1),E.Q6J("ngIf",st.value===Rt.LoopStateEnum.FAILED)}}function W(ii,Ri){if(1&ii&&E._uU(0),2&ii){const st=E.oxw(3).$implicit;E.Oqu(st.value)}}function te(ii,Ri){if(1&ii&&(E.ynx(0),E.YNc(1,xe,3,5,"p",47),E.YNc(2,W,1,1,"ng-template",null,48,E.W1O),E.BQk()),2&ii){const st=E.MAs(3),Rt=E.oxw(2).$implicit,Wt=E.oxw(4);E.xp6(1),E.Q6J("ngIf","SWAP"===Wt.data.openedBy&&"state"===Rt.key)("ngIfElse",st)}}function Ce(ii,Ri){if(1&ii&&(E.TgZ(0,"span")(1,"span",42),E.YNc(2,Ie,2,1,"ng-container",43),E.YNc(3,ut,3,4,"ng-container",43),E.YNc(4,Oe,3,4,"ng-container",43),E.YNc(5,we,2,1,"ng-container",43),E.YNc(6,te,4,2,"ng-container",44),E.qZA()()),2&ii){const st=E.oxw().$implicit,Rt=E.oxw(4);E.xp6(1),E.Q6J("ngSwitch",st.type),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.ARRAY),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.DATE_TIME),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.NUMBER),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.BOOLEAN)}}function fe(ii,Ri){1&ii&&(E.TgZ(0,"span",52),E._uU(1,"\xa0"),E.qZA())}function Q(ii,Ri){if(1&ii&&(E.TgZ(0,"div",37)(1,"h4",38),E._uU(2),E.qZA(),E.YNc(3,Ce,7,5,"span",39),E.YNc(4,fe,2,0,"ng-template",null,40,E.W1O),E._UZ(6,"mat-divider",41),E.qZA()),2&ii){const st=Ri.$implicit,Rt=E.MAs(5);E.s9C("fxFlex.gt-md",st.width),E.xp6(2),E.Oqu(st.title),E.xp6(1),E.Q6J("ngIf",st&&(!!st.value||0===st.value))("ngIfElse",Rt)}}function pt(ii,Ri){if(1&ii&&(E.TgZ(0,"div")(1,"div",35),E.YNc(2,Q,7,4,"div",36),E.qZA()()),2&ii){const st=Ri.$implicit;E.xp6(2),E.Q6J("ngForOf",st)}}function tt(ii,Ri){if(1&ii&&(E.TgZ(0,"div",33),E.YNc(1,pt,3,1,"div",34),E.qZA()),2&ii){const st=E.oxw(2);E.xp6(1),E.Q6J("ngForOf",st.messageObjs)}}const Dt=function(ii){return{"display-none":ii}};function di(ii,Ri){if(1&ii&&(E.TgZ(0,"div",27)(1,"div",28),E.YNc(2,Ve,1,3,"qr-code",2),E.qZA(),E.TgZ(3,"div",29),E.YNc(4,Me,2,1,"p",30),E.YNc(5,tt,2,1,"div",31),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("ngClass",E.VKq(4,Dt,""===st.showQRField||st.screenSize!==st.screenSizeEnum.XS&&st.screenSize!==st.screenSizeEnum.SM)),E.xp6(1),E.Q6J("ngIf",""!==st.showQRField),E.xp6(2),E.Q6J("ngIf",st.data.titleMessage),E.xp6(1),E.Q6J("ngIf",(null==st.messageObjs?null:st.messageObjs.length)>0)}}let Yt=(()=>{class ii{constructor(st,Rt,Wt,fi,Ti,Ni){this.dialogRef=st,this.data=Rt,this.logger=Wt,this.snackBar=fi,this.commonService=Ti,this.renderer=Ni,this.LoopStateEnum=S.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.screenSize="",this.screenSizeEnum=S.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(st){st&&(this.scrollContainer=st,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Rt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Rt=>{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===S.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(st){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+st)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ae.mQ),E.Y36(ee.ux),E.Y36(ue.v),E.Y36(E.Qsj))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-alert-message"]],viewQuery:function(st,Rt){if(1&st&&E.Gf(v,5),2&st){let Wt;E.iGM(Wt=E.CRH())&&(Rt.container=Wt.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","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",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-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[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-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-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","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["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(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E.YNc(2,T,1,3,"qr-code",2),E.qZA(),E.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),E._uU(7),E.qZA()(),E.TgZ(8,"button",7),E.NdJ("click",function(){return Rt.onClose()}),E._uU(9,"X"),E.qZA()(),E.YNc(10,n,4,4,"ng-container",8),E.YNc(11,V,3,1,"ng-container",8),E.YNc(12,X,4,2,"div",9),E.TgZ(13,"div",10),E.YNc(14,he,2,1,"button",11),E.YNc(15,be,2,1,"button",12),E.YNc(16,Pe,2,2,"button",13),E.YNc(17,Ee,2,1,"button",12),E.YNc(18,j,2,2,"button",13),E.qZA()()(),E.YNc(19,di,6,6,"ng-template",null,14,E.W1O)),2&st&&(E.xp6(1),E.Q6J("ngClass",E.VKq(12,Dt,""===Rt.showQRField||Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM)),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField),E.xp6(1),E.Q6J("fxFlex",""===Rt.showQRField||Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM?"100":"70"),E.xp6(4),E.Oqu(Rt.data.alertTitle||Rt.alertTypeEnum[Rt.data.type]),E.xp6(3),E.Q6J("ngIf",Rt.data.scrollable),E.xp6(1),E.Q6J("ngIf",!Rt.data.scrollable),E.xp6(1),E.Q6J("ngIf",Rt.data.scrollable&&Rt.shouldScroll),E.xp6(2),E.Q6J("ngIf",(!Rt.showQRField||""===Rt.showQRField)&&""===Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField))},directives:[B.xw,B.Wh,B.yH,ne.mk,re.oO,ne.O5,ge.uU,q.dk,_e.lW,q.dn,x.$V,ne.tP,i.Hw,r.h,k.ZT,u.y,ne.sg,ne.RF,ne.n9,ne.ED,c.d],pipes:[ne.uU,ne.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ii})();var Zt=p(2687),ui=p(7861),Ot=p(5620),Nt=p(3075),gt=p(9546),it=p(7322),bt=p(7531),ti=p(6534);function Qt(ii,Ri){if(1&ii&&(E.TgZ(0,"div",18),E._UZ(1,"fa-icon",19),E.TgZ(2,"span"),E._uU(3),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("icon",st.faExclamationTriangle),E.xp6(2),E.Oqu(st.warningMessage)}}function Re(ii,Ri){if(1&ii&&(E.TgZ(0,"div",20),E._UZ(1,"fa-icon",19),E.TgZ(2,"span"),E._uU(3),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("icon",st.faInfoCircle),E.xp6(2),E.Oqu(st.informationMessage)}}function ke(ii,Ri){if(1&ii&&(E.TgZ(0,"p",21),E._uU(1),E.qZA()),2&ii){const st=E.oxw();E.xp6(1),E.Oqu(st.data.titleMessage)}}function de(ii,Ri){1&ii&&E._UZ(0,"div",36),2&ii&&E.Q6J("innerHTML",Ri.$implicit,E.oJD)}function ye(ii,Ri){if(1&ii&&(E.ynx(0,34),E.YNc(1,de,1,1,"div",35),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Q6J("ngForOf",st.value)}}function ht(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"date"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,1e3*st.value,"dd/MMM/y HH:mm"))}}function mt(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"number"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,st.value,"1.0-3"))}}function Ft(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(!0===st.value?"True":"False")}}function nt(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(st.value)}}function He(ii,Ri){if(1&ii&&(E.TgZ(0,"span")(1,"span",30),E.YNc(2,ye,2,1,"ng-container",31),E.YNc(3,ht,3,4,"ng-container",32),E.YNc(4,mt,3,4,"ng-container",32),E.YNc(5,Ft,2,1,"ng-container",32),E.YNc(6,nt,2,1,"ng-container",33),E.qZA()()),2&ii){const st=E.oxw().$implicit,Rt=E.oxw(3);E.xp6(1),E.Q6J("ngSwitch",st.type),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.ARRAY),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.DATE_TIME),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.NUMBER),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.BOOLEAN)}}function rt(ii,Ri){1&ii&&(E.TgZ(0,"span",37),E._uU(1,"\xa0"),E.qZA())}function et(ii,Ri){if(1&ii&&(E.TgZ(0,"div",25)(1,"h4",26),E._uU(2),E.qZA(),E.YNc(3,He,7,5,"span",27),E.YNc(4,rt,2,0,"ng-template",null,28,E.W1O),E._UZ(6,"mat-divider",29),E.qZA()),2&ii){const st=Ri.$implicit,Rt=E.MAs(5);E.s9C("fxFlex.gt-md",st.width),E.xp6(2),E.Oqu(st.title),E.xp6(1),E.Q6J("ngIf",st&&(!!st.value||0===st.value))("ngIfElse",Rt)}}function Ae(ii,Ri){if(1&ii&&(E.TgZ(0,"div")(1,"div",23),E.YNc(2,et,7,4,"div",24),E.qZA()()),2&ii){const st=Ri.$implicit;E.xp6(2),E.Q6J("ngForOf",st)}}function Ge(ii,Ri){if(1&ii&&(E.TgZ(0,"div"),E.YNc(1,Ae,3,1,"div",22),E.qZA()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("ngForOf",st.messageObjs)}}function ot(ii,Ri){if(1&ii&&(E.TgZ(0,"p",21),E._uU(1),E.qZA()),2&ii){const st=E.oxw(2);E.xp6(1),E.Oqu(st.data.titleMessage)}}function lt(ii,Ri){if(1&ii&&(E.TgZ(0,"mat-error"),E._uU(1),E.qZA()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.hij("",st.placeholder," is required.")}}function Ct(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"mat-form-field",41)(1,"input",42),E.NdJ("ngModelChange",function(Wt){return E.CHM(st),E.oxw().$implicit.inputValue=Wt}),E.ALo(2,"lowercase"),E.qZA(),E.YNc(3,lt,2,1,"mat-error",11),E.TgZ(4,"mat-hint"),E._uU(5),E.qZA()()}if(2&ii){const st=E.oxw(),Rt=st.$implicit,Wt=st.index;E.Q6J("fxFlex",Rt.width),E.xp6(1),E.MGl("name","input",Wt,""),E.Q6J("autoFocus",0===Wt)("placeholder",Rt.placeholder)("min",Rt.min)("step",Rt.step)("type",E.lcZ(2,11,Rt.inputType))("ngModel",Rt.inputValue)("tabindex",Wt+1),E.xp6(2),E.Q6J("ngIf",!Rt.inputValue),E.xp6(2),E.Oqu(Rt.hintFunction?Rt.hintFunction(Rt.inputValue):Rt.hintText)}}function mi(ii,Ri){if(1&ii&&(E.ynx(0),E.YNc(1,Ct,6,13,"mat-form-field",40),E.BQk()),2&ii){const st=Ri.$implicit,Rt=E.oxw(2);E.xp6(1),E.Q6J("ngIf",!st.advancedField||Rt.showAdvanced)}}function Jt(ii,Ri){if(1&ii&&(E.TgZ(0,"div",38),E.YNc(1,ot,2,1,"p",10),E.TgZ(2,"div",39),E.YNc(3,mi,2,1,"ng-container",22),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("ngIf",st.data.titleMessage),E.xp6(2),E.Q6J("ngForOf",st.getInputs)}}function ei(ii,Ri){1&ii&&(E.TgZ(0,"p"),E._uU(1,"Show Advanced"),E.qZA())}function Qi(ii,Ri){1&ii&&(E.TgZ(0,"p"),E._uU(1,"Hide Advanced"),E.qZA())}function hi(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",43),E.NdJ("click",function(){return E.CHM(st),E.oxw().onShowAdvanced()}),E.YNc(1,ei,2,0,"p",27),E.YNc(2,Qi,2,0,"ng-template",null,44,E.W1O),E.qZA()}if(2&ii){const st=E.MAs(3),Rt=E.oxw();E.xp6(1),E.Q6J("ngIf",!Rt.showAdvanced)("ngIfElse",st)}}function si(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",45),E.NdJ("click",function(){E.CHM(st);const Wt=E.oxw();return Wt.onClose(Wt.getInputs)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.xp6(1),E.Oqu(st.yesBtnText)}}function Ji(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",46),E.NdJ("click",function(){return E.CHM(st),E.oxw().onClose(!0)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.xp6(1),E.Oqu(st.yesBtnText)}}let Zi=(()=>{class ii{constructor(st,Rt,Wt,fi){this.dialogRef=st,this.data=Rt,this.logger=Wt,this.store=fi,this.faInfoCircle=Zt.sqG,this.faExclamationTriangle=Zt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}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.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===S.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(st){if(st&&this.getInputs&&this.getInputs.some(Rt=>void 0===Rt.inputValue))return!0;!this.showAdvanced&&st.length&&(st=null==st?void 0:st.reduce((Rt,Wt)=>(Wt.advancedField||Rt.push(Wt),Rt),[])),this.store.dispatch((0,ui.yb)({payload:st}))}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ae.mQ),E.Y36(Ot.yh))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,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-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-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"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),E._uU(5),E.qZA()(),E.TgZ(6,"button",5),E.NdJ("click",function(){return Rt.onClose(!1)}),E._uU(7,"X"),E.qZA()(),E.TgZ(8,"mat-card-content",6)(9,"form",7),E.YNc(10,Qt,4,2,"div",8),E.YNc(11,Re,4,2,"div",9),E.YNc(12,ke,2,1,"p",10),E.YNc(13,Ge,2,1,"div",11),E.YNc(14,Jt,4,2,"div",12),E.TgZ(15,"div",13)(16,"button",14),E.NdJ("click",function(){return Rt.onClose(!1)}),E._uU(17),E.qZA(),E.YNc(18,hi,4,2,"button",15),E.YNc(19,si,2,1,"button",16),E.YNc(20,Ji,2,1,"button",17),E.qZA()()()()()),2&st&&(E.xp6(5),E.Oqu(Rt.data.alertTitle||Rt.alertTypeEnum[Rt.data.type]),E.xp6(5),E.Q6J("ngIf",Rt.warningMessage&&""!==Rt.warningMessage),E.xp6(1),E.Q6J("ngIf",Rt.informationMessage&&""!==Rt.informationMessage),E.xp6(1),E.Q6J("ngIf",Rt.data.titleMessage&&!Rt.flgShowInput),E.xp6(1),E.Q6J("ngIf",(null==Rt.messageObjs?null:Rt.messageObjs.length)>0),E.xp6(1),E.Q6J("ngIf",Rt.flgShowInput),E.xp6(3),E.Oqu(Rt.noBtnText),E.xp6(1),E.Q6J("ngIf",Rt.hasAdvanced),E.xp6(1),E.Q6J("ngIf",Rt.flgShowInput),E.xp6(1),E.Q6J("ngIf",!Rt.flgShowInput))},directives:[B.xw,B.yH,q.dk,B.Wh,_e.lW,q.dn,Nt._Y,Nt.JL,Nt.F,ne.O5,gt.BN,ne.sg,ne.RF,ne.n9,ne.ED,c.d,it.KE,bt.Nt,ti.q,Nt.Fj,Nt.Q7,r.h,Nt.JJ,Nt.On,it.TO,it.bx],pipes:[ne.uU,ne.JJ,ne.i8],styles:[""]}),ii})();var Vi=p(1786),Ui=p(4107),Ue=p(508);function Tt(ii,Ri){if(1&ii&&(E.TgZ(0,"mat-option",23),E._uU(1),E.qZA()),2&ii){const st=Ri.$implicit;E.Q6J("value",st),E.xp6(1),E.hij(" ",st.infoName," ")}}function ve(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),E.NdJ("valueChange",function(Wt){return E.CHM(st),E.oxw().selInfoType=Wt}),E.YNc(3,Tt,2,2,"mat-option",22),E.qZA()()()}if(2&ii){const st=E.oxw();E.xp6(2),E.Q6J("value",st.selInfoType),E.xp6(1),E.Q6J("ngForOf",st.infoTypes)}}const Qe=function(ii){return{"display-none":ii}};let _t=(()=>{class ii{constructor(st,Rt,Wt,fi,Ti){this.dialogRef=st,this.data=Rt,this.logger=Wt,this.snackBar=fi,this.commonService=Ti,this.faReceipt=Zt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=S.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((st,Rt)=>{this.infoTypes.push({infoID:Rt+1,infoKey:"node URI "+(Rt+1),infoName:"Node URI "+(Rt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(st){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+st)}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ae.mQ),E.Y36(ee.ux),E.Y36(ue.v))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,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,"value","size","errorCorrectionLevel"],["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-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(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E._UZ(2,"qr-code",2),E.qZA(),E.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),E._UZ(6,"fa-icon",6),E.TgZ(7,"span",7),E._uU(8),E.qZA()(),E.TgZ(9,"button",8),E.NdJ("click",function(){return Rt.onClose()}),E._uU(10,"X"),E.qZA()(),E.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),E._UZ(14,"qr-code",2),E.qZA(),E.YNc(15,ve,4,2,"div",12),E.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),E._uU(19),E.qZA(),E.TgZ(20,"span",16),E._uU(21),E.qZA()()(),E._UZ(22,"mat-divider",17),E.TgZ(23,"div",18)(24,"button",19),E.NdJ("copied",function(fi){return Rt.onCopyPubkey(fi)}),E._uU(25),E.qZA()()()()()()),2&st&&(E.xp6(1),E.Q6J("ngClass",E.VKq(15,Qe,Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM)),E.xp6(1),E.s9C("value",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.Q6J("size",Rt.qrWidth)("errorCorrectionLevel","L"),E.xp6(4),E.Q6J("icon",Rt.faReceipt),E.xp6(2),E.Oqu(Rt.selInfoType.infoName),E.xp6(5),E.Q6J("ngClass",E.VKq(17,Qe,Rt.screenSize!==Rt.screenSizeEnum.XS&&Rt.screenSize!==Rt.screenSizeEnum.SM)),E.xp6(1),E.s9C("value",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.Q6J("size",Rt.qrWidth)("errorCorrectionLevel","L"),E.xp6(1),E.Q6J("ngIf",Rt.information.uris&&Rt.information.uris.length>0),E.xp6(4),E.Oqu(Rt.selInfoType.infoName),E.xp6(2),E.Oqu(0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.xp6(3),E.s9C("payload",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.xp6(1),E.hij("Copy ",Rt.selInfoType.infoKey,""))},directives:[B.xw,B.Wh,B.yH,ne.mk,re.oO,ge.uU,q.dk,gt.BN,_e.lW,q.dn,ne.O5,it.KE,Ui.gD,ne.sg,Ue.ey,c.d,r.h,u.y],styles:[""]}),ii})();var se=p(6523),Xe=p(429),xt=p(2994),Bt=p(8377),bi=p(8138),Ei=p(7998),Xi=p(5986),Wi=p(8104),on=p(1402);let pn=(()=>{class ii{constructor(st,Rt,Wt,fi,Ti,Ni,mn,In,Rn,tr,gn){this.actions=st,this.httpClient=Rt,this.store=Wt,this.logger=fi,this.wsService=Ti,this.sessionService=Ni,this.commonService=mn,this.dataService=In,this.dialog=Rn,this.snackBar=tr,this.router=gn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new e.x,new e.x],this.closeAllDialogs=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALL_DIALOGS),(0,C.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SNACK_BAR),(0,C.U)(Si=>{"string"==typeof Si.payload?this.snackBar.open(Si.payload):this.snackBar.open(Si.payload.message,"","ERROR"===Si.payload.type?{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Si.payload.type?{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Si.payload.duration?Si.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SPINNER),(0,C.U)(Si=>{Si.payload!==S.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(Y,{data:{titleMessage:Si.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_SPINNER),(0,C.U)(Si=>{if(Si.payload!==S.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Si.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Ki=>{Ki.componentInstance&&Ki.componentInstance.data&&Ki.componentInstance.data.titleMessage&&Ki.componentInstance.data.titleMessage===Si.payload&&Ki.close()})}catch(Ki){this.logger.error(Ki)}})),{dispatch:!1}),this.openAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_ALERT),(0,C.U)(Si=>{const Ki=JSON.parse(JSON.stringify(Si.payload));Ki.width||(Ki.width=this.alertWidth),this.dialogRef=this.dialog.open(Si.payload.data.component?Si.payload.data.component:Yt,Ki)})),{dispatch:!1}),this.closeAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALERT),(0,C.U)(Si=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Si.payload),Si.payload))),{dispatch:!1}),this.openConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_CONFIRMATION),(0,C.U)(Si=>{const Ki=JSON.parse(JSON.stringify(Si.payload));Ki.width||(Ki.width=this.confirmWidth),this.dialogRef=this.dialog.open(Zi,Ki)})),{dispatch:!1}),this.closeConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,C.U)(Si=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Si.payload),Si.payload))),{dispatch:!1}),this.showNodePubkey=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Bt.R4)),(0,h.z)(([Si,Ki])=>(this.sessionService.getItem("token")&&Ki.identity_pubkey?this.store.dispatch((0,ui.qR)({payload:{data:{information:Ki,component:_t}}})):this.snackBar.open("Node Pubkey does not exist."),(0,f.of)({type:S.pg.VOID}))))),this.appConfigFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_RTL_CONFIG),(0,h.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===S.cu.XS||this.screenSize===S.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===S.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,ui.ac)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(D.NZ.CONF_API+"/rtlconf"):this.httpClient.get(D.NZ.CONF_API+"/rtlconfinit"))),(0,C.U)(Si=>{this.logger.info(Si),this.store.dispatch((0,ui.uO)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.COMPLETED}}));let Ki=null;return Si.nodes.forEach(Sn=>{var qn,sr;Sn.settings.currencyUnits=[...S.uA,(null===(qn=Sn.settings)||void 0===qn?void 0:qn.currencyUnit)?null===(sr=Sn.settings)||void 0===sr?void 0:sr.currencyUnit:""],+(Sn.index||-1)===Si.selectedNodeIndex&&(Ki=Sn)}),Ki?(this.store.dispatch((0,ui.fk)({payload:{uiMessage:S.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Ki,isInitialSetup:!0}})),{type:S.pg.SET_RTL_CONFIG,payload:Si}):{type:S.pg.VOID}}),(0,L.K)(Si=>(this.handleErrorWithAlert("FetchRTLConfig",S.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",D.NZ.CONF_API,Si),(0,f.of)({type:S.pg.VOID}))))),this.settingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SAVE_SETTINGS),(0,h.z)(Si=>{this.store.dispatch((0,ui.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.INITIATED}}));let Ki=new M.y;if(Si.payload.settings&&Si.payload.defaultNodeIndex){const Sn=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Si.payload.settings}),qn=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Si.payload.defaultNodeIndex});Ki=(0,a.D)([Sn,qn])}else Si.payload.settings&&!Si.payload.defaultNodeIndex?Ki=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Si.payload.settings}):!Si.payload.settings&&Si.payload.defaultNodeIndex&&(Ki=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Si.payload.defaultNodeIndex}));return Ki.pipe((0,C.U)(Sn=>(this.logger.info(Sn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Si.payload.uiMessage})),{type:S.pg.OPEN_SNACK_BAR,payload:Sn.length?Sn[0].message+".":Sn.message+"."})),(0,L.K)(Sn=>(this.handleErrorWithAlert("UpdateSettings",Si.payload.uiMessage,"Update Settings Failed!",D.NZ.CONF_API,Sn.length?Sn[0]:Sn),(0,f.of)({type:S.pg.VOID}))))}))),this.updateServicesettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.UPDATE_SERVICE_SETTINGS),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/updateServiceSettings",Si.payload).pipe((0,C.U)(Ki=>(this.logger.info(Ki),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.Tm)({payload:Si.payload})),{type:S.pg.OPEN_SNACK_BAR,payload:Ki.message+"."})),(0,L.K)(Ki=>(this.handleErrorWithAlert("UpdateServiceSettings",Si.payload.uiMessage,"Update Service Settings Failed!",D.NZ.CONF_API,Ki),(0,f.of)({type:S.pg.VOID})))))))),this.twoFASettingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.TWO_FA_SAVE_SETTINGS),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/update2FA",{secret2fa:Si.payload.secret2fa}))),(0,R.M)(this.store.select(Bt.Yj)),(0,C.U)(([Si,Ki])=>{this.logger.info(Si),Ki.enable2FA=!Ki.enable2FA,this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.XT)({payload:Ki}))}),(0,L.K)(Si=>(this.handleErrorWithAlert("Update2FASettings",S.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",D.NZ.CONF_API,Si),(0,f.of)({type:S.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_CONFIG),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/config/"+Si.payload).pipe((0,C.U)(Ki=>(this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.OPEN_CONFIG_FILE})),{type:S.pg.SHOW_CONFIG,payload:Ki})),(0,L.K)(Ki=>(this.handleErrorWithAlert("fetchConfig",S.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",D.NZ.CONF_API+"/config/"+Si.payload,Ki),(0,f.of)({type:S.pg.VOID})))))))),this.showLnConfig=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_CONFIG),(0,C.U)(Si=>Si.payload)),{dispatch:!1}),this.isAuthorized=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED),(0,h.z)(Si=>(this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Si.payload&&""!==Si.payload.trim()?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Si.payload&&""!==Si.payload.trim()?Si.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,C.U)(Ki=>(this.logger.info(Ki),this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:S.pg.IS_AUTHORIZED_RES,payload:Ki})),(0,L.K)(Ki=>(this.handleErrorWithAlert("IsAuthorized",S.m6.NO_SPINNER,"Authorization Failed",D.NZ.AUTHENTICATE_API,Ki),(0,f.of)({type:S.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED_RES),(0,C.U)(Si=>Si.payload)),{dispatch:!1}),this.authLogin=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGIN),(0,R.M)(this.store.select(Bt.Yj)),(0,h.z)(([Si,Ki])=>(this.store.dispatch((0,se.Ll)({payload:null})),this.store.dispatch((0,Xe.xH)({payload:null})),this.store.dispatch((0,xt.Fd)({payload:null})),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Si.payload.password?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Si.payload.password?Si.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Si.payload.twoFAToken?Si.payload.twoFAToken:""}).pipe((0,C.U)(Sn=>{this.logger.info(Sn),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.COMPLETED}})),this.setLoggedInDetails(Si.payload.defaultPassword,Sn)}),(0,L.K)(Sn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",S.m6.NO_SPINNER,Sn),+Ki.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:Sn.error&&Sn.error.error?Sn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.VERIFY_TWO_FA),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/token",{authentication2FA:Si.payload.token}).pipe((0,C.U)(Ki=>{this.logger.info(Ki),this.store.dispatch((0,ui.uO)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Si.payload.authResponse)}),(0,L.K)(Ki=>(this.handleErrorWithAlert("VerifyToken",S.m6.VERIFY_TOKEN,"Authorization Failed!",D.NZ.AUTHENTICATE_API+"/token",Ki),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGOUT),(0,h.z)(Si=>(this.store.dispatch((0,ui.ac)({payload:S.m6.LOG_OUT})),Si.sso&&+Si.sso.rtlSSO?window.location.href=Si.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,ui._V)({payload:{}})),this.store.dispatch((0,ui.uO)({payload:S.m6.LOG_OUT})),this.logger.info("Logged out from browser"),this.httpClient.get(D.NZ.AUTHENTICATE_API+"/logout").pipe((0,C.U)(Ki=>{this.logger.info(Ki),this.store.dispatch((0,ui.uO)({payload:S.m6.LOG_OUT})),this.logger.info("Logged out from server")}))))),{dispatch:!1}),this.resetPassword=(0,t.GW)(()=>this.actions.pipe((0,w.R)(this.unSubs[1]),(0,t.l4)(S.pg.RESET_PASSWORD),(0,h.z)(Si=>(this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/reset",{currPassword:Si.payload.currPassword,newPassword:Si.payload.newPassword}).pipe((0,w.R)(this.unSubs[0]),(0,C.U)(Ki=>(this.logger.info(Ki),this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,ui.jW)({payload:"Password Reset Successful!"})),this.SetToken(Ki.token),{type:S.pg.RESET_PASSWORD_RES,payload:Ki.token})),(0,L.K)(Ki=>(this.handleErrorWithAlert("ResetPassword",S.m6.NO_SPINNER,"Password Reset Failed!",D.NZ.AUTHENTICATE_API+"/reset",Ki),(0,f.of)({type:S.pg.VOID})))))))),this.setSelectedNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SET_SELECTED_NODE),(0,h.z)(Si=>{var Ki;return this.store.dispatch((0,ui.ac)({payload:Si.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/updateSelNode/"+(null===(Ki=Si.payload.currentLnNode)||void 0===Ki?void 0:Ki.index)+"/"+Si.payload.prevLnNodeIndex).pipe((0,C.U)(Sn=>(this.logger.info(Sn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Si.payload.uiMessage})),this.initializeNode(Si.payload.currentLnNode,Si.payload.isInitialSetup),{type:S.pg.VOID})),(0,L.K)(Sn=>(this.handleErrorWithAlert("UpdateSelNode",Si.payload.uiMessage,"Update Selected Node Failed!",D.NZ.CONF_API+"/updateSelNode",Sn),(0,f.of)({type:S.pg.VOID}))))}))),this.fetchFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_FILE),(0,h.z)(Si=>{this.store.dispatch((0,ui.ac)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.INITIATED}}));const Ki="?channel="+Si.payload.channelPoint+(Si.payload.path?"&path="+Si.payload.path:"");return this.httpClient.get(D.NZ.CONF_API+"/file"+Ki).pipe((0,C.U)(Sn=>(this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),{type:S.pg.SHOW_FILE,payload:Sn})),(0,L.K)(Sn=>(this.handleErrorWithAlert("fetchFile",S.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",D.NZ.CONF_API+"/file"+Ki,{status:this.commonService.extractErrorNumber(Sn),error:{error:this.commonService.extractErrorCode(Sn)}}),(0,f.of)({type:S.pg.VOID}))))}))),this.showFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_FILE),(0,C.U)(Si=>Si.payload)),{dispatch:!1})}initializeNode(st,Rt){this.logger.info("Initializing node from RTL Effects.");const Wt=Rt?"":"HOME",fi={userPersona:st.settings.userPersona,channelBackupPath:st.settings.channelBackupPath,unannouncedChannels:!!st.settings.unannouncedChannels,selCurrencyUnit:st.settings.currencyUnit,currencyUnits:S.uA,fiatConversion:st.settings.fiatConversion,lnImplementation:st.lnImplementation,swapServerUrl:st.settings.swapServerUrl,boltzServerUrl:st.settings.boltzServerUrl,enableOffers:st.settings.enableOffers,enablePeerswap:st.settings.enablePeerswap};if(st.settings.fiatConversion&&st.settings.currencyUnit&&(fi.currencyUnits=[...S.uA,st.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,ui.vI)({payload:st})),this.store.dispatch((0,se.Ll)({payload:fi})),this.store.dispatch((0,Xe.xH)({payload:fi})),this.store.dispatch((0,xt.Fd)({payload:fi})),this.sessionService.getItem("token")){const Ti=st.lnImplementation?st.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ti);const Ni=D.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":D.T5;switch(this.wsService.connectWebSocket((null==Ni?void 0:Ni.replace(/^http/,"ws"))+D.NZ.Web_SOCKET_API,st.index?st.index.toString():"-1"),Ti){case"CLN":this.store.dispatch((0,Xe.CN)({payload:{loadPage:Wt}}));break;case"ECL":this.store.dispatch((0,xt.iz)({payload:{loadPage:Wt}}));break;default:this.store.dispatch((0,se.sQ)({payload:{loadPage:Wt}}))}}}SetToken(st){st?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",st)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(st,Rt){this.logger.info("Successfully Authorized!"),this.SetToken(Rt.token),this.sessionService.setItem("defaultPassword",st),st?(this.store.dispatch((0,ui.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,ui.ey)())}handleErrorWithoutAlert(st,Rt,Wt){this.logger.error("ERROR IN: "+st+"\n"+JSON.stringify(Wt)),401===Wt.status&&"Login"!==st?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,ui.uO)({payload:Rt})),this.store.dispatch((0,ui.qi)({payload:{action:st,status:S.Bn.ERROR,statusCode:Wt.status?Wt.status.toString():"",message:this.commonService.extractErrorMessage(Wt)}})))}handleErrorWithAlert(st,Rt,Wt,fi,Ti){if(this.logger.error(Ti),0===Ti.status&&Ti.statusText&&"Unknown Error"===Ti.statusText&&(Ti={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ti.status&&"Login"!==st)this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,ui.uO)({payload:Rt}));const Ni=this.commonService.extractErrorMessage(Ti);this.store.dispatch((0,ui.qR)({payload:{data:{type:"ERROR",alertTitle:Wt,message:{code:Ti.status?Ti.status:"Unknown Error",message:Ni,URL:fi},component:Vi.H}}})),this.store.dispatch((0,ui.qi)({payload:{action:st,status:S.Bn.ERROR,statusCode:Ti.status?Ti.status.toString():"",message:Ni,URL:fi}}))}}ngOnDestroy(){this.unSubs.forEach(st=>{st.next(null),st.complete()})}}return ii.\u0275fac=function(st){return new(st||ii)(E.LFG(t.eX),E.LFG(bi.eN),E.LFG(Ot.yh),E.LFG(ae.mQ),E.LFG(Ei.d),E.LFG(Xi.m),E.LFG(ue.v),E.LFG(Wi.D),E.LFG(k.uw),E.LFG(ee.ux),E.LFG(on.F0))},ii.\u0275prov=E.Yz7({token:ii,factory:ii.\u0275fac}),ii})()},8377:(Be,K,p)=>{"use strict";p.d(K,{R4:()=>C,Sr:()=>R,Yj:()=>a,dT:()=>M,gW:()=>h,ul:()=>d});var t=p(5620);const e=(0,t.ZF)("root"),M=((0,t.P1)(e,L=>L.apiURL),(0,t.P1)(e,L=>L.selNode)),a=(0,t.P1)(e,L=>L.appConfig),C=(0,t.P1)(e,L=>L.nodeData),d=(0,t.P1)(e,L=>L.apisCallStatus.Login),R=(0,t.P1)(e,L=>L.apisCallStatus.IsAuthorized),h=(0,t.P1)(e,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(Be,K,p)=>{"use strict";p.d(K,{NZ:()=>e,T5:()=>t,q4:()=>f});const t="./api",e={production:!0,isDebugMode:!1,AUTHENTICATE_API:t+"/authenticate",CONF_API:t+"/conf",PAGE_SETTINGS_API:t+"/pagesettings",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",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},f="0.13.2-beta"},7999:(Be,K,p)=>{"use strict";var t=p(2313),e=p(5e3),f=p(6360),M=p(8138),a=p(5113),C=p(5620),d=p(6642),R=p(9565),h=p(7579),L=p(6451),w=p(4968),D=p(457),S=p(4986),k=p(2805);function E(G=0,Le=S.z){return G<0&&(G=0),(0,k.H)(G,G,Le)}var B=p(9646),Z=p(727),Y=p(4482),ae=p(5403),ee=p(8737),ue=p(3269),ne=p(9672),ge=p(9300),q=p(8505),_e=p(3900),x=p(2722),i=p(8746),r=p(1884),u=p(4004);class c{}let v=(()=>{class G{constructor(P,ie){this._ngZone=ie,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,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,P&&this.setConfig(P)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,w.R)(window,"mousemove"),(0,w.R)(window,"resize"),(0,w.R)(document,"keydown"))),this.idle$=(0,D.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(G,...Le){var P,ie;const We=null!==(P=(0,ue.yG)(Le))&&void 0!==P?P:S.z,Ht=null!==(ie=Le[0])&&void 0!==ie?ie:null,Ci=Le[1]||1/0;return(0,Y.e)((ji,hn)=>{let Fn=[],ls=!1;const Ts=lr=>{const{buffer:qa,subs:Ln}=lr;Ln.unsubscribe(),(0,ee.P)(Fn,lr),hn.next(qa),ls&&cs()},cs=()=>{if(Fn){const lr=new Z.w0;hn.add(lr);const Ln={buffer:[],subs:lr};Fn.push(Ln),(0,ne.f)(lr,We,()=>Ts(Ln),G)}};null!==Ht&&Ht>=0?(0,ne.f)(hn,We,cs,Ht,!0):ls=!0,cs();const ds=(0,ae.x)(hn,lr=>{const qa=Fn.slice();for(const Ln of qa){const{buffer:Vn}=Ln;Vn.push(lr),Ci<=Vn.length&&Ts(Ln)}},()=>{for(;null==Fn?void 0:Fn.length;)hn.next(Fn.shift().buffer);null==ds||ds.unsubscribe(),hn.complete(),hn.unsubscribe()},void 0,()=>Fn=null);ji.subscribe(ds)})}(this.idleSensitivityMillisec),(0,ge.h)(P=>!P.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,q.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,_e.w)(()=>this._ngZone.runOutsideAngular(()=>E(1e3).pipe((0,x.R)((0,L.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,q.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.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,r.x)(),(0,_e.w)(P=>P?this.timer$:(0,B.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,ge.h)(P=>!!P),(0,q.b)(()=>this.isTimeout=!0),(0,u.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(P){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(P):console.error("Call stopWatching() before set config values")}setConfig(P){P.idle&&(this.idleMillisec=1e3*P.idle),P.ping&&(this.pingMillisec=1e3*P.ping),P.idleSensitivity&&(this.idleSensitivityMillisec=1e3*P.idleSensitivity),P.timeout&&(this.timeout=P.timeout)}setCustomActivityEvents(P){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=P:console.error("Call stopWatching() before set custom activity events")}setupTimer(P){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,B.of)(()=>new Date).pipe((0,u.U)(ie=>ie()),(0,_e.w)(ie=>E(1e3).pipe((0,u.U)(()=>Math.round(((new Date).valueOf()-ie.valueOf())/1e3)),(0,q.b)(We=>{We>=P&&this.timeout$.next(!0)}))))})}setupPing(P){this.ping$=E(P).pipe((0,ge.h)(()=>!this.isTimeout))}}return G.\u0275fac=function(P){return new(P||G)(e.LFG(c,8),e.LFG(e.R0b))},G.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),T=(()=>{class G{static forRoot(P){return{ngModule:G,providers:[{provide:c,useValue:P}]}}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275mod=e.oAB({type:G}),G.\u0275inj=e.cJS({imports:[[]]}),G})();var I=p(1402),y=p(2687),n=p(8377),_=p(7093),V=p(9546),N=p(9224),H=p(3251),X=p(9808);const he=function(){return{initial:!1}};function be(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[1].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[1].link),e.Q6J("active",P.activeLink===P.links[1].link)("state",e.DdM(4,he)),e.xp6(1),e.Oqu(P.links[1].name)}}function Pe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[2].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link),e.xp6(1),e.Oqu(P.links[2].name)}}let Ee=(()=>{class G{constructor(P,ie){this.store=P,this.router=ie,this.faUserCog=y.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 P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeLink=We?We.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{this.appConfig=ie}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[2])).subscribe(ie=>{this.showBitcoind=!1,this.selNode=ie,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return ie.activeLink=ie.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,be,2,5,"div",7),e.YNc(11,Pe,2,3,"div",8),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faUserCog),e.xp6(7),e.s9C("routerLink",ie.links[0].link),e.Q6J("active",ie.activeLink===ie.links[0].link),e.xp6(1),e.Oqu(ie.links[0].name),e.xp6(1),e.Q6J("ngIf",!+ie.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",ie.showBitcoind))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,H.Nj,I.rH,X.O5,_.yH,I.lC],styles:[""]}),G})();var j=p(7731),Ve=p(7861),Me=p(5043),J=p(8129),Ie=p(3075),ut=p(7322),Oe=p(4107),we=p(3390),ce=p(508),Te=p(7423);function xe(G,Le){if(1&G&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P.index),e.xp6(1),e.AsE(" ",P.lnNode," (",P.lnImplementation,") ")}}function W(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().appConfig.defaultNodeIndex=We}),e.YNc(14,xe,2,3,"mat-option",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",10)(17,"button",14),e.NdJ("click",function(){return e.CHM(P),e.oxw().onResetSettings()}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){return e.CHM(P),e.oxw().onUpdateSettings()}),e._uU(20,"Update"),e.qZA()()()()()}if(2&G){const P=e.oxw();e.xp6(3),e.Q6J("icon",P.faWindowRestore),e.xp6(5),e.Q6J("icon",P.faInfoCircle),e.xp6(5),e.Q6J("ngModel",P.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",P.appConfig.nodes)}}let te=(()=>{class G{constructor(P,ie){this.logger=P,this.store=ie,this.faInfoCircle=y.sqG,this.faWindowRestore=y.wyP,this.faPlus=y.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.appConfig=P,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(P)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Ve.zQ)({payload:{uiMessage:j.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e.YNc(1,W,21,4,"form",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngIf",ie.appConfig.nodes&&ie.appConfig.nodes.length&&ie.appConfig.nodes.length>0))},directives:[_.xw,_.yH,J.$V,X.O5,Ie._Y,Ie.JL,Ie.F,_.Wh,V.BN,ut.KE,Oe.gD,we.h,Ie.JJ,Ie.On,X.sg,ce.ey,Te.lW],styles:[""]}),G})();var Ce=p(8012),fe=p(5698),Q=p(8966),pt=p(5768),tt=p(3093),Dt=p(7261),di=p(5615),Yt=p(7531),Zt=p(159),ui=p(6895);const Ot=["stepper"];function Nt(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw();e.Oqu(P.passwordFormLabel)}}function gt(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function it(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.secretFormLabel)}}function bt(G,Le){if(1&G&&e._UZ(0,"qr-code",32),2&G){const P=e.oxw(2);e.Q6J("value",P.otpauth)("size",180)("errorCorrectionLevel","L")}}function ti(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function Qt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",21),e.YNc(2,it,1,1,"ng-template",22),e.TgZ(3,"div",23),e.YNc(4,bt,1,3,"qr-code",24),e.qZA(),e.TgZ(5,"div",25),e._UZ(6,"fa-icon",26),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",27)(10,"mat-form-field",1),e._UZ(11,"input",28),e.TgZ(12,"fa-icon",29),e.NdJ("copied",function(We){return e.CHM(P),e.oxw().onCopySecret(We)}),e.qZA(),e.YNc(13,ti,2,0,"mat-error",14),e.qZA()(),e.TgZ(14,"div",30)(15,"button",31),e._uU(16,"Next"),e.qZA()()()()}if(2&G){const P=e.oxw();e.Q6J("stepControl",P.secretFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.secretFormGroup),e.xp6(3),e.Q6J("ngIf",P.otpauth),e.xp6(2),e.Q6J("icon",P.faInfoCircle),e.xp6(6),e.Q6J("icon",P.faCopy)("payload",null==P.secretFormGroup||null==P.secretFormGroup.controls||null==P.secretFormGroup.controls.secret?null:P.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==P.secretFormGroup||null==P.secretFormGroup.controls||null==P.secretFormGroup.controls.secret||null==P.secretFormGroup.controls.secret.errors?null:P.secretFormGroup.controls.secret.errors.required)}}function Re(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.tokenFormLabel)}}function ke(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function de(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function ye(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),e._UZ(3,"input",36),e.YNc(4,ke,2,0,"mat-error",14),e.YNc(5,de,2,0,"mat-error",14),e.qZA()(),e.TgZ(6,"div",30)(7,"button",37),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onVerifyToken()}),e._uU(8),e.qZA()()()}if(2&G){const P=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==P.tokenFormGroup||null==P.tokenFormGroup.controls||null==P.tokenFormGroup.controls.token||null==P.tokenFormGroup.controls.token.errors?null:P.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==P.tokenFormGroup||null==P.tokenFormGroup.controls||null==P.tokenFormGroup.controls.token||null==P.tokenFormGroup.controls.token.errors?null:P.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=P.tokenFormGroup&&null!=P.tokenFormGroup.controls&&null!=P.tokenFormGroup.controls.token&&null!=P.tokenFormGroup.controls.token.errors&&P.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ht(G,Le){1&G&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function mt(G,Le){if(1&G&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Re,1,1,"ng-template",12),e.YNc(3,ye,9,3,"div",35),e.YNc(4,ht,3,0,"div",14),e.qZA()()),2&G){const P=e.oxw();e.Q6J("stepControl",P.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",P.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!P.flgValidated||!P.isTokenValid),e.xp6(1),e.Q6J("ngIf",P.flgValidated&&P.isTokenValid)}}function Ft(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.disableFormLabel)}}function nt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",7)(1,"div",38),e._UZ(2,"fa-icon",26),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",30)(6,"button",37),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onVerifyToken()}),e._uU(7,"Disable"),e.qZA()()()}if(2&G){const P=e.oxw(2);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle)}}function He(G,Le){1&G&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function rt(G,Le){if(1&G&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Ft,1,1,"ng-template",12),e.YNc(3,nt,8,1,"div",35),e.YNc(4,He,3,0,"div",14),e.qZA()()),2&G){const P=e.oxw();e.Q6J("stepControl",P.disableFormGroup),e.xp6(1),e.Q6J("formGroup",P.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!P.flgValidated||!P.isTokenValid),e.xp6(1),e.Q6J("ngIf",P.flgValidated&&P.isTokenValid)}}let et=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji){this.dialogRef=P,this.data=ie,this.store=We,this.formBuilder=Ht,this.rtlEffects=Ci,this.snackBar=ji,this.faExclamationTriangle=y.eHv,this.faCopy=y.kZ_,this.faInfoCircle=y.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,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:["",[Ie.kI.required]],password:["",[Ie.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ie.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ie.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){var P,ie;this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!(null===(P=this.appConfig)||void 0===P?void 0:P.enable2FA),this.secretFormGroup=this.formBuilder.group({secret:[{value:(null===(ie=this.appConfig)||void 0===ie?void 0:ie.enable2FA)?"":this.generateSecret(),disabled:!0},Ie.kI.required]})}generateSecret(){const P=pt.authenticator.generateSecret();return this.otpauth=pt.authenticator.keyuri("","Ride The Lightning (RTL)",P),P}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ve.QO)({payload:Ce(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,fe.q)(1)).subscribe(P=>{"ERROR"!==P?(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(P){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){var P,ie;if(null===(P=this.appConfig)||void 0===P?void 0:P.enable2FA)this.store.dispatch((0,Ve.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=pt.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((0,Ve.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!(null===(ie=this.appConfig)||void 0===ie?void 0:ie.enable2FA))}stepSelectionChanged(P){switch(P.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}P.selectedIndex{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(Q.WI),e.Y36(C.yh),e.Y36(Ie.qu),e.Y36(tt.V),e.Y36(Dt.ux))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-two-factor-auth"]],viewQuery:function(P,ie){if(1&P&&e.Gf(Ot,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.stepper=We.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-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-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,"value","size","errorCorrectionLevel",4,"ngIf"],["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-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[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-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(Ht){return ie.stepSelectionChanged(Ht)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Nt,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",1),e._UZ(17,"input",13),e.YNc(18,gt,2,0,"mat-error",14),e.qZA()(),e.TgZ(19,"div",15)(20,"button",16),e.NdJ("click",function(){return ie.onAuthenticate()}),e._uU(21,"Confirm"),e.qZA()()()(),e.YNc(22,Qt,17,8,"mat-step",17),e.YNc(23,mt,5,4,"mat-step",18),e.YNc(24,rt,5,4,"mat-step",18),e.qZA(),e.TgZ(25,"div",19)(26,"button",20),e._uU(27),e.qZA()()()()()()),2&P&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",ie.passwordFormGroup)("editable",ie.flgEditable),e.xp6(1),e.Q6J("formGroup",ie.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==ie.passwordFormGroup||null==ie.passwordFormGroup.controls||null==ie.passwordFormGroup.controls.password||null==ie.passwordFormGroup.controls.password.errors?null:ie.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!ie.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!ie.showDisableStepper),e.xp6(1),e.Q6J("ngIf",ie.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(ie.flgValidated&&ie.isTokenValid?"Close":"Cancel"))},directives:[_.xw,_.yH,N.dk,_.Wh,Te.lW,Q.ZT,N.dn,di.Vq,di.C0,Ie._Y,Ie.JL,Ie.sg,di.VY,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.JJ,Ie.u,Ie.Q7,X.O5,ut.TO,Zt.uU,V.BN,ut.R9,ui.y,di.Ic],styles:[""]}),G})();var Ae=p(5986),Ge=p(4834);const ot=["authForm"];function lt(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function Ct(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.errorMsg)}}function mi(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.errorConfirmMsg)}}function Jt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"form",10,11)(2,"div",12),e._UZ(3,"fa-icon",4),e.TgZ(4,"span",5),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"input",13),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().currPassword=We}),e.qZA(),e.YNc(8,lt,2,0,"mat-error",14),e.qZA(),e.TgZ(9,"mat-form-field")(10,"input",15),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().newPassword=We}),e.qZA(),e.YNc(11,Ct,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field")(13,"input",16),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().confirmPassword=We}),e.qZA(),e.YNc(14,mi,2,1,"mat-error",14),e.qZA(),e.TgZ(15,"div",17)(16,"button",18),e.NdJ("click",function(){return e.CHM(P),e.oxw().onResetPassword()}),e._uU(17,"Reset"),e.qZA(),e.TgZ(18,"button",19),e.NdJ("click",function(){return e.CHM(P),e.oxw().onChangePassword()}),e._uU(19,"Change Password"),e.qZA()(),e.TgZ(20,"div",20),e._UZ(21,"mat-divider",21),e.qZA()()}if(2&G){const P=e.oxw();e.xp6(3),e.Q6J("icon",P.faLock),e.xp6(4),e.Q6J("ngModel",P.currPassword),e.xp6(1),e.Q6J("ngIf",!P.currPassword),e.xp6(2),e.Q6J("ngModel",P.newPassword),e.xp6(1),e.Q6J("ngIf",P.matchOldAndNewPasswords()),e.xp6(2),e.Q6J("ngModel",P.confirmPassword),e.xp6(1),e.Q6J("ngIf",P.matchNewPasswords()),e.xp6(7),e.Q6J("inset",!0)}}let ei=(()=>{class G{constructor(P,ie,We,Ht,Ci){this.logger=P,this.store=ie,this.actions=We,this.router=Ht,this.sessionService=Ci,this.faInfoCircle=y.sqG,this.faUserLock=y.FJU,this.faUserClock=y.hnx,this.faLock=y.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(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.appConfig=P,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.selNode=P}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(P=>P.type===j.pg.RESET_PASSWORD_RES)).subscribe(P=>{var ie;if(j.kO.includes(this.currPassword.toLowerCase()))switch(null===(ie=this.selNode.lnImplementation)||void 0===ie?void 0:ie.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||j.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ve.c0)({payload:{currPassword:Ce(this.currPassword).toString(),newPassword:Ce(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let P=!1;return this.form&&this.form.controls&&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.",P=!0):j.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=null==j.kO?void 0:j.kO.reduce((ie,We,Ht)=>Ht{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh),e.Y36(d.eX),e.Y36(I.F0),e.Y36(Ae.m))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-auth-settings"]],viewQuery:function(P,ie){if(1&P&&e.Gf(ot,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.form=We.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Jt,22,8,"form",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Two Factor Authentication"),e.qZA()(),e.TgZ(7,"div",6),e._UZ(8,"fa-icon",7),e.TgZ(9,"span"),e._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return ie.on2FAuth()}),e._uU(13),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("ngIf",null==ie.appConfig?null:ie.appConfig.allowPasswordUpdate),e.xp6(3),e.Q6J("icon",ie.faUserClock),e.xp6(4),e.Q6J("icon",ie.faInfoCircle),e.xp6(5),e.Oqu(ie.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[_.xw,_.yH,_.Wh,X.O5,Ie._Y,Ie.JL,Ie.F,V.BN,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,ut.TO,Te.lW,Ge.d],styles:[""]}),G})();var Qi=p(4623);function hi(G,Le){1&G&&e._UZ(0,"mat-divider",7)}function si(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,hi,1,0,"mat-divider",6),e.qZA()),2&G){const P=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,P.configData)),e.xp6(2),e.Q6J("ngIf",""!==P.configData)}}function Ji(G,Le){if(1&G&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Zi(G,Le){if(1&G&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Vi(G,Le){1&G&&e._UZ(0,"mat-divider",15),2&G&&e.Q6J("inset",!0)}function Ui(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Ji,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Zi,2,1,"h4",12),e.qZA(),e.YNc(5,Vi,1,1,"mat-divider",13),e.qZA()),2&G){const P=Le.$implicit;e.xp6(2),e.Q6J("ngIf",P.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",P.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",P.indexOf("[")<0)}}function Ue(G,Le){if(1&G&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Ui,6,3,"mat-list-item",9),e.qZA()()),2&G){const P=e.oxw();e.xp6(2),e.Q6J("ngForOf",P.configData)}}let Tt=(()=>{class G{constructor(P,ie,We){this.store=P,this.rtlEffects=ie,this.router=We,this.configData="",this.fileFormat="INI",this.faCog=y.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.dispatch((0,Ve.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{const ie=P.data;this.fileFormat=P.format,this.configData=""===ie||!ie||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==ie&&ie&&"JSON"===this.fileFormat?ie:"":ie.split("\n")})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(tt.V),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,si,5,4,"div",2),e.YNc(3,Ue,3,1,"div",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",""!==ie.configData&&"JSON"===ie.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==ie.configData&&("INI"===ie.fileFormat||"HOCON"===ie.fileFormat)))},directives:[_.xw,_.yH,_.Wh,X.O5,Ge.d,Qi.i$,X.sg,Qi.Tg,N.$j],pipes:[X.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})();function ve(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let Qe=(()=>{class G{constructor(P,ie,We){this.dialogRef=P,this.store=ie,this.rtlEffects=We,this.password="",this.isAuthenticated=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,fe.q)(1)).subscribe(P=>{"ERROR"!==P?(this.isAuthenticated=!0,this.store.dispatch((0,Ve.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Ve.QO)({payload:Ce(this.password)}))}onClose(){this.store.dispatch((0,Ve.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(C.yh),e.Y36(tt.V))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-is-authorized"]],decls:16,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","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Authenticate with your RTL Password"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return ie.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"input",8),e.NdJ("ngModelChange",function(Ht){return ie.password=Ht}),e.qZA(),e.YNc(12,ve,2,0,"mat-error",9),e.qZA(),e.TgZ(13,"div",10)(14,"button",11),e.NdJ("click",function(){return ie.onAuthenticate()}),e._uU(15,"Confirm"),e.qZA()()()()()()),2&P&&(e.xp6(11),e.Q6J("ngModel",ie.password),e.xp6(1),e.Q6J("ngIf",!ie.password))},directives:[_.xw,_.Wh,_.yH,N.dk,Te.lW,N.dn,Ie._Y,Ie.JL,Ie.F,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,X.O5,ut.TO],styles:[""]}),G})();const _t=function(){return{initial:!1}};function se(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[2].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link)("state",e.DdM(4,_t)),e.xp6(1),e.Oqu(P.links[2].name)}}function Xe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[3].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[3].link),e.Q6J("active",P.activeLink===P.links[3].link),e.xp6(1),e.Oqu(P.links[3].name)}}function xt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){return e.CHM(P),e.oxw().showLnConfigClicked()}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.Q6J("active",P.activeLink===P.links[4].link),e.xp6(1),e.Oqu(P.links[4].name)}}let Bt=(()=>{class G{constructor(P,ie,We,Ht){this.store=P,this.router=ie,this.rtlEffects=We,this.activatedRoute=Ht,this.faTools=y.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodelayout",name:"Application Layout"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeLink=We?We.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{var We;switch(this.showLnConfig=!1,this.selNode=ie,null===(We=this.selNode.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.lnImplementationStr="Core 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[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.store.dispatch((0,Ve.qR)({payload:{maxWidth:"50rem",data:{component:Qe}}})),this.rtlEffects.closeAlert.pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{P&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(I.F0),e.Y36(tt.V),e.Y36(I.gz))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-node-config"]],decls:17,vars:10,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"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return ie.activeLink=ie.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return ie.activeLink=ie.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,se,2,5,"div",7),e.YNc(13,Xe,2,3,"div",8),e.YNc(14,xt,2,2,"div",9),e.qZA(),e.TgZ(15,"div",10),e._UZ(16,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faTools),e.xp6(7),e.s9C("routerLink",ie.links[0].link),e.Q6J("active",ie.activeLink===ie.links[0].link),e.xp6(1),e.Oqu(ie.links[0].name),e.xp6(1),e.s9C("routerLink",ie.links[1].link),e.Q6J("active",ie.activeLink===ie.links[1].link),e.xp6(1),e.Oqu(ie.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",ie.showLnConfig))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,H.Nj,I.rH,X.O5,_.yH,I.lC],styles:[""]}),G})();function bi(G,Le){1&G&&e._UZ(0,"mat-divider",7)}function Ei(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,bi,1,0,"mat-divider",6),e.qZA()),2&G){const P=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,P.configData)),e.xp6(2),e.Q6J("ngIf",""!==P.configData)}}function Xi(G,Le){if(1&G&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Wi(G,Le){if(1&G&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function on(G,Le){1&G&&e._UZ(0,"mat-divider",15),2&G&&e.Q6J("inset",!0)}function pn(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Xi,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Wi,2,1,"h4",12),e.qZA(),e.YNc(5,on,1,1,"mat-divider",13),e.qZA()),2&G){const P=Le.$implicit;e.xp6(2),e.Q6J("ngIf",P.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",P.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",P.indexOf("[")<0)}}function ii(G,Le){if(1&G&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,pn,6,3,"mat-list-item",9),e.qZA()()),2&G){const P=e.oxw();e.xp6(2),e.Q6J("ngForOf",P.configData)}}let Ri=(()=>{class G{constructor(P,ie,We){this.store=P,this.rtlEffects=ie,this.router=We,this.configData="",this.fileFormat="INI",this.faCog=y.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.dispatch((0,Ve.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{const ie=P.data;this.fileFormat=P.format,this.configData=""===ie||!ie||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==ie&&ie&&"JSON"===this.fileFormat?ie:"":ie.split("\n")})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(tt.V),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Ei,5,4,"div",2),e.YNc(3,ii,3,1,"div",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",""!==ie.configData&&"JSON"===ie.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==ie.configData&&("INI"===ie.fileFormat||"HOCON"===ie.fileFormat)))},directives:[_.xw,_.yH,_.Wh,X.O5,Ge.d,Qi.i$,X.sg,Qi.Tg,N.$j],pipes:[X.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})();var st=p(2994),Rt=p(429),Wt=p(6523),fi=p(62),Ti=p(1125),Ni=p(2368),mn=p(9814),In=p(3322);function Rn(G,Le){if(1&G&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P.id),e.xp6(1),e.hij(" ",P.id," ")}}function tr(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function gn(G,Le){if(1&G&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P)("checked",ie.selNode.settings.userPersona===P),e.xp6(1),e.hij(" ",e.lcZ(2,3,P)," ")}}const Si=function(G){return{"mr-4":G}};function Ki(G,Le){if(1&G&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P)("ngClass",e.VKq(3,Si,ie.screenSize===ie.screenSizeEnum.XS||ie.screenSize===ie.screenSizeEnum.SM)),e.xp6(1),e.hij("",P.name," ")}}const Sn=function(G){return{skin:!0,"selected-color":G}};function qn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().changeThemeColor(Ht.id)}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,P.id)),e.Q6J("ngClass",e.VKq(6,Sn,ie.selectedThemeColor===P.id)),e.xp6(2),e.hij(" ",P.name," ")}}let sr=(()=>{class G{constructor(P,ie,We){this.logger=P,this.commonService=ie,this.store=We,this.faExclamationTriangle=y.eHv,this.faMoneyBillAlt=y.co4,this.faPaintBrush=y.XsY,this.faInfoCircle=y.sqG,this.faEyeSlash=y.Aq,this.userPersonas=[j.ol.OPERATOR,j.ol.MERCHANT],this.currencyUnits=j.Er,this.themeModes=j.wZ.modes,this.themeColors=j.wZ.themes,this.selectedThemeMode=j.wZ.modes[0],this.selectedThemeColor=j.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.selectedThemeMode=this.themeModes.find(ie=>this.selNode.settings.themeMode===ie.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(P)})}onCurrencyChange(P){this.selNode.settings.currencyUnits=[...j.uA,P.value],this.store.dispatch((0,Wt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(P,ie){this.selNode.settings[P]=!this.selNode.settings[P]}changeThemeColor(P){this.selectedThemeColor=P,this.selNode.settings.themeColor=P}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((0,Ve.zQ)({payload:{uiMessage:j.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const P=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(ie=>ie.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ve.fk)({payload:{uiMessage:j.m6.NO_SPINNER,prevLnNodeIndex:+P,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-node-settings"]],decls:77,vars:20,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["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","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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening Unannounced Channels."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.unannouncedChannels=Ht})("change",function(Ht){return ie.selNode.settings.unannouncedChannels=Ht.checked?ie.selNode.settings.unannouncedChannels:null}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.fiatConversion=Ht})("change",function(Ht){return ie.selNode.settings.currencyUnit=Ht.checked?ie.selNode.settings.currencyUnit:null}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-select",15,16),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.currencyUnit=Ht})("selectionChange",function(Ht){return ie.onCurrencyChange(Ht)}),e.YNc(39,Rn,2,2,"mat-option",17),e.qZA(),e.YNc(40,tr,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(41,"mat-expansion-panel",4)(42,"mat-expansion-panel-header")(43,"mat-panel-title"),e._UZ(44,"fa-icon",5),e.TgZ(45,"span",6),e._uU(46,"Customization"),e.qZA()()(),e.TgZ(47,"div",7)(48,"div",19)(49,"div",20),e._UZ(50,"fa-icon",9),e.TgZ(51,"span"),e._uU(52,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(53,"div",21)(54,"h4"),e._uU(55,"Dashboard Layout"),e.qZA(),e.TgZ(56,"mat-radio-group",22),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.userPersona=Ht}),e.YNc(57,gn,3,5,"mat-radio-button",23),e.qZA()()(),e._UZ(58,"mat-divider",24),e.TgZ(59,"div",25)(60,"div",26)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",27),e.NdJ("ngModelChange",function(Ht){return ie.selectedThemeMode=Ht})("change",function(){return ie.chooseThemeMode()}),e.YNc(64,Ki,2,5,"mat-radio-button",28),e.qZA()()(),e._UZ(65,"mat-divider",24),e.TgZ(66,"div",25)(67,"div",29)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",30),e.YNc(71,qn,4,8,"span",31),e.qZA()()()()()()(),e.TgZ(72,"div",32)(73,"button",33),e.NdJ("click",function(){return ie.onResetSettings()}),e._uU(74,"Reset"),e.qZA(),e.TgZ(75,"button",34),e.NdJ("click",function(){return ie.onUpdateSettings()}),e._uU(76,"Update"),e.qZA()()()),2&P&&(e.xp6(7),e.Q6J("icon",ie.faEyeSlash),e.xp6(5),e.Q6J("icon",ie.faInfoCircle),e.xp6(4),e.Q6J("ngModel",ie.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",ie.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",ie.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",ie.selNode.settings.fiatConversion),e.xp6(3),e.Q6J("ngModel",ie.selNode.settings.currencyUnit)("disabled",!ie.selNode.settings.fiatConversion)("required",ie.selNode.settings.fiatConversion),e.xp6(2),e.Q6J("ngForOf",ie.currencyUnits),e.xp6(1),e.Q6J("ngIf",ie.selNode.settings.fiatConversion&&!ie.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",ie.faPaintBrush),e.xp6(6),e.Q6J("icon",ie.faInfoCircle),e.xp6(6),e.Q6J("ngModel",ie.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",ie.userPersonas),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Q6J("ngModel",ie.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",ie.themeModes),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Q6J("ngForOf",ie.themeColors))},directives:[_.xw,_.yH,J.$V,Ie._Y,Ie.JL,Ie.F,_.Wh,Ti.pp,Ti.ib,Ti.yz,Ti.yK,V.BN,Ni.Rr,Ie.JJ,Ie.On,ut.KE,Oe.gD,we.h,Ie.Q7,X.sg,ce.ey,X.O5,ut.TO,mn.VQ,mn.U0,Ge.d,X.mk,In.oO,Te.lW],pipes:[X.rS,X.i8],styles:[""]}),G})();var ha=p(1365),_a=p(9828),Sr=p(6529),fa=p(2501),zr=p(7238),ta=p(5245),ia=p(9445);const na=function(G){return{error:G}};function qr(G,Le){if(1&G&&e.GkF(0,14),2&G){const P=e.oxw(),ie=e.MAs(18);e.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",e.VKq(2,na,P.errorMessage))}}function Jr(G,Le){if(1&G&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",P," ")}}function Ma(G,Le){if(1&G&&(e.TgZ(0,"mat-option",30),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw(3);e.Q6J("value",P),e.xp6(1),e.hij(" ","ECL"===ie.selNode.lnImplementation?e.lcZ(2,2,P):e.xi3(3,4,P,"_")," ")}}function pa(G,Le){if(1&G&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ","desc"===P?"Descending":"Ascending"," ")}}function Za(G,Le){if(1&G&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw().$implicit,We=e.oxw(2);e.Q6J("value",P.column)("disabled",ie.columnSelectionSM.length<=1&&ie.columnSelectionSM.includes(P.column)||ie.columnSelectionSM.length>=3&&!ie.columnSelectionSM.includes(P.column)),e.xp6(1),e.hij(" ",P.label?P.label:"ECL"===We.selNode.lnImplementation?e.lcZ(2,3,P.column):e.xi3(3,5,P.column,"_")," ")}}function Pr(G,Le){if(1&G&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw().$implicit,We=e.oxw().$implicit,Ht=e.oxw();e.Q6J("value",P.column)("disabled",ie.columnSelection.length<=2&&ie.columnSelection.includes(P.column)||ie.columnSelection.length>=Ht.nodePageDefs[We.pageId][ie.tableId].maxColumns&&!ie.columnSelection.includes(P.column)),e.xp6(1),e.hij(" ",P.label?P.label:"ECL"===Ht.selNode.lnImplementation?e.lcZ(2,3,P.column):e.xi3(3,5,P.column,"_")," ")}}function Yn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelCaseWithSpaces"),e.ALo(5,"camelcaseWithReplace"),e.qZA(),e.TgZ(6,"mat-form-field",19)(7,"mat-select",20),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.recordsPerPage=We}),e.YNc(8,Jr,2,2,"mat-option",21),e.qZA()(),e.TgZ(9,"mat-form-field",19)(10,"mat-select",22),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.sortBy=We}),e.YNc(11,Ma,4,7,"mat-option",21),e.qZA()(),e.TgZ(12,"mat-form-field",19)(13,"mat-select",23),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.sortOrder=We}),e.YNc(14,pa,2,2,"mat-option",21),e.qZA()(),e.TgZ(15,"mat-form-field",24)(16,"mat-select",25),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.columnSelectionSM=We}),e.YNc(17,Za,4,8,"mat-option",26),e.qZA(),e.TgZ(18,"mat-hint"),e._uU(19,"Column selected (mobile) should be between 1 and 3"),e.qZA()(),e.TgZ(20,"mat-form-field",27)(21,"mat-select",28),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.columnSelection=We})("selectionChange",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).oncolumnSelectionChange(Ht)}),e.YNc(22,Pr,4,8,"mat-option",26),e.qZA(),e.TgZ(23,"mat-hint"),e._uU(24),e.qZA()(),e.TgZ(25,"button",29),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit,Ci=e.oxw().$implicit;return e.oxw().onTableReset(Ci.pageId,Ht)}),e.TgZ(26,"mat-icon"),e._uU(27,"restore"),e.qZA()()()()}if(2&G){const P=Le.$implicit,ie=e.oxw().$implicit,We=e.oxw();e.xp6(3),e.hij("","ECL"===We.selNode.lnImplementation?e.lcZ(4,23,P.tableId):e.xi3(5,25,P.tableId,"_"),":"),e.xp6(4),e.hYB("name","",ie.pageId,"",P.tableId,"-page-size-options"),e.Q6J("disabled",We.nodePageDefs[ie.pageId][P.tableId].disablePageSize)("ngModel",P.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",We.pageSizeOptions),e.xp6(2),e.hYB("name","",ie.pageId,"",P.tableId,"-sort-by"),e.Q6J("ngModel",P.sortBy),e.xp6(1),e.Q6J("ngForOf",P.columnSelection),e.xp6(2),e.hYB("name","",ie.pageId,"",P.tableId,"-sort-order"),e.Q6J("ngModel",P.sortOrder),e.xp6(1),e.Q6J("ngForOf",We.sortOrders),e.xp6(2),e.hYB("name","",ie.pageId,"",P.tableId,"-columns-selection-sm"),e.Q6J("ngModel",P.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",We.nodePageDefs[ie.pageId][P.tableId].allowedColumns),e.xp6(4),e.hYB("name","",ie.pageId,"",P.tableId,"-columns-selection"),e.Q6J("ngModel",P.columnSelection),e.xp6(1),e.Q6J("ngForOf",We.nodePageDefs[ie.pageId][P.tableId].allowedColumns),e.xp6(2),e.hij("Number of column selected should be between 2 and ",We.nodePageDefs[ie.pageId][P.tableId].maxColumns,"")}}function Vr(G,Le){if(1&G&&e.GkF(0,14),2&G){const P=e.oxw(2),ie=e.MAs(18);e.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",e.VKq(2,na,P.errorMessage))}}const cr=function(G){return{"error-border":G}};function Wa(G,Le){if(1&G&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelCaseWithSpaces"),e.ALo(5,"camelcaseWithReplace"),e.qZA()(),e.YNc(6,Yn,28,28,"div",16),e.YNc(7,Vr,1,4,"ng-container",6),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("ngClass",e.VKq(9,cr,(null==ie.errorMessage?null:ie.errorMessage.page)===P.pageId)),e.xp6(3),e.Oqu("ECL"===ie.selNode.lnImplementation?e.lcZ(4,4,P.pageId):e.xi3(5,6,P.pageId,"_")),e.xp6(3),e.Q6J("ngForOf",P.tables),e.xp6(1),e.Q6J("ngIf",ie.errorMessage&&(null==ie.errorMessage?null:ie.errorMessage.page)===P.pageId)}}function Wr(G,Le){if(1&G&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&G){const P=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,P.page),"")}}function Ya(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",36),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&G){const P=e.oxw().error;e.xp6(4),e.Oqu(P.message)}}function va(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",36),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,P.table)," ",P.message,"")}}const dr=function(G){return{"error-border p-2":G}};function ya(G,Le){if(1&G&&(e.TgZ(0,"div",32),e.YNc(1,Wr,3,3,"mat-panel-title",33),e.TgZ(2,"mat-list",34),e.YNc(3,Ya,5,1,"mat-list-item",33),e.YNc(4,va,6,4,"mat-list-item",35),e.qZA()()),2&G){const P=Le.error,ie=e.oxw();e.Q6J("ngClass",e.VKq(4,dr,"unknown"===ie.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===ie.errorMessage.page),e.xp6(2),e.Q6J("ngIf",P.message),e.xp6(1),e.Q6J("ngForOf",P.tables)}}let kr=(()=>{class G{constructor(P,ie,We,Ht){this.logger=P,this.commonService=ie,this.store=We,this.actions=Ht,this.faPenRuler=y.SoD,this.faExclamationTriangle=y.eHv,this.screenSize="",this.screenSizeEnum=j.cu,this.pageSizeOptions=j.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=j.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=j.Bn,this.errorMessage=null,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{switch(this.selNode=P,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],j.gG),this.defaultSettings=Object.assign([],j.gG),this.nodePageDefs=j.At,this.store.select(_a.AS).pipe((0,x.R)(this.unSubs[1]),(0,ha.M)(this.store.select(_a.lw))).subscribe(([ie,We])=>{const Ht=JSON.parse(JSON.stringify(ie.pageSettings));if(this.errorMessage=null,this.apiCallStatus=ie.apiCallStatus,this.apiCallStatus.status===j.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Ht,this.initialPageSettings=Ht;else{if(!(null==We?void 0:We.enableOffers)){const Ci=Ht.find(Fn=>"transactions"===Fn.pageId),ji=null==Ci?void 0:Ci.tables.findIndex(Fn=>"offers"===Fn.tableId),hn=null==Ci?void 0:Ci.tables.findIndex(Fn=>"offer_bookmarks"===Fn.tableId);ji>-1&&(null==Ci||Ci.tables.splice(ji,1)),hn>-1&&(null==Ci||Ci.tables.splice(hn,1))}if(!(null==We?void 0:We.enablePeerswap)){const Ci=Ht.findIndex(ji=>"peerswap"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}this.pageSettings=Ht,this.initialPageSettings=Ht}this.logger.info(Ht)}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(ie=>ie.type===j.AB.UPDATE_API_CALL_STATUS_CLN||ie.type===j.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(ie=>{ie.type===j.AB.UPDATE_API_CALL_STATUS_CLN&&ie.payload.status===j.Bn.ERROR&&"SavePageSettings"===ie.payload.action&&(this.errorMessage=JSON.parse(ie.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],j.c3),this.defaultSettings=Object.assign([],j.c3),this.nodePageDefs=j.Xk,this.store.select(fa.nF).pipe((0,x.R)(this.unSubs[1]),(0,ha.M)(this.store.select(fa.LR))).subscribe(([ie,We])=>{const Ht=JSON.parse(JSON.stringify(ie.pageSettings));this.errorMessage=null,this.apiCallStatus=ie.apiCallStatus,this.apiCallStatus.status===j.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Ht,this.initialPageSettings=Ht):(this.pageSettings=Ht,this.initialPageSettings=Ht),this.logger.info(Ht)}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(ie=>ie.type===j.lr.UPDATE_API_CALL_STATUS_ECL||ie.type===j.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(ie=>{ie.type===j.lr.UPDATE_API_CALL_STATUS_ECL&&ie.payload.status===j.Bn.ERROR&&"SavePageSettings"===ie.payload.action&&(this.errorMessage=JSON.parse(ie.payload.message))});break;default:this.initialPageSettings=Object.assign([],j.gK),this.defaultSettings=Object.assign([],j.gK),this.nodePageDefs=j.hG,this.store.select(Sr.Pr).pipe((0,x.R)(this.unSubs[1]),(0,ha.M)(this.store.select(Sr.$k))).subscribe(([ie,We])=>{const Ht=JSON.parse(JSON.stringify(ie.pageSettings));if(this.errorMessage=null,this.apiCallStatus=ie.apiCallStatus,this.apiCallStatus.status===j.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Ht,this.initialPageSettings=Ht;else{if(!(null==We?void 0:We.swapServerUrl)||""===We.swapServerUrl.trim()){const Ci=Ht.findIndex(ji=>"loop"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}if(!(null==We?void 0:We.boltzServerUrl)||""===We.boltzServerUrl.trim()){const Ci=Ht.findIndex(ji=>"boltz"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}if(!(null==We?void 0:We.enablePeerswap)){const Ci=Ht.findIndex(ji=>"peerswap"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}this.pageSettings=Ht,this.initialPageSettings=Ht}this.logger.info(Ht)}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(ie=>ie.type===j.uR.UPDATE_API_CALL_STATUS_LND||ie.type===j.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(ie=>{ie.type===j.uR.UPDATE_API_CALL_STATUS_LND&&ie.payload.status===j.Bn.ERROR&&"SavePageSettings"===ie.payload.action&&(this.errorMessage=JSON.parse(ie.payload.message))})}})}oncolumnSelectionChange(P){P.columnSelection&&(!P.sortBy||!P.columnSelection.includes(P.sortBy))&&(P.sortBy=P.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((P,ie)=>P||ie.tables.reduce((We,Ht)=>!(Ht.recordsPerPage&&Ht.sortBy&&Ht.sortOrder&&Ht.columnSelection&&Ht.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,Rt.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,st.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Wt.eF)({payload:this.pageSettings}))}}onTableReset(P,ie){var We,Ht;const Ci=this.pageSettings.findIndex(Fn=>Fn.pageId===P),ji=this.pageSettings[Ci].tables.findIndex(Fn=>Fn.tableId===ie.tableId),hn=(null===(We=this.defaultSettings.find(Fn=>Fn.pageId===P))||void 0===We?void 0:We.tables.find(Fn=>Fn.tableId===ie.tableId))||(null===(Ht=this.pageSettings.find(Fn=>Fn.pageId===P))||void 0===Ht?void 0:Ht.tables.find(Fn=>Fn.tableId===ie.tableId));this.pageSettings[Ci].tables.splice(ji,1,hn)}onResetPageSettings(P){"current"===P?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(d.eX))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-page-settings"]],decls:19,vars:3,consts:[["fxLayout","column","fxFlex","100","id","head",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"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","10"],["placeholder","Records/Page","tabindex","2","required","",3,"disabled","ngModel","name","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Sort By","tabindex","3","required","",3,"ngModel","name","ngModelChange"],["placeholder","Sort Order","tabindex","4","required","",3,"ngModel","name","ngModelChange"],["fxFlex","15"],["placeholder","Column selection (Mobile)","tabindex","5","multiple","","required","",3,"ngModel","name","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["fxFlex","40"],["placeholder","Column selection (Desktop)","tabindex","6","multiple","","required","",3,"ngModel","name","ngModelChange","selectionChange"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",3,"click"],[3,"value"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Grid Settings"),e.qZA()(),e.YNc(7,qr,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,Wa,8,11,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return ie.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return ie.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return ie.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,ya,5,6,"ng-template",null,13,e.W1O)),2&P&&(e.xp6(4),e.Q6J("icon",ie.faPenRuler),e.xp6(3),e.Q6J("ngIf",ie.errorMessage&&"unknown"===ie.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",ie.pageSettings))},directives:[_.xw,_.yH,J.$V,Ie._Y,Ie.JL,Ie.F,_.Wh,V.BN,X.O5,X.tP,Ti.pp,X.sg,Ti.ib,X.mk,In.oO,Ti.yz,Ti.yK,ut.KE,Oe.gD,Ie.Q7,Ie.JJ,Ie.On,ce.ey,ut.bx,Te.lW,zr.gM,ta.Hw,Qi.i$,Qi.Tg],pipes:[ia.i1,ia.D3,X.rS],styles:[".table-setting-row[_ngcontent-%COMP%]:last-child{margin-bottom:3rem}.table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:3rem 0}"]}),G})();function Dr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[0].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[0].link),e.Q6J("active",P.activeLink===P.links[0].link),e.xp6(1),e.Oqu(P.links[0].name)}}const ra=function(){return{initial:!1}};function wa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[1].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[1].link),e.Q6J("active",P.activeLink===P.links[1].link)("state",e.DdM(4,ra)),e.xp6(1),e.Oqu(P.links[1].name)}}function Pa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[2].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link),e.xp6(1),e.Oqu(P.links[2].name)}}let ba=(()=>{class G{constructor(P,ie,We){this.store=P,this.router=ie,this.activatedRoute=We,this.faLayerGroup=y.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:We?We.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{this.selNode=ie,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(I.F0),e.Y36(I.gz))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-services-settings"]],decls:13,vars:4,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","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","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","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Services"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,Dr,2,3,"div",6),e.YNc(9,wa,2,5,"div",7),e.YNc(10,Pa,2,3,"div",6),e.qZA(),e.TgZ(11,"div",8),e._UZ(12,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faLayerGroup),e.xp6(7),e.Q6J("ngIf","LND"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,X.O5,H.Nj,I.rH,_.yH,I.lC],styles:[""]}),G})();const or=["form"];function aa(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function Ha(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function ir(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let sa=(()=>{class G{constructor(P,ie){this.logger=P,this.store=ie,this.faInfoCircle=y.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enableLoop=!(!P.settings.swapServerUrl||""===P.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(P)})}onEnableServiceChanged(P){this.enableLoop=P.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((0,Ve.jS)({payload:{uiMessage:j.m6.UPDATE_LOOP_SETTINGS,service:j.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-loop-service-settings"]],viewQuery:function(P,ie){if(1&P&&e.Gf(or,7),2&P){let We;e.iGM(We=e.CRH())&&(ie.form=We.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(P,ie){if(1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ht){return ie.enableLoop=Ht})("change",function(Ht){return ie.onEnableServiceChanged(Ht)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.swapServerUrl=Ht}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),e.qZA(),e.YNc(22,aa,2,0,"mat-error",11),e.YNc(23,Ha,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ht){return ie.selNode.authentication.swapMacaroonPath=Ht}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(28,ir,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return ie.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return ie.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&P){const We=e.MAs(19);e.xp6(2),e.Q6J("icon",ie.faInfoCircle),e.xp6(13),e.Q6J("ngModel",ie.enableLoop),e.xp6(3),e.Q6J("ngModel",ie.selNode.settings.swapServerUrl)("required",ie.enableLoop)("disabled",!ie.enableLoop),e.xp6(4),e.Q6J("ngIf",!ie.selNode.settings.swapServerUrl&&ie.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==We||null==We.errors?null:We.errors.invalid)&&ie.enableLoop),e.xp6(2),e.Q6J("ngModel",ie.selNode.authentication.swapMacaroonPath)("required",ie.enableLoop)("disabled",!ie.enableLoop),e.xp6(3),e.Q6J("ngIf",!ie.selNode.authentication.swapMacaroonPath&&ie.enableLoop)}},directives:[_.xw,_.yH,J.$V,V.BN,Ie._Y,Ie.JL,Ie.F,_.Wh,Ni.Rr,we.h,Ie.JJ,Ie.On,ut.KE,Yt.Nt,Ie.Fj,Ie.Q7,ut.bx,X.O5,ut.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})();const Yr=["form"];function Nr(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function Br(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function Sa(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Xa=(()=>{class G{constructor(P,ie){this.logger=P,this.store=ie,this.faInfoCircle=y.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enableBoltz=!(!P.settings.boltzServerUrl||""===P.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(P)})}onEnableServiceChanged(P){this.enableBoltz=P.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((0,Ve.jS)({payload:{uiMessage:j.m6.UPDATE_BOLTZ_SETTINGS,service:j.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}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(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(P,ie){if(1&P&&e.Gf(Yr,7),2&P){let We;e.iGM(We=e.CRH())&&(ie.form=We.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(P,ie){if(1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ht){return ie.enableBoltz=Ht})("change",function(Ht){return ie.onEnableServiceChanged(Ht)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ht){return ie.serverUrl=Ht}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),e.qZA(),e.YNc(22,Nr,2,0,"mat-error",11),e.YNc(23,Br,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ht){return ie.macaroonPath=Ht}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(28,Sa,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return ie.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return ie.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&P){const We=e.MAs(19);e.xp6(2),e.Q6J("icon",ie.faInfoCircle),e.xp6(13),e.Q6J("ngModel",ie.enableBoltz),e.xp6(3),e.Q6J("ngModel",ie.serverUrl)("required",ie.enableBoltz)("disabled",!ie.enableBoltz),e.xp6(4),e.Q6J("ngIf",(!ie.serverUrl||""===ie.serverUrl.trim())&&ie.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==We||null==We.errors?null:We.errors.invalid)&&ie.enableBoltz),e.xp6(2),e.Q6J("ngModel",ie.macaroonPath)("required",ie.enableBoltz)("disabled",!ie.enableBoltz),e.xp6(3),e.Q6J("ngIf",!ie.macaroonPath&&ie.enableBoltz)}},directives:[_.xw,_.yH,J.$V,V.BN,Ie._Y,Ie.JL,Ie.F,_.Wh,Ni.Rr,we.h,Ie.JJ,Ie.On,ut.KE,Yt.Nt,Ie.Fj,Ie.Q7,ut.bx,X.O5,ut.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})(),Xn=(()=>{class G{constructor(){}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(P,ie){1&P&&e._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),G})();var $e=p(2615),Et=p(9107),Je=p(6087),kt=p(4847),Xt=p(2075),Mi=p(5899);function Pi(G,Le){if(1&G&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P),e.xp6(1),e.Oqu(ie.getLabel(P))}}function en(G,Le){1&G&&e._UZ(0,"mat-progress-bar",38)}function nr(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function Bn(G,Le){if(1&G&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Oqu(ie.LoopStateEnum[null==P?null:P.state])}}function It(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function ci(G,Le){if(1&G&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==P?null:P.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function vt(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function jt(G,Le){if(1&G&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==P?null:P.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function Oi(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function je(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.amt))}}function Ye(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function Fe(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.cost_server))}}function At(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function wi(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.cost_offchain))}}function Gi(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function Un(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==P?null:P.cost_onchain)," ")}}function br(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const Fa=function(G){return{width:G}};function xa(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Fa,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.htlc_address)}}function Ea(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function Fi(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Fa,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.id)}}function jn(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function Hs(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Fa,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.id_bytes)}}function Er(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){return e.CHM(P),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function to(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(We){const Ci=e.CHM(P).$implicit;return e.oxw().onSwapClick(Ci,We)}),e._uU(2,"View Info"),e.qZA()()}}function gs(G,Le){if(1&G&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.emptyTableMessage)}}function Ta(G,Le){if(1&G&&(e.TgZ(0,"td",51),e.YNc(1,gs,2,1,"p",52),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=P.listSwaps&&P.listSwaps.data)||(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)<1)}}const Ls=function(G){return{"display-none":G}};function Ds(G,Le){if(1&G&&e._UZ(0,"tr",53),2&G){const P=e.oxw();e.Q6J("ngClass",e.VKq(1,Ls,(null==P.listSwaps?null:P.listSwaps.data)&&(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)>0))}}function Fs(G,Le){1&G&&e._UZ(0,"tr",54)}function zs(G,Le){1&G&&e._UZ(0,"tr",55)}const Vs=function(){return["all"]},as=function(G){return{"overflow-auto error-border":G,"overflow-auto":!0}},Ur=function(){return["no_swap"]};let ka=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji){this.logger=P,this.commonService=ie,this.store=We,this.loopService=Ht,this.datePipe=Ci,this.camelCaseWithReplace=ji,this.selectedSwapType=j.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=j.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:j.IV,sortBy:"initiation_time",sortOrder:j.Pi.DESCENDING},this.LoopStateEnum=j.Fq,this.faHistory=y.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Xt.by([]),this.selFilter="",this.pageSize=j.IV,this.pageSizeOptions=j.TJ,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Sr.Pr).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{var ie,We;this.tableSetting=(null===(ie=P.pageSettings.find(Ht=>Ht.pageId===this.PAGE_ID))||void 0===ie?void 0:ie.tables.find(Ht=>Ht.tableId===this.tableSetting.tableId))||(null===(We=j.gK.find(Ht=>Ht.pageId===this.PAGE_ID))||void 0===We?void 0:We.tables.find(Ht=>Ht.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:j.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(P){this.swapCaption=this.selectedSwapType===j.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(P){const ie=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(We=>We.column===P);return ie?ie.label?ie.label:this.camelCaseWithReplace.transform(ie.column,"_"):this.commonService.titleCase(P)}setFilterPredicate(){this.listSwaps.filterPredicate=(P,ie)=>{var We;let Ht="";switch(this.selFilterBy){case"all":Ht=JSON.stringify(P).toLowerCase();break;case"state":Ht=(null==P?void 0:P.state)?this.LoopStateEnum[null==P?void 0:P.state]:"";break;case"initiation_time":case"last_update_time":Ht=(null===(We=this.datePipe.transform(new Date((P[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm"))||void 0===We?void 0:We.toLowerCase())||"";break;default:Ht=void 0===P[this.selFilterBy]?"":"string"==typeof P[this.selFilterBy]?P[this.selFilterBy].toLowerCase():"boolean"==typeof P[this.selFilterBy]?P[this.selFilterBy]?"yes":"no":P[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===Ht.indexOf(ie):Ht.includes(ie)}}onSwapClick(P,ie){var We,Ht;this.loopService.getSwap((null===(Ht=null===(We=P.id_bytes)||void 0===We?void 0:We.replace(/\//g,"_"))||void 0===Ht?void 0:Ht.replace(/\+/g,"-"))||"").pipe((0,x.R)(this.unSubs[1])).subscribe(Ci=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:j.Fq[Ci.state||""],title:"Status",width:50,type:j.Gi.STRING},{key:"amt",value:Ci.amt,title:"Amount (Sats)",width:50,type:j.Gi.NUMBER}],[{key:"initiation_time",value:(Ci.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:j.Gi.DATE_TIME},{key:"last_update_time",value:(Ci.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:j.Gi.DATE_TIME}],[{key:"cost_server",value:Ci.cost_server,title:"Server Cost (Sats)",width:33,type:j.Gi.NUMBER},{key:"cost_offchain",value:Ci.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:j.Gi.NUMBER},{key:"cost_onchain",value:Ci.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:j.Gi.NUMBER}],[{key:"id_bytes",value:Ci.id_bytes,title:"ID",width:100,type:j.Gi.STRING}],[{key:"htlc_address",value:Ci.htlc_address,title:"HTLC Address",width:100,type:j.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(P){var ie;this.listSwaps=new Xt.by([...P]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(We,Ht)=>We[Ht]&&isNaN(We[Ht])?We[Ht].toLocaleLowerCase():We[Ht]?+We[Ht]:null,null===(ie=this.listSwaps.sort)||void 0===ie||ie.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===j.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(Et.W),e.Y36(X.uU),e.Y36(ia.D3))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-swaps"]],viewQuery:function(P,ie){if(1&P&&(e.Gf(kt.YE,5),e.Gf(Je.NW,5)),2&P){let We;e.iGM(We=e.CRH())&&(ie.sort=We.first),e.iGM(We=e.CRH())&&(ie.paginator=We.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Je.ye,useValue:(0,j.pt)("Swaps")}]),e.TTD],decls:56,vars:18,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","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","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),e.NdJ("ngModelChange",function(Ht){return ie.selFilterBy=Ht})("selectionChange",function(){return ie.selFilter="",ie.applyFilter()}),e.YNc(9,Pi,2,2,"mat-option",8),e.qZA()(),e.TgZ(10,"mat-form-field",6)(11,"input",9),e.NdJ("ngModelChange",function(Ht){return ie.selFilter=Ht})("input",function(){return ie.applyFilter()})("keyup",function(){return ie.applyFilter()}),e.qZA()()()(),e.TgZ(12,"div",10)(13,"div",11),e.YNc(14,en,1,0,"mat-progress-bar",12),e.TgZ(15,"table",13,14),e.ynx(17,15),e.YNc(18,nr,2,0,"th",16),e.YNc(19,Bn,2,1,"td",17),e.BQk(),e.ynx(20,18),e.YNc(21,It,2,0,"th",16),e.YNc(22,ci,3,4,"td",17),e.BQk(),e.ynx(23,19),e.YNc(24,vt,2,0,"th",16),e.YNc(25,jt,3,4,"td",17),e.BQk(),e.ynx(26,20),e.YNc(27,Oi,2,0,"th",21),e.YNc(28,je,4,3,"td",17),e.BQk(),e.ynx(29,22),e.YNc(30,Ye,2,0,"th",21),e.YNc(31,Fe,4,3,"td",17),e.BQk(),e.ynx(32,23),e.YNc(33,At,2,0,"th",21),e.YNc(34,wi,4,3,"td",17),e.BQk(),e.ynx(35,24),e.YNc(36,Gi,2,0,"th",21),e.YNc(37,Un,4,3,"td",17),e.BQk(),e.ynx(38,25),e.YNc(39,br,2,0,"th",16),e.YNc(40,xa,4,4,"td",17),e.BQk(),e.ynx(41,26),e.YNc(42,Ea,2,0,"th",16),e.YNc(43,Fi,4,4,"td",17),e.BQk(),e.ynx(44,27),e.YNc(45,jn,2,0,"th",16),e.YNc(46,Hs,4,4,"td",17),e.BQk(),e.ynx(47,28),e.YNc(48,Er,6,0,"th",29),e.YNc(49,to,3,0,"td",30),e.BQk(),e.ynx(50,31),e.YNc(51,Ta,2,1,"td",32),e.BQk(),e.YNc(52,Ds,1,3,"tr",33),e.YNc(53,Fs,1,0,"tr",34),e.YNc(54,zs,1,0,"tr",35),e.qZA(),e._UZ(55,"mat-paginator",36),e.qZA()()()),2&P&&(e.xp6(3),e.Q6J("icon",ie.faHistory),e.xp6(2),e.hij("",ie.swapCaption," History"),e.xp6(3),e.Q6J("ngModel",ie.selFilterBy),e.xp6(1),e.Q6J("ngForOf",e.DdM(14,Vs).concat(ie.displayedColumns.slice(0,-1))),e.xp6(2),e.Q6J("ngModel",ie.selFilter),e.xp6(3),e.Q6J("ngIf",!0===ie.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",ie.listSwaps)("ngClass",e.VKq(15,as,"error"===ie.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(17,Ur)),e.xp6(1),e.Q6J("matHeaderRowDef",ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ie.displayedColumns),e.xp6(1),e.Q6J("pageSize",ie.pageSize)("pageSizeOptions",ie.pageSizeOptions)("showFirstLastButtons",ie.screenSize!==ie.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,V.BN,ut.KE,Oe.gD,Ie.JJ,Ie.On,X.sg,ce.ey,Yt.Nt,Ie.Fj,J.$V,X.O5,Mi.pW,Xt.BZ,kt.YE,X.mk,In.oO,Xt.w1,Xt.fO,Xt.ge,kt.nU,Xt.Dz,Xt.ev,X.PC,In.Zl,Oe.$L,Te.lW,Xt.mD,Xt.yh,Xt.Ke,Xt.Q2,Xt.as,Xt.XQ,Xt.nj,Xt.Gk,Je.NW],pipes:[X.uU,X.JJ],styles:[""]}),G})();const yt=function(G){return["../",G]};function oe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().onSelectedIndexChange(Ht)}),e._uU(1),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("active",ie.activeTab.link===P.link)("routerLink",e.VKq(3,yt,P.link)),e.xp6(1),e.Oqu(P.name)}}let pe=(()=>{class G{constructor(P,ie,We){this.router=P,this.loopService=ie,this.store=We,this.faInfinity=y.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=j.$I,this.selectedSwapType=j.$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 P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeTab=P||this.links[0],this.selectedSwapType=P&&"loopin"===P.link?j.$I.LOOP_IN:j.$I.LOOP_OUT,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeTab=We||this.links[0],this.selectedSwapType=We&&"loopin"===We.link?j.$I.LOOP_IN:j.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,x.R)(this.unSubs[1])).subscribe({next:ie=>{var We;this.flgLoading[0]=!1,this.storedSwaps=ie,this.filteredSwaps=null===(We=this.storedSwaps)||void 0===We?void 0:We.filter(Ht=>Ht.type===this.selectedSwapType)},error:ie=>{this.flgLoading[0]="error",this.emptyTableMessage=ie.message?ie.message:"No loop "+(this.selectedSwapType===j.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(P){var ie;this.selectedSwapType="loopin"===P.link?j.$I.LOOP_IN:j.$I.LOOP_OUT,this.filteredSwaps=null===(ie=this.storedSwaps)||void 0===ie?void 0:ie.filter(We=>We.type===this.selectedSwapType)}onLoop(P){P===j.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,x.R)(this.unSubs[2])).subscribe({next:ie=>{this.store.dispatch((0,Ve.qR)({payload:{data:{minQuote:ie[0],maxQuote:ie[1],direction:P,component:$e.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,x.R)(this.unSubs[3])).subscribe({next:ie=>{this.store.dispatch((0,Ve.qR)({payload:{data:{minQuote:ie[0],maxQuote:ie[1],direction:P,component:$e.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(I.F0),e.Y36(Et.W),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Loop"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,oe,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return ie.onLoop(ie.selectedSwapType)}),e._uU(11),e.qZA()(),e._UZ(12,"rtl-swaps",9),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faInfinity),e.xp6(7),e.Q6J("ngForOf",ie.links),e.xp6(3),e.hij("Start ",ie.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",ie.selectedSwapType)("swapsData",ie.filteredSwaps)("flgLoading",ie.flgLoading)("emptyTableMessage",ie.emptyTableMessage))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,X.sg,H.Nj,I.rH,Te.lW,ka,_.yH],styles:[""]}),G})();var Ke=p(7772),Mt=p(1135),Vt=p(2843),ri=p(262),ni=p(2340),gi=p(1786);let ki=(()=>{class G{constructor(P,ie,We,Ht){this.httpClient=P,this.logger=ie,this.store=We,this.commonService=Ht,this.swapUrl="",this.swaps={},this.swapsChanged=new Mt.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ve.ac)({payload:j.m6.GET_BOLTZ_SWAPS})),this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,x.R)(this.unSubs[0])).subscribe({next:P=>{this.store.dispatch((0,Ve.uO)({payload:j.m6.GET_BOLTZ_SWAPS})),this.swaps=P,this.swapsChanged.next(this.swaps)},error:P=>this.swapsChanged.error(this.handleErrorWithAlert(j.m6.GET_BOLTZ_SWAPS,this.swapUrl,P))})}swapInfo(P){return this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/swapInfo/"+P,this.httpClient.get(this.swapUrl).pipe((0,ri.K)(ie=>(0,B.of)(this.handleErrorWithAlert(j.m6.NO_SPINNER,this.swapUrl,ie))))}serviceInfo(){return this.store.dispatch((0,Ve.ac)({payload:j.m6.GET_SERVICE_INFO})),this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,x.R)(this.unSubs[1]),(0,u.U)(P=>(this.store.dispatch((0,Ve.uO)({payload:j.m6.GET_SERVICE_INFO})),P)),(0,ri.K)(P=>(0,B.of)(this.handleErrorWithAlert(j.m6.GET_SERVICE_INFO,this.swapUrl,P))))}swapOut(P,ie){const We={amount:P,address:ie};return this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,We).pipe((0,ri.K)(Ht=>this.handleErrorWithoutAlert("Swap Out for Address: "+ie,j.m6.NO_SPINNER,Ht)))}swapIn(P){const ie={amount:P};return this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,ie).pipe((0,ri.K)(We=>this.handleErrorWithoutAlert("Swap In for Amount: "+P,j.m6.NO_SPINNER,We)))}handleErrorWithoutAlert(P,ie,We){let Ht="";return this.logger.error("ERROR IN: "+P+"\n"+JSON.stringify(We)),this.store.dispatch((0,Ve.uO)({payload:ie})),401===We.status?(Ht="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ve.kS)())):503===We.status?(Ht="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ve.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:We.status,message:"Unable to Connect to Boltz Server",URL:P},component:gi.H}}}))):Ht=this.commonService.extractErrorMessage(We),(0,Vt._)(()=>new Error(Ht))}handleErrorWithAlert(P,ie,We){let Ht="";if(401===We.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ve.kS)())),this.logger.error(We),this.store.dispatch((0,Ve.uO)({payload:P})),401===We.status)Ht="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ve.kS)());else if(503===We.status)Ht="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:We.status,message:"Unable to Connect to Boltz Server",URL:ie},component:gi.H}}}))},100);else{Ht=this.commonService.extractErrorMessage(We);const Ci=We.error&&We.error.error&&We.error.error.code?We.error.error.code:We.error&&We.error.code?We.error.code:We.code?We.code:We.status;setTimeout(()=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.ERROR,alertTitle:"ERROR",message:{code:Ci,message:Ht,URL:ie},component:gi.H}}}))},100)}return{message:Ht}}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.LFG(M.eN),e.LFG(Me.mQ),e.LFG(C.yh),e.LFG(fi.v))},G.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac}),G})(),$i=(()=>{class G{constructor(){this.serviceInfo={},this.direction=j.hc.SWAP_OUT,this.swapTypeEnum=j.hc}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&P&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==ie.serviceInfo||null==ie.serviceInfo.limits?null:ie.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==ie.serviceInfo||null==ie.serviceInfo.limits?null:ie.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==ie.serviceInfo||null==ie.serviceInfo.fees?null:ie.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,ie.direction===ie.swapTypeEnum.SWAP_OUT?null==ie.serviceInfo||null==ie.serviceInfo.fees||null==ie.serviceInfo.fees.miner?null:ie.serviceInfo.fees.miner.reverse:null==ie.serviceInfo||null==ie.serviceInfo.fees||null==ie.serviceInfo.fees.miner?null:ie.serviceInfo.fees.miner.normal)))},directives:[Ti.ib,_.yH,Ti.yz,Ti.yK,_.Wh,_.xw,Ge.d],pipes:[X.JJ],styles:[""]}),G})();function dn(G,Le){1&G&&e.GkF(0)}function An(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&G){const P=e.oxw();e.xp6(2),e.Oqu(null!=P.swapStatus&&P.swapStatus.error?null==P.swapStatus?null:P.swapStatus.error:"Unknown Error.")}}function Gn(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&G){const P=e.oxw();e.xp6(6),e.Oqu(null==P.swapStatus?null:P.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==P.swapStatus?null:P.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==P.swapStatus?null:P.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==P.swapStatus?null:P.swapStatus.lockupAddress)}}function En(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&G){const P=e.oxw();e.xp6(6),e.Oqu(null==P.swapStatus?null:P.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==P.swapStatus?null:P.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==P.swapStatus?null:P.swapStatus.address),e.xp6(7),e.Oqu(null==P.swapStatus?null:P.swapStatus.bip21)}}let kn=(()=>{class G{constructor(){this.swapStatus=null,this.direction=j.hc.SWAP_OUT,this.swapTypeEnum=j.hc}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275cmp=e.Xpm({type:G,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(P,ie){if(1&P&&(e.YNc(0,dn,1,0,"ng-container",0),e.YNc(1,An,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Gn,25,6,"ng-template",null,2,e.W1O),e.YNc(5,En,27,6,"ng-template",null,3,e.W1O)),2&P){const We=e.MAs(2),Ht=e.MAs(4),Ci=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=ie.swapStatus&&ie.swapStatus.error?We:ie.direction===ie.swapTypeEnum.SWAP_OUT?Ht:Ci)}},directives:[X.tP,_.xw,_.yH,_.Wh,Ge.d],pipes:[X.JJ],styles:[""]}),G})();var ar=p(113);function Rr(G,Le){1&G&&e.GkF(0)}const yr=function(G,Le){return{"small-svg":G,"large-svg":Le}};function oa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Xr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Mr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function jr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Zn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}let xr=(()=>{class G{constructor(P){this.commonService=P,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=j.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(P){2===P.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===P.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){if(1&P&&(e.YNc(0,Rr,1,0,"ng-container",0),e.YNc(1,oa,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Xr,19,5,"ng-template",null,2,e.W1O),e.YNc(5,Mr,19,5,"ng-template",null,3,e.W1O),e.YNc(7,jr,17,5,"ng-template",null,4,e.W1O),e.YNc(9,Zn,13,5,"ng-template",null,5,e.W1O)),2&P){const We=e.MAs(2),Ht=e.MAs(4),Ci=e.MAs(6),ji=e.MAs(8),hn=e.MAs(10);e.Q6J("ngTemplateOutlet",1===ie.stepNumber?We:2===ie.stepNumber?Ht:3===ie.stepNumber?Ci:4===ie.stepNumber?ji:hn)}},directives:[X.tP,_.xw,_.yH,_.Wh,X.mk,In.oO,N.n5,N.$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:[ar.l]}}),G})();function ja(G,Le){1&G&&e.GkF(0)}const la=function(G,Le){return{"small-svg":G,"large-svg":Le}};function ws(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Ka(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Aa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function _s(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function vs(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}let cn=(()=>{class G{constructor(P){this.commonService=P,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=j.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(P){2===P.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===P.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){if(1&P&&(e.YNc(0,ja,1,0,"ng-container",0),e.YNc(1,ws,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Ka,15,5,"ng-template",null,2,e.W1O),e.YNc(5,Aa,19,5,"ng-template",null,3,e.W1O),e.YNc(7,_s,17,5,"ng-template",null,4,e.W1O),e.YNc(9,vs,13,5,"ng-template",null,5,e.W1O)),2&P){const We=e.MAs(2),Ht=e.MAs(4),Ci=e.MAs(6),ji=e.MAs(8),hn=e.MAs(10);e.Q6J("ngTemplateOutlet",1===ie.stepNumber?We:2===ie.stepNumber?Ht:3===ie.stepNumber?Ci:4===ie.stepNumber?ji:hn)}},directives:[X.tP,_.xw,_.yH,_.Wh,X.mk,In.oO,N.n5,N.$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:[ar.l]}}),G})();const xn=["stepper"];function Tn(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.inputFormLabel)}}function $n(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function mr(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.minimal),".")}}function La(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.maximal),".")}}function Gr(G,Le){1&G&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function $a(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onSwap()}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw(2);e.xp6(1),e.hij("Initiate ",P.swapDirectionCaption,"")}}function ur(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(3);e.Oqu(P.addressFormLabel)}}function at(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function St(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,ur,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(We){return e.CHM(P),e.oxw(2).onAddressTypeChange(We)}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46),e._UZ(10,"input",47),e.YNc(11,at,2,0,"mat-error",24),e.qZA()(),e.TgZ(12,"div",25)(13,"button",48),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onSwap()}),e._uU(14),e.qZA()()()()}if(2&G){const P=e.oxw(2);e.Q6J("stepControl",P.addressFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.addressFormGroup),e.xp6(9),e.Q6J("required","external"===P.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==P.addressFormGroup.controls.address.errors?null:P.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",P.swapDirectionCaption,"")}}function wt(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.hij("",P.swapDirectionCaption," Status")}}function zt(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.swapStatus&&null!=P.swapStatus&&P.swapStatus.id?"check":"close")}}function $t(G,Le){1&G&&e._UZ(0,"div")}function pi(G,Le){1&G&&e._UZ(0,"mat-progress-bar",50)}function _i(G,Le){if(1&G&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.swapStatus&&P.swapStatus.error?P.swapDirectionCaption+" failed.":P.swapStatus&&P.swapStatus.id?P.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":P.swapDirectionCaption+" request placed successfully.")}}function Ii(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function zi(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){return e.CHM(P),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(P),e.oxw().onClose()}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(We){return e.CHM(P),e.oxw().stepSelectionChanged(We)}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,Tn,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21),e._UZ(22,"input",22),e.TgZ(23,"mat-hint"),e._uU(24),e.ALo(25,"number"),e.ALo(26,"number"),e.qZA(),e.TgZ(27,"span",23),e._uU(28,"Sats"),e.qZA(),e.YNc(29,$n,2,0,"mat-error",24),e.YNc(30,mr,3,3,"mat-error",24),e.YNc(31,La,3,3,"mat-error",24),e.qZA()(),e.TgZ(32,"div",25),e.YNc(33,Gr,2,0,"button",26),e.YNc(34,$a,2,1,"button",27),e.qZA()()(),e.YNc(35,St,15,6,"mat-step",28),e.TgZ(36,"mat-step",29)(37,"form",16),e.YNc(38,wt,1,1,"ng-template",17),e.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),e._uU(44),e.YNc(45,zt,2,1,"mat-icon",33),e.qZA()()(),e.YNc(46,$t,1,0,"div",34),e.qZA(),e.YNc(47,pi,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(48,_i,2,1,"h4",36),e.TgZ(49,"div",25),e.YNc(50,Ii,2,0,"button",37),e.qZA()()()(),e.TgZ(51,"div",38)(52,"button",39),e._uU(53,"Close"),e.qZA()()()()()()}if(2&G){const P=e.oxw(),ie=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",P.screenSize===P.screenSizeEnum.XS||P.screenSize===P.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(P.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",P.screenSize===P.screenSizeEnum.XS||P.screenSize===P.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",P.inputFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",P.serviceInfo)("direction",P.direction),e.xp6(3),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(25,30,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.minimal),"-",e.lcZ(26,32,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",P.statusFormGroup),e.xp6(1),e.Q6J("formGroup",P.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!P.swapStatus),e.xp6(4),e.Oqu(P.swapStatus?P.swapStatus.id?P.swapDirectionCaption+" request details":P.swapDirectionCaption+" error details":"Waiting for "+P.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",P.swapStatus),e.xp6(1),e.Q6J("ngIf",!P.swapStatus)("ngIfElse",ie),e.xp6(1),e.Q6J("ngIf",!P.swapStatus),e.xp6(1),e.Q6J("ngIf",P.swapStatus),e.xp6(2),e.Q6J("ngIf",P.swapStatus&&(P.swapStatus.error||!P.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function ln(G,Le){if(1&G&&e._UZ(0,"rtl-boltz-swap-status",53),2&G){const P=e.oxw();e.Q6J("swapStatus",P.swapStatus)("direction",P.direction)}}function nn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(We){return e.CHM(P),e.oxw(2).stepNumber=We}),e.qZA()}if(2&G){const P=e.oxw(2);e.Q6J("stepNumber",P.stepNumber)("animationDirection",P.animationDirection)}}function un(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(We){return e.CHM(P),e.oxw(2).stepNumber=We}),e.qZA()}if(2&G){const P=e.oxw(2);e.Q6J("stepNumber",P.stepNumber)("animationDirection",P.animationDirection)}}const Jn=function(G,Le){return{"dot-primary":G,"dot-primary-lighter":Le}};function rr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).onStepChanged(Ht)}),e._UZ(1,"p",72),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,Jn,ie.stepNumber===P,ie.stepNumber!==P))}}function ca(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onReadMore()}),e._uU(1,"Read More"),e.qZA()}}function ze(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function Se(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.flgShowInfo=!1,We.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function me(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.flgShowInfo=!1,We.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function qe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.onStepChanged(We.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function ct(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.onStepChanged(We.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const Pt=function(){return[1,2,3,4,5]};function qt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.flgShowInfo=!1,We.stepNumber=1}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,nn,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,un,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,rr,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,ca,2,0,"button",64),e.YNc(15,ze,2,0,"button",65),e.YNc(16,Se,2,0,"button",66),e.YNc(17,me,2,0,"button",67),e.YNc(18,qe,2,0,"button",68),e.YNc(19,ct,2,0,"button",69),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,Pt)),e.xp6(2),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",P.stepNumber<5),e.xp6(1),e.Q6J("ngIf",P.stepNumber>1&&P.stepNumber<5),e.xp6(1),e.Q6J("ngIf",P.stepNumber<5)}}let ai=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji,hn){this.dialogRef=P,this.data=ie,this.boltzService=We,this.formBuilder=Ht,this.decimalPipe=Ci,this.logger=ji,this.commonService=hn,this.faInfoCircle=y.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=j.hc,this.direction=j.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=j.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(){var P,ie,We;this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||j.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===j.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal,[Ie.kI.required,Ie.kI.min((null===(ie=this.serviceInfo.limits)||void 0===ie?void 0:ie.minimal)||0),Ie.kI.max((null===(We=this.serviceInfo.limits)||void 0===We?void 0:We.maximal)||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ie.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===j.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===j.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,x.R)(this.unSubs[2])).subscribe(P=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(P){"external"===P.value?(this.addressFormGroup.controls.address.setValidators([Ie.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(){var P,ie,We;if(!this.inputFormGroup.controls.amount.value||(null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal)&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||(null===(ie=this.serviceInfo.limits)||void 0===ie?void 0:ie.maximal)&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===j.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,null===(We=this.stepper.selected)||void 0===We||We.stepControl.setErrors(null),this.stepper.next(),this.direction===j.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,x.R)(this.unSubs[3])).subscribe({next:Ht=>{this.swapStatus=Ht,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ht=>{this.swapStatus={error:Ht},this.flgEditable=!0,this.logger.error(Ht)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,x.R)(this.unSubs[4])).subscribe({next:Ci=>{this.swapStatus=Ci,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ci=>{this.swapStatus={error:Ci},this.flgEditable=!0,this.logger.error(Ci)}})}stepSelectionChanged(P){switch(P.selectedIndex){case 0:default: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"}P.selectedIndex{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(Q.WI),e.Y36(ki),e.Y36(Ie.qu),e.Y36(X.JJ),e.Y36(Me.mQ),e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(P,ie){if(1&P&&e.Gf(xn,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.stepper=We.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-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-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-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-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-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-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-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-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-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(P,ie){1&P&&(e.YNc(0,zi,54,34,"div",0),e.YNc(1,ln,1,2,"ng-template",null,1,e.W1O),e.YNc(3,qt,20,11,"div",2)),2&P&&(e.Q6J("ngIf",!ie.flgShowInfo),e.xp6(3),e.Q6J("ngIf",ie.flgShowInfo))},directives:[X.O5,_.xw,_.yH,_.Wh,N.dk,Te.lW,N.dn,di.Vq,di.C0,Ie._Y,Ie.JL,Ie.sg,di.VY,$i,ut.KE,Yt.Nt,Ie.wV,Ie.Fj,we.h,Ie.JJ,Ie.u,Ie.Q7,ut.bx,ut.R9,ut.TO,di.Ic,mn.VQ,mn.U0,Ti.ib,Ti.yz,Ti.yK,ta.Hw,Mi.pW,Q.ZT,kn,xr,cn,X.sg,X.mk,In.oO],pipes:[X.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[Ke._]}}),G})();function Di(G,Le){if(1&G&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P),e.xp6(1),e.Oqu(ie.getLabel(P))}}function an(G,Le){1&G&&e._UZ(0,"mat-progress-bar",43)}function Pn(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function Cn(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Oqu(ie.swapStateEnum[null==P?null:P.status])}}function gr(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function hr(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.id)}}function ss(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}const za=function(G){return{width:G}};function Qo(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.claimAddress)}}function qo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function Da(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.lockupAddress)}}function Bs(G,Le){1&G&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function Kc(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.onchainAmount))}}function io(G,Le){1&G&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function W1(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.expectedAmount))}}function Jo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function Zl(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.error)}}function yl(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function Wl(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.privateKey)}}function mo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function Eo(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.preimage)}}function Xo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function bl(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.redeemScript)}}function Yl(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function To(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.invoice)}}function Qc(G,Le){1&G&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function qc(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.timeoutBlockHeight))}}function Zr(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function go(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.lockupTransactionId)}}function $o(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function Y1(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.claimTransactionId)}}function Va(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function Qa(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.refundTransactionId)}}function j1(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){return e.CHM(P),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function jl(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(We){const Ci=e.CHM(P).$implicit;return e.oxw().onSwapClick(Ci,We)}),e._uU(2,"View Info"),e.qZA()()}}function no(G,Le){if(1&G&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.emptyTableMessage)}}function Ao(G,Le){if(1&G&&(e.TgZ(0,"td",56),e.YNc(1,no,2,1,"p",57),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=P.listSwaps&&P.listSwaps.data)||(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)<1)}}const Ca=function(G){return{"display-none":G}};function Ss(G,Le){if(1&G&&e._UZ(0,"tr",58),2&G){const P=e.oxw();e.Q6J("ngClass",e.VKq(1,Ca,(null==P.listSwaps?null:P.listSwaps.data)&&(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)>0))}}function Lo(G,Le){1&G&&e._UZ(0,"tr",59)}function K1(G,Le){1&G&&e._UZ(0,"tr",60)}const Q1=function(){return["all"]},os=function(G){return{"overflow-auto error-border":G,"overflow-auto":!0}},es=function(){return["no_swap"]};let Jc=(()=>{class G{constructor(P,ie,We,Ht,Ci){this.logger=P,this.commonService=ie,this.store=We,this.boltzService=Ht,this.camelCaseWithReplace=Ci,this.selectedSwapType=j.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=j.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:j.IV,sortBy:"status",sortOrder:j.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:j.IV,sortBy:"status",sortOrder:j.Pi.DESCENDING},this.swapStateEnum=j.Qw,this.faHistory=y.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Xt.by([]),this.selFilter="",this.pageSize=j.IV,this.pageSizeOptions=j.TJ,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Sr.Pr).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{var ie,We,Ht,Ci;this.tableSettingSwapOut=(null===(ie=P.pageSettings.find(ji=>ji.pageId===this.PAGE_ID))||void 0===ie?void 0:ie.tables.find(ji=>ji.tableId===this.tableSettingSwapOut.tableId))||(null===(We=j.gK.find(ji=>ji.pageId===this.PAGE_ID))||void 0===We?void 0:We.tables.find(ji=>ji.tableId===this.tableSettingSwapOut.tableId)),this.tableSettingSwapIn=(null===(Ht=P.pageSettings.find(ji=>ji.pageId===this.PAGE_ID))||void 0===Ht?void 0:Ht.tables.find(ji=>ji.tableId===this.tableSettingSwapIn.tableId))||(null===(Ci=j.gK.find(ji=>ji.pageId===this.PAGE_ID))||void 0===Ci?void 0:Ci.tables.find(ji=>ji.tableId===this.tableSettingSwapIn.tableId)),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(P){P.selectedSwapType&&!P.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===j.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===j.hc.SWAP_IN?(this.displayedColumns=this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:j.IV):(this.displayedColumns=this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:j.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(P){const We=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===j.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(Ht=>Ht.column===P);return We?We.label?We.label:this.camelCaseWithReplace.transform(We.column,"_"):this.commonService.titleCase(P)}setFilterPredicate(){this.listSwaps.filterPredicate=(P,ie)=>{let We="";switch(this.selFilterBy){case"all":We=JSON.stringify(P).toLowerCase();break;case"status":We=(null==P?void 0:P.status)?this.swapStateEnum[null==P?void 0:P.status]:"";break;default:We=void 0===P[this.selFilterBy]?"":"string"==typeof P[this.selFilterBy]?P[this.selFilterBy].toLowerCase():"boolean"==typeof P[this.selFilterBy]?P[this.selFilterBy]?"yes":"no":P[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===We.indexOf(ie):We.includes(ie)}}onSwapClick(P,ie){this.boltzService.swapInfo(P.id||"").pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:j.Qw[(We=this.selectedSwapType===j.hc.SWAP_IN?We.swap:We.reverseSwap).status],title:"Status",width:50,type:j.Gi.STRING},{key:"id",value:We.id,title:"ID",width:50,type:j.Gi.STRING}],[{key:"amount",value:We.onchainAmount?We.onchainAmount:We.expectedAmount?We.expectedAmount:0,title:We.onchainAmount?"Onchain Amount (Sats)":We.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:j.Gi.NUMBER},{key:"timeoutBlockHeight",value:We.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:j.Gi.NUMBER}],[{key:"address",value:We.claimAddress?We.claimAddress:We.lockupAddress?We.lockupAddress:"",title:We.claimAddress?"Claim Address":We.lockupAddress?"Lockup Address":"Address",width:100,type:j.Gi.STRING}],[{key:"invoice",value:We.invoice,title:"Invoice",width:100,type:j.Gi.STRING}],[{key:"privateKey",value:We.privateKey,title:"Private Key",width:100,type:j.Gi.STRING}],[{key:"preimage",value:We.preimage,title:"Preimage",width:100,type:j.Gi.STRING}],[{key:"redeemScript",value:We.redeemScript,title:"Redeem Script",width:100,type:j.Gi.STRING}],[{key:"lockupTransactionId",value:We.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:j.Gi.STRING},{key:"transactionId",value:We.claimTransactionId?We.claimTransactionId:We.refundTransactionId?We.refundTransactionId:"",title:We.claimTransactionId?"Claim Transaction ID":We.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:j.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(P){var ie,We;this.listSwaps=new Xt.by(P?[...P]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ht,Ci)=>Ht[Ci]&&isNaN(Ht[Ci])?Ht[Ci].toLocaleLowerCase():Ht[Ci]?+Ht[Ci]:null,this.selectedSwapType===j.hc.SWAP_IN?null===(ie=this.listSwaps.sort)||void 0===ie||ie.sort({id:this.tableSettingSwapIn.sortBy,start:this.tableSettingSwapIn.sortOrder,disableClear:!0}):null===(We=this.listSwaps.sort)||void 0===We||We.sort({id:this.tableSettingSwapOut.sortBy,start:this.tableSettingSwapOut.sortOrder,disableClear:!0}),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===j.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(ki),e.Y36(ia.D3))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-boltz-swaps"]],viewQuery:function(P,ie){if(1&P&&(e.Gf(kt.YE,5),e.Gf(Je.NW,5)),2&P){let We;e.iGM(We=e.CRH())&&(ie.sort=We.first),e.iGM(We=e.CRH())&&(ie.paginator=We.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Je.ye,useValue:(0,j.pt)("Swaps")}]),e.TTD],decls:71,vars:18,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","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","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),e.NdJ("ngModelChange",function(Ht){return ie.selFilterBy=Ht})("selectionChange",function(){return ie.selFilter="",ie.applyFilter()}),e.YNc(9,Di,2,2,"mat-option",8),e.qZA()(),e.TgZ(10,"mat-form-field",6)(11,"input",9),e.NdJ("ngModelChange",function(Ht){return ie.selFilter=Ht})("input",function(){return ie.applyFilter()})("keyup",function(){return ie.applyFilter()}),e.qZA()()()(),e.TgZ(12,"div",10)(13,"div",11),e.YNc(14,an,1,0,"mat-progress-bar",12),e.TgZ(15,"table",13,14),e.ynx(17,15),e.YNc(18,Pn,2,0,"th",16),e.YNc(19,Cn,2,1,"td",17),e.BQk(),e.ynx(20,18),e.YNc(21,gr,2,0,"th",16),e.YNc(22,hr,2,1,"td",17),e.BQk(),e.ynx(23,19),e.YNc(24,ss,2,0,"th",16),e.YNc(25,Qo,4,4,"td",17),e.BQk(),e.ynx(26,20),e.YNc(27,qo,2,0,"th",16),e.YNc(28,Da,4,4,"td",17),e.BQk(),e.ynx(29,21),e.YNc(30,Bs,2,0,"th",22),e.YNc(31,Kc,4,3,"td",17),e.BQk(),e.ynx(32,23),e.YNc(33,io,2,0,"th",22),e.YNc(34,W1,4,3,"td",17),e.BQk(),e.ynx(35,24),e.YNc(36,Jo,2,0,"th",16),e.YNc(37,Zl,4,4,"td",17),e.BQk(),e.ynx(38,25),e.YNc(39,yl,2,0,"th",16),e.YNc(40,Wl,4,4,"td",17),e.BQk(),e.ynx(41,26),e.YNc(42,mo,2,0,"th",16),e.YNc(43,Eo,4,4,"td",17),e.BQk(),e.ynx(44,27),e.YNc(45,Xo,2,0,"th",16),e.YNc(46,bl,4,4,"td",17),e.BQk(),e.ynx(47,28),e.YNc(48,Yl,2,0,"th",16),e.YNc(49,To,4,4,"td",17),e.BQk(),e.ynx(50,29),e.YNc(51,Qc,2,0,"th",22),e.YNc(52,qc,4,3,"td",17),e.BQk(),e.ynx(53,30),e.YNc(54,Zr,2,0,"th",16),e.YNc(55,go,2,1,"td",17),e.BQk(),e.ynx(56,31),e.YNc(57,$o,2,0,"th",16),e.YNc(58,Y1,2,1,"td",17),e.BQk(),e.ynx(59,32),e.YNc(60,Va,2,0,"th",16),e.YNc(61,Qa,2,1,"td",17),e.BQk(),e.ynx(62,33),e.YNc(63,j1,6,0,"th",34),e.YNc(64,jl,3,0,"td",35),e.BQk(),e.ynx(65,36),e.YNc(66,Ao,2,1,"td",37),e.BQk(),e.YNc(67,Ss,1,3,"tr",38),e.YNc(68,Lo,1,0,"tr",39),e.YNc(69,K1,1,0,"tr",40),e.qZA(),e._UZ(70,"mat-paginator",41),e.qZA()()()),2&P&&(e.xp6(3),e.Q6J("icon",ie.faHistory),e.xp6(2),e.hij("",ie.swapCaption," History"),e.xp6(3),e.Q6J("ngModel",ie.selFilterBy),e.xp6(1),e.Q6J("ngForOf",e.DdM(14,Q1).concat(ie.displayedColumns.slice(0,-1))),e.xp6(2),e.Q6J("ngModel",ie.selFilter),e.xp6(3),e.Q6J("ngIf",!0===ie.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",ie.listSwaps)("ngClass",e.VKq(15,os,"error"===ie.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(17,es)),e.xp6(1),e.Q6J("matHeaderRowDef",ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ie.displayedColumns),e.xp6(1),e.Q6J("pageSize",ie.pageSize)("pageSizeOptions",ie.pageSizeOptions)("showFirstLastButtons",ie.screenSize!==ie.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,V.BN,ut.KE,Oe.gD,Ie.JJ,Ie.On,X.sg,ce.ey,Yt.Nt,Ie.Fj,J.$V,X.O5,Mi.pW,Xt.BZ,kt.YE,X.mk,In.oO,Xt.w1,Xt.fO,Xt.ge,kt.nU,Xt.Dz,Xt.ev,X.PC,In.Zl,Oe.$L,Te.lW,Xt.mD,Xt.yh,Xt.Ke,Xt.Q2,Xt.as,Xt.XQ,Xt.nj,Xt.Gk,Je.NW],pipes:[X.JJ],styles:[""]}),G})();const xl=function(G){return["../",G]};function el(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().onSelectedIndexChange(Ht)}),e._uU(1),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("active",ie.activeTab.link===P.link)("routerLink",e.VKq(3,xl,P.link)),e.xp6(1),e.Oqu(P.name)}}let Cl=(()=>{class G{constructor(P,ie,We){this.router=P,this.store=ie,this.boltzService=We,this.swapTypeEnum=j.hc,this.selectedSwapType=j.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 P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeTab=P||this.links[0],this.selectedSwapType=P&&"swapin"===P.link?j.hc.SWAP_IN:j.hc.SWAP_OUT,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeTab=We||this.links[0],this.selectedSwapType=We&&"swapin"===We.link?j.hc.SWAP_IN:j.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,x.R)(this.unSubs[1])).subscribe({next:ie=>{this.swaps=ie,this.swapsData=this.selectedSwapType===j.hc.SWAP_IN&&ie.swaps?ie.swaps:this.selectedSwapType===j.hc.SWAP_OUT&&ie.reverseSwaps?ie.reverseSwaps:[],this.flgLoading[0]=!1},error:ie=>{this.flgLoading[0]="error",this.emptyTableMessage=ie.message?ie.message:"No swap "+(this.selectedSwapType===j.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(P){"swapin"===P.link?(this.selectedSwapType=j.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=j.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(P){this.boltzService.serviceInfo().pipe((0,x.R)(this.unSubs[2])).subscribe({next:ie=>{this.store.dispatch((0,Ve.qR)({payload:{data:{serviceInfo:ie,direction:P,component:ai}}}))}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(I.F0),e.Y36(C.yh),e.Y36(ki))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,el,2,5,"div",11),e.qZA(),e.TgZ(14,"div",12)(15,"button",13),e.NdJ("click",function(){return ie.onSwap(ie.selectedSwapType)}),e._uU(16),e.qZA()(),e._UZ(17,"rtl-boltz-swaps",14),e.qZA()()()),2&P&&(e.xp6(13),e.Q6J("ngForOf",ie.links),e.xp6(3),e.hij("Start ",ie.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",ie.selectedSwapType)("swapsData",ie.swapsData)("flgLoading",ie.flgLoading)("emptyTableMessage",ie.emptyTableMessage))},directives:[_.xw,_.Wh,N.a8,N.dn,_.yH,H.BU,X.sg,H.Nj,I.rH,Te.lW,Jc],styles:[""]}),G})();class _r{constructor(Le){this.help=Le}}function tl(G,Le){if(1&G&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&G){const P=e.oxw().$implicit,ie=e.oxw();e.xp6(3),e.Oqu(P.help.question),e.xp6(2),e.Q6J("innerHTML",P.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",ie.flgLoggedIn?P.help.link:"/login"),e.xp6(1),e.Oqu(ie.flgLoggedIn?P.help.linkCaption:"Login to go to the page")}}function ro(G,Le){if(1&G&&(e.TgZ(0,"div",6),e.YNc(1,tl,8,4,"mat-expansion-panel",7),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===P.help.lnImplementation||P.help.lnImplementation===ie.selNode.lnImplementation)}}let o3=(()=>{class G{constructor(P,ie){this.store=P,this.sessionService=ie,this.helpTopics=[],this.faQuestion=y.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.flgLoggedIn=!!P.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new _r({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:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new _r({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:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, 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:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new _r({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. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. 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:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new _r({question:"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:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"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:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. Vendor - Vendor of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new _r({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:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new _r({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:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new _r({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:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new _r({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:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" 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:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new _r({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new _r({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" 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. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/layout",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(Ae.m))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,ro,2,1,"div",5),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",ie.faQuestion),e.xp6(5),e.Q6J("ngForOf",ie.helpTopics))},directives:[_.xw,_.yH,_.Wh,V.BN,X.sg,X.O5,Ti.ib,Ti.yz,Ti.yK,Ti.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),G})();var Ml=p(9841);function Do(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let Kl=(()=>{class G{constructor(P,ie){this.dialogRef=P,this.store=ie,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ve.M6)({payload:{twoFAToken:this.token}}))}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,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-button","","color","primary","tabindex","4","type","submit"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return ie.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return ie.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"input",9),e.NdJ("ngModelChange",function(Ht){return ie.token=Ht}),e.qZA(),e.YNc(13,Do,2,0,"mat-error",10),e.qZA(),e.TgZ(14,"div",11)(15,"button",12),e._uU(16,"Verify Token"),e.qZA()()()()()()),2&P&&(e.xp6(12),e.Q6J("ngModel",ie.token),e.xp6(1),e.Q6J("ngIf",!ie.token))},directives:[_.xw,_.Wh,_.yH,N.dk,Te.lW,N.dn,Ie._Y,Ie.JL,Ie.F,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,X.O5,ut.TO],styles:[""]}),G})();function J1(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Xc(G,Le){if(1&G&&(e.TgZ(0,"p",21)(1,"mat-icon",22),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&G){const P=e.oxw();e.xp6(3),e.hij(" ",P.loginErrorMessage," ")}}const Ql=function(G){return{"padding-gap-large":G}},Es=function(G,Le){return{"font-size-200":G,"font-size-300":Le}};let ts=(()=>{class G{constructor(P,ie,We,Ht){this.logger=P,this.store=ie,this.rtlEffects=We,this.commonService=Ht,this.faUnlockAlt=y.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=j.cu,this.loginErrorMessage="",this.apiCallStatusEnum=j.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Ml.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,x.R)(this.unSubs[0])).subscribe(([P,ie])=>{this.loginErrorMessage="",P.status===j.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof P.message?JSON.stringify(P.message):P.message),this.logger.error(P.message)),ie.status===j.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof ie.message?JSON.stringify(ie.message):ie.message),this.logger.error(ie.message))}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.appConfig=P,this.logger.info(P)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Ve.qR)({payload:{maxWidth:"35rem",data:{component:Kl}}})),this.rtlEffects.closeAlert.pipe((0,fe.q)(1)).subscribe(P=>{P&&this.store.dispatch((0,Ve.x4)({payload:{password:Ce(this.password),defaultPassword:j.kO.includes(this.password.toLowerCase()),twoFAToken:P.twoFAToken}}))})):this.store.dispatch((0,Ve.x4)({payload:{password:Ce(this.password),defaultPassword:j.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh),e.Y36(tt.V),e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,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","row","fxFlex","45","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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),e.NdJ("ngModelChange",function(Ht){return ie.password=Ht}),e.qZA(),e.TgZ(16,"mat-icon",15),e.NdJ("click",function(){return ie.flgShow=!ie.flgShow}),e._uU(17),e.qZA(),e.YNc(18,J1,2,0,"mat-error",16),e.qZA(),e.YNc(19,Xc,4,1,"p",17),e.TgZ(20,"div",18)(21,"button",19),e.NdJ("click",function(){return ie.resetData()}),e._uU(22,"Clear"),e.qZA(),e.TgZ(23,"button",20),e.NdJ("click",function(){return ie.onLogin()}),e._uU(24,"Login"),e.qZA()()()()()()()()()),2&P&&(e.xp6(6),e.Q6J("ngClass",e.VKq(7,Ql,ie.screenSize===ie.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(9,Es,ie.screenSize===ie.screenSizeEnum.XS,ie.screenSize!==ie.screenSizeEnum.XS)),e.xp6(7),e.Q6J("type",ie.flgShow?"text":"password")("ngModel",ie.password),e.xp6(2),e.Oqu(ie.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!ie.password),e.xp6(1),e.Q6J("ngIf",""!==ie.loginErrorMessage))},directives:[_.xw,_.yH,_.Wh,N.a8,X.mk,In.oO,N.dk,N.n5,N.dn,Ie._Y,Ie.JL,Ie.F,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,ta.Hw,ut.R9,X.O5,ut.TO,Te.lW],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}"]}),G})();var ys=p(9442);let Io=(()=>{class G{constructor(P,ie){this.activatedRoute=P,this.router=ie,this.error={errorCode:"",errorMessage:""},this.faTimes=y.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,x.R)(this.unsubs[0])).subscribe(P=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(I.gz),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return ie.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&P&&(e.xp6(4),e.Q6J("icon",ie.faTimes),e.xp6(2),e.hij("Error ",ie.error.errorCode,""),e.xp6(3),e.Oqu(ie.error.errorMessage))},directives:[_.xw,_.yH,_.Wh,N.a8,N.dk,N.n5,V.BN,N.dn,Te.lW],encapsulation:2}),G})();var Kr=p(1643),il=p(8104),Oo=p(6534),ql=p(9843);function Jl(G,Le){1&G&&e._UZ(0,"span",16)}function Ia(G,Le){1&G&&e._UZ(0,"span",17)}function nl(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(2).enableOffers=We})("change",function(){return e.CHM(P),e.oxw(2).onUpdateFeature()}),e._uU(28),e.qZA()()}if(2&G){const P=e.oxw(2);e.xp6(3),e.Q6J("icon",P.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",P.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",P.enableOffers),e.xp6(1),e.hij("Enable Offers ",P.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function X1(G,Le){if(1&G&&(e.TgZ(0,"div")(1,"div",28),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"experimental-dual-fund"),e.qZA(),e._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(8,"strong")(9,"a",29),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about Core Lightning Liquidity Ads."),e.qZA()()()),2&G){const P=e.oxw(3);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle)}}function wl(G,Le){if(1&G&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",e.lcZ(2,2,P.id)," ")}}function Xl(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(4);e.xp6(1),e.hij("",P.selPolicyType.placeholder," is required.")}}function ao(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(4);e.xp6(1),e.AsE("",P.selPolicyType.placeholder," must be greater than or equal to ",P.selPolicyType.min,".")}}function Ba(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(4);e.xp6(1),e.AsE("",P.selPolicyType.placeholder," must be less than or equal to ",P.selPolicyType.max,".")}}function $l(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function ec(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function $c(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function Po(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const tc=function(G,Le){return{"alert-danger":G,"alert-info":Le}};function l3(G,Le){if(1&G&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&G){const P=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,tc,!!P.updateMsg.error,!!P.updateMsg.data)),e.xp6(1),e.hij(" ",P.updateMsg.error&&""!==P.updateMsg.error?"Error: "+P.updateMsg.error||0:P.updateMsg.data&&""!==P.updateMsg.data?P.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function ic(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).selPolicyType=We})("selectionChange",function(){return e.CHM(P),e.oxw(3).policyMod=null}),e.YNc(8,wl,3,4,"mat-option",35),e.qZA()(),e.TgZ(9,"mat-form-field",36)(10,"input",37,38),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).policyMod=We}),e.qZA(),e.TgZ(12,"mat-hint"),e._uU(13),e.qZA(),e.YNc(14,Xl,2,1,"mat-error",26),e.YNc(15,ao,2,2,"mat-error",26),e.YNc(16,Ba,2,2,"mat-error",26),e.qZA()(),e.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).lease_fee_base_sat=We}),e.qZA(),e.YNc(20,$l,2,0,"mat-error",26),e.qZA(),e.TgZ(21,"mat-form-field",36)(22,"input",40),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).lease_fee_basis=We}),e.qZA(),e.YNc(23,ec,2,0,"mat-error",26),e.qZA()(),e.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).channelFeeMaxBaseSat=We}),e.qZA(),e.YNc(27,$c,2,0,"mat-error",26),e.qZA(),e.TgZ(28,"mat-form-field",36)(29,"input",42),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).channelFeeMaxProportional=We}),e.qZA(),e.YNc(30,Po,2,0,"mat-error",26),e.qZA()(),e.YNc(31,l3,3,5,"h4",43),e.TgZ(32,"div",44)(33,"button",45),e.NdJ("click",function(){return e.CHM(P),e.oxw(3).onResetPolicy()}),e._uU(34,"Reset"),e.qZA(),e.TgZ(35,"button",46),e.NdJ("click",function(){return e.CHM(P),e.oxw(3).onUpdateFundingPolicy()}),e._uU(36,"Update"),e.qZA()()()}if(2&G){const P=e.oxw(3);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle),e.xp6(5),e.Q6J("ngModel",P.selPolicyType),e.xp6(1),e.Q6J("ngForOf",P.policyTypes),e.xp6(2),e.Q6J("ngModel",P.policyMod)("placeholder",P.selPolicyType.placeholder)("step","fixed"===P.selPolicyType.id?1e3:10)("min",P.selPolicyType.min)("max",P.selPolicyType.max),e.xp6(3),e.lnq("",P.selPolicyType.placeholder," should be between ",P.selPolicyType.min," and ",P.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!P.policyMod),e.xp6(1),e.Q6J("ngIf",P.policyModP.selPolicyType.max),e.xp6(3),e.Q6J("ngModel",P.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!P.lease_fee_base_sat),e.xp6(2),e.Q6J("ngModel",P.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!P.lease_fee_basis),e.xp6(3),e.Q6J("ngModel",P.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!P.channelFeeMaxBaseSat),e.xp6(2),e.Q6J("ngModel",P.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!P.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",P.flgUpdateCalled)}}function _o(G,Le){if(1&G&&(e.TgZ(0,"form",18,4),e.YNc(2,X1,12,1,"div",26),e.YNc(3,ic,37,23,"div",27),e.qZA()),2&G){const P=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!P.features[1].enabled),e.xp6(1),e.Q6J("ngIf",P.features[1].enabled)}}function Sl(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const Ht=e.CHM(P).index;return e.oxw().onPanelExpanded(Ht)}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,Jl,1,0,"span",12),e.YNc(7,Ia,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,nl,29,5,"form",15),e.YNc(11,_o,4,2,"form",15),e.qZA()()}if(2&G){const P=Le.$implicit,ie=Le.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(P.name),e.xp6(2),e.Q6J("ngIf",P.enabled),e.xp6(1),e.Q6J("ngIf",!P.enabled),e.xp6(1),e.hij(" ",P.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===ie),e.xp6(1),e.Q6J("ngIf",1===ie)}}const El=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(267),p.e(636)]).then(p.bind(p,1636)).then(G=>G.LNDModule),canActivate:[Kr.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(267),p.e(564)]).then(p.bind(p,9564)).then(G=>G.CLNModule),canActivate:[Kr.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(267),p.e(258)]).then(p.bind(p,7258)).then(G=>G.ECLModule),canActivate:[Kr.a1]},{path:"settings",component:Ee,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:te,canActivate:[Kr.a1]},{path:"auth",component:ei,canActivate:[Kr.a1]},{path:"bconfig",component:Tt,canActivate:[Kr.a1]}]},{path:"config",component:Bt,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"nodelayout"},{path:"nodelayout",component:sr,canActivate:[Kr.a1]},{path:"pglayout",component:kr,canActivate:[Kr.a1]},{path:"services",component:ba,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:sa,canActivate:[Kr.a1]},{path:"boltz",component:Xa,canActivate:[Kr.a1]}]},{path:"experimental",component:(()=>{class G{constructor(P,ie,We,Ht){this.logger=P,this.store=ie,this.dataService=We,this.commonService=Ht,this.faInfoCircle=y.sqG,this.faExclamationTriangle=y.eHv,this.faCode=y.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=j.gB,this.selPolicyType=j.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,x.R)(this.unSubs[0])).subscribe({next:P=>{this.logger.info("Received List Configs: "+JSON.stringify(P)),this.features[1].enabled=!!P["experimental-dual-fund"]},error:P=>{this.logger.error("List Configs Error: "+JSON.stringify(P)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.selNode=P,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(_a.Rn).pipe((0,x.R)(this.unSubs[2])).subscribe(P=>{this.policyTypes[2].max=P.balance.totalBalance||1e3})}onPanelExpanded(P){1===P&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,x.R)(this.unSubs[3])).subscribe(ie=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(ie)),this.fundingPolicy=ie,this.fundingPolicy.policy&&(this.selPolicyType=j.gB.find(We=>We.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Ve.jS)({payload:{uiMessage:j.m6.UPDATE_SETTING,service:j.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,x.R)(this.unSubs[4])).subscribe({next:P=>{this.logger.info(P),this.fundingPolicy=P,this.updateMsg={data:"Compact Lease: "+P.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:P=>{this.logger.error(P),this.updateMsg={error:this.commonService.extractErrorMessage(P,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?j.gB.find(P=>P.id===this.fundingPolicy.policy)||this.policyTypes[0]:j.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh),e.Y36(il.D),e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,Sl,12,7,"mat-expansion-panel",8),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",ie.faInfoCircle),e.xp6(6),e.Q6J("icon",ie.faCode),e.xp6(4),e.Q6J("ngForOf",ie.features))},directives:[_.xw,_.yH,J.$V,V.BN,Ie._Y,Ie.JL,Ie.F,_.Wh,Ti.pp,X.sg,Ti.ib,Ti.yz,Ti.yK,X.O5,Ge.d,Ni.Rr,we.h,Ie.JJ,Ie.On,ut.KE,Oe.gD,ce.ey,Yt.Nt,Ie.wV,Ie.qQ,Ie.Fd,Ie.Fj,Oo.q,ql.F,Ie.Q7,ut.bx,ut.TO,X.mk,In.oO,Te.lW],pipes:[X.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})(),canActivate:[Kr.a1]},{path:"lnconfig",component:Ri,canActivate:[Kr.a1]}]},{path:"services",component:Xn,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:pe},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:Cl}]},{path:"help",component:o3},{path:"login",component:ts},{path:"error",component:Io},{path:"**",component:ys.w}],{scrollPositionRestoration:"enabled"});var e1=p(8750),nc=p(8878),Gs=p(4594),Tl=p(2181);function $1(G,Le){if(1&G&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faCode),e.xp6(2),e.hij("API Version: ",null==P.information?null:P.information.api_version,"")}}function c3(G,Le){if(1&G&&(e.TgZ(0,"a",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faUserCog)}}function ko(G,Le){if(1&G&&(e.TgZ(0,"a",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faQuestion)}}function Al(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){return e.CHM(P),e.oxw().onClick()}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faEject)}}let e2=(()=>{class G{constructor(P,ie,We,Ht,Ci){this.logger=P,this.sessionService=ie,this.store=We,this.rtlEffects=Ht,this.actions=Ci,this.faUserCog=y.gNZ,this.faCodeBranch=y.mh3,this.faCode=y.dT$,this.faCog=y.b7W,this.faQuestion=y.Psp,this.faEject=y.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=ni.q4}ngOnInit(){this.store.select(n.R4).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{if(this.information=P,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(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const ie=this.information.chains[0];this.informationChain.chain=ie.chain,this.informationChain.network=ie.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(P)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.showLogout=!!P.token,this.flgLoading=!!P.token}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(P=>P.type===j.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ve.c1)({payload:{data:{type:j.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[3])).subscribe(P=>{P&&(this.showLogout=!1,this.store.dispatch((0,Ve.kS)()))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(Ae.m),e.Y36(C.yh),e.Y36(tt.V),e.Y36(d.eX))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["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"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(P,ie){if(1&P&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,$1,4,2,"p",4),e.YNc(7,c3,4,1,"a",5),e.YNc(8,ko,4,1,"a",6),e.YNc(9,Al,4,1,"a",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&P){const We=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",ie.faCodeBranch),e.xp6(2),e.hij("Version: ",ie.version,""),e.xp6(1),e.Q6J("ngIf",null==ie.information?null:ie.information.api_version),e.xp6(1),e.Q6J("ngIf",ie.showLogout),e.xp6(1),e.Q6J("ngIf",ie.showLogout),e.xp6(1),e.Q6J("ngIf",ie.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",We)}},directives:[Tl.VK,Tl.OP,V.BN,X.O5,I.yS,I.rH,Te.lW,Tl.p6,ta.Hw],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),G})();var t2=p(2638),rc=p(8258),Zs=p(149);const Is={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/lnd/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/lnd/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/lnd/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/lnd/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/lnd/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/lnd/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/lnd/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/lnd/graph",userPersona:j.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:y.hkK,link:"/lnd/messages",userPersona:j.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:y.q7m,link:"/lnd/channelbackup",userPersona:j.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:y.TmZ,link:"/lnd/network",userPersona:j.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:y.xf3,link:"/lnd/network",userPersona:j.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:y.Krp,link:"/services/loop",userPersona:j.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:y.vqe,link:"/services/loop",userPersona:j.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:j.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:j.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:j.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/cln/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/cln/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/cln/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/cln/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:y.Acd,link:"/cln/liquidityads",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/cln/transactions",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/cln/routing",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/cln/reports",userPersona:j.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/cln/graph",userPersona:j.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:y.hkK,link:"/cln/messages",userPersona:j.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:y.USL,link:"/cln/rates",userPersona:j.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:y.xf3,link:"/cln/rates",userPersona:j.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:j.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:j.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/ecl/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/ecl/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/ecl/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/ecl/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/ecl/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/ecl/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/ecl/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/ecl/graph",userPersona:j.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:j.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:j.ol.ALL}]};function ac(G,Le){if(1&G&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P.index),e.xp6(1),e.AsE(" ",P.lnNode," (",P.lnImplementation,") ")}}function Os(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(We){return e.CHM(P),e.oxw().onNodeSelectionChange(We.value)}),e.YNc(1,ac,2,3,"mat-option",10),e.qZA()}if(2&G){const P=e.oxw();e.Q6J("value",P.selConfigNodeIndex),e.xp6(1),e.Q6J("ngForOf",P.appConfig.nodes)}}function t1(G,Le){if(1&G&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.oxw(2);const ie=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===P.icon?ie:null)}}function oo(G,Le){if(1&G&&e._UZ(0,"fa-icon",23),2&G){const P=e.oxw().$implicit;e.Q6J("icon",P.icon)}}function r2(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P.icon)}}function u3(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).onChildNavClicked(Ht)}),e.TgZ(2,"div",17),e.YNc(3,t1,2,1,"span",18),e.YNc(4,oo,1,1,"fa-icon",19),e.YNc(5,r2,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&G){const P=Le.$implicit;e.s9C("routerLink",P.link),e.xp6(3),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name)}}function n1(G,Le){if(1&G&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function Ll(G,Le){if(1&G&&e._UZ(0,"fa-icon",23),2&G){const P=e.oxw().$implicit;e.Q6J("icon",P.icon)}}function r1(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P.icon)}}function sc(G,Le){if(1&G&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,n1,2,1,"span",28),e.YNc(4,Ll,1,1,"fa-icon",19),e.YNc(5,r1,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon",30),e._uU(10),e.qZA()()(),e.TgZ(11,"div",31),e.GkF(12,32),e.qZA()()),2&G){const P=Le.$implicit,ie=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name),e.xp6(1),e.uIk("aria-label","toggle "+P.name),e.xp6(2),e.Oqu(ie.treeControlNested.isExpanded(P)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!ie.treeControlNested.isExpanded(P))}}function Dl(G,Le){if(1&G&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,u3,8,5,"mat-tree-node",13),e.YNc(3,sc,13,8,"mat-nested-tree-node",14),e.qZA()),2&G){const P=e.oxw();e.Q6J("dataSource",P.navMenus)("treeControl",P.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",P.hasChild)}}function a2(G,Le){if(1&G&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function is(G,Le){if(1&G&&e._UZ(0,"fa-icon",36),2&G){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.Q6J("icon",P.icon)}}function oc(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",37),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.xp6(1),e.Oqu(P.icon)}}function Il(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().onShowData(Ht)}),e.YNc(1,a2,2,1,"span",18),e.YNc(2,is,1,2,"fa-icon",34),e.YNc(3,oc,2,2,"mat-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&G){const P=Le.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name)}}function a1(G,Le){if(1&G&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function s2(G,Le){if(1&G&&e._UZ(0,"fa-icon",36),2&G){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.Q6J("icon",P.icon)}}function No(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).onClick(Ht)}),e.YNc(1,a1,2,1,"span",28),e.YNc(2,s2,1,2,"fa-icon",34),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&G){const P=Le.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(2),e.Oqu(P.name)}}function Ws(G,Le){if(1&G&&(e.TgZ(0,"mat-tree",5),e.YNc(1,No,5,3,"mat-tree-node",6),e.qZA()),2&G){const P=e.oxw();e.Q6J("dataSource",P.navMenusLogout)("treeControl",P.treeControlLogout)}}function vo(G,Le){1&G&&(e.O4$(),e.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),e._UZ(3,"circle",41)(4,"path",42)(5,"path",43),e.qZA()()())}let o2=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji){this.logger=P,this.commonService=ie,this.sessionService=We,this.store=Ht,this.actions=Ci,this.rtlEffects=ji,this.ChildNavClicked=new e.vpe,this.faEject=y.KOR,this.faEye=y.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:y.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:y.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=j.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new rc.VY(hn=>hn.children),this.treeControlLogout=new rc.VY(hn=>hn.children),this.treeControlShowData=new rc.VY(hn=>hn.children),this.navMenus=new Zs.WX,this.navMenusLogout=new Zs.WX,this.navMenusShowData=new Zs.WX,this.hasChild=(hn,Fn)=>!!Fn.children&&Fn.children.length>0,this.version=ni.q4,Is.LNDChildren&&200===Is.LNDChildren[Is.LNDChildren.length-1].id&&Is.LNDChildren.pop(),this.navMenus.data=Is.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const P=this.sessionService.getItem("token");this.showLogout=!!P,this.flgLoading=!!P,this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(ie=>{this.appConfig=ie}),this.store.select(n.gW).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{var We,Ht;if(this.information=ie.nodeDate,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(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ci=this.information.chains[0];this.informationChain.chain=Ci.chain,this.informationChain.network=Ci.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=ie.selNode,this.settings=(null===(We=this.selNode)||void 0===We?void 0:We.settings)||null,this.selConfigNodeIndex=+((null===(Ht=ie.selNode)||void 0===Ht?void 0:Ht.index)||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(ie)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[2])).subscribe(ie=>{this.showLogout=!!ie.token,this.flgLoading=!!ie.token}),this.actions.pipe((0,x.R)(this.unSubs[3]),(0,ge.h)(ie=>ie.type===j.pg.LOGOUT)).subscribe(ie=>{this.showLogout=!1})}onClick(P){"Logout"===P.name&&(this.store.dispatch((0,Ve.c1)({payload:{data:{type:j.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[4])).subscribe(ie=>{ie&&(this.showLogout=!1,this.store.dispatch((0,Ve.kS)()))})),this.ChildNavClicked.emit(P)}onChildNavClicked(P){this.ChildNavClicked.emit(P)}filterSideMenuNodes(){var P,ie;switch(null===(ie=null===(P=this.selNode)||void 0===P?void 0:P.lnImplementation)||void 0===ie?void 0:ie.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let P=[];P=JSON.parse(JSON.stringify(Is.LNDChildren)),this.navMenus.data=null==P?void 0:P.filter(ie=>{var We,Ht;return ie.children&&ie.children.length?(ie.children=null===(We=ie.children)||void 0===We?void 0:We.filter(Ci=>{var ji,hn,Fn;return(Ci.userPersona===j.ol.ALL||Ci.userPersona===(null===(ji=this.settings)||void 0===ji?void 0:ji.userPersona))&&"/services/loop"!==Ci.link&&"/services/boltz"!==Ci.link||"/services/loop"===Ci.link&&(null===(hn=this.settings)||void 0===hn?void 0:hn.swapServerUrl)&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Ci.link&&(null===(Fn=this.settings)||void 0===Fn?void 0:Fn.boltzServerUrl)&&""!==this.settings.boltzServerUrl.trim()}),ie.children.length>0):ie.userPersona===j.ol.ALL||ie.userPersona===(null===(Ht=this.settings)||void 0===Ht?void 0:Ht.userPersona)})}loadCLNMenu(){let P=[];P=JSON.parse(JSON.stringify(Is.CLNChildren)),this.navMenus.data=null==P?void 0:P.filter(ie=>{var We,Ht;return ie.children&&ie.children.length?(ie.children=null===(We=ie.children)||void 0===We?void 0:We.filter(Ci=>{var ji,hn;return(Ci.userPersona===j.ol.ALL||Ci.userPersona===(null===(ji=this.settings)||void 0===ji?void 0:ji.userPersona))&&"/services/peerswap"!==Ci.link||"/services/peerswap"===Ci.link&&(null===(hn=this.settings)||void 0===hn?void 0:hn.enablePeerswap)}),ie.children.length>0):ie.userPersona===j.ol.ALL||ie.userPersona===(null===(Ht=this.settings)||void 0===Ht?void 0:Ht.userPersona)})}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Is.ECLChildren))}onShowData(P){this.store.dispatch((0,Ve.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(P){const ie=this.selConfigNodeIndex;this.selConfigNodeIndex=P;const We=this.appConfig.nodes.find(Ht=>+Ht.index===P);this.store.dispatch((0,Ve.fk)({payload:{uiMessage:j.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+ie,currentLnNode:We||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(Ae.m),e.Y36(C.yh),e.Y36(d.eX),e.Y36(tt.V))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-side-navigation"]],viewQuery:function(P,ie){if(1&P&&e.Gf(Zs.gi,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.tree=We.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","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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Os,2,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,Dl,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,Il,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Ws,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,vo,6,0,"ng-template",null,8,e.W1O)),2&P&&(e.xp6(2),e.Q6J("ngIf",ie.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==ie.settings?null:ie.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",ie.navMenusShowData)("treeControl",ie.treeControlShowData),e.xp6(3),e.Q6J("ngIf",ie.showLogout))},directives:[_.xw,_.yH,_.Wh,J.$V,X.O5,Oe.gD,X.sg,ce.ey,Ge.d,Zs.gi,Zs.fQ,Zs.uo,Zs.eu,I.Od,I.rH,X.tP,V.BN,ta.Hw,Zs.GZ,Te.lW,Zs.Ar,zr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),G})();var h3=p(773);const f3=["sideNavigation"],p3=["sideNavContent"];function m3(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(P),e.oxw().sideNavToggle()}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&G){const P=e.oxw();e.Q6J("matTooltip",P.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",P.smallScreen)}}function g3(G,Le){1&G&&(e.O4$(),e._UZ(0,"path",18))}function l2(G,Le){1&G&&(e.O4$(),e._UZ(0,"path",19))}function s1(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.flgSidenavPinned=!We.flgSidenavPinned}),e.O4$(),e.TgZ(1,"svg",15),e.YNc(2,g3,1,0,"path",16),e.YNc(3,l2,1,0,"path",17),e.qZA()()}if(2&G){const P=e.oxw();e.Q6J("matTooltip",P.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!P.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",P.flgSidenavPinned)}}function c2(G,Le){if(1&G&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Oqu(P.information.alias?"RTL - "+P.information.alias:"RTL")}}function d2(G,Le){if(1&G&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Oqu(P.information.alias?"Ride The Lightning - "+P.information.alias:"Ride The Lightning")}}function Ol(G,Le){1&G&&(e.TgZ(0,"div",20),e._UZ(1,"mat-spinner",21),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const rl=function(G,Le){return[G,Le]};let _3=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji,hn,Fn,ls){this.logger=P,this.commonService=ie,this.store=We,this.actions=Ht,this.userIdle=Ci,this.router=ji,this.sessionService=hn,this.breakpointObserver=Fn,this.renderer=ls,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,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(P=>{P instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([a.u3.XSmall,a.u3.TabletPortrait,a.u3.Small,a.u3.Medium,a.u3.Large,a.u3.XLarge]).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{P.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(j.cu.XS),this.smallScreen=!0):P.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(j.cu.SM),this.smallScreen=!0):P.breakpoints[a.u3.Small]||P.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(j.cu.MD),this.smallScreen=!1):P.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(j.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(j.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ve.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.settings=P.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[2])).subscribe(P=>{this.appConfig=P}),this.store.select(n.R4).pipe((0,x.R)(this.unSubs[3])).subscribe(P=>{this.information=P,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,x.R)(this.unSubs[4]),(0,ge.h)(P=>P.type===j.pg.SET_RTL_CONFIG||P.type===j.pg.LOGIN||P.type===j.pg.LOGOUT)).subscribe(P=>{P.type===j.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+P.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((0,Ve.x4)({payload:{password:Ce(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),P.type===j.pg.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),P.type===j.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,x.R)(this.unSubs[5])).subscribe(P=>{this.logger.info("Counting Down: "+(11-P))}),this.userIdle.onTimeout().pipe((0,x.R)(this.unSubs[6])).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((0,Ve.ts)()),this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ve.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const P=window.location.href;return P.includes("access-key=")?P.substring(P.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(P){this.smallScreen&&this.sideNavigation.close()}copiedText(P){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+P)}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(d.eX),e.Y36(v),e.Y36(I.F0),e.Y36(Ae.m),e.Y36(a.Yg),e.Y36(e.Qsj))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-app"]],viewQuery:function(P,ie){if(1&P&&(e.Gf(f3,5),e.Gf(p3,5)),2&P){let We;e.iGM(We=e.CRH())&&(ie.sideNavigation=We.first),e.iGM(We=e.CRH())&&(ie.sideNavContent=We.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(P,ie){1&P&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,m3,3,2,"button",2),e.YNc(6,s1,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,c2,2,1,"span",4),e.YNc(9,d2,2,1,"span",4),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),e.NdJ("ChildNavClicked",function(Ht){return ie.onNavigationClicked(Ht)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),e._UZ(19,"router-outlet",null,11),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Ol,4,0,"div",12),e.qZA()),2&P&&(e.Q6J("ngClass",e.WLB(12,rl,e.lcZ(1,8,ie.settings.themeColor),e.lcZ(2,10,ie.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",ie.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!ie.smallScreen&&ie.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",ie.smallScreen),e.xp6(1),e.Q6J("ngIf",!ie.smallScreen),e.xp6(4),e.Q6J("opened",ie.flgSideNavOpened&&ie.flgLoggedIn)("mode",ie.flgSidenavPinned&&!ie.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!ie.settings.themeColor))},directives:[_.xw,X.mk,In.oO,Gs.Ye,_.Wh,X.O5,Te.lW,zr.gM,ta.Hw,e2,t2.TM,t2.JX,J.$V,o2,_.yH,t2.Rh,I.lC,h3.Ou],pipes:[X.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[nc.g]}}),G})(),Ro=(()=>{class G{constructor(P){this.sessionService=P}intercept(P,ie){if(this.sessionService.getItem("token")){const We=P.clone({headers:P.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return ie.handle(We)}return ie.handle(P)}}return G.\u0275fac=function(P){return new(P||G)(e.LFG(Ae.m))},G.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac}),G})();var o1=p(7998),Ys=p(711),al=p(4947),lc=p(3289);const sl={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},ol={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},ll={apiURL:"",apisCallStatus:{Login:{status:j.Bn.UN_INITIATED},IsAuthorized:{status:j.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:sl,authentication:ol,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:sl,authentication:ol}]},nodeData:{}},v3=(0,C.Lq)(ll,(0,C.on)(Ve.qi,(G,{payload:Le})=>{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(Ve.vI,(G,{payload:Le})=>Object.assign(Object.assign({},ll),{apisCallStatus:G.apisCallStatus,appConfig:G.appConfig,selNode:Le})),(0,C.on)(Ve.fk,(G,{payload:Le})=>Object.assign(Object.assign({},G),{selNode:Le.currentLnNode})),(0,C.on)(Ve.Tm,(G,{payload:Le})=>{const P=JSON.parse(JSON.stringify(G.selNode));switch(Le.service){case j.JX.BOLTZ:P.settings.boltzServerUrl=Le.settings.boltzServerUrl;break;case j.JX.LOOP:P.settings.swapServerUrl=Le.settings.swapServerUrl;break;case j.JX.OFFERS:P.settings.enableOffers=Le.settings.enableOffers;break;case j.JX.PEERSWAP:P.settings.enablePeerswap=Le.settings.enablePeerswap}return Object.assign(Object.assign({},G),{selNode:P})}),(0,C.on)(Ve._V,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeData:Le})),(0,C.on)(Ve.XT,(G,{payload:Le})=>Object.assign(Object.assign({},G),{appConfig:Le}))),l1={apisCallStatus:{FetchPageSettings:{status:j.Bn.UN_INITIATED},FetchInfo:{status:j.Bn.UN_INITIATED},FetchFees:{status:j.Bn.UN_INITIATED},FetchPeers:{status:j.Bn.UN_INITIATED},FetchClosedChannels:{status:j.Bn.UN_INITIATED},FetchPendingChannels:{status:j.Bn.UN_INITIATED},FetchAllChannels:{status:j.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:j.Bn.UN_INITIATED},FetchInvoices:{status:j.Bn.UN_INITIATED},FetchPayments:{status:j.Bn.UN_INITIATED},FetchForwardingHistory:{status:j.Bn.UN_INITIATED},FetchUTXOs:{status:j.Bn.UN_INITIATED},FetchTransactions:{status:j.Bn.UN_INITIATED},FetchLightningTransactions:{status:j.Bn.UN_INITIATED},FetchNetwork:{status:j.Bn.UN_INITIATED}},nodeSettings:{userPersona:j.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:j.gK,information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{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},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let da=!1,cl=!1;const cc=(0,C.Lq)(l1,(0,C.on)(Wt.PC,(G,{payload:Le})=>{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(Wt.JT,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeSettings:Le})),(0,C.on)(Wt.Ll,(G,{payload:Le})=>Object.assign(Object.assign({},l1),{nodeSettings:Le})),(0,C.on)(Wt.CX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{information:Le})),(0,C.on)(Wt.Z8,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:Le})),(0,C.on)(Wt.EK,(G,{payload:Le})=>{const P=[...G.peers],ie=G.peers.findIndex(We=>We.pub_key===Le.pubkey);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(Wt.YP,(G,{payload:Le})=>{var P;const ie=G.listInvoices;return null===(P=ie.invoices)||void 0===P||P.unshift(Le),Object.assign(Object.assign({},G),{listInvoices:ie})}),(0,C.on)(Wt.aL,(G,{payload:Le})=>{var P;const ie=G.listInvoices;return ie.invoices=null===(P=ie.invoices)||void 0===P?void 0:P.map(We=>We.payment_request===Le.payment_request?Le:We),Object.assign(Object.assign({},G),{listInvoices:ie})}),(0,C.on)(Wt.qY,(G,{payload:Le})=>{var P;const ie=G.listPayments;return ie.payments=null===(P=ie.payments)||void 0===P?void 0:P.map(We=>We.payment_hash===Le.payment_hash?Le:We),Object.assign(Object.assign({},G),{listPayments:ie})}),(0,C.on)(Wt.RX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{fees:Le})),(0,C.on)(Wt._L,(G,{payload:Le})=>Object.assign(Object.assign({},G),{closedChannels:Le})),(0,C.on)(Wt.TW,(G,{payload:Le})=>Object.assign(Object.assign({},G),{pendingChannels:Le.pendingChannels,pendingChannelsSummary:Le.pendingChannelsSummary})),(0,C.on)(Wt.as,(G,{payload:Le})=>{let P=0,ie=0,We=0,Ht=0,Ci=0,ji=0;return Le&&Le.forEach(hn=>{hn.local_balance||(hn.local_balance=0),!0===hn.active?(Ci+=+hn.local_balance,We+=1,hn.local_balance?P=+P+ +hn.local_balance:hn.local_balance=0,hn.remote_balance?ie=+ie+ +hn.remote_balance:hn.remote_balance=0):(ji+=+hn.local_balance,Ht+=1)}),Object.assign(Object.assign({},G),{channels:Le,channelsSummary:{active:{num_channels:We,capacity:Ci},inactive:{num_channels:Ht,capacity:ji}},lightningBalance:{local:P,remote:ie}})}),(0,C.on)(Wt.OG,(G,{payload:Le})=>{const P=[...G.channels],ie=G.channels.findIndex(We=>We.channel_point===Le.channelPoint);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{channels:P})}),(0,C.on)(Wt.Jl,(G,{payload:Le})=>Object.assign(Object.assign({},G),{blockchainBalance:Le})),(0,C.on)(Wt.ks,(G,{payload:Le})=>Object.assign(Object.assign({},G),{networkInfo:Le})),(0,C.on)(Wt.Nr,(G,{payload:Le})=>(Le.total_invoices||(Le.total_invoices=G.listInvoices.total_invoices),Object.assign(Object.assign({},G),{listInvoices:Le}))),(0,C.on)(Wt.Lf,(G,{payload:Le})=>{if(da=!0,Le.length&&cl){const P=[...G.utxos];return P.forEach(ie=>{const We=Le.find(Ht=>{var Ci;return Ht.tx_hash===(null===(Ci=ie.outpoint)||void 0===Ci?void 0:Ci.txid_str)});ie.label=We&&We.label?We.label:""}),Object.assign(Object.assign({},G),{utxos:P,transactions:Le})}return Object.assign(Object.assign({},G),{transactions:Le})}),(0,C.on)(Wt.UH,(G,{payload:Le})=>{if(cl=!0,Le.length&&da){const P=[...G.transactions];Le.forEach(ie=>{const We=P.find(Ht=>{var Ci;return Ht.tx_hash===(null===(Ci=ie.outpoint)||void 0===Ci?void 0:Ci.txid_str)});ie.label=We&&We.label?We.label:""})}return Object.assign(Object.assign({},G),{utxos:Le})}),(0,C.on)(Wt.HI,(G,{payload:Le})=>{const P={listInvoicesAll:G.allLightningTransactions.listInvoicesAll,listPaymentsAll:Le};return Object.assign(Object.assign({},G),{listPayments:Le,allLightningTransactions:P})}),(0,C.on)(Wt.Fr,(G,{payload:Le})=>{const P={listInvoicesAll:Le.listInvoicesAll,listPaymentsAll:G.listPayments};return Object.assign(Object.assign({},G),{allLightningTransactions:P})}),(0,C.on)(Wt.QJ,(G,{payload:Le})=>{const P=[...G.channels,...G.closedChannels];let ie=Le.forwarding_events?JSON.parse(JSON.stringify(Le)):{};return ie.forwarding_events&&(ie=vr(ie,P)),Object.assign(Object.assign({},G),{forwardingHistory:ie})}),(0,C.on)(Wt.pd,(G,{payload:Le})=>{const P=[];return j.gK.forEach(ie=>{const We=Le&&Le.length&&Le.length>0?Le.find(Ht=>Ht.pageId===ie.pageId):null;if(We){const Ht=JSON.parse(JSON.stringify(We.tables));We.tables=[],ie.tables.forEach(Ci=>{const ji=Ht.find(hn=>hn.tableId===Ci.tableId)||null;We.tables.push(ji||JSON.parse(JSON.stringify(Ci)))}),P.push(We)}else P.push(JSON.parse(JSON.stringify(ie)))}),Object.assign(Object.assign({},G),{pageSettings:P})})),vr=(G,Le)=>(G.forwarding_events.forEach(P=>{var ie,We;if(Le&&Le.length>0)for(let Ht=0;Ht{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(Rt.oo,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeSettings:Le})),(0,C.on)(Rt.xH,(G,{payload:Le})=>Object.assign(Object.assign({},u2),{nodeSettings:Le})),(0,C.on)(Rt.CX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{information:Le})),(0,C.on)(Rt.RX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{fees:Le})),(0,C.on)(Rt.I8,(G,{payload:Le})=>Le.perkb?Object.assign(Object.assign({},G),{feeRatesPerKB:Le}):Le.perkw?Object.assign(Object.assign({},G),{feeRatesPerKW:Le}):Object.assign({},G)),(0,C.on)(Rt.Lu,(G,{payload:Le})=>Object.assign(Object.assign({},G),{balance:Le})),(0,C.on)(Rt.xS,(G,{payload:Le})=>Object.assign(Object.assign({},G),{localRemoteBalance:Le})),(0,C.on)(Rt.Z8,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:Le})),(0,C.on)(Rt.X3,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:[...G.peers,Le]})),(0,C.on)(Rt.EK,(G,{payload:Le})=>{const P=[...G.peers],ie=G.peers.findIndex(We=>We.id===Le.id);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(Rt.as,(G,{payload:Le})=>Object.assign(Object.assign({},G),{activeChannels:Le.activeChannels,pendingChannels:Le.pendingChannels,inactiveChannels:Le.inactiveChannels})),(0,C.on)(Rt.OG,(G,{payload:Le})=>{const P=[...G.peers];return P.forEach(ie=>{ie.id===Le.id&&(ie.connected=!1,delete ie.netaddr)}),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(Rt.HI,(G,{payload:Le})=>Object.assign(Object.assign({},G),{payments:Le})),(0,C.on)(Rt.QJ,(G,{payload:Le})=>{const P=[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels],ie=Fo(Le.listForwards,P);switch(Le.listForwards=ie,Le.status){case j.OO.SETTLED:const We=G.fees;return We.totalTxCount=Le.totalForwards||0,Object.assign(Object.assign({},G),{fees:We,forwardingHistory:Le});case j.OO.FAILED:return Object.assign(Object.assign({},G),{failedForwardingHistory:Le});case j.OO.LOCAL_FAILED:return Object.assign(Object.assign({},G),{localFailedForwardingHistory:Le});default:return Object.assign({},G)}}),(0,C.on)(Rt.YP,(G,{payload:Le})=>{var P;const ie=G.invoices;return null===(P=ie.invoices)||void 0===P||P.unshift(Le),Object.assign(Object.assign({},G),{invoices:ie})}),(0,C.on)(Rt.Nr,(G,{payload:Le})=>Object.assign(Object.assign({},G),{invoices:Le})),(0,C.on)(Rt.aL,(G,{payload:Le})=>{var P;const ie=G.invoices;return ie.invoices=null===(P=ie.invoices)||void 0===P?void 0:P.map(We=>We.label===Le.label?Le:We),Object.assign(Object.assign({},G),{invoices:ie})}),(0,C.on)(Rt.UH,(G,{payload:Le})=>Object.assign(Object.assign({},G),{utxos:Le})),(0,C.on)(Rt.Zu,(G,{payload:Le})=>Object.assign(Object.assign({},G),{offers:Le})),(0,C.on)(Rt.ZH,(G,{payload:Le})=>{const P=G.offers;return null==P||P.unshift(Le),Object.assign(Object.assign({},G),{offers:P})}),(0,C.on)(Rt.JK,(G,{payload:Le})=>{const P=[...G.offers],ie=G.offers.findIndex(We=>We.offer_id===Le.offer.offer_id);return ie>-1&&P.splice(ie,1,Le.offer),Object.assign(Object.assign({},G),{offers:P})}),(0,C.on)(Rt.d7,(G,{payload:Le})=>Object.assign(Object.assign({},G),{offersBookmarks:Le})),(0,C.on)(Rt.e9,(G,{payload:Le})=>{const P=[...G.offersBookmarks],ie=P.findIndex(We=>We.bolt12===Le.bolt12);if(ie<0)null==P||P.unshift(Le);else{const We=Object.assign({},P[ie]);We.title=Le.title,We.amountMSat=Le.amountMSat,We.lastUpdatedAt=Le.lastUpdatedAt,We.description=Le.description,We.vendor=Le.vendor,P.splice(ie,1,We)}return Object.assign(Object.assign({},G),{offersBookmarks:P})}),(0,C.on)(Rt.en,(G,{payload:Le})=>{const P=[...G.offersBookmarks],ie=G.offersBookmarks.findIndex(We=>We.bolt12===Le.bolt12);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{offersBookmarks:P})}),(0,C.on)(Rt.pd,(G,{payload:Le})=>{const P=[];return j.gG.forEach(ie=>{const We=Le&&Le.length&&Le.length>0?Le.find(Ht=>Ht.pageId===ie.pageId):null;if(We){const Ht=JSON.parse(JSON.stringify(We.tables));We.tables=[],ie.tables.forEach(Ci=>{const ji=Ht.find(hn=>hn.tableId===Ci.tableId)||null;We.tables.push(ji||JSON.parse(JSON.stringify(Ci)))}),P.push(We)}else P.push(JSON.parse(JSON.stringify(ie)))}),Object.assign(Object.assign({},G),{pageSettings:P})})),Fo=(G,Le)=>(G&&G.length>0?G.forEach((P,ie)=>{var We;if(Le&&Le.length>0)for(let Ht=0;Ht{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(st.Zr,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeSettings:Le})),(0,C.on)(st.Fd,(G,{payload:Le})=>Object.assign(Object.assign({},c1),{nodeSettings:Le})),(0,C.on)(st.CX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{information:Le})),(0,C.on)(st.RX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{fees:Le})),(0,C.on)(st.eN,(G,{payload:Le})=>Object.assign(Object.assign({},G),{activeChannels:Le})),(0,C.on)(st.TW,(G,{payload:Le})=>Object.assign(Object.assign({},G),{pendingChannels:Le})),(0,C.on)(st.i,(G,{payload:Le})=>Object.assign(Object.assign({},G),{inactiveChannels:Le})),(0,C.on)(st.HG,(G,{payload:Le})=>Object.assign(Object.assign({},G),{channelsStatus:Le})),(0,C.on)(st.Bw,(G,{payload:Le})=>Object.assign(Object.assign({},G),{onchainBalance:Le})),(0,C.on)(st.On,(G,{payload:Le})=>Object.assign(Object.assign({},G),{lightningBalance:Le})),(0,C.on)(st.Z8,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:Le})),(0,C.on)(st.EK,(G,{payload:Le})=>{const P=[...G.peers],ie=G.peers.findIndex(We=>We.nodeId===Le.nodeId);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(st.OG,(G,{payload:Le})=>{const P=[...G.activeChannels],ie=G.activeChannels.findIndex(We=>We.channelId===Le.channelId);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{activeChannels:P})}),(0,C.on)(st.HI,(G,{payload:Le})=>{var P;if(Le&&Le.sent){const ie=[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels];null===(P=Le.sent)||void 0===P||P.map(We=>{var Ht;const Ci=G.peers.find(ji=>ji.nodeId===We.recipientNodeId);return We.recipientNodeAlias=Ci?Ci.alias:We.recipientNodeId,We.parts&&(null===(Ht=We.parts)||void 0===Ht||Ht.map(ji=>{const hn=ie.find(Fn=>Fn.channelId===ji.toChannelId);return ji.toChannelAlias=hn?hn.alias:ji.toChannelId,We.parts})),Le.sent})}if(Le&&Le.relayed){const ie=[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels];Le.relayed.forEach(We=>{We=u1(We,ie)})}return Object.assign(Object.assign({},G),{payments:Le})}),(0,C.on)(st.Lf,(G,{payload:Le})=>Object.assign(Object.assign({},G),{transactions:Le})),(0,C.on)(st.YP,(G,{payload:Le})=>{const P=G.invoices;return null==P||P.unshift(Le),Object.assign(Object.assign({},G),{invoices:P})}),(0,C.on)(st.Nr,(G,{payload:Le})=>Object.assign(Object.assign({},G),{invoices:Le})),(0,C.on)(st.aL,(G,{payload:Le})=>{let P=G.invoices;return P=null==P?void 0:P.map(ie=>{if(ie.paymentHash===Le.paymentHash){if(Le.hasOwnProperty("type")){const We=JSON.parse(JSON.stringify(ie));return We.amountSettled=Le.parts&&Le.parts.length&&Le.parts.length>0&&Le.parts[0].amount?(Le.parts[0].amount||0)/1e3:0,We.receivedAt=Le.parts&&Le.parts.length&&Le.parts.length>0&&Le.parts[0].timestamp?Math.round((Le.parts[0].timestamp||0)/1e3):0,We.status="received",We}return Le}return ie}),Object.assign(Object.assign({},G),{invoices:P})}),(0,C.on)(st.DJ,(G,{payload:Le})=>{let P=G.pendingChannels;return P=null==P?void 0:P.map(ie=>{var We;return ie.channelId===Le.channelId&&ie.nodeId===Le.remoteNodeId&&(Le.currentState=null===(We=Le.currentState)||void 0===We?void 0:We.replace(/_/g," "),ie.state=Le.currentState),ie}),Object.assign(Object.assign({},G),{pendingChannels:P})}),(0,C.on)(st.ti,(G,{payload:Le})=>{var P,ie,We;const Ht=G.payments,Ci=u1(Le,[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels]);Ci.amountIn=Math.round((Le.amountIn||0)/1e3),Ci.amountOut=Math.round((Le.amountOut||0)/1e3),null===(P=Ht.relayed)||void 0===P||P.unshift(Ci);const ji=(Le.amountIn||0)-(Le.amountOut||0),hn={localBalance:G.lightningBalance.localBalance+ji,remoteBalance:G.lightningBalance.remoteBalance-ji},Fn=G.channelsStatus;Fn.active&&(Fn.active.capacity=((null===(We=null===(ie=G.channelsStatus)||void 0===ie?void 0:ie.active)||void 0===We?void 0:We.capacity)||0)+ji);const ls={daily_fee:(G.fees.daily_fee||0)+ji,daily_txs:(G.fees.daily_txs||0)+1,weekly_fee:(G.fees.weekly_fee||0)+ji,weekly_txs:(G.fees.weekly_txs||0)+1,monthly_fee:(G.fees.monthly_fee||0)+ji,monthly_txs:(G.fees.monthly_txs||0)+1},Ts=G.activeChannels;let cs=!1,ds=!1;for(const lr of Ts){if(lr.channelId===Le.fromChannelId){cs=!0;const qa=(lr.toLocal||0)+(lr.toRemote||0);lr.toLocal=(lr.toLocal||0)+Ci.amountIn,lr.toRemote=(lr.toRemote||0)-Ci.amountIn,lr.balancedness=0===qa?1:+(1-Math.abs((lr.toLocal-lr.toRemote)/qa)).toFixed(3)}if(lr.channelId===Le.toChannelId){ds=!0;const qa=(lr.toLocal||0)+(lr.toRemote||0);lr.toLocal=(lr.toLocal||0)-Ci.amountOut,lr.toRemote=(lr.toRemote||0)+Ci.amountOut,lr.balancedness=0===qa?1:+(1-Math.abs((lr.toLocal-lr.toRemote)/qa)).toFixed(3)}if(ds&&cs)break}return Object.assign(Object.assign({},G),{payments:Ht,lightningBalance:hn,channelStatus:Fn,fees:ls,activeChannels:Ts})}),(0,C.on)(st.pd,(G,{payload:Le})=>{const P=[];return j.c3.forEach(ie=>{const We=Le&&Le.length&&Le.length>0?Le.find(Ht=>Ht.pageId===ie.pageId):null;if(We){const Ht=JSON.parse(JSON.stringify(We.tables));We.tables=[],ie.tables.forEach(Ci=>{const ji=Ht.find(hn=>hn.tableId===Ci.tableId)||null;We.tables.push(ji||JSON.parse(JSON.stringify(Ci)))}),P.push(We)}else P.push(JSON.parse(JSON.stringify(ie)))}),Object.assign(Object.assign({},G),{pageSettings:P})})),u1=(G,Le)=>{var P,ie,We,Ht,Ci,ji,hn,Fn,ls,Ts,cs,ds,lr,qa;if("payment-relayed"===G.type)if(Le&&Le.length>0)for(let Ln=0;Ln0)for(let Ln=0;Ln{var Na;(null===(Na=Le[Ln].channelId)||void 0===Na?void 0:Na.toString())===Vn.channelId&&(Vn.channelAlias=Le[Ln].alias?Le[Ln].alias:Vn.channelId,Vn.shortChannelId=Le[Ln].shortChannelId?Le[Ln].shortChannelId:"")}),null===(Fn=G.outgoing)||void 0===Fn||Fn.forEach(Vn=>{var Na;(null===(Na=Le[Ln].channelId)||void 0===Na?void 0:Na.toString())===Vn.channelId&&(Vn.channelAlias=Le[Ln].alias?Le[Ln].alias:Vn.channelId,Vn.shortChannelId=Le[Ln].shortChannelId?Le[Ln].shortChannelId:"")}),Ln===Le.length-1&&(G.incoming&&G.incoming.length&&G.incoming.length>0&&!G.incoming[0].channelAlias&&(null===(ls=G.incoming)||void 0===ls||ls.forEach(Vn=>{var Na;Vn.channelAlias=(null===(Na=Vn.channelId)||void 0===Na?void 0:Na.substring(0,17))+"...",Vn.shortChannelId=""})),G.outgoing&&G.outgoing.length&&G.outgoing.length>0&&!G.outgoing[0].channelAlias&&(null===(Ts=G.outgoing)||void 0===Ts||Ts.forEach(Vn=>{var Na;Vn.channelAlias=(null===(Na=Vn.channelId)||void 0===Na?void 0:Na.substring(0,17))+"...",Vn.shortChannelId=""})));else null===(cs=G.incoming)||void 0===cs||cs.forEach(Ln=>{var Vn;Ln.channelAlias=(null===(Vn=Ln.channelId)||void 0===Vn?void 0:Vn.substring(0,17))+"...",Ln.shortChannelId=""}),null===(ds=G.outgoing)||void 0===ds||ds.forEach(Ln=>{var Vn;Ln.channelAlias=(null===(Vn=Ln.channelId)||void 0===Vn?void 0:Vn.substring(0,17))+"...",Ln.shortChannelId=""});G.amountIn=(null===(lr=G.incoming)||void 0===lr?void 0:lr.reduce((Ln,Vn)=>Ln+Vn.amount,0))||0,G.fromChannelId=G.incoming&&G.incoming.length?G.incoming[0].channelId:"",G.fromChannelAlias=G.incoming&&G.incoming.length?G.incoming[0].channelAlias:"",G.fromShortChannelId=G.incoming&&G.incoming.length?G.incoming[0].shortChannelId:"",G.amountOut=(null===(qa=G.outgoing)||void 0===qa?void 0:qa.reduce((Ln,Vn)=>Ln+Vn.amount,0))||0,G.toChannelId=G.outgoing&&G.outgoing.length?G.outgoing[0].channelId:"",G.toChannelAlias=G.outgoing&&G.outgoing.length?G.outgoing[0].channelAlias:"",G.toShortChannelId=G.outgoing&&G.outgoing.length?G.outgoing[0].shortChannelId:""}return G};let dc=(()=>{class G{}return G.\u0275fac=function(P){return new(P||G)},G.\u0275mod=e.oAB({type:G,bootstrap:[_3]}),G.\u0275inj=e.cJS({providers:[{provide:M.TP,useClass:Ro,multi:!0},Kr.a1,Ae.m,il.D,o1.d,Et.W,fi.v,ki],imports:[[f.PW,e1.m,El,a.xu,t.t6,T.forRoot({idle:3590,timeout:10,ping:12e3}),C.Aw.forRoot({root:v3,lnd:cc,cln:Ho,ecl:d1},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([tt.V,Ys.l,al.J,lc.o]),ni.NZ.production?[]:R.FT.instrument()]]}),G})();ni.NZ.production&&(0,e.G48)(),t.q6().bootstrapModule(dc).catch(G=>console.log(G))},7854:(Be,K)=>{"use strict";function p(j){return Object.keys(j).map(Ve=>j[Ve])}var j;Object.defineProperty(K,"__esModule",{value:!0}),(j=K.HashAlgorithms||(K.HashAlgorithms={})).SHA1="sha1",j.SHA256="sha256",j.SHA512="sha512";const t=p(K.HashAlgorithms);!function(j){j.ASCII="ascii",j.BASE64="base64",j.HEX="hex",j.LATIN1="latin1",j.UTF8="utf8"}(K.KeyEncodings||(K.KeyEncodings={}));const e=p(K.KeyEncodings);!function(j){j.HOTP="hotp",j.TOTP="totp"}(K.Strategy||(K.Strategy={}));const f=p(K.Strategy),M=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(j){return/^(\d+)$/.test(j)}function C(j,Ve,Me){return j.length>=Ve?j:`${Array(Ve+1).join(Me)}${j}`.slice(-1*Ve)}function d(j){const Ve=`otpauth://${j.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Me=[];if(f.indexOf(j.type)<0)throw new Error(`Expecting options.type to be one of ${f.join(", ")}. Received ${j.type}.`);if("hotp"===j.type){if(null==j.counter||"number"!=typeof j.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Me.push(`&counter=${j.counter}`)}return"totp"===j.type&&j.step&&Me.push(`&period=${j.step}`),j.digits&&Me.push(`&digits=${j.digits}`),j.algorithm&&Me.push(`&algorithm=${j.algorithm.toUpperCase()}`),j.issuer&&Me.push(`&issuer=${encodeURIComponent(j.issuer)}`),Ve.replace("{labelPrefix}",encodeURIComponent(j.issuer||j.accountName)).replace("{accountName}",encodeURIComponent(j.accountName)).replace("{secret}",j.secret).replace("{query}",Me.join(""))}class R{constructor(Ve={}){this._defaultOptions=Object.freeze(eo({},Ve)),this._options=Object.freeze({})}create(Ve={}){return new R(Ve)}clone(Ve={}){const Me=this.create(eo(eo({},this._defaultOptions),Ve));return Me.options=this._options,Me}get options(){return Object.freeze(eo(eo({},this._defaultOptions),this._options))}set options(Ve){this._options=Object.freeze(eo(eo({},this._options),Ve))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function h(j){if("function"!=typeof j.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof j.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof j.digits)throw new Error("Expecting options.digits to be a number.");if(!j.algorithm||t.indexOf(j.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${j.algorithm}.`);if(!j.encoding||e.indexOf(j.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${j.encoding}.`)}const L=(j,Ve,Me)=>Buffer.from(Ve,Me).toString("hex");function w(){return{algorithm:K.HashAlgorithms.SHA1,createHmacKey:L,createDigest:M,digits:6,encoding:K.KeyEncodings.ASCII}}function D(j){const Ve=eo(eo({},w()),j);return h(Ve),Object.freeze(Ve)}function S(j){return C(j.toString(16),16,"0")}function k(j,Ve){const Me=Buffer.from(j,"hex"),J=15&Me[Me.length-1],ut=((127&Me[J])<<24|(255&Me[J+1])<<16|(255&Me[J+2])<<8|255&Me[J+3])%Math.pow(10,Ve);return C(String(ut),Ve,"0")}function B(j,Ve,Me){const J=Me.digest||function E(j,Ve,Me){const J=S(Ve),Ie=Me.createHmacKey(Me.algorithm,j,Me.encoding);return Me.createDigest(Me.algorithm,Ie,J)}(j,Ve,Me);return k(J,Me.digits)}function Z(j,Ve,Me,J){return!!a(j)&&j===B(Ve,Me,J)}function Y(j,Ve,Me,J,Ie){return d({algorithm:Ie.algorithm,digits:Ie.digits,type:K.Strategy.HOTP,accountName:j,counter:J,issuer:Ve,secret:Me})}class ae extends R{create(Ve={}){return new ae(Ve)}allOptions(){return D(this.options)}generate(Ve,Me){return B(Ve,Me,this.allOptions())}check(Ve,Me,J){return Z(Ve,Me,J,this.allOptions())}verify(Ve){if("object"!=typeof Ve)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ve.token,Ve.secret,Ve.counter)}keyuri(Ve,Me,J,Ie){return Y(Ve,Me,J,Ie,this.allOptions())}}function ee(j){if("number"==typeof j)return[Math.abs(j),Math.abs(j)];if(Array.isArray(j)){const[Ve,Me]=j;if("number"==typeof Ve&&"number"==typeof Me)return[Math.abs(Ve),Math.abs(Me)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ue(j){if(h(j),ee(j.window),"number"!=typeof j.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof j.step)throw new Error("Expecting options.step to be a number.")}const ne=(j,Ve,Me)=>{const J=j.length,Ie=Buffer.from(j,Ve).toString("hex");if(J{switch(j){case K.HashAlgorithms.SHA1:return ne(Ve,Me,20);case K.HashAlgorithms.SHA256:return ne(Ve,Me,32);case K.HashAlgorithms.SHA512:return ne(Ve,Me,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${j}.`)}};function ge(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:re,digits:6,encoding:K.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function q(j){const Ve=eo(eo({},ge()),j);return ue(Ve),Object.freeze(Ve)}function _e(j,Ve){return Math.floor(j/Ve/1e3)}function x(j,Ve){return B(j,_e(Ve.epoch,Ve.step),Ve)}function i(j,Ve,Me,J){const Ie=[];if(0===J)return Ie;for(let ut=1;ut<=J;ut++)Ie.push(j+Ve*ut*Me);return Ie}function r(j,Ve,Me){const J=ee(Me),Ie=1e3*Ve;return{current:j,past:i(j,-1,Ie,J[0]),future:i(j,1,Ie,J[1])}}function u(j,Ve,Me){return!!a(j)&&j===x(Ve,Me)}function c(j,Ve,Me,J){let Ie=null;return j.some((ut,Oe)=>!!u(Ve,Me,$9(eo({},J),{epoch:ut}))&&(Ie=Oe+1,!0)),Ie}function v(j,Ve,Me){if(u(j,Ve,Me))return 0;const J=r(Me.epoch,Me.step,Me.window),Ie=c(J.past,j,Ve,Me);return null!==Ie?-1*Ie:c(J.future,j,Ve,Me)}function T(j,Ve){return Math.floor(j/1e3)%Ve}function I(j,Ve){return Ve-T(j,Ve)}function y(j,Ve,Me,J){return d({algorithm:J.algorithm,digits:J.digits,step:J.step,type:K.Strategy.TOTP,accountName:j,issuer:Ve,secret:Me})}class n extends ae{create(Ve={}){return new n(Ve)}allOptions(){return q(this.options)}generate(Ve){return x(Ve,this.allOptions())}checkDelta(Ve,Me){return v(Ve,Me,this.allOptions())}check(Ve,Me){return"number"==typeof this.checkDelta(Ve,Me)}verify(Ve){if("object"!=typeof Ve)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ve.token,Ve.secret)}timeRemaining(){const Ve=this.allOptions();return I(Ve.epoch,Ve.step)}timeUsed(){const Ve=this.allOptions();return T(Ve.epoch,Ve.step)}keyuri(Ve,Me,J){return y(Ve,Me,J,this.allOptions())}}function _(j){if(ue(j),"function"!=typeof j.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(j.keyEncoder&&"function"!=typeof j.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function V(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:re,digits:6,encoding:K.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(j){const Ve=eo(eo({},V()),j);return _(Ve),Object.freeze(Ve)}function H(j,Ve){return Ve.keyEncoder(j,Ve.encoding)}function X(j,Ve){return Ve.keyDecoder(j,Ve.encoding)}function he(j,Ve){return H(Ve.createRandomBytes(j,Ve.encoding),Ve)}function be(j,Ve){return x(X(j,Ve),Ve)}function Pe(j,Ve,Me){return v(j,X(Ve,Me),Me)}class Ee extends n{create(Ve={}){return new Ee(Ve)}allOptions(){return N(this.options)}generate(Ve){return be(Ve,this.allOptions())}checkDelta(Ve,Me){return Pe(Ve,Me,this.allOptions())}encode(Ve){return H(Ve,this.allOptions())}decode(Ve){return X(Ve,this.allOptions())}generateSecret(Ve=10){return he(Ve,this.allOptions())}}K.Authenticator=Ee,K.HASH_ALGORITHMS=t,K.HOTP=ae,K.KEY_ENCODINGS=e,K.OTP=R,K.STRATEGY=f,K.TOTP=n,K.authenticatorCheckWithWindow=Pe,K.authenticatorDecoder=X,K.authenticatorDefaultOptions=V,K.authenticatorEncoder=H,K.authenticatorGenerateSecret=he,K.authenticatorOptionValidator=_,K.authenticatorOptions=N,K.authenticatorToken=be,K.createDigestPlaceholder=M,K.hotpCheck=Z,K.hotpCounter=S,K.hotpCreateHmacKey=L,K.hotpDefaultOptions=w,K.hotpDigestToToken=k,K.hotpKeyuri=Y,K.hotpOptions=D,K.hotpOptionsValidator=h,K.hotpToken=B,K.isTokenValid=a,K.keyuri=d,K.objectValues=p,K.padStart=C,K.totpCheck=u,K.totpCheckByEpoch=c,K.totpCheckWithWindow=v,K.totpCounter=_e,K.totpCreateHmacKey=re,K.totpDefaultOptions=ge,K.totpEpochAvailable=r,K.totpKeyuri=y,K.totpOptions=q,K.totpOptionsValidator=ue,K.totpPadSecret=ne,K.totpTimeRemaining=I,K.totpTimeUsed=T,K.totpToken=x},6098:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));K.createDigest=(a,C,d)=>e.createHmac(a,Buffer.from(C,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),K.createRandomBytes=(a,C)=>e.randomBytes(a).toString(C)},1415:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));K.keyDecoder=(a,C)=>e.decode(a).toString(C),K.keyEncoder=(a,C)=>e.encode(Buffer.from(a,C).toString("ascii")).toString().replace(/=/g,"")},842:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var t=p(6098),e=p(1415),f=p(7854);const M=new f.HOTP({createDigest:t.createDigest}),a=new f.TOTP({createDigest:t.createDigest}),C=new f.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});K.authenticator=C,K.hotp=M,K.totp=a},7977:(Be,K,p)=>{"use strict";const t=K;t.bignum=p(3854),t.define=p(9516).define,t.base=p(7813),t.constants=p(5459),t.decoders=p(196),t.encoders=p(1131)},9516:(Be,K,p)=>{"use strict";const t=p(1131),e=p(196),f=p(3894);function a(C,d){this.name=C,this.body=d,this.decoders={},this.encoders={}}K.define=function(d,R){return new a(d,R)},a.prototype._createNamed=function(d){const R=this.name;function h(L){this._initNamed(L,R)}return f(h,d),h.prototype._initNamed=function(w,D){d.call(this,w,D)},new h(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(e[d])),this.decoders[d]},a.prototype.decode=function(d,R,h){return this._getDecoder(R).decode(d,h)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(t[d])),this.encoders[d]},a.prototype.encode=function(d,R,h){return this._getEncoder(R).encode(d,h)}},2769:(Be,K,p)=>{"use strict";const t=p(3894),e=p(4919).b,f=p(2038).Buffer;function M(C,d){e.call(this,d),f.isBuffer(C)?(this.base=C,this.offset=0,this.length=C.length):this.error("Input not Buffer")}function a(C,d){if(Array.isArray(C))this.length=0,this.value=C.map(function(R){return a.isEncoderBuffer(R)||(R=new a(R,d)),this.length+=R.length,R},this);else if("number"==typeof C){if(!(0<=C&&C<=255))return d.error("non-byte EncoderBuffer value");this.value=C,this.length=1}else if("string"==typeof C)this.value=C,this.length=f.byteLength(C);else{if(!f.isBuffer(C))return d.error("Unsupported type: "+typeof C);this.value=C,this.length=C.length}}t(M,e),K.C=M,M.isDecoderBuffer=function(d){return d instanceof M||"object"==typeof d&&f.isBuffer(d.base)&&"DecoderBuffer"===d.constructor.name&&"number"==typeof d.offset&&"number"==typeof d.length&&"function"==typeof d.save&&"function"==typeof d.restore&&"function"==typeof d.isEmpty&&"function"==typeof d.readUInt8&&"function"==typeof d.skip&&"function"==typeof d.raw},M.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},M.prototype.restore=function(d){const R=new M(this.base);return R.offset=d.offset,R.length=this.offset,this.offset=d.offset,e.prototype.restore.call(this,d.reporter),R},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},M.prototype.skip=function(d,R){if(!(this.offset+d<=this.length))return this.error(R||"DecoderBuffer overrun");const h=new M(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},M.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},K.R=a,a.isEncoderBuffer=function(d){return d instanceof a||"object"==typeof d&&"EncoderBuffer"===d.constructor.name&&"number"==typeof d.length&&"function"==typeof d.join},a.prototype.join=function(d,R){return d||(d=f.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(d,R),R+=h.length}):("number"==typeof this.value?d[R]=this.value:"string"==typeof this.value?d.write(this.value,R):f.isBuffer(this.value)&&this.value.copy(d,R),R+=this.length)),d}},7813:(Be,K,p)=>{"use strict";const t=K;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(Be,K,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,f=p(2769).C,M=p(2391),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"],C=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function R(L,w,D){const S={};this._baseState=S,S.name=D,S.enc=L,S.parent=w||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,S.parent||(S.children=[],this._wrap())}Be.exports=R;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const w=this._baseState,D={};h.forEach(function(k){D[k]=w[k]});const S=new this.constructor(D.parent);return S._baseState=D,S},R.prototype._wrap=function(){const w=this._baseState;C.forEach(function(D){this[D]=function(){const k=new this.constructor(this);return w.children.push(k),k[D].apply(k,arguments)}},this)},R.prototype._init=function(w){const D=this._baseState;M(null===D.parent),w.call(this),D.children=D.children.filter(function(S){return S._baseState.parent===this},this),M.equal(D.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(w){const D=this._baseState,S=w.filter(function(k){return k instanceof this.constructor},this);w=w.filter(function(k){return!(k instanceof this.constructor)},this),0!==S.length&&(M(null===D.children),D.children=S,S.forEach(function(k){k._baseState.parent=this},this)),0!==w.length&&(M(null===D.args),D.args=w,D.reverseArgs=w.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const E={};return Object.keys(k).forEach(function(B){B==(0|B)&&(B|=0),E[k[B]]=B}),E}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){R.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(L){R.prototype[L]=function(){const D=this._baseState,S=Array.prototype.slice.call(arguments);return M(null===D.tag),D.tag=L,this._useArgs(S),this}}),R.prototype.use=function(w){M(w);const D=this._baseState;return M(null===D.use),D.use=w,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(w){const D=this._baseState;return M(null===D.default),D.default=w,D.optional=!0,this},R.prototype.explicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.explicit=w,this},R.prototype.implicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.implicit=w,this},R.prototype.obj=function(){const w=this._baseState,D=Array.prototype.slice.call(arguments);return w.obj=!0,0!==D.length&&this._useArgs(D),this},R.prototype.key=function(w){const D=this._baseState;return M(null===D.key),D.key=w,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(w){const D=this._baseState;return M(null===D.choice),D.choice=w,this._useArgs(Object.keys(w).map(function(S){return w[S]})),this},R.prototype.contains=function(w){const D=this._baseState;return M(null===D.use),D.contains=w,this},R.prototype._decode=function(w,D){const S=this._baseState;if(null===S.parent)return w.wrapResult(S.children[0]._decode(w,D));let Z,k=S.default,E=!0,B=null;if(null!==S.key&&(B=w.enterKey(S.key)),S.optional){let Y=null;if(null!==S.explicit?Y=S.explicit:null!==S.implicit?Y=S.implicit:null!==S.tag&&(Y=S.tag),null!==Y||S.any){if(E=this._peekTag(w,Y,S.any),w.isError(E))return E}else{const ae=w.save();try{null===S.choice?this._decodeGeneric(S.tag,w,D):this._decodeChoice(w,D),E=!0}catch(ee){E=!1}w.restore(ae)}}if(S.obj&&E&&(Z=w.enterObject()),E){if(null!==S.explicit){const ae=this._decodeTag(w,S.explicit);if(w.isError(ae))return ae;w=ae}const Y=w.offset;if(null===S.use&&null===S.choice){let ae;S.any&&(ae=w.save());const ee=this._decodeTag(w,null!==S.implicit?S.implicit:S.tag,S.any);if(w.isError(ee))return ee;S.any?k=w.raw(ae):w=ee}if(D&&D.track&&null!==S.tag&&D.track(w.path(),Y,w.length,"tagged"),D&&D.track&&null!==S.tag&&D.track(w.path(),w.offset,w.length,"content"),S.any||(k=null===S.choice?this._decodeGeneric(S.tag,w,D):this._decodeChoice(w,D)),w.isError(k))return k;if(!S.any&&null===S.choice&&null!==S.children&&S.children.forEach(function(ee){ee._decode(w,D)}),S.contains&&("octstr"===S.tag||"bitstr"===S.tag)){const ae=new f(k);k=this._getUse(S.contains,w._reporterState.obj)._decode(ae,D)}}return S.obj&&E&&(k=w.leaveObject(Z)),null===S.key||null===k&&!0!==E?null!==B&&w.exitKey(B):w.leaveKey(B,S.key,k),k},R.prototype._decodeGeneric=function(w,D,S){const k=this._baseState;return"seq"===w||"set"===w?null:"seqof"===w||"setof"===w?this._decodeList(D,w,k.args[0],S):/str$/.test(w)?this._decodeStr(D,w,S):"objid"===w&&k.args?this._decodeObjid(D,k.args[0],k.args[1],S):"objid"===w?this._decodeObjid(D,null,null,S):"gentime"===w||"utctime"===w?this._decodeTime(D,w,S):"null_"===w?this._decodeNull(D,S):"bool"===w?this._decodeBool(D,S):"objDesc"===w?this._decodeStr(D,w,S):"int"===w||"enum"===w?this._decodeInt(D,k.args&&k.args[0],S):null!==k.use?this._getUse(k.use,D._reporterState.obj)._decode(D,S):D.error("unknown tag: "+w)},R.prototype._getUse=function(w,D){const S=this._baseState;return S.useDecoder=this._use(w,D),M(null===S.useDecoder._baseState.parent),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},R.prototype._decodeChoice=function(w,D){const S=this._baseState;let k=null,E=!1;return Object.keys(S.choice).some(function(B){const Z=w.save(),Y=S.choice[B];try{const ae=Y._decode(w,D);if(w.isError(ae))return!1;k={type:B,value:ae},E=!0}catch(ae){return w.restore(Z),!1}return!0},this),E?k:w.error("Choice not matched")},R.prototype._createEncoderBuffer=function(w){return new e(w,this.reporter)},R.prototype._encode=function(w,D,S){const k=this._baseState;if(null!==k.default&&k.default===w)return;const E=this._encodeValue(w,D,S);return void 0===E||this._skipDefault(E,D,S)?void 0:E},R.prototype._encodeValue=function(w,D,S){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(w,D||new t);let E=null;if(this.reporter=D,k.optional&&void 0===w){if(null===k.default)return;w=k.default}let B=null,Z=!1;if(k.any)E=this._createEncoderBuffer(w);else if(k.choice)E=this._encodeChoice(w,D);else if(k.contains)B=this._getUse(k.contains,S)._encode(w,D),Z=!0;else if(k.children)B=k.children.map(function(Y){if("null_"===Y._baseState.tag)return Y._encode(null,D,w);if(null===Y._baseState.key)return D.error("Child should have a key");const ae=D.enterKey(Y._baseState.key);if("object"!=typeof w)return D.error("Child expected, but input is not object");const ee=Y._encode(w[Y._baseState.key],D,w);return D.leaveKey(ae),ee},this).filter(function(Y){return Y}),B=this._createEncoderBuffer(B);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return D.error("Too many args for : "+k.tag);if(!Array.isArray(w))return D.error("seqof/setof, but data is not Array");const Y=this.clone();Y._baseState.implicit=null,B=this._createEncoderBuffer(w.map(function(ae){return this._getUse(this._baseState.args[0],w)._encode(ae,D)},Y))}else null!==k.use?E=this._getUse(k.use,S)._encode(w,D):(B=this._encodePrimitive(k.tag,w),Z=!0);if(!k.any&&null===k.choice){const Y=null!==k.implicit?k.implicit:k.tag,ae=null===k.implicit?"universal":"context";null===Y?null===k.use&&D.error("Tag could be omitted only for .use()"):null===k.use&&(E=this._encodeComposite(Y,Z,ae,B))}return null!==k.explicit&&(E=this._encodeComposite(k.explicit,!1,"context",E)),E},R.prototype._encodeChoice=function(w,D){const S=this._baseState,k=S.choice[w.type];return k||M(!1,w.type+" not found in "+JSON.stringify(Object.keys(S.choice))),k._encode(w.value,D)},R.prototype._encodePrimitive=function(w,D){const S=this._baseState;if(/str$/.test(w))return this._encodeStr(D,w);if("objid"===w&&S.args)return this._encodeObjid(D,S.reverseArgs[0],S.args[1]);if("objid"===w)return this._encodeObjid(D,null,null);if("gentime"===w||"utctime"===w)return this._encodeTime(D,w);if("null_"===w)return this._encodeNull();if("int"===w||"enum"===w)return this._encodeInt(D,S.args&&S.reverseArgs[0]);if("bool"===w)return this._encodeBool(D);if("objDesc"===w)return this._encodeStr(D,w);throw new Error("Unsupported tag: "+w)},R.prototype._isNumstr=function(w){return/^[0-9 ]*$/.test(w)},R.prototype._isPrintstr=function(w){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(w)}},4919:(Be,K,p)=>{"use strict";const t=p(3894);function e(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function f(M,a){this.path=M,this.rethrow(a)}K.b=e,e.prototype.isError=function(a){return a instanceof f},e.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},e.prototype.restore=function(a){const C=this._reporterState;C.obj=a.obj,C.path=C.path.slice(0,a.pathLen)},e.prototype.enterKey=function(a){return this._reporterState.path.push(a)},e.prototype.exitKey=function(a){const C=this._reporterState;C.path=C.path.slice(0,a-1)},e.prototype.leaveKey=function(a,C,d){const R=this._reporterState;this.exitKey(a),null!==R.obj&&(R.obj[C]=d)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const a=this._reporterState,C=a.obj;return a.obj={},C},e.prototype.leaveObject=function(a){const C=this._reporterState,d=C.obj;return C.obj=a,d},e.prototype.error=function(a){let C;const d=this._reporterState,R=a instanceof f;if(C=R?a:new f(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw C;return R||d.errors.push(C),C},e.prototype.wrapResult=function(a){const C=this._reporterState;return C.options.partial?{result:this.isError(a)?null:a,errors:C.errors}:a},t(f,Error),f.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(C){this.stack=C.stack}return this}},5496:(Be,K)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(f){(0|f)==f&&(f|=0),e[t[f]]=f}),e}K.tagClass={0:"universal",1:"application",2:"context",3:"private"},K.tagClassByName=p(K.tagClass),K.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"},K.tagByName=p(K.tag)},5459:(Be,K,p)=>{"use strict";const t=K;t._reverse=function(f){const M={};return Object.keys(f).forEach(function(a){(0|a)==a&&(a|=0),M[f[a]]=a}),M},t.der=p(5496)},7127:(Be,K,p)=>{"use strict";const t=p(3894),e=p(3854),f=p(2769).C,M=p(1430),a=p(5496);function C(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new d,this.tree._init(L.body)}function d(L){M.call(this,"der",L)}function R(L,w){let D=L.readUInt8(w);if(L.isError(D))return D;const S=a.tagClass[D>>6],k=0==(32&D);if(31==(31&D)){let B=D;for(D=0;128==(128&B);){if(B=L.readUInt8(w),L.isError(B))return B;D<<=7,D|=127&B}}else D&=31;return{cls:S,primitive:k,tag:D,tagStr:a.tag[D]}}function h(L,w,D){let S=L.readUInt8(D);if(L.isError(S))return S;if(!w&&128===S)return null;if(0==(128&S))return S;const k=127&S;if(k>4)return L.error("length octect is too long");S=0;for(let E=0;E{"use strict";const t=K;t.der=p(7127),t.pem=p(9617)},9617:(Be,K,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(7127);function M(a){f.call(this,a),this.enc="pem"}t(M,f),Be.exports=M,M.prototype.decode=function(C,d){const R=C.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let w=-1,D=-1;for(let E=0;E{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(1430),M=p(5496);function a(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new C,this.tree._init(h.body)}function C(h){f.call(this,"der",h)}function d(h){return h<10?"0"+h:h}Be.exports=a,a.prototype.encode=function(L,w){return this.tree._encode(L,w).join()},t(C,f),C.prototype._encodeComposite=function(L,w,D,S){const k=function R(h,L,w,D){let S;if("seqof"===h?h="seq":"setof"===h&&(h="set"),M.tagByName.hasOwnProperty(h))S=M.tagByName[h];else{if("number"!=typeof h||(0|h)!==h)return D.error("Unknown tag: "+h);S=h}return S>=31?D.error("Multi-octet tag encoding unsupported"):(L||(S|=32),S|=M.tagClassByName[w||"universal"]<<6,S)}(L,w,D,this.reporter);if(S.length<128){const Z=e.alloc(2);return Z[0]=k,Z[1]=S.length,this._createEncoderBuffer([Z,S])}let E=1;for(let Z=S.length;Z>=256;Z>>=8)E++;const B=e.alloc(2+E);B[0]=k,B[1]=128|E;for(let Z=1+E,Y=S.length;Y>0;Z--,Y>>=8)B[Z]=255&Y;return this._createEncoderBuffer([B,S])},C.prototype._encodeStr=function(L,w){if("bitstr"===w)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===w){const D=e.alloc(2*L.length);for(let S=0;S=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let S=0;for(let B=0;B=128;Z>>=7)S++}const k=e.alloc(S);let E=k.length-1;for(let B=L.length-1;B>=0;B--){let Z=L[B];for(k[E--]=127&Z;(Z>>=7)>0;)k[E--]=128|127&Z}return this._createEncoderBuffer(k)},C.prototype._encodeTime=function(L,w){let D;const S=new Date(L);return"gentime"===w?D=[d(S.getUTCFullYear()),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):"utctime"===w?D=[d(S.getUTCFullYear()%100),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+w+" time is not supported yet"),this._encodeStr(D,"octstr")},C.prototype._encodeNull=function(){return this._createEncoderBuffer("")},C.prototype._encodeInt=function(L,w){if("string"==typeof L){if(!w)return this.reporter.error("String int or enum given, but no values map");if(!w.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=w[L]}if("number"!=typeof L&&!e.isBuffer(L)){const k=L.toArray();!L.sign&&128&k[0]&&k.unshift(0),L=e.from(k)}if(e.isBuffer(L)){let k=L.length;0===L.length&&k++;const E=e.alloc(k);return L.copy(E),0===L.length&&(E[0]=0),this._createEncoderBuffer(E)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let D=1;for(let k=L;k>=256;k>>=8)D++;const S=new Array(D);for(let k=S.length-1;k>=0;k--)S[k]=255&L,L>>=8;return 128&S[0]&&S.unshift(0),this._createEncoderBuffer(e.from(S))},C.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},C.prototype._use=function(L,w){return"function"==typeof L&&(L=L(w)),L._getEncoder("der").tree},C.prototype._skipDefault=function(L,w,D){const S=this._baseState;let k;if(null===S.default)return!1;const E=L.join();if(void 0===S.defaultBuffer&&(S.defaultBuffer=this._encodeValue(S.default,w,D).join()),E.length!==S.defaultBuffer.length)return!1;for(k=0;k{"use strict";const t=K;t.der=p(6374),t.pem=p(3530)},3530:(Be,K,p)=>{"use strict";const t=p(3894),e=p(6374);function f(M){e.call(this,M),this.enc="pem"}t(f,e),Be.exports=f,f.prototype.encode=function(a,C){const R=e.prototype.encode.call(this,a).toString("base64"),h=["-----BEGIN "+C.label+"-----"];for(let L=0;L=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Ei=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Ei,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},5343:(Be,K)=>{"use strict";K.byteLength=function d(S){var k=C(S),B=k[1];return 3*(k[0]+B)/4-B},K.toByteArray=function h(S){var k,ue,E=C(S),B=E[0],Z=E[1],Y=new e(function R(S,k,E){return 3*(k+E)/4-E}(0,B,Z)),ae=0,ee=Z>0?B-4:B;for(ue=0;ue>16&255,Y[ae++]=k>>8&255,Y[ae++]=255&k;return 2===Z&&(k=t[S.charCodeAt(ue)]<<2|t[S.charCodeAt(ue+1)]>>4,Y[ae++]=255&k),1===Z&&(k=t[S.charCodeAt(ue)]<<10|t[S.charCodeAt(ue+1)]<<4|t[S.charCodeAt(ue+2)]>>2,Y[ae++]=k>>8&255,Y[ae++]=255&k),Y},K.fromByteArray=function D(S){for(var k,E=S.length,B=E%3,Z=[],Y=16383,ae=0,ee=E-B;aeee?ee:ae+Y));return 1===B?Z.push(p[(k=S[E-1])>>2]+p[k<<4&63]+"=="):2===B&&Z.push(p[(k=(S[E-2]<<8)+S[E-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),Z.join("")};for(var p=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,a=f.length;M0)throw new Error("Invalid string. Length must be a multiple of 4");var E=S.indexOf("=");return-1===E&&(E=k),[E,E===k?0:4-E%4]}function L(S){return p[S>>18&63]+p[S>>12&63]+p[S>>6&63]+p[63&S]}function w(S,k,E){for(var Z=[],Y=k;Y=48&&v<=57?v-48:v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:void f(!1,"Invalid character in "+u)}function R(u,c,v){var T=d(u,v);return v-1>=c&&(T|=d(u,v-1)<<4),T}function h(u,c,v,T){for(var I=0,y=0,n=Math.min(u.length,v),_=c;_=49?V-49+10:V>=17?V-17+10:V,f(V>=0&&y0?c:v},a.min=function(c,v){return c.cmp(v)<0?c:v},a.prototype._init=function(c,v,T){if("number"==typeof c)return this._initNumber(c,v,T);if("object"==typeof c)return this._initArray(c,v,T);"hex"===v&&(v=16),f(v===(0|v)&&v>=2&&v<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[y]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<<_&67108863,this.words[y+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,y++);else if("le"===T)for(I=0,y=0;I>>26-_&67108863,(_+=24)>=26&&(_-=26,y++);return this._strip()},a.prototype._parseHex=function(c,v,T){this.length=Math.ceil((c.length-v)/6),this.words=new Array(this.length);for(var I=0;I=v;I-=2)_=R(c,v,I)<=18?(y-=18,this.words[n+=1]|=_>>>26):y+=8;else for(I=(c.length-v)%2==0?v+1:v;I=18?(y-=18,this.words[n+=1]|=_>>>26):y+=8;this._strip()},a.prototype._parseBase=function(c,v,T){this.words=[0],this.length=1;for(var I=0,y=1;y<=67108863;y*=v)I++;I--,y=y/v|0;for(var n=c.length-T,_=n%I,V=Math.min(n,n-_)+T,N=0,H=T;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch(u){a.prototype.inspect=w}else a.prototype.inspect=w;function w(){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"],S=[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],k=[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 Z(u,c,v){v.negative=c.negative^u.negative;var T=u.length+c.length|0;v.length=T,T=T-1|0;var I=0|u.words[0],y=0|c.words[0],n=I*y,V=n/67108864|0;v.words[0]=67108863&n;for(var N=1;N>>26,X=67108863&V,he=Math.min(N,c.length-1),be=Math.max(0,N-u.length+1);be<=he;be++)H+=(n=(I=0|u.words[N-be|0])*(y=0|c.words[be])+X)/67108864|0,X=67108863&n;v.words[N]=0|X,V=0|H}return 0!==V?v.words[N]=0|V:v.length--,v._strip()}a.prototype.toString=function(c,v){var T;if(v=0|v||1,16===(c=c||10)||"hex"===c){T="";for(var I=0,y=0,n=0;n>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),T=0!==y||n!==this.length-1?D[6-V.length]+V+T:V+T}for(0!==y&&(T=y.toString(16)+T);T.length%v!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(c===(0|c)&&c>=2&&c<=36){var N=S[c],H=k[c];T="";var X=this.clone();for(X.negative=0;!X.isZero();){var he=X.modrn(H).toString(c);T=(X=X.idivn(H)).isZero()?he+T:D[N-he.length]+he+T}for(this.isZero()&&(T="0"+T);T.length%v!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},C&&(a.prototype.toBuffer=function(c,v){return this.toArrayLike(C,c,v)}),a.prototype.toArray=function(c,v){return this.toArrayLike(Array,c,v)},a.prototype.toArrayLike=function(c,v,T){this._strip();var I=this.byteLength(),y=T||Math.max(1,I);f(I<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0");var n=function(c,v){return c.allocUnsafe?c.allocUnsafe(v):new c(v)}(c,y);return this["_toArrayLike"+("le"===v?"LE":"BE")](n,I),n},a.prototype._toArrayLikeLE=function(c,v){for(var T=0,I=0,y=0,n=0;y>8&255),T>16&255),6===n?(T>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(T=0&&(c[T--]=_>>8&255),T>=0&&(c[T--]=_>>16&255),6===n?(T>=0&&(c[T--]=_>>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(T>=0)for(c[T--]=I;T>=0;)c[T--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var v=c,T=0;return v>=4096&&(T+=13,v>>>=13),v>=64&&(T+=7,v>>>=7),v>=8&&(T+=4,v>>>=4),v>=2&&(T+=2,v>>>=2),T+v},a.prototype._zeroBits=function(c){if(0===c)return 26;var v=c,T=0;return 0==(8191&v)&&(T+=13,v>>>=13),0==(127&v)&&(T+=7,v>>>=7),0==(15&v)&&(T+=4,v>>>=4),0==(3&v)&&(T+=2,v>>>=2),0==(1&v)&&T++,T},a.prototype.bitLength=function(){var v=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+v},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,v=0;vc.length?this.clone().ior(c):c.clone().ior(this)},a.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},a.prototype.iuand=function(c){var v;v=this.length>c.length?c:this;for(var T=0;Tc.length?this.clone().iand(c):c.clone().iand(this)},a.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},a.prototype.iuxor=function(c){var v,T;this.length>c.length?(v=this,T=c):(v=c,T=this);for(var I=0;Ic.length?this.clone().ixor(c):c.clone().ixor(this)},a.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},a.prototype.inotn=function(c){f("number"==typeof c&&c>=0);var v=0|Math.ceil(c/26),T=c%26;this._expand(v),T>0&&v--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-T),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,v){f("number"==typeof c&&c>=0);var T=c/26|0,I=c%26;return this._expand(T+1),this.words[T]=v?this.words[T]|1<c.length?(T=this,I=c):(T=c,I=this);for(var y=0,n=0;n>>26;for(;0!==y&&n>>26;if(this.length=T.length,0!==y)this.words[this.length]=y,this.length++;else if(T!==this)for(;nc.length?this.clone().iadd(c):c.clone().iadd(this)},a.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var v=this.iadd(c);return c.negative=1,v._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,y,T=this.cmp(c);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(I=this,y=c):(I=c,y=this);for(var n=0,_=0;_>26,this.words[_]=67108863&v;for(;0!==n&&_>26,this.words[_]=67108863&v;if(0===n&&_>>13,Pe=0|I[1],Ee=8191&Pe,j=Pe>>>13,Ve=0|I[2],Me=8191&Ve,J=Ve>>>13,Ie=0|I[3],ut=8191&Ie,Oe=Ie>>>13,we=0|I[4],ce=8191&we,Te=we>>>13,xe=0|I[5],W=8191&xe,te=xe>>>13,Ce=0|I[6],fe=8191&Ce,Q=Ce>>>13,pt=0|I[7],tt=8191&pt,Dt=pt>>>13,di=0|I[8],Yt=8191&di,Zt=di>>>13,ui=0|I[9],Ot=8191&ui,Nt=ui>>>13,gt=0|y[0],it=8191>,bt=gt>>>13,ti=0|y[1],Qt=8191&ti,Re=ti>>>13,ke=0|y[2],de=8191&ke,ye=ke>>>13,ht=0|y[3],mt=8191&ht,Ft=ht>>>13,nt=0|y[4],He=8191&nt,rt=nt>>>13,et=0|y[5],Ae=8191&et,Ge=et>>>13,ot=0|y[6],lt=8191&ot,Ct=ot>>>13,mi=0|y[7],Jt=8191&mi,ei=mi>>>13,Qi=0|y[8],hi=8191&Qi,si=Qi>>>13,Ji=0|y[9],Zi=8191&Ji,Vi=Ji>>>13;T.negative=c.negative^v.negative,T.length=19;var Ui=(_+(V=Math.imul(he,it))|0)+((8191&(N=(N=Math.imul(he,bt))+Math.imul(be,it)|0))<<13)|0;_=((H=Math.imul(be,bt))+(N>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,V=Math.imul(Ee,it),N=(N=Math.imul(Ee,bt))+Math.imul(j,it)|0,H=Math.imul(j,bt);var Ue=(_+(V=V+Math.imul(he,Qt)|0)|0)+((8191&(N=(N=N+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0))<<13)|0;_=((H=H+Math.imul(be,Re)|0)+(N>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,V=Math.imul(Me,it),N=(N=Math.imul(Me,bt))+Math.imul(J,it)|0,H=Math.imul(J,bt),V=V+Math.imul(Ee,Qt)|0,N=(N=N+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,H=H+Math.imul(j,Re)|0;var Tt=(_+(V=V+Math.imul(he,de)|0)|0)+((8191&(N=(N=N+Math.imul(he,ye)|0)+Math.imul(be,de)|0))<<13)|0;_=((H=H+Math.imul(be,ye)|0)+(N>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,V=Math.imul(ut,it),N=(N=Math.imul(ut,bt))+Math.imul(Oe,it)|0,H=Math.imul(Oe,bt),V=V+Math.imul(Me,Qt)|0,N=(N=N+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,H=H+Math.imul(J,Re)|0,V=V+Math.imul(Ee,de)|0,N=(N=N+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,H=H+Math.imul(j,ye)|0;var ve=(_+(V=V+Math.imul(he,mt)|0)|0)+((8191&(N=(N=N+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0))<<13)|0;_=((H=H+Math.imul(be,Ft)|0)+(N>>>13)|0)+(ve>>>26)|0,ve&=67108863,V=Math.imul(ce,it),N=(N=Math.imul(ce,bt))+Math.imul(Te,it)|0,H=Math.imul(Te,bt),V=V+Math.imul(ut,Qt)|0,N=(N=N+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,H=H+Math.imul(Oe,Re)|0,V=V+Math.imul(Me,de)|0,N=(N=N+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,H=H+Math.imul(J,ye)|0,V=V+Math.imul(Ee,mt)|0,N=(N=N+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,H=H+Math.imul(j,Ft)|0;var Qe=(_+(V=V+Math.imul(he,He)|0)|0)+((8191&(N=(N=N+Math.imul(he,rt)|0)+Math.imul(be,He)|0))<<13)|0;_=((H=H+Math.imul(be,rt)|0)+(N>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,V=Math.imul(W,it),N=(N=Math.imul(W,bt))+Math.imul(te,it)|0,H=Math.imul(te,bt),V=V+Math.imul(ce,Qt)|0,N=(N=N+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,H=H+Math.imul(Te,Re)|0,V=V+Math.imul(ut,de)|0,N=(N=N+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,H=H+Math.imul(Oe,ye)|0,V=V+Math.imul(Me,mt)|0,N=(N=N+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,H=H+Math.imul(J,Ft)|0,V=V+Math.imul(Ee,He)|0,N=(N=N+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,H=H+Math.imul(j,rt)|0;var _t=(_+(V=V+Math.imul(he,Ae)|0)|0)+((8191&(N=(N=N+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0))<<13)|0;_=((H=H+Math.imul(be,Ge)|0)+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,V=Math.imul(fe,it),N=(N=Math.imul(fe,bt))+Math.imul(Q,it)|0,H=Math.imul(Q,bt),V=V+Math.imul(W,Qt)|0,N=(N=N+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,H=H+Math.imul(te,Re)|0,V=V+Math.imul(ce,de)|0,N=(N=N+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,H=H+Math.imul(Te,ye)|0,V=V+Math.imul(ut,mt)|0,N=(N=N+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,H=H+Math.imul(Oe,Ft)|0,V=V+Math.imul(Me,He)|0,N=(N=N+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,H=H+Math.imul(J,rt)|0,V=V+Math.imul(Ee,Ae)|0,N=(N=N+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,H=H+Math.imul(j,Ge)|0;var se=(_+(V=V+Math.imul(he,lt)|0)|0)+((8191&(N=(N=N+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0))<<13)|0;_=((H=H+Math.imul(be,Ct)|0)+(N>>>13)|0)+(se>>>26)|0,se&=67108863,V=Math.imul(tt,it),N=(N=Math.imul(tt,bt))+Math.imul(Dt,it)|0,H=Math.imul(Dt,bt),V=V+Math.imul(fe,Qt)|0,N=(N=N+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,H=H+Math.imul(Q,Re)|0,V=V+Math.imul(W,de)|0,N=(N=N+Math.imul(W,ye)|0)+Math.imul(te,de)|0,H=H+Math.imul(te,ye)|0,V=V+Math.imul(ce,mt)|0,N=(N=N+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,H=H+Math.imul(Te,Ft)|0,V=V+Math.imul(ut,He)|0,N=(N=N+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,H=H+Math.imul(Oe,rt)|0,V=V+Math.imul(Me,Ae)|0,N=(N=N+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,H=H+Math.imul(J,Ge)|0,V=V+Math.imul(Ee,lt)|0,N=(N=N+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,H=H+Math.imul(j,Ct)|0;var Xe=(_+(V=V+Math.imul(he,Jt)|0)|0)+((8191&(N=(N=N+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0))<<13)|0;_=((H=H+Math.imul(be,ei)|0)+(N>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,V=Math.imul(Yt,it),N=(N=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,H=Math.imul(Zt,bt),V=V+Math.imul(tt,Qt)|0,N=(N=N+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,H=H+Math.imul(Dt,Re)|0,V=V+Math.imul(fe,de)|0,N=(N=N+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,H=H+Math.imul(Q,ye)|0,V=V+Math.imul(W,mt)|0,N=(N=N+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,H=H+Math.imul(te,Ft)|0,V=V+Math.imul(ce,He)|0,N=(N=N+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,H=H+Math.imul(Te,rt)|0,V=V+Math.imul(ut,Ae)|0,N=(N=N+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,H=H+Math.imul(Oe,Ge)|0,V=V+Math.imul(Me,lt)|0,N=(N=N+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,H=H+Math.imul(J,Ct)|0,V=V+Math.imul(Ee,Jt)|0,N=(N=N+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,H=H+Math.imul(j,ei)|0;var xt=(_+(V=V+Math.imul(he,hi)|0)|0)+((8191&(N=(N=N+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;_=((H=H+Math.imul(be,si)|0)+(N>>>13)|0)+(xt>>>26)|0,xt&=67108863,V=Math.imul(Ot,it),N=(N=Math.imul(Ot,bt))+Math.imul(Nt,it)|0,H=Math.imul(Nt,bt),V=V+Math.imul(Yt,Qt)|0,N=(N=N+Math.imul(Yt,Re)|0)+Math.imul(Zt,Qt)|0,H=H+Math.imul(Zt,Re)|0,V=V+Math.imul(tt,de)|0,N=(N=N+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,H=H+Math.imul(Dt,ye)|0,V=V+Math.imul(fe,mt)|0,N=(N=N+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,H=H+Math.imul(Q,Ft)|0,V=V+Math.imul(W,He)|0,N=(N=N+Math.imul(W,rt)|0)+Math.imul(te,He)|0,H=H+Math.imul(te,rt)|0,V=V+Math.imul(ce,Ae)|0,N=(N=N+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,H=H+Math.imul(Te,Ge)|0,V=V+Math.imul(ut,lt)|0,N=(N=N+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,H=H+Math.imul(Oe,Ct)|0,V=V+Math.imul(Me,Jt)|0,N=(N=N+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,H=H+Math.imul(J,ei)|0,V=V+Math.imul(Ee,hi)|0,N=(N=N+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0,H=H+Math.imul(j,si)|0;var Bt=(_+(V=V+Math.imul(he,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(he,Vi)|0)+Math.imul(be,Zi)|0))<<13)|0;_=((H=H+Math.imul(be,Vi)|0)+(N>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,V=Math.imul(Ot,Qt),N=(N=Math.imul(Ot,Re))+Math.imul(Nt,Qt)|0,H=Math.imul(Nt,Re),V=V+Math.imul(Yt,de)|0,N=(N=N+Math.imul(Yt,ye)|0)+Math.imul(Zt,de)|0,H=H+Math.imul(Zt,ye)|0,V=V+Math.imul(tt,mt)|0,N=(N=N+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,H=H+Math.imul(Dt,Ft)|0,V=V+Math.imul(fe,He)|0,N=(N=N+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,H=H+Math.imul(Q,rt)|0,V=V+Math.imul(W,Ae)|0,N=(N=N+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,H=H+Math.imul(te,Ge)|0,V=V+Math.imul(ce,lt)|0,N=(N=N+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,H=H+Math.imul(Te,Ct)|0,V=V+Math.imul(ut,Jt)|0,N=(N=N+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,H=H+Math.imul(Oe,ei)|0,V=V+Math.imul(Me,hi)|0,N=(N=N+Math.imul(Me,si)|0)+Math.imul(J,hi)|0,H=H+Math.imul(J,si)|0;var bi=(_+(V=V+Math.imul(Ee,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(Ee,Vi)|0)+Math.imul(j,Zi)|0))<<13)|0;_=((H=H+Math.imul(j,Vi)|0)+(N>>>13)|0)+(bi>>>26)|0,bi&=67108863,V=Math.imul(Ot,de),N=(N=Math.imul(Ot,ye))+Math.imul(Nt,de)|0,H=Math.imul(Nt,ye),V=V+Math.imul(Yt,mt)|0,N=(N=N+Math.imul(Yt,Ft)|0)+Math.imul(Zt,mt)|0,H=H+Math.imul(Zt,Ft)|0,V=V+Math.imul(tt,He)|0,N=(N=N+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,H=H+Math.imul(Dt,rt)|0,V=V+Math.imul(fe,Ae)|0,N=(N=N+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,H=H+Math.imul(Q,Ge)|0,V=V+Math.imul(W,lt)|0,N=(N=N+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,H=H+Math.imul(te,Ct)|0,V=V+Math.imul(ce,Jt)|0,N=(N=N+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,H=H+Math.imul(Te,ei)|0,V=V+Math.imul(ut,hi)|0,N=(N=N+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0,H=H+Math.imul(Oe,si)|0;var Ei=(_+(V=V+Math.imul(Me,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(Me,Vi)|0)+Math.imul(J,Zi)|0))<<13)|0;_=((H=H+Math.imul(J,Vi)|0)+(N>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,V=Math.imul(Ot,mt),N=(N=Math.imul(Ot,Ft))+Math.imul(Nt,mt)|0,H=Math.imul(Nt,Ft),V=V+Math.imul(Yt,He)|0,N=(N=N+Math.imul(Yt,rt)|0)+Math.imul(Zt,He)|0,H=H+Math.imul(Zt,rt)|0,V=V+Math.imul(tt,Ae)|0,N=(N=N+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,H=H+Math.imul(Dt,Ge)|0,V=V+Math.imul(fe,lt)|0,N=(N=N+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,H=H+Math.imul(Q,Ct)|0,V=V+Math.imul(W,Jt)|0,N=(N=N+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,H=H+Math.imul(te,ei)|0,V=V+Math.imul(ce,hi)|0,N=(N=N+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0,H=H+Math.imul(Te,si)|0;var Xi=(_+(V=V+Math.imul(ut,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(ut,Vi)|0)+Math.imul(Oe,Zi)|0))<<13)|0;_=((H=H+Math.imul(Oe,Vi)|0)+(N>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,V=Math.imul(Ot,He),N=(N=Math.imul(Ot,rt))+Math.imul(Nt,He)|0,H=Math.imul(Nt,rt),V=V+Math.imul(Yt,Ae)|0,N=(N=N+Math.imul(Yt,Ge)|0)+Math.imul(Zt,Ae)|0,H=H+Math.imul(Zt,Ge)|0,V=V+Math.imul(tt,lt)|0,N=(N=N+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,H=H+Math.imul(Dt,Ct)|0,V=V+Math.imul(fe,Jt)|0,N=(N=N+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,H=H+Math.imul(Q,ei)|0,V=V+Math.imul(W,hi)|0,N=(N=N+Math.imul(W,si)|0)+Math.imul(te,hi)|0,H=H+Math.imul(te,si)|0;var Wi=(_+(V=V+Math.imul(ce,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(ce,Vi)|0)+Math.imul(Te,Zi)|0))<<13)|0;_=((H=H+Math.imul(Te,Vi)|0)+(N>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,V=Math.imul(Ot,Ae),N=(N=Math.imul(Ot,Ge))+Math.imul(Nt,Ae)|0,H=Math.imul(Nt,Ge),V=V+Math.imul(Yt,lt)|0,N=(N=N+Math.imul(Yt,Ct)|0)+Math.imul(Zt,lt)|0,H=H+Math.imul(Zt,Ct)|0,V=V+Math.imul(tt,Jt)|0,N=(N=N+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,H=H+Math.imul(Dt,ei)|0,V=V+Math.imul(fe,hi)|0,N=(N=N+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0,H=H+Math.imul(Q,si)|0;var on=(_+(V=V+Math.imul(W,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(W,Vi)|0)+Math.imul(te,Zi)|0))<<13)|0;_=((H=H+Math.imul(te,Vi)|0)+(N>>>13)|0)+(on>>>26)|0,on&=67108863,V=Math.imul(Ot,lt),N=(N=Math.imul(Ot,Ct))+Math.imul(Nt,lt)|0,H=Math.imul(Nt,Ct),V=V+Math.imul(Yt,Jt)|0,N=(N=N+Math.imul(Yt,ei)|0)+Math.imul(Zt,Jt)|0,H=H+Math.imul(Zt,ei)|0,V=V+Math.imul(tt,hi)|0,N=(N=N+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0,H=H+Math.imul(Dt,si)|0;var pn=(_+(V=V+Math.imul(fe,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(fe,Vi)|0)+Math.imul(Q,Zi)|0))<<13)|0;_=((H=H+Math.imul(Q,Vi)|0)+(N>>>13)|0)+(pn>>>26)|0,pn&=67108863,V=Math.imul(Ot,Jt),N=(N=Math.imul(Ot,ei))+Math.imul(Nt,Jt)|0,H=Math.imul(Nt,ei),V=V+Math.imul(Yt,hi)|0,N=(N=N+Math.imul(Yt,si)|0)+Math.imul(Zt,hi)|0,H=H+Math.imul(Zt,si)|0;var ii=(_+(V=V+Math.imul(tt,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(tt,Vi)|0)+Math.imul(Dt,Zi)|0))<<13)|0;_=((H=H+Math.imul(Dt,Vi)|0)+(N>>>13)|0)+(ii>>>26)|0,ii&=67108863,V=Math.imul(Ot,hi),N=(N=Math.imul(Ot,si))+Math.imul(Nt,hi)|0,H=Math.imul(Nt,si);var Ri=(_+(V=V+Math.imul(Yt,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(Yt,Vi)|0)+Math.imul(Zt,Zi)|0))<<13)|0;_=((H=H+Math.imul(Zt,Vi)|0)+(N>>>13)|0)+(Ri>>>26)|0,Ri&=67108863;var st=(_+(V=Math.imul(Ot,Zi))|0)+((8191&(N=(N=Math.imul(Ot,Vi))+Math.imul(Nt,Zi)|0))<<13)|0;return _=((H=Math.imul(Nt,Vi))+(N>>>13)|0)+(st>>>26)|0,st&=67108863,n[0]=Ui,n[1]=Ue,n[2]=Tt,n[3]=ve,n[4]=Qe,n[5]=_t,n[6]=se,n[7]=Xe,n[8]=xt,n[9]=Bt,n[10]=bi,n[11]=Ei,n[12]=Xi,n[13]=Wi,n[14]=on,n[15]=pn,n[16]=ii,n[17]=Ri,n[18]=st,0!==_&&(n[19]=_,T.length++),T};function ae(u,c,v){v.negative=c.negative^u.negative,v.length=u.length+c.length;for(var T=0,I=0,y=0;y>>26)|0)>>>26,n&=67108863}v.words[y]=_,T=n,n=I}return 0!==T?v.words[y]=T:v.length--,v._strip()}function ee(u,c,v){return ae(u,c,v)}function ue(u,c){this.x=u,this.y=c}Math.imul||(Y=Z),a.prototype.mulTo=function(c,v){var I=this.length+c.length;return 10===this.length&&10===c.length?Y(this,c,v):I<63?Z(this,c,v):I<1024?ae(this,c,v):ee(this,c,v)},ue.prototype.makeRBT=function(c){for(var v=new Array(c),T=a.prototype._countBits(c)-1,I=0;I>=1;return I},ue.prototype.permute=function(c,v,T,I,y,n){for(var _=0;_>>=1)y++;return 1<>>=13),y>>>=13;for(n=2*v;n>=26,T+=y/67108864|0,T+=n>>>26,this.words[I]=67108863&n}return 0!==T&&(this.words[I]=T,this.length++),v?this.ineg():this},a.prototype.muln=function(c){return this.clone().imuln(c)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(c){var v=function B(u){for(var c=new Array(u.bitLength()),v=0;v>>v%26&1;return c}(c);if(0===v.length)return new a(1);for(var T=this,I=0;I=0);var y,v=c%26,T=(c-v)/26,I=67108863>>>26-v<<26-v;if(0!==v){var n=0;for(y=0;y>>26-v}n&&(this.words[y]=n,this.length++)}if(0!==T){for(y=this.length-1;y>=0;y--)this.words[y+T]=this.words[y];for(y=0;y=0),I=v?(v-v%26)/26:0;var y=c%26,n=Math.min((c-y)/26,this.length),_=67108863^67108863>>>y<n)for(this.length-=n,N=0;N=0&&(0!==H||N>=I);N--){var X=0|this.words[N];this.words[N]=H<<26-y|X>>>y,H=X&_}return V&&0!==H&&(V.words[V.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,v,T){return f(0===this.negative),this.iushrn(c,v,T)},a.prototype.shln=function(c){return this.clone().ishln(c)},a.prototype.ushln=function(c){return this.clone().iushln(c)},a.prototype.shrn=function(c){return this.clone().ishrn(c)},a.prototype.ushrn=function(c){return this.clone().iushrn(c)},a.prototype.testn=function(c){f("number"==typeof c&&c>=0);var v=c%26,T=(c-v)/26;return!(this.length<=T||!(this.words[T]&1<=0);var v=c%26,T=(c-v)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==v&&T++,this.length=Math.min(T,this.length),0!==v&&(this.words[this.length-1]&=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(c){if(f("number"==typeof c),f(c<67108864),c<0)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(V/67108864|0),this.words[y+T]=67108863&n}for(;y>26,this.words[y+T]=67108863&n;if(0===_)return this._strip();for(f(-1===_),_=0,y=0;y>26,this.words[y]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,v){var T,I=this.clone(),y=c,n=0|y.words[y.length-1];0!=(T=26-this._countBits(n))&&(y=y.ushln(T),I.iushln(T),n=0|y.words[y.length-1]);var N,V=I.length-y.length;if("mod"!==v){(N=new a(null)).length=V+1,N.words=new Array(N.length);for(var H=0;H=0;he--){var be=67108864*(0|I.words[y.length+he])+(0|I.words[y.length+he-1]);for(be=Math.min(be/n|0,67108863),I._ishlnsubmul(y,be,he);0!==I.negative;)be--,I.negative=0,I._ishlnsubmul(y,1,he),I.isZero()||(I.negative^=1);N&&(N.words[he]=be)}return N&&N._strip(),I._strip(),"div"!==v&&0!==T&&I.iushrn(T),{div:N||null,mod:I}},a.prototype.divmod=function(c,v,T){return f(!c.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,v),"mod"!==v&&(I=n.div.neg()),"div"!==v&&(y=n.mod.neg(),T&&0!==y.negative&&y.iadd(c)),{div:I,mod:y}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),v),"mod"!==v&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),v),"div"!==v&&(y=n.mod.neg(),T&&0!==y.negative&&y.isub(c)),{div:n.div,mod:y}):c.length>this.length||this.cmp(c)<0?{div:new a(0),mod:this}:1===c.length?"div"===v?{div:this.divn(c.words[0]),mod:null}:"mod"===v?{div:null,mod:new a(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new a(this.modrn(c.words[0]))}:this._wordDiv(c,v);var I,y,n},a.prototype.div=function(c){return this.divmod(c,"div",!1).div},a.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},a.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},a.prototype.divRound=function(c){var v=this.divmod(c);if(v.mod.isZero())return v.div;var T=0!==v.div.negative?v.mod.isub(c):v.mod,I=c.ushrn(1),y=c.andln(1),n=T.cmp(I);return n<0||1===y&&0===n?v.div:0!==v.div.negative?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modrn=function(c){var v=c<0;v&&(c=-c),f(c<=67108863);for(var T=(1<<26)%c,I=0,y=this.length-1;y>=0;y--)I=(T*I+(0|this.words[y]))%c;return v?-I:I},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var v=c<0;v&&(c=-c),f(c<=67108863);for(var T=0,I=this.length-1;I>=0;I--){var y=(0|this.words[I])+67108864*T;this.words[I]=y/c|0,T=y%c}return this._strip(),v?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){f(0===c.negative),f(!c.isZero());var v=this,T=c.clone();v=0!==v.negative?v.umod(c):v.clone();for(var I=new a(1),y=new a(0),n=new a(0),_=new a(1),V=0;v.isEven()&&T.isEven();)v.iushrn(1),T.iushrn(1),++V;for(var N=T.clone(),H=v.clone();!v.isZero();){for(var X=0,he=1;0==(v.words[0]&he)&&X<26;++X,he<<=1);if(X>0)for(v.iushrn(X);X-- >0;)(I.isOdd()||y.isOdd())&&(I.iadd(N),y.isub(H)),I.iushrn(1),y.iushrn(1);for(var be=0,Pe=1;0==(T.words[0]&Pe)&&be<26;++be,Pe<<=1);if(be>0)for(T.iushrn(be);be-- >0;)(n.isOdd()||_.isOdd())&&(n.iadd(N),_.isub(H)),n.iushrn(1),_.iushrn(1);v.cmp(T)>=0?(v.isub(T),I.isub(n),y.isub(_)):(T.isub(v),n.isub(I),_.isub(y))}return{a:n,b:_,gcd:T.iushln(V)}},a.prototype._invmp=function(c){f(0===c.negative),f(!c.isZero());var X,v=this,T=c.clone();v=0!==v.negative?v.umod(c):v.clone();for(var I=new a(1),y=new a(0),n=T.clone();v.cmpn(1)>0&&T.cmpn(1)>0;){for(var _=0,V=1;0==(v.words[0]&V)&&_<26;++_,V<<=1);if(_>0)for(v.iushrn(_);_-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var N=0,H=1;0==(T.words[0]&H)&&N<26;++N,H<<=1);if(N>0)for(T.iushrn(N);N-- >0;)y.isOdd()&&y.iadd(n),y.iushrn(1);v.cmp(T)>=0?(v.isub(T),I.isub(y)):(T.isub(v),y.isub(I))}return(X=0===v.cmpn(1)?I:y).cmpn(0)<0&&X.iadd(c),X},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var v=this.clone(),T=c.clone();v.negative=0,T.negative=0;for(var I=0;v.isEven()&&T.isEven();I++)v.iushrn(1),T.iushrn(1);for(;;){for(;v.isEven();)v.iushrn(1);for(;T.isEven();)T.iushrn(1);var y=v.cmp(T);if(y<0){var n=v;v=T,T=n}else if(0===y||0===T.cmpn(1))break;v.isub(T)}return T.iushln(I)},a.prototype.invm=function(c){return this.egcd(c).a.umod(c)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(c){return this.words[0]&c},a.prototype.bincn=function(c){f("number"==typeof c);var v=c%26,T=(c-v)/26,I=1<>>26,this.words[n]=_&=67108863}return 0!==y&&(this.words[n]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(c){var T,v=c<0;if(0!==this.negative&&!v)return-1;if(0===this.negative&&v)return 1;if(this._strip(),this.length>1)T=1;else{v&&(c=-c),f(c<=67108863,"Number is too big");var I=0|this.words[0];T=I===c?0:Ic.length)return 1;if(this.length=0;T--){var I=0|this.words[T],y=0|c.words[T];if(I!==y){Iy&&(v=1);break}}return v},a.prototype.gtn=function(c){return 1===this.cmpn(c)},a.prototype.gt=function(c){return 1===this.cmp(c)},a.prototype.gten=function(c){return this.cmpn(c)>=0},a.prototype.gte=function(c){return this.cmp(c)>=0},a.prototype.ltn=function(c){return-1===this.cmpn(c)},a.prototype.lt=function(c){return-1===this.cmp(c)},a.prototype.lten=function(c){return this.cmpn(c)<=0},a.prototype.lte=function(c){return this.cmp(c)<=0},a.prototype.eqn=function(c){return 0===this.cmpn(c)},a.prototype.eq=function(c){return 0===this.cmp(c)},a.red=function(c){return new i(c)},a.prototype.toRed=function(c){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(c){return this.red=c,this},a.prototype.forceRed=function(c){return f(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return f(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var ne={k256:null,p224:null,p192:null,p25519:null};function re(u,c){this.name=u,this.p=new a(c,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _e(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var c=a._prime(u);this.m=c.p,this.prime=c}else f(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function r(u){i.call(this,u),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}re.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},re.prototype.ireduce=function(c){var T,v=c;do{this.split(v,this.tmp),T=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength()}while(T>this.n);var I=T0?v.isub(this.p):void 0!==v.strip?v.strip():v._strip(),v},re.prototype.split=function(c,v){c.iushrn(this.n,0,v)},re.prototype.imulK=function(c){return c.imul(this.k)},M(ge,re),ge.prototype.split=function(c,v){for(var T=4194303,I=Math.min(c.length,9),y=0;y>>22,n=_}c.words[y-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},ge.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var v=0,T=0;T>>=26,c.words[T]=y,v=I}return 0!==v&&(c.words[c.length++]=v),c},a._prime=function(c){if(ne[c])return ne[c];var v;if("k256"===c)v=new ge;else if("p224"===c)v=new q;else if("p192"===c)v=new _e;else{if("p25519"!==c)throw new Error("Unknown prime "+c);v=new x}return ne[c]=v,v},i.prototype._verify1=function(c){f(0===c.negative,"red works only with positives"),f(c.red,"red works only with red numbers")},i.prototype._verify2=function(c,v){f(0==(c.negative|v.negative),"red works only with positives"),f(c.red&&c.red===v.red,"red works only with red numbers")},i.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(L(c,c.umod(this.m)._forceRed(this)),c)},i.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},i.prototype.add=function(c,v){this._verify2(c,v);var T=c.add(v);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},i.prototype.iadd=function(c,v){this._verify2(c,v);var T=c.iadd(v);return T.cmp(this.m)>=0&&T.isub(this.m),T},i.prototype.sub=function(c,v){this._verify2(c,v);var T=c.sub(v);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},i.prototype.isub=function(c,v){this._verify2(c,v);var T=c.isub(v);return T.cmpn(0)<0&&T.iadd(this.m),T},i.prototype.shl=function(c,v){return this._verify1(c),this.imod(c.ushln(v))},i.prototype.imul=function(c,v){return this._verify2(c,v),this.imod(c.imul(v))},i.prototype.mul=function(c,v){return this._verify2(c,v),this.imod(c.mul(v))},i.prototype.isqr=function(c){return this.imul(c,c.clone())},i.prototype.sqr=function(c){return this.mul(c,c)},i.prototype.sqrt=function(c){if(c.isZero())return c.clone();var v=this.m.andln(3);if(f(v%2==1),3===v){var T=this.m.add(new a(1)).iushrn(2);return this.pow(c,T)}for(var I=this.m.subn(1),y=0;!I.isZero()&&0===I.andln(1);)y++,I.iushrn(1);f(!I.isZero());var n=new a(1).toRed(this),_=n.redNeg(),V=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new a(2*N*N).toRed(this);0!==this.pow(N,V).cmp(_);)N.redIAdd(_);for(var H=this.pow(N,I),X=this.pow(c,I.addn(1).iushrn(1)),he=this.pow(c,I),be=y;0!==he.cmp(n);){for(var Pe=he,Ee=0;0!==Pe.cmp(n);Ee++)Pe=Pe.redSqr();f(Ee=0;y--){for(var H=v.words[y],X=N-1;X>=0;X--){var he=H>>X&1;n!==I[0]&&(n=this.sqr(n)),0!==he||0!==_?(_<<=1,_|=he,(4==++V||0===y&&0===X)&&(n=this.mul(n,I[_]),V=0,_=0)):V=0}N=26}return n},i.prototype.convertTo=function(c){var v=c.umod(this.m);return v===c?v.clone():v},i.prototype.convertFrom=function(c){var v=c.clone();return v.red=null,v},a.mont=function(c){return new r(c)},M(r,i),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var v=this.imod(c.mul(this.rinv));return v.red=null,v},r.prototype.imul=function(c,v){if(c.isZero()||v.isZero())return c.words[0]=0,c.length=1,c;var T=c.imul(v),I=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=T.isub(I).iushrn(this.shift),n=y;return y.cmp(this.m)>=0?n=y.isub(this.m):y.cmpn(0)<0&&(n=y.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,v){if(c.isZero()||v.isZero())return new a(0)._forceRed(this);var T=c.mul(v),I=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=T.isub(I).iushrn(this.shift),n=y;return y.cmp(this.m)>=0?n=y.isub(this.m):y.cmpn(0)<0&&(n=y.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},7950:(Be,K,p)=>{var t;function e(M){this.rand=M}if(Be.exports=function(a){return t||(t=new e(null)),t.generate(a)},Be.exports.Rand=e,e.prototype.generate=function(a){return this._rand(a)},e.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var C=new Uint8Array(a),d=0;d{var t=p(3502).Buffer;function e(R){t.isBuffer(R)||(R=t.from(R));for(var h=R.length/4|0,L=new Array(h),w=0;w>>24]^k[Y>>>16&255]^E[ae>>>8&255]^B[255&ee]^h[q++],ne=S[Y>>>24]^k[ae>>>16&255]^E[ee>>>8&255]^B[255&Z]^h[q++],re=S[ae>>>24]^k[ee>>>16&255]^E[Z>>>8&255]^B[255&Y]^h[q++],ge=S[ee>>>24]^k[Z>>>16&255]^E[Y>>>8&255]^B[255&ae]^h[q++],Z=ue,Y=ne,ae=re,ee=ge;return ue=(w[Z>>>24]<<24|w[Y>>>16&255]<<16|w[ae>>>8&255]<<8|w[255&ee])^h[q++],ne=(w[Y>>>24]<<24|w[ae>>>16&255]<<16|w[ee>>>8&255]<<8|w[255&Z])^h[q++],re=(w[ae>>>24]<<24|w[ee>>>16&255]<<16|w[Z>>>8&255]<<8|w[255&Y])^h[q++],ge=(w[ee>>>24]<<24|w[Z>>>16&255]<<16|w[Y>>>8&255]<<8|w[255&ae])^h[q++],[ue>>>=0,ne>>>=0,re>>>=0,ge>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],C=function(){for(var R=new Array(256),h=0;h<256;h++)R[h]=h<128?h<<1:h<<1^283;for(var L=[],w=[],D=[[],[],[],[]],S=[[],[],[],[]],k=0,E=0,B=0;B<256;++B){var Z=E^E<<1^E<<2^E<<3^E<<4;L[k]=Z=Z>>>8^255&Z^99,w[Z]=k;var Y=R[k],ae=R[Y],ee=R[ae],ue=257*R[Z]^16843008*Z;D[0][k]=ue<<24|ue>>>8,D[1][k]=ue<<16|ue>>>16,D[2][k]=ue<<8|ue>>>24,D[3][k]=ue,S[0][Z]=(ue=16843009*ee^65537*ae^257*Y^16843008*k)<<24|ue>>>8,S[1][Z]=ue<<16|ue>>>16,S[2][Z]=ue<<8|ue>>>24,S[3][Z]=ue,0===k?k=E=1:(k=Y^R[R[R[ee^Y]]],E^=R[R[E]])}return{SBOX:L,INV_SBOX:w,SUB_MIX:D,INV_SUB_MIX:S}}();function d(R){this._key=e(R),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var R=this._key,h=R.length,L=h+6,w=4*(L+1),D=[],S=0;S>>24)>>>24]<<24|C.SBOX[k>>>16&255]<<16|C.SBOX[k>>>8&255]<<8|C.SBOX[255&k],k^=a[S/h|0]<<24):h>6&&S%h==4&&(k=C.SBOX[k>>>24]<<24|C.SBOX[k>>>16&255]<<16|C.SBOX[k>>>8&255]<<8|C.SBOX[255&k]),D[S]=D[S-h]^k}for(var E=[],B=0;B>>24]]^C.INV_SUB_MIX[1][C.SBOX[Y>>>16&255]]^C.INV_SUB_MIX[2][C.SBOX[Y>>>8&255]]^C.INV_SUB_MIX[3][C.SBOX[255&Y]]}this._nRounds=L,this._keySchedule=D,this._invKeySchedule=E},d.prototype.encryptBlockRaw=function(R){return M(R=e(R),this._keySchedule,C.SUB_MIX,C.SBOX,this._nRounds)},d.prototype.encryptBlock=function(R){var h=this.encryptBlockRaw(R),L=t.allocUnsafe(16);return L.writeUInt32BE(h[0],0),L.writeUInt32BE(h[1],4),L.writeUInt32BE(h[2],8),L.writeUInt32BE(h[3],12),L},d.prototype.decryptBlock=function(R){var h=(R=e(R))[1];R[1]=R[3],R[3]=h;var L=M(R,this._invKeySchedule,C.INV_SUB_MIX,C.INV_SBOX,this._nRounds),w=t.allocUnsafe(16);return w.writeUInt32BE(L[0],0),w.writeUInt32BE(L[3],4),w.writeUInt32BE(L[2],8),w.writeUInt32BE(L[1],12),w},d.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},Be.exports.AES=d},9382:(Be,K,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052),M=p(3894),a=p(8857),C=p(8789),d=p(7968);function L(w,D,S,k){f.call(this);var E=e.alloc(4,0);this._cipher=new t.AES(D);var B=this._cipher.encryptBlock(E);this._ghash=new a(B),S=function h(w,D,S){if(12===D.length)return w._finID=e.concat([D,e.from([0,0,0,1])]),e.concat([D,e.from([0,0,0,2])]);var k=new a(S),E=D.length,B=E%16;k.update(D),B&&k.update(e.alloc(B=16-B,0)),k.update(e.alloc(8,0));var Z=8*E,Y=e.alloc(8);Y.writeUIntBE(Z,0,8),k.update(Y),w._finID=k.state;var ae=e.from(w._finID);return d(ae),ae}(this,S,B),this._prev=e.from(S),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=w,this._authTag=null,this._called=!1}M(L,f),L.prototype._update=function(w){if(!this._called&&this._alen){var D=16-this._alen%16;D<16&&(D=e.alloc(D,0),this._ghash.update(D))}this._called=!0;var S=this._mode.encrypt(this,w);return this._ghash.update(this._decrypt?w:S),this._len+=w.length,S},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var w=C(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(w,D){var S=0;w.length!==D.length&&S++;for(var k=Math.min(w.length,D.length),E=0;E{var t=p(6900),e=p(856),f=p(4946);K.createCipher=K.Cipher=t.createCipher,K.createCipheriv=K.Cipheriv=t.createCipheriv,K.createDecipher=K.Decipher=e.createDecipher,K.createDecipheriv=K.Decipheriv=e.createDecipheriv,K.listCiphers=K.getCiphers=function M(){return Object.keys(f)}},856:(Be,K,p)=>{var t=p(9382),e=p(3502).Buffer,f=p(9171),M=p(8441),a=p(1052),C=p(1899),d=p(347);function h(k,E,B){a.call(this),this._cache=new L,this._last=void 0,this._cipher=new C.AES(E),this._prev=e.from(B),this._mode=k,this._autopadding=!0}function L(){this.cache=e.allocUnsafe(0)}function D(k,E,B){var Z=f[k.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof B&&(B=e.from(B)),"GCM"!==Z.mode&&B.length!==Z.iv)throw new TypeError("invalid iv length "+B.length);if("string"==typeof E&&(E=e.from(E)),E.length!==Z.key/8)throw new TypeError("invalid key length "+E.length);return"stream"===Z.type?new M(Z.module,E,B,!0):"auth"===Z.type?new t(Z.module,E,B,!0):new h(Z.module,E,B)}p(3894)(h,a),h.prototype._update=function(k){this._cache.add(k);for(var E,B,Z=[];E=this._cache.get(this._autopadding);)B=this._mode.decrypt(this,E),Z.push(B);return e.concat(Z)},h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function w(k){var E=k[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var B=-1;++B16)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},L.prototype.flush=function(){if(this.cache.length)return this.cache},K.createDecipher=function S(k,E){var B=f[k.toLowerCase()];if(!B)throw new TypeError("invalid suite type");var Z=d(E,!1,B.key,B.iv);return D(k,Z.key,Z.iv)},K.createDecipheriv=D},6900:(Be,K,p)=>{var t=p(9171),e=p(9382),f=p(3502).Buffer,M=p(8441),a=p(1052),C=p(1899),d=p(347);function h(k,E,B){a.call(this),this._cache=new w,this._cipher=new C.AES(E),this._prev=f.from(B),this._mode=k,this._autopadding=!0}p(3894)(h,a),h.prototype._update=function(k){this._cache.add(k);for(var E,B,Z=[];E=this._cache.get();)B=this._mode.encrypt(this,E),Z.push(B);return f.concat(Z)};var L=f.alloc(16,16);function w(){this.cache=f.allocUnsafe(0)}function D(k,E,B){var Z=t[k.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof E&&(E=f.from(E)),E.length!==Z.key/8)throw new TypeError("invalid key length "+E.length);if("string"==typeof B&&(B=f.from(B)),"GCM"!==Z.mode&&B.length!==Z.iv)throw new TypeError("invalid iv length "+B.length);return"stream"===Z.type?new M(Z.module,E,B):"auth"===Z.type?new e(Z.module,E,B):new h(Z.module,E,B)}h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},w.prototype.add=function(k){this.cache=f.concat([this.cache,k])},w.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},w.prototype.flush=function(){for(var k=16-this.cache.length,E=f.allocUnsafe(k),B=-1;++B{var t=p(3502).Buffer,e=t.alloc(16,0);function M(C){var d=t.allocUnsafe(16);return d.writeUInt32BE(C[0]>>>0,0),d.writeUInt32BE(C[1]>>>0,4),d.writeUInt32BE(C[2]>>>0,8),d.writeUInt32BE(C[3]>>>0,12),d}function a(C){this.h=C,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}a.prototype.ghash=function(C){for(var d=-1;++d0;R--)C[R]=C[R]>>>1|(1&C[R-1])<<31;C[0]=C[0]>>>1,L&&(C[0]=C[0]^225<<24)}this.state=M(d)},a.prototype.update=function(C){this.cache=t.concat([this.cache,C]);for(var d;this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},a.prototype.final=function(C,d){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(M([0,C,0,d])),this.state},Be.exports=a},7968:Be=>{Be.exports=function K(p){for(var e,t=p.length;t--;){if(255!==(e=p.readUInt8(t))){e++,p.writeUInt8(e,t);break}p.writeUInt8(0,t)}}},4903:(Be,K,p)=>{var t=p(8789);K.encrypt=function(e,f){var M=t(f,e._prev);return e._prev=e._cipher.encryptBlock(M),e._prev},K.decrypt=function(e,f){var M=e._prev;e._prev=f;var a=e._cipher.decryptBlock(f);return t(a,M)}},9885:(Be,K,p)=>{var t=p(3502).Buffer,e=p(8789);function f(M,a,C){var d=a.length,R=e(a,M._cache);return M._cache=M._cache.slice(d),M._prev=t.concat([M._prev,C?a:R]),R}K.encrypt=function(M,a,C){for(var R,d=t.allocUnsafe(0);a.length;){if(0===M._cache.length&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=t.allocUnsafe(0)),!(M._cache.length<=a.length)){d=t.concat([d,f(M,a,C)]);break}d=t.concat([d,f(M,a.slice(0,R=M._cache.length),C)]),a=a.slice(R)}return d}},6531:(Be,K,p)=>{var t=p(3502).Buffer;function e(M,a,C){for(var w,D,R=-1,L=0;++R<8;)L+=(128&(D=M._cipher.encryptBlock(M._prev)[0]^(w=a&1<<7-R?128:0)))>>R%8,M._prev=f(M._prev,C?w:D);return L}function f(M,a){var C=M.length,d=-1,R=t.allocUnsafe(M.length);for(M=t.concat([M,t.from([a])]);++d>7;return R}K.encrypt=function(M,a,C){for(var d=a.length,R=t.allocUnsafe(d),h=-1;++h{var t=p(3502).Buffer;function e(f,M,a){var d=f._cipher.encryptBlock(f._prev)[0]^M;return f._prev=t.concat([f._prev.slice(1),t.from([a?M:d])]),d}K.encrypt=function(f,M,a){for(var C=M.length,d=t.allocUnsafe(C),R=-1;++R{var t=p(8789),e=p(3502).Buffer,f=p(7968);function M(C){var d=C._cipher.encryptBlockRaw(C._prev);return f(C._prev),d}K.encrypt=function(C,d){var R=Math.ceil(d.length/16),h=C._cache.length;C._cache=e.concat([C._cache,e.allocUnsafe(16*R)]);for(var L=0;L{K.encrypt=function(p,t){return p._cipher.encryptBlock(t)},K.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(Be,K,p)=>{var t={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},e=p(4946);for(var f in e)e[f].module=t[e[f].mode];Be.exports=e},6816:(Be,K,p)=>{var t=p(8789);function e(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}K.encrypt=function(f,M){for(;f._cache.length{var t=p(1899),e=p(3502).Buffer,f=p(1052);function a(C,d,R,h){f.call(this),this._cipher=new t.AES(d),this._prev=e.from(R),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=h,this._mode=C}p(3894)(a,f),a.prototype._update=function(C){return this._mode.encrypt(this,C,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},Be.exports=a},5255:(Be,K,p)=>{var t=p(9004),e=p(4330),f=p(9171),M=p(1115),a=p(347);function R(w,D,S){if(w=w.toLowerCase(),f[w])return e.createCipheriv(w,D,S);if(M[w])return new t({key:D,iv:S,mode:w});throw new TypeError("invalid suite type")}function h(w,D,S){if(w=w.toLowerCase(),f[w])return e.createDecipheriv(w,D,S);if(M[w])return new t({key:D,iv:S,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}K.createCipher=K.Cipher=function C(w,D){var S,k;if(w=w.toLowerCase(),f[w])S=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");S=8*M[w].key,k=M[w].iv}var E=a(D,!1,S,k);return R(w,E.key,E.iv)},K.createCipheriv=K.Cipheriv=R,K.createDecipher=K.Decipher=function d(w,D){var S,k;if(w=w.toLowerCase(),f[w])S=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");S=8*M[w].key,k=M[w].iv}var E=a(D,!1,S,k);return h(w,E.key,E.iv)},K.createDecipheriv=K.Decipheriv=h,K.listCiphers=K.getCiphers=function L(){return Object.keys(M).concat(e.getCiphers())}},9004:(Be,K,p)=>{var t=p(1052),e=p(3684),f=p(3894),M=p(3502).Buffer,a={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function C(d){t.call(this);var L,R=d.mode.toLowerCase(),h=a[R];L=d.decrypt?"decrypt":"encrypt";var w=d.key;M.isBuffer(w)||(w=M.from(w)),("des-ede"===R||"des-ede-cbc"===R)&&(w=M.concat([w,w.slice(0,8)]));var D=d.iv;M.isBuffer(D)||(D=M.from(D)),this._des=h.create({key:w,iv:D,type:L})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],Be.exports=C,f(C,t),C.prototype._update=function(d){return M.from(this._des.update(d))},C.prototype._final=function(){return M.from(this._des.final())}},1115:(Be,K)=>{K["des-ecb"]={key:8,iv:0},K["des-cbc"]=K.des={key:8,iv:8},K["des-ede3-cbc"]=K.des3={key:24,iv:8},K["des-ede3"]={key:24,iv:0},K["des-ede-cbc"]={key:16,iv:8},K["des-ede"]={key:16,iv:0}},8466:(Be,K,p)=>{var t=p(8538),e=p(3753);function M(C){var R,d=C.modulus.byteLength();do{R=new t(e(d))}while(R.cmp(C.modulus)>=0||!R.umod(C.prime1)||!R.umod(C.prime2));return R}function a(C,d){var R=function f(C){var d=M(C);return{blinder:d.toRed(t.mont(C.modulus)).redPow(new t(C.publicExponent)).fromRed(),unblinder:d.invm(C.modulus)}}(d),h=d.modulus.byteLength(),L=new t(C).mul(R.blinder).umod(d.modulus),w=L.toRed(t.mont(d.prime1)),D=L.toRed(t.mont(d.prime2)),S=d.coefficient,k=d.prime1,E=d.prime2,B=w.redPow(d.exponent1).fromRed(),Z=D.redPow(d.exponent2).fromRed(),Y=B.isub(Z).imul(S).umod(k).imul(E);return Z.iadd(Y).imul(R.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",h)}a.getr=M,Be.exports=a},7793:(Be,K,p)=>{Be.exports=p(5207)},3923:(Be,K,p)=>{var t=p(3502).Buffer,e=p(6386),f=p(5685),M=p(3894),a=p(9947),C=p(3946),d=p(5207);function R(D){f.Writable.call(this);var S=d[D];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function h(D){f.Writable.call(this);var S=d[D];if(!S)throw new Error("Unknown message digest");this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function L(D){return new R(D)}function w(D){return new h(D)}Object.keys(d).forEach(function(D){d[D].id=t.from(d[D].id,"hex"),d[D.toLowerCase()]=d[D]}),M(R,f.Writable),R.prototype._write=function(S,k,E){this._hash.update(S),E()},R.prototype.update=function(S,k){return"string"==typeof S&&(S=t.from(S,k)),this._hash.update(S),this},R.prototype.sign=function(S,k){this.end();var E=this._hash.digest(),B=a(E,S,this._hashType,this._signType,this._tag);return k?B.toString(k):B},M(h,f.Writable),h.prototype._write=function(S,k,E){this._hash.update(S),E()},h.prototype.update=function(S,k){return"string"==typeof S&&(S=t.from(S,k)),this._hash.update(S),this},h.prototype.verify=function(S,k,E){"string"==typeof k&&(k=t.from(k,E)),this.end();var B=this._hash.digest();return C(k,B,S,this._signType,this._tag)},Be.exports={Sign:L,Verify:w,createSign:L,createVerify:w}},9947:(Be,K,p)=>{var t=p(3502).Buffer,e=p(4529),f=p(8466),M=p(7715).ec,a=p(8538),C=p(2772),d=p(1308);function D(Z,Y,ae,ee){if((Z=t.from(Z.toArray())).length0&&ae.ishrn(ee),ae}function E(Z,Y,ae){var ee,ue;do{for(ee=t.alloc(0);8*ee.length{var t=p(3502).Buffer,e=p(8538),f=p(7715).ec,M=p(2772),a=p(1308);function h(L,w){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(w)>=w)throw new Error("invalid sig")}Be.exports=function C(L,w,D,S,k){var E=M(D);if("ec"===E.type){if("ecdsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");return function d(L,w,D){var S=a[D.data.algorithm.curve.join(".")];if(!S)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));return new f(S).verify(w,L,D.data.subjectPrivateKey.data)}(L,w,E)}if("dsa"===E.type){if("dsa"!==S)throw new Error("wrong public key type");return function R(L,w,D){var S=D.data.p,k=D.data.q,E=D.data.g,B=D.data.pub_key,Z=M.signature.decode(L,"der"),Y=Z.s,ae=Z.r;h(Y,k),h(ae,k);var ee=e.mont(S),ue=Y.invm(k);return 0===E.toRed(ee).redPow(new e(w).mul(ue).mod(k)).fromRed().mul(B.toRed(ee).redPow(ae.mul(ue).mod(k)).fromRed()).mod(S).mod(k).cmp(ae)}(L,w,E)}if("rsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");w=t.concat([k,w]);for(var B=E.modulus.byteLength(),Z=[1],Y=0;w.length+Z.length+2{Be.exports=function(p,t){for(var e=Math.min(p.length,t.length),f=new Buffer(e),M=0;M{"use strict";var t=p(5343),e=p(8461),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;K.Buffer=d,K.SlowBuffer=function Y(Oe){return+Oe!=Oe&&(Oe=0),d.alloc(+Oe)},K.INSPECT_MAX_BYTES=50;var M=2147483647;function C(Oe){if(Oe>M)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var we=new Uint8Array(Oe);return Object.setPrototypeOf(we,d.prototype),we}function d(Oe,we,ce){if("number"==typeof Oe){if("string"==typeof we)throw new TypeError('The "string" argument must be of type string. Received type number');return w(Oe)}return R(Oe,we,ce)}function R(Oe,we,ce){if("string"==typeof Oe)return function D(Oe,we){if(("string"!=typeof we||""===we)&&(we="utf8"),!d.isEncoding(we))throw new TypeError("Unknown encoding: "+we);var ce=0|ae(Oe,we),Te=C(ce),xe=Te.write(Oe,we);return xe!==ce&&(Te=Te.slice(0,xe)),Te}(Oe,we);if(ArrayBuffer.isView(Oe))return function k(Oe){if(J(Oe,Uint8Array)){var we=new Uint8Array(Oe);return E(we.buffer,we.byteOffset,we.byteLength)}return S(Oe)}(Oe);if(null==Oe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe);if(J(Oe,ArrayBuffer)||Oe&&J(Oe.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(J(Oe,SharedArrayBuffer)||Oe&&J(Oe.buffer,SharedArrayBuffer)))return E(Oe,we,ce);if("number"==typeof Oe)throw new TypeError('The "value" argument must not be of type number. Received type number');var Te=Oe.valueOf&&Oe.valueOf();if(null!=Te&&Te!==Oe)return d.from(Te,we,ce);var xe=function B(Oe){if(d.isBuffer(Oe)){var we=0|Z(Oe.length),ce=C(we);return 0===ce.length||Oe.copy(ce,0,0,we),ce}return void 0!==Oe.length?"number"!=typeof Oe.length||Ie(Oe.length)?C(0):S(Oe):"Buffer"===Oe.type&&Array.isArray(Oe.data)?S(Oe.data):void 0}(Oe);if(xe)return xe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Oe[Symbol.toPrimitive])return d.from(Oe[Symbol.toPrimitive]("string"),we,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe)}function h(Oe){if("number"!=typeof Oe)throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function w(Oe){return h(Oe),C(Oe<0?0:0|Z(Oe))}function S(Oe){for(var we=Oe.length<0?0:0|Z(Oe.length),ce=C(we),Te=0;Te=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Oe}function ae(Oe,we){if(d.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||J(Oe,ArrayBuffer))return Oe.byteLength;if("string"!=typeof Oe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Oe);var ce=Oe.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===ce)return 0;for(var xe=!1;;)switch(we){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return Pe(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return Ve(Oe).length;default:if(xe)return Te?-1:Pe(Oe).length;we=(""+we).toLowerCase(),xe=!0}}function ee(Oe,we,ce){var Te=!1;if((void 0===we||we<0)&&(we=0),we>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(we>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return y(this,we,ce);case"utf8":case"utf-8":return u(this,we,ce);case"ascii":return T(this,we,ce);case"latin1":case"binary":return I(this,we,ce);case"base64":return r(this,we,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,we,ce);default:if(Te)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Te=!0}}function ue(Oe,we,ce){var Te=Oe[we];Oe[we]=Oe[ce],Oe[ce]=Te}function ne(Oe,we,ce,Te,xe){if(0===Oe.length)return-1;if("string"==typeof ce?(Te=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Ie(ce=+ce)&&(ce=xe?0:Oe.length-1),ce<0&&(ce=Oe.length+ce),ce>=Oe.length){if(xe)return-1;ce=Oe.length-1}else if(ce<0){if(!xe)return-1;ce=0}if("string"==typeof we&&(we=d.from(we,Te)),d.isBuffer(we))return 0===we.length?-1:re(Oe,we,ce,Te,xe);if("number"==typeof we)return we&=255,"function"==typeof Uint8Array.prototype.indexOf?xe?Uint8Array.prototype.indexOf.call(Oe,we,ce):Uint8Array.prototype.lastIndexOf.call(Oe,we,ce):re(Oe,[we],ce,Te,xe);throw new TypeError("val must be string, number or Buffer")}function re(Oe,we,ce,Te,xe){var Q,W=1,te=Oe.length,Ce=we.length;if(void 0!==Te&&("ucs2"===(Te=String(Te).toLowerCase())||"ucs-2"===Te||"utf16le"===Te||"utf-16le"===Te)){if(Oe.length<2||we.length<2)return-1;W=2,te/=2,Ce/=2,ce/=2}function fe(di,Yt){return 1===W?di[Yt]:di.readUInt16BE(Yt*W)}if(xe){var pt=-1;for(Q=ce;Qte&&(ce=te-Ce),Q=ce;Q>=0;Q--){for(var tt=!0,Dt=0;Dtxe&&(Te=xe):Te=xe;var W=we.length;Te>W/2&&(Te=W/2);for(var te=0;te>8,W.push(ce%256),W.push(Te);return W}(we,Oe.length-ce),Oe,ce,Te)}function r(Oe,we,ce){return t.fromByteArray(0===we&&ce===Oe.length?Oe:Oe.slice(we,ce))}function u(Oe,we,ce){ce=Math.min(Oe.length,ce);for(var Te=[],xe=we;xe239?4:W>223?3:W>191?2:1;if(xe+Ce<=ce)switch(Ce){case 1:W<128&&(te=W);break;case 2:128==(192&(fe=Oe[xe+1]))&&(tt=(31&W)<<6|63&fe)>127&&(te=tt);break;case 3:Q=Oe[xe+2],128==(192&(fe=Oe[xe+1]))&&128==(192&Q)&&(tt=(15&W)<<12|(63&fe)<<6|63&Q)>2047&&(tt<55296||tt>57343)&&(te=tt);break;case 4:Q=Oe[xe+2],pt=Oe[xe+3],128==(192&(fe=Oe[xe+1]))&&128==(192&Q)&&128==(192&pt)&&(tt=(15&W)<<18|(63&fe)<<12|(63&Q)<<6|63&pt)>65535&&tt<1114112&&(te=tt)}null===te?(te=65533,Ce=1):te>65535&&(Te.push((te-=65536)>>>10&1023|55296),te=56320|1023&te),Te.push(te),xe+=Ce}return function v(Oe){var we=Oe.length;if(we<=c)return String.fromCharCode.apply(String,Oe);for(var ce="",Te=0;Texe.length?d.from(te).copy(xe,W):Uint8Array.prototype.set.call(xe,te,W);else{if(!d.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(xe,W)}W+=te.length}return xe},d.byteLength=ae,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var we=this.length;if(we%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ce=0;cece&&(we+=" ... "),""},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(we,ce,Te,xe,W){if(J(we,Uint8Array)&&(we=d.from(we,we.offset,we.byteLength)),!d.isBuffer(we))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof we);if(void 0===ce&&(ce=0),void 0===Te&&(Te=we?we.length:0),void 0===xe&&(xe=0),void 0===W&&(W=this.length),ce<0||Te>we.length||xe<0||W>this.length)throw new RangeError("out of range index");if(xe>=W&&ce>=Te)return 0;if(xe>=W)return-1;if(ce>=Te)return 1;if(this===we)return 0;for(var te=(W>>>=0)-(xe>>>=0),Ce=(Te>>>=0)-(ce>>>=0),fe=Math.min(te,Ce),Q=this.slice(xe,W),pt=we.slice(ce,Te),tt=0;tt>>=0,isFinite(Te)?(Te>>>=0,void 0===xe&&(xe="utf8")):(xe=Te,Te=void 0)}var W=this.length-ce;if((void 0===Te||Te>W)&&(Te=W),we.length>0&&(Te<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var te=!1;;)switch(xe){case"hex":return ge(this,we,ce,Te);case"utf8":case"utf-8":return q(this,we,ce,Te);case"ascii":case"latin1":case"binary":return _e(this,we,ce,Te);case"base64":return x(this,we,ce,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,we,ce,Te);default:if(te)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),te=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function T(Oe,we,ce){var Te="";ce=Math.min(Oe.length,ce);for(var xe=we;xeTe)&&(ce=Te);for(var xe="",W=we;Wce)throw new RangeError("Trying to access beyond buffer length")}function V(Oe,we,ce,Te,xe,W){if(!d.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>xe||weOe.length)throw new RangeError("Index out of range")}function N(Oe,we,ce,Te,xe,W){if(ce+Te>Oe.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function H(Oe,we,ce,Te,xe){return we=+we,ce>>>=0,xe||N(Oe,0,ce,4),e.write(Oe,we,ce,Te,23,4),ce+4}function X(Oe,we,ce,Te,xe){return we=+we,ce>>>=0,xe||N(Oe,0,ce,8),e.write(Oe,we,ce,Te,52,8),ce+8}d.prototype.slice=function(we,ce){var Te=this.length;(we=~~we)<0?(we+=Te)<0&&(we=0):we>Te&&(we=Te),(ce=void 0===ce?Te:~~ce)<0?(ce+=Te)<0&&(ce=0):ce>Te&&(ce=Te),ce>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=this[we],W=1,te=0;++te>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=this[we+--ce],W=1;ce>0&&(W*=256);)xe+=this[we+--ce]*W;return xe},d.prototype.readUint8=d.prototype.readUInt8=function(we,ce){return we>>>=0,ce||_(we,1,this.length),this[we]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(we,ce){return we>>>=0,ce||_(we,2,this.length),this[we]|this[we+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(we,ce){return we>>>=0,ce||_(we,2,this.length),this[we]<<8|this[we+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),(this[we]|this[we+1]<<8|this[we+2]<<16)+16777216*this[we+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),16777216*this[we]+(this[we+1]<<16|this[we+2]<<8|this[we+3])},d.prototype.readIntLE=function(we,ce,Te){we>>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=this[we],W=1,te=0;++te=(W*=128)&&(xe-=Math.pow(2,8*ce)),xe},d.prototype.readIntBE=function(we,ce,Te){we>>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=ce,W=1,te=this[we+--xe];xe>0&&(W*=256);)te+=this[we+--xe]*W;return te>=(W*=128)&&(te-=Math.pow(2,8*ce)),te},d.prototype.readInt8=function(we,ce){return we>>>=0,ce||_(we,1,this.length),128&this[we]?-1*(255-this[we]+1):this[we]},d.prototype.readInt16LE=function(we,ce){we>>>=0,ce||_(we,2,this.length);var Te=this[we]|this[we+1]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt16BE=function(we,ce){we>>>=0,ce||_(we,2,this.length);var Te=this[we+1]|this[we]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt32LE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),this[we]|this[we+1]<<8|this[we+2]<<16|this[we+3]<<24},d.prototype.readInt32BE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),this[we]<<24|this[we+1]<<16|this[we+2]<<8|this[we+3]},d.prototype.readFloatLE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),e.read(this,we,!0,23,4)},d.prototype.readFloatBE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),e.read(this,we,!1,23,4)},d.prototype.readDoubleLE=function(we,ce){return we>>>=0,ce||_(we,8,this.length),e.read(this,we,!0,52,8)},d.prototype.readDoubleBE=function(we,ce){return we>>>=0,ce||_(we,8,this.length),e.read(this,we,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(we,ce,Te,xe){we=+we,ce>>>=0,Te>>>=0,xe||V(this,we,ce,Te,Math.pow(2,8*Te)-1,0);var te=1,Ce=0;for(this[ce]=255&we;++Ce>>=0,Te>>>=0,xe||V(this,we,ce,Te,Math.pow(2,8*Te)-1,0);var te=Te-1,Ce=1;for(this[ce+te]=255&we;--te>=0&&(Ce*=256);)this[ce+te]=we/Ce&255;return ce+Te},d.prototype.writeUint8=d.prototype.writeUInt8=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,1,255,0),this[ce]=255&we,ce+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,65535,0),this[ce]=255&we,this[ce+1]=we>>>8,ce+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,65535,0),this[ce]=we>>>8,this[ce+1]=255&we,ce+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,4294967295,0),this[ce+3]=we>>>24,this[ce+2]=we>>>16,this[ce+1]=we>>>8,this[ce]=255&we,ce+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,4294967295,0),this[ce]=we>>>24,this[ce+1]=we>>>16,this[ce+2]=we>>>8,this[ce+3]=255&we,ce+4},d.prototype.writeIntLE=function(we,ce,Te,xe){if(we=+we,ce>>>=0,!xe){var W=Math.pow(2,8*Te-1);V(this,we,ce,Te,W-1,-W)}var te=0,Ce=1,fe=0;for(this[ce]=255&we;++te>0)-fe&255;return ce+Te},d.prototype.writeIntBE=function(we,ce,Te,xe){if(we=+we,ce>>>=0,!xe){var W=Math.pow(2,8*Te-1);V(this,we,ce,Te,W-1,-W)}var te=Te-1,Ce=1,fe=0;for(this[ce+te]=255&we;--te>=0&&(Ce*=256);)we<0&&0===fe&&0!==this[ce+te+1]&&(fe=1),this[ce+te]=(we/Ce>>0)-fe&255;return ce+Te},d.prototype.writeInt8=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,1,127,-128),we<0&&(we=255+we+1),this[ce]=255&we,ce+1},d.prototype.writeInt16LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,32767,-32768),this[ce]=255&we,this[ce+1]=we>>>8,ce+2},d.prototype.writeInt16BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,32767,-32768),this[ce]=we>>>8,this[ce+1]=255&we,ce+2},d.prototype.writeInt32LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,2147483647,-2147483648),this[ce]=255&we,this[ce+1]=we>>>8,this[ce+2]=we>>>16,this[ce+3]=we>>>24,ce+4},d.prototype.writeInt32BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,2147483647,-2147483648),we<0&&(we=4294967295+we+1),this[ce]=we>>>24,this[ce+1]=we>>>16,this[ce+2]=we>>>8,this[ce+3]=255&we,ce+4},d.prototype.writeFloatLE=function(we,ce,Te){return H(this,we,ce,!0,Te)},d.prototype.writeFloatBE=function(we,ce,Te){return H(this,we,ce,!1,Te)},d.prototype.writeDoubleLE=function(we,ce,Te){return X(this,we,ce,!0,Te)},d.prototype.writeDoubleBE=function(we,ce,Te){return X(this,we,ce,!1,Te)},d.prototype.copy=function(we,ce,Te,xe){if(!d.isBuffer(we))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!xe&&0!==xe&&(xe=this.length),ce>=we.length&&(ce=we.length),ce||(ce=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),we.length-ce>>=0,Te=void 0===Te?this.length:Te>>>0,we||(we=0),"number"==typeof we)for(te=ce;te55295&&ce<57344){if(!xe){if(ce>56319){(we-=3)>-1&&W.push(239,191,189);continue}if(te+1===Te){(we-=3)>-1&&W.push(239,191,189);continue}xe=ce;continue}if(ce<56320){(we-=3)>-1&&W.push(239,191,189),xe=ce;continue}ce=65536+(xe-55296<<10|ce-56320)}else xe&&(we-=3)>-1&&W.push(239,191,189);if(xe=null,ce<128){if((we-=1)<0)break;W.push(ce)}else if(ce<2048){if((we-=2)<0)break;W.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((we-=3)<0)break;W.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((we-=4)<0)break;W.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return W}function Ve(Oe){return t.toByteArray(function be(Oe){if((Oe=(Oe=Oe.split("=")[0]).trim().replace(he,"")).length<2)return"";for(;Oe.length%4!=0;)Oe+="=";return Oe}(Oe))}function Me(Oe,we,ce,Te){for(var xe=0;xe=we.length||xe>=Oe.length);++xe)we[xe+ce]=Oe[xe];return xe}function J(Oe,we){return Oe instanceof we||null!=Oe&&null!=Oe.constructor&&null!=Oe.constructor.name&&Oe.constructor.name===we.name}function Ie(Oe){return Oe!=Oe}var ut=function(){for(var Oe="0123456789abcdef",we=new Array(256),ce=0;ce<16;++ce)for(var Te=16*ce,xe=0;xe<16;++xe)we[Te+xe]=Oe[ce]+Oe[xe];return we}()},1052:(Be,K,p)=>{var t=p(3502).Buffer,e=p(295).Transform,f=p(3054).s;function a(C){e.call(this),this.hashMode="string"==typeof C,this.hashMode?this[C]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,e),a.prototype.update=function(C,d,R){"string"==typeof C&&(C=t.from(C,d));var h=this._update(C);return this.hashMode?this:(R&&(h=this._toString(h,R)),h)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(C,d,R){var h;try{this.hashMode?this._update(C):this.push(this._update(C))}catch(L){h=L}finally{R(h)}},a.prototype._flush=function(C){var d;try{this.push(this.__final())}catch(R){d=R}C(d)},a.prototype._finalOrDigest=function(C){var d=this.__final()||t.alloc(0);return C&&(d=this._toString(d,C,!0)),d},a.prototype._toString=function(C,d,R){if(this._decoder||(this._decoder=new f(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var h=this._decoder.write(C);return R&&(h+=this._decoder.end()),h},Be.exports=a},7293:(Be,K,p)=>{"use strict";const t=p(4315),e=p(2872),f=p(717);Be.exports=function M(d,R){switch(e(d)){case"object":return function a(d,R){if("function"==typeof R)return R(d);if(R||f(d)){const h=new d.constructor;for(let L in d)h[L]=M(d[L],R);return h}return d}(d,R);case"array":return function C(d,R){const h=new d.constructor(d.length);for(let L=0;LM?f:Array(M-f.length+1).join("0")+f}(M.toString(16),2)}).join("")}(f)},hexToBytes:function(f){if(f.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===f.indexOf("0x")&&(f=f.slice(2)),f.match(/../g).map(function(M){return parseInt(M,16)})}};Be.exports?Be.exports=p:K.convertHex=p}(this)},5612:function(Be){!function(K){"use strict";var p={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};p.UTF8={bytesToString:function(t){return decodeURIComponent(escape(p.bytesToString(t)))},stringToBytes:function(t){return p.stringToBytes(unescape(encodeURIComponent(t)))}},Be.exports?Be.exports=p:K.convertString=p}(this)},4746:(Be,K,p)=>{var t=p(7715),e=p(6422);Be.exports=function(d){return new M(d)};var f={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 M(C){this.curveType=f[C],this.curveType||(this.curveType={name:C}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(C,d,R){Array.isArray(C)||(C=C.toArray());var h=new Buffer(C);if(R&&h.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Ei=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Ei,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},6386:(Be,K,p)=>{"use strict";var t=p(3894),e=p(8095),f=p(5634),M=p(5244),a=p(1052);function C(d){a.call(this,"digest"),this._hash=d}t(C,a),C.prototype._update=function(d){this._hash.update(d)},C.prototype._final=function(){return this._hash.digest()},Be.exports=function(R){return"md5"===(R=R.toLowerCase())?new e:"rmd160"===R||"ripemd160"===R?new f:new C(M(R))}},5640:(Be,K,p)=>{var t=p(8095);Be.exports=function(e){return(new t).update(e).digest()}},4529:(Be,K,p)=>{"use strict";var t=p(3894),e=p(7309),f=p(1052),M=p(3502).Buffer,a=p(5640),C=p(5634),d=p(5244),R=M.alloc(128);function h(L,w){f.call(this,"digest"),"string"==typeof w&&(w=M.from(w));var D="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=w,w.length>D?w=("rmd160"===L?new C:d(L)).update(w).digest():w.length{"use strict";var t=p(3894),e=p(3502).Buffer,f=p(1052),M=e.alloc(128),a=64;function C(d,R){f.call(this,"digest"),"string"==typeof R&&(R=e.from(R)),this._alg=d,this._key=R,R.length>a?R=d(R):R.length{"use strict";K.randomBytes=K.rng=K.pseudoRandomBytes=K.prng=p(3753),K.createHash=K.Hash=p(6386),K.createHmac=K.Hmac=p(4529);var t=p(7793),e=Object.keys(t),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);K.getHashes=function(){return f};var M=p(9357);K.pbkdf2=M.pbkdf2,K.pbkdf2Sync=M.pbkdf2Sync;var a=p(5255);K.Cipher=a.Cipher,K.createCipher=a.createCipher,K.Cipheriv=a.Cipheriv,K.createCipheriv=a.createCipheriv,K.Decipher=a.Decipher,K.createDecipher=a.createDecipher,K.Decipheriv=a.Decipheriv,K.createDecipheriv=a.createDecipheriv,K.getCiphers=a.getCiphers,K.listCiphers=a.listCiphers;var C=p(8829);K.DiffieHellmanGroup=C.DiffieHellmanGroup,K.createDiffieHellmanGroup=C.createDiffieHellmanGroup,K.getDiffieHellman=C.getDiffieHellman,K.createDiffieHellman=C.createDiffieHellman,K.DiffieHellman=C.DiffieHellman;var d=p(3923);K.createSign=d.createSign,K.Sign=d.Sign,K.createVerify=d.createVerify,K.Verify=d.Verify,K.createECDH=p(4746);var R=p(3701);K.publicEncrypt=R.publicEncrypt,K.privateEncrypt=R.privateEncrypt,K.publicDecrypt=R.publicDecrypt,K.privateDecrypt=R.privateDecrypt;var h=p(4275);K.randomFill=h.randomFill,K.randomFillSync=h.randomFillSync,K.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},K.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}},3684:(Be,K,p)=>{"use strict";K.utils=p(7451),K.Cipher=p(8170),K.DES=p(4631),K.CBC=p(9454),K.EDE=p(1862)},9454:(Be,K,p)=>{"use strict";var t=p(2391),e=p(3894),f={};function M(C){t.equal(C.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d{"use strict";var t=p(2391);function e(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Be.exports=e,e.prototype._init=function(){},e.prototype.update=function(M){return 0===M.length?[]:"decrypt"===this.type?this._updateDecrypt(M):this._updateEncrypt(M)},e.prototype._buffer=function(M,a){for(var C=Math.min(this.buffer.length-this.bufferOff,M.length-a),d=0;d0;d--)a+=this._buffer(M,a),C+=this._flushBuffer(R,C);return a+=this._buffer(M,a),R},e.prototype.final=function(M){var a,C;return M&&(a=this.update(M)),C="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(C):C},e.prototype._pad=function(M,a){if(0===a)return!1;for(;a{"use strict";var t=p(2391),e=p(3894),f=p(7451),M=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function C(R){M.call(this,R);var h=new a;this._desState=h,this.deriveKeys(h,R.key)}e(C,M),Be.exports=C,C.create=function(h){return new C(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];C.prototype.deriveKeys=function(h,L){h.keys=new Array(32),t.equal(L.length,this.blockSize,"Invalid key length");var w=f.readUInt32BE(L,0),D=f.readUInt32BE(L,4);f.pc1(w,D,h.tmp,0),w=h.tmp[0],D=h.tmp[1];for(var S=0;S>>1];w=f.r28shl(w,k),D=f.r28shl(D,k),f.pc2(w,D,h.keys,S)}},C.prototype._update=function(h,L,w,D){var S=this._desState,k=f.readUInt32BE(h,L),E=f.readUInt32BE(h,L+4);f.ip(k,E,S.tmp,0),k=S.tmp[0],E=S.tmp[1],"encrypt"===this.type?this._encrypt(S,k,E,S.tmp,0):this._decrypt(S,k,E,S.tmp,0),E=S.tmp[1],f.writeUInt32BE(w,k=S.tmp[0],D),f.writeUInt32BE(w,E,D+4)},C.prototype._pad=function(h,L){for(var w=h.length-L,D=L;D>>0,k=ue}f.rip(E,k,D,S)},C.prototype._decrypt=function(h,L,w,D,S){for(var k=w,E=L,B=h.keys.length-2;B>=0;B-=2){var Z=h.keys[B],Y=h.keys[B+1];f.expand(k,h.tmp,0);var ae=f.substitute(Z^=h.tmp[0],Y^=h.tmp[1]),ue=k;k=(E^f.permute(ae))>>>0,E=ue}f.rip(k,E,D,S)}},1862:(Be,K,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(8170),M=p(4631);function a(d,R){t.equal(R.length,24,"Invalid key length");var h=R.slice(0,8),L=R.slice(8,16),w=R.slice(16,24);this.ciphers="encrypt"===d?[M.create({type:"encrypt",key:h}),M.create({type:"decrypt",key:L}),M.create({type:"encrypt",key:w})]:[M.create({type:"decrypt",key:w}),M.create({type:"encrypt",key:L}),M.create({type:"decrypt",key:h})]}function C(d){f.call(this,d);var R=new a(this.type,this.options.key);this._edeState=R}e(C,f),Be.exports=C,C.create=function(R){return new C(R)},C.prototype._update=function(R,h,L,w){var D=this._edeState;D.ciphers[0]._update(R,h,L,w),D.ciphers[1]._update(L,w,L,w),D.ciphers[2]._update(L,w,L,w)},C.prototype._pad=M.prototype._pad,C.prototype._unpad=M.prototype._unpad},7451:(Be,K)=>{"use strict";K.readUInt32BE=function(M,a){return(M[0+a]<<24|M[1+a]<<16|M[2+a]<<8|M[3+a])>>>0},K.writeUInt32BE=function(M,a,C){M[0+C]=a>>>24,M[1+C]=a>>>16&255,M[2+C]=a>>>8&255,M[3+C]=255&a},K.ip=function(M,a,C,d){for(var R=0,h=0,L=6;L>=0;L-=2){for(var w=0;w<=24;w+=8)R<<=1,R|=a>>>w+L&1;for(w=0;w<=24;w+=8)R<<=1,R|=M>>>w+L&1}for(L=6;L>=0;L-=2){for(w=1;w<=25;w+=8)h<<=1,h|=a>>>w+L&1;for(w=1;w<=25;w+=8)h<<=1,h|=M>>>w+L&1}C[d+0]=R>>>0,C[d+1]=h>>>0},K.rip=function(M,a,C,d){for(var R=0,h=0,L=0;L<4;L++)for(var w=24;w>=0;w-=8)R<<=1,R|=a>>>w+L&1,R<<=1,R|=M>>>w+L&1;for(L=4;L<8;L++)for(w=24;w>=0;w-=8)h<<=1,h|=a>>>w+L&1,h<<=1,h|=M>>>w+L&1;C[d+0]=R>>>0,C[d+1]=h>>>0},K.pc1=function(M,a,C,d){for(var R=0,h=0,L=7;L>=5;L--){for(var w=0;w<=24;w+=8)R<<=1,R|=a>>w+L&1;for(w=0;w<=24;w+=8)R<<=1,R|=M>>w+L&1}for(w=0;w<=24;w+=8)R<<=1,R|=a>>w+L&1;for(L=1;L<=3;L++){for(w=0;w<=24;w+=8)h<<=1,h|=a>>w+L&1;for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+L&1}for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+L&1;C[d+0]=R>>>0,C[d+1]=h>>>0},K.r28shl=function(M,a){return M<>>28-a};var p=[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];K.pc2=function(M,a,C,d){for(var R=0,h=0,L=p.length>>>1,w=0;w>>p[w]&1;for(w=L;w>>p[w]&1;C[d+0]=R>>>0,C[d+1]=h>>>0},K.expand=function(M,a,C){var d=0,R=0;d=(1&M)<<5|M>>>27;for(var h=23;h>=15;h-=4)d<<=6,d|=M>>>h&63;for(h=11;h>=3;h-=4)R|=M>>>h&63,R<<=6;R|=(31&M)<<1|M>>>31,a[C+0]=d>>>0,a[C+1]=R>>>0};var t=[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];K.substitute=function(M,a){for(var C=0,d=0;d<4;d++)C<<=4,C|=t[64*d+(M>>>18-6*d&63)];for(d=0;d<4;d++)C<<=4,C|=t[256+64*d+(a>>>18-6*d&63)];return C>>>0};var e=[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];K.permute=function(M){for(var a=0,C=0;C>>e[C]&1;return a>>>0},K.padSplit=function(M,a,C){for(var d=M.toString(2);d.length{var t=p(5563),e=p(9799),f=p(1419),a={binary:!0,hex:!0,base64:!0};K.DiffieHellmanGroup=K.createDiffieHellmanGroup=K.getDiffieHellman=function M(d){var R=new Buffer(e[d].prime,"hex"),h=new Buffer(e[d].gen,"hex");return new f(R,h)},K.createDiffieHellman=K.DiffieHellman=function C(d,R,h,L){return Buffer.isBuffer(R)||void 0===a[R]?C(d,"binary",R,h):(R=R||"binary",L=L||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,L)),"number"==typeof d?new f(t(d,h),h,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,R)),new f(d,h,!0)))}},1419:(Be,K,p)=>{var t=p(8313),f=new(p(7079)),M=new t(24),a=new t(11),C=new t(10),d=new t(3),R=new t(7),h=p(5563),L=p(3753);function w(Z,Y){return Y=Y||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Y)),this._pub=new t(Z),this}function D(Z,Y){return Y=Y||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Y)),this._priv=new t(Z),this}Be.exports=E;var S={};function E(Z,Y,ae){this.setGenerator(Y),this.__prime=new t(Z),this._prime=t.mont(this.__prime),this._primeLen=Z.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ae?(this.setPublicKey=w,this.setPrivateKey=D):this._primeCode=8}function B(Z,Y){var ae=new Buffer(Z.toArray());return Y?ae.toString(Y):ae}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(Z,Y){var ae=Y.toString("hex"),ee=[ae,Z.toString(16)].join("_");if(ee in S)return S[ee];var ne,ue=0;if(Z.isEven()||!h.simpleSieve||!h.fermatTest(Z)||!f.test(Z))return ue+=1,S[ee]=ue+="02"===ae||"05"===ae?8:4,ue;switch(f.test(Z.shrn(1))||(ue+=2),ae){case"02":Z.mod(M).cmp(a)&&(ue+=8);break;case"05":(ne=Z.mod(C)).cmp(d)&&ne.cmp(R)&&(ue+=8);break;default:ue+=4}return S[ee]=ue,ue}(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new t(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(Z){var Y=(Z=(Z=new t(Z)).toRed(this._prime)).redPow(this._priv).fromRed(),ae=new Buffer(Y.toArray()),ee=this.getPrime();if(ae.length{var t=p(3753);Be.exports=ue,ue.simpleSieve=ae,ue.fermatTest=ee;var e=p(8313),f=new e(24),a=new(p(7079)),C=new e(1),d=new e(2),R=new e(5),w=(new e(16),new e(8),new e(10)),D=new e(3),k=(new e(7),new e(11)),E=new e(4),Z=(new e(12),null);function ae(ne){for(var re=function Y(){if(null!==Z)return Z;var re=[];re[0]=2;for(var ge=1,q=3;q<1048576;q+=2){for(var _e=Math.ceil(Math.sqrt(q)),x=0;xne;)ge.ishrn(1);if(ge.isEven()&&ge.iadd(C),ge.testn(1)||ge.iadd(d),re.cmp(d)){if(!re.cmp(R))for(;ge.mod(w).cmp(D);)ge.iadd(E)}else for(;ge.mod(f).cmp(k);)ge.iadd(E);if(ae(q=ge.shrn(1))&&ae(ge)&&ee(q)&&ee(ge)&&a.test(q)&&a.test(ge))return ge}}},8313:function(Be,K,p){!function(t,e){"use strict";function f(x,i){if(!x)throw new Error(i||"Assertion failed")}function M(x,i){x.super_=i;var r=function(){};r.prototype=i.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,i,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(x||0,i||10,r||"be"))}var C;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{C="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(x){}function d(x,i){var r=x.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Ei=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Ei,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},4901:Be=>{"use strict";var K={single_source_shortest_paths:function(p,t,e){var f={},M={};M[t]=0;var C,d,R,h,L,D,a=K.PriorityQueue.make();for(a.push(t,0);!a.empty();)for(R in h=(C=a.pop()).cost,L=p[d=C.value]||{})L.hasOwnProperty(R)&&(D=h+L[R],(void 0===M[R]||M[R]>D)&&(M[R]=D,a.push(R,D),f[R]=d));if(void 0!==e&&void 0===M[e]){var E=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(E)}return f},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],f=t;f;)e.push(f),f=p[f];return e.reverse(),e},find_path:function(p,t,e){var f=K.single_source_shortest_paths(p,t,e);return K.extract_shortest_path_from_predecessor_list(f,e)},PriorityQueue:{make:function(p){var f,t=K.PriorityQueue,e={};for(f in p=p||{},t)t.hasOwnProperty(f)&&(e[f]=t[f]);return e.queue=[],e.sorter=p.sorter||t.default_sorter,e},default_sorter:function(p,t){return p.cost-t.cost},push:function(p,t){this.queue.push({value:p,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Be.exports=K},7715:(Be,K,p)=>{"use strict";var t=K;t.version=p(8597).i8,t.utils=p(1970),t.rand=p(7950),t.curve=p(6270),t.curves=p(2916),t.ec=p(7626),t.eddsa=p(1885)},7902:(Be,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.getNAF,M=e.getJSF,a=e.assert;function C(R,h){this.type=R,this.p=new t(h.p,16),this.red=h.prime?t.red(h.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=h.n&&new t(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.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 L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(R,h){this.curve=R,this.type=h,this.precomputed=null}Be.exports=C,C.prototype.point=function(){throw new Error("Not implemented")},C.prototype.validate=function(){throw new Error("Not implemented")},C.prototype._fixedNafMul=function(h,L){a(h.precomputed);var w=h._getDoubles(),D=f(L,1,this._bitLength),S=(1<=E;Z--)B=(B<<1)+D[Z];k.push(B)}for(var Y=this.jpoint(null,null,null),ae=this.jpoint(null,null,null),ee=S;ee>0;ee--){for(E=0;E=0;B--){for(var Z=0;B>=0&&0===k[B];B--)Z++;if(B>=0&&Z++,E=E.dblp(Z),B<0)break;var Y=k[B];a(0!==Y),E="affine"===h.type?E.mixedAdd(Y>0?S[Y-1>>1]:S[-Y-1>>1].neg()):E.add(Y>0?S[Y-1>>1]:S[-Y-1>>1].neg())}return"affine"===h.type?E.toP():E},C.prototype._wnafMulAdd=function(h,L,w,D,S){var Y,ae,ee,k=this._wnafT1,E=this._wnafT2,B=this._wnafT3,Z=0;for(Y=0;Y=1;Y-=2){var ne=Y-1,re=Y;if(1===k[ne]&&1===k[re]){var ge=[L[ne],null,null,L[re]];0===L[ne].y.cmp(L[re].y)?(ge[1]=L[ne].add(L[re]),ge[2]=L[ne].toJ().mixedAdd(L[re].neg())):0===L[ne].y.cmp(L[re].y.redNeg())?(ge[1]=L[ne].toJ().mixedAdd(L[re]),ge[2]=L[ne].add(L[re].neg())):(ge[1]=L[ne].toJ().mixedAdd(L[re]),ge[2]=L[ne].toJ().mixedAdd(L[re].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],_e=M(w[ne],w[re]);for(Z=Math.max(_e[0].length,Z),B[ne]=new Array(Z),B[re]=new Array(Z),ae=0;ae=0;Y--){for(var c=0;Y>=0;){var v=!0;for(ae=0;ae=0&&c++,r=r.dblp(c),Y<0)break;for(ae=0;ae0?ee=E[ae][T-1>>1]:T<0&&(ee=E[ae][-T-1>>1].neg()),r="affine"===ee.type?r.mixedAdd(ee):r.add(ee))}}for(Y=0;Y=Math.ceil((h.bitLength()+1)/L.step)},d.prototype._getDoubles=function(h,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var w=[this],D=this,S=0;S{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function C(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,M.call(this,"edwards",R),this.a=new e(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(R.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|R.c)}function d(R,h,L,w,D){M.BasePoint.call(this,R,"projective"),null===h&&null===L&&null===w?(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 e(h,16),this.y=new e(L,16),this.z=w?new e(w,16):this.curve.one,this.t=D&&new e(D,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()))))}f(C,M),Be.exports=C,C.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},C.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},C.prototype.jpoint=function(h,L,w,D){return this.point(h,L,w,D)},C.prototype.pointFromX=function(h,L){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=this.c2.redSub(this.a.redMul(w)),S=this.one.redSub(this.c2.redMul(this.d).redMul(w)),k=D.redMul(S.redInvm()),E=k.redSqrt();if(0!==E.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var B=E.fromRed().isOdd();return(L&&!B||!L&&B)&&(E=E.redNeg()),this.point(h,E)},C.prototype.pointFromY=function(h,L){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=w.redSub(this.c2),S=w.redMul(this.d).redMul(this.c2).redSub(this.a),k=D.redMul(S.redInvm());if(0===k.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,h)}var E=k.redSqrt();if(0!==E.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return E.fromRed().isOdd()!==L&&(E=E.redNeg()),this.point(E,h)},C.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var L=h.x.redSqr(),w=h.y.redSqr(),D=L.redMul(this.a).redAdd(w),S=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(w)));return 0===D.cmp(S)},f(d,M.BasePoint),C.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},C.prototype.point=function(h,L,w,D){return new d(this,h,L,w,D)},d.fromJSON=function(h,L){return new d(h,L[0],L[1],L[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var h=this.x.redSqr(),L=this.y.redSqr(),w=this.z.redSqr();w=w.redIAdd(w);var D=this.curve._mulA(h),S=this.x.redAdd(this.y).redSqr().redISub(h).redISub(L),k=D.redAdd(L),E=k.redSub(w),B=D.redSub(L),Z=S.redMul(E),Y=k.redMul(B),ae=S.redMul(B),ee=E.redMul(k);return this.curve.point(Z,Y,ee,ae)},d.prototype._projDbl=function(){var D,S,k,E,B,Z,h=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var Y=(E=this.curve._mulA(L)).redAdd(w);this.zOne?(D=h.redSub(L).redSub(w).redMul(Y.redSub(this.curve.two)),S=Y.redMul(E.redSub(w)),k=Y.redSqr().redSub(Y).redSub(Y)):(B=this.z.redSqr(),Z=Y.redSub(B).redISub(B),D=h.redSub(L).redISub(w).redMul(Z),S=Y.redMul(E.redSub(w)),k=Y.redMul(Z))}else E=L.redAdd(w),B=this.curve._mulC(this.z).redSqr(),Z=E.redSub(B).redSub(B),D=this.curve._mulC(h.redISub(E)).redMul(Z),S=this.curve._mulC(E).redMul(L.redISub(w)),k=E.redMul(Z);return this.curve.point(D,S,k)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var L=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),w=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),D=this.t.redMul(this.curve.dd).redMul(h.t),S=this.z.redMul(h.z.redAdd(h.z)),k=w.redSub(L),E=S.redSub(D),B=S.redAdd(D),Z=w.redAdd(L),Y=k.redMul(E),ae=B.redMul(Z),ee=k.redMul(Z),ue=E.redMul(B);return this.curve.point(Y,ae,ue,ee)},d.prototype._projAdd=function(h){var ae,ee,L=this.z.redMul(h.z),w=L.redSqr(),D=this.x.redMul(h.x),S=this.y.redMul(h.y),k=this.curve.d.redMul(D).redMul(S),E=w.redSub(k),B=w.redAdd(k),Z=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(D).redISub(S),Y=L.redMul(E).redMul(Z);return this.curve.twisted?(ae=L.redMul(B).redMul(S.redSub(this.curve._mulA(D))),ee=E.redMul(B)):(ae=L.redMul(B).redMul(S.redSub(D)),ee=this.curve._mulC(E).redMul(B)),this.curve.point(Y,ae,ee)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,L,w){return this.curve._wnafMulAdd(1,[this,L],[h,w],2,!1)},d.prototype.jmulAdd=function(h,L,w){return this.curve._wnafMulAdd(1,[this,L],[h,w],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(h){return this===h||0===this.getX().cmp(h.getX())&&0===this.getY().cmp(h.getY())},d.prototype.eqXToP=function(h){var L=h.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var w=h.clone(),D=this.curve.redN.redMul(this.z);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(D),0===this.x.cmp(L))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(Be,K,p)=>{"use strict";var t=K;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(Be,K,p)=>{"use strict";var t=p(7433),e=p(3894),f=p(7902),M=p(1970);function a(d){f.call(this,"mont",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function C(d,R,h){f.BasePoint.call(this,d,"projective"),null===R&&null===h?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(R,16),this.z=new t(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(a,f),Be.exports=a,a.prototype.validate=function(R){var h=R.normalize().x,L=h.redSqr(),w=L.redMul(h).redAdd(L.redMul(this.a)).redAdd(h);return 0===w.redSqrt().redSqr().cmp(w)},e(C,f.BasePoint),a.prototype.decodePoint=function(R,h){return this.point(M.toArray(R,h),1)},a.prototype.point=function(R,h){return new C(this,R,h)},a.prototype.pointFromJSON=function(R){return C.fromJSON(this,R)},C.prototype.precompute=function(){},C.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},C.fromJSON=function(R,h){return new C(R,h[0],h[1]||R.one)},C.prototype.inspect=function(){return this.isInfinity()?"":""},C.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},C.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),D=h.redSub(w),S=h.redMul(w),k=D.redMul(w.redAdd(this.curve.a24.redMul(D)));return this.curve.point(S,k)},C.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.diffAdd=function(R,h){var L=this.x.redAdd(this.z),w=this.x.redSub(this.z),D=R.x.redAdd(R.z),k=R.x.redSub(R.z).redMul(L),E=D.redMul(w),B=h.z.redMul(k.redAdd(E).redSqr()),Z=h.x.redMul(k.redISub(E).redSqr());return this.curve.point(B,Z)},C.prototype.mul=function(R){for(var h=R.clone(),L=this,w=this.curve.point(null,null),S=[];0!==h.cmpn(0);h.iushrn(1))S.push(h.andln(1));for(var k=S.length-1;k>=0;k--)0===S[k]?(L=L.diffAdd(w,this),w=w.dbl()):(w=L.diffAdd(w,this),L=L.dbl());return w},C.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},C.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Be,K,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function C(h){M.call(this,"short",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.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(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(h,L,w,D){M.BasePoint.call(this,h,"affine"),null===L&&null===w?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(L,16),this.y=new e(w,16),D&&(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 R(h,L,w,D){M.BasePoint.call(this,h,"jacobian"),null===L&&null===w&&null===D?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(L,16),this.y=new e(w,16),this.z=new e(D,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}f(C,M),Be.exports=C,C.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var w,D;if(L.beta)w=new e(L.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);w=(w=S[0].cmp(S[1])<0?S[0]:S[1]).toRed(this.red)}if(L.lambda)D=new e(L.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(w))?D=k[0]:a(0===this.g.mul(D=k[1]).x.cmp(this.g.x.redMul(w)))}return{beta:w,lambda:D,basis:L.basis?L.basis.map(function(B){return{a:new e(B.a,16),b:new e(B.b,16)}}):this._getEndoBasis(D)}}},C.prototype._getEndoRoots=function(L){var w=L===this.p?this.red:e.mont(L),D=new e(2).toRed(w).redInvm(),S=D.redNeg(),k=new e(3).toRed(w).redNeg().redSqrt().redMul(D);return[S.redAdd(k).fromRed(),S.redSub(k).fromRed()]},C.prototype._getEndoBasis=function(L){for(var Y,ae,ee,ue,ne,re,ge,_e,x,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=L,S=this.n.clone(),k=new e(1),E=new e(0),B=new e(0),Z=new e(1),q=0;0!==D.cmpn(0);){var i=S.div(D);_e=S.sub(i.mul(D)),x=B.sub(i.mul(k));var r=Z.sub(i.mul(E));if(!ee&&_e.cmp(w)<0)Y=ge.neg(),ae=k,ee=_e.neg(),ue=x;else if(ee&&2==++q)break;ge=_e,S=D,D=_e,B=k,k=x,Z=E,E=r}ne=_e.neg(),re=x;var u=ee.sqr().add(ue.sqr());return ne.sqr().add(re.sqr()).cmp(u)>=0&&(ne=Y,re=ae),ee.negative&&(ee=ee.neg(),ue=ue.neg()),ne.negative&&(ne=ne.neg(),re=re.neg()),[{a:ee,b:ue},{a:ne,b:re}]},C.prototype._endoSplit=function(L){var w=this.endo.basis,D=w[0],S=w[1],k=S.b.mul(L).divRound(this.n),E=D.b.neg().mul(L).divRound(this.n),B=k.mul(D.a),Z=E.mul(S.a),Y=k.mul(D.b),ae=E.mul(S.b);return{k1:L.sub(B).sub(Z),k2:Y.add(ae).neg()}},C.prototype.pointFromX=function(L,w){(L=new e(L,16)).red||(L=L.toRed(this.red));var D=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),S=D.redSqrt();if(0!==S.redSqr().redSub(D).cmp(this.zero))throw new Error("invalid point");var k=S.fromRed().isOdd();return(w&&!k||!w&&k)&&(S=S.redNeg()),this.point(L,S)},C.prototype.validate=function(L){if(L.inf)return!0;var w=L.x,D=L.y,S=this.a.redMul(w),k=w.redSqr().redMul(w).redIAdd(S).redIAdd(this.b);return 0===D.redSqr().redISub(k).cmpn(0)},C.prototype._endoWnafMulAdd=function(L,w,D){for(var S=this._endoWnafT1,k=this._endoWnafT2,E=0;E":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var w=this.y.redSub(L.y);0!==w.cmpn(0)&&(w=w.redMul(this.x.redSub(L.x).redInvm()));var D=w.redSqr().redISub(this.x).redISub(L.x),S=w.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,S)},d.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var w=this.curve.a,D=this.x.redSqr(),S=L.redInvm(),k=D.redAdd(D).redIAdd(D).redIAdd(w).redMul(S),E=k.redSqr().redISub(this.x.redAdd(this.x)),B=k.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,B)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(L){return L=new e(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},d.prototype.mulAdd=function(L,w,D){var S=[this,w],k=[L,D];return this.curve.endo?this.curve._endoWnafMulAdd(S,k):this.curve._wnafMulAdd(1,S,k,2)},d.prototype.jmulAdd=function(L,w,D){var S=[this,w],k=[L,D];return this.curve.endo?this.curve._endoWnafMulAdd(S,k,!0):this.curve._wnafMulAdd(1,S,k,2,!0)},d.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},d.prototype.neg=function(L){if(this.inf)return this;var w=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var D=this.precomputed,S=function(k){return k.neg()};w.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(S)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(S)}}}return w},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(R,M.BasePoint),C.prototype.jpoint=function(L,w,D){return new R(this,L,w,D)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),w=L.redSqr(),D=this.x.redMul(w),S=this.y.redMul(w).redMul(L);return this.curve.point(D,S)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var w=L.z.redSqr(),D=this.z.redSqr(),S=this.x.redMul(w),k=L.x.redMul(D),E=this.y.redMul(w.redMul(L.z)),B=L.y.redMul(D.redMul(this.z)),Z=S.redSub(k),Y=E.redSub(B);if(0===Z.cmpn(0))return 0!==Y.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ae=Z.redSqr(),ee=ae.redMul(Z),ue=S.redMul(ae),ne=Y.redSqr().redIAdd(ee).redISub(ue).redISub(ue),re=Y.redMul(ue.redISub(ne)).redISub(E.redMul(ee)),ge=this.z.redMul(L.z).redMul(Z);return this.curve.jpoint(ne,re,ge)},R.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var w=this.z.redSqr(),D=this.x,S=L.x.redMul(w),k=this.y,E=L.y.redMul(w).redMul(this.z),B=D.redSub(S),Z=k.redSub(E);if(0===B.cmpn(0))return 0!==Z.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Y=B.redSqr(),ae=Y.redMul(B),ee=D.redMul(Y),ue=Z.redSqr().redIAdd(ae).redISub(ee).redISub(ee),ne=Z.redMul(ee.redISub(ue)).redISub(k.redMul(ae)),re=this.z.redMul(B);return this.curve.jpoint(ue,ne,re)},R.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var w;if(this.curve.zeroA||this.curve.threeA){var D=this;for(w=0;w=0)return!1;if(D.redIAdd(k),0===this.x.cmp(D))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"":""},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Be,K,p)=>{"use strict";var R,t=K,e=p(7084),f=p(6270),a=p(1970).assert;function C(h){this.curve="short"===h.type?new f.short(h):"edwards"===h.type?new f.edwards(h):new f.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,L){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var w=new C(L);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:w}),w}})}t.PresetCurve=C,d("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:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:e.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"]}),d("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:e.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"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),d("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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=p(5150)}catch(h){R=void 0}d("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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(Be,K,p)=>{"use strict";var t=p(7433),e=p(2438),f=p(1970),M=p(2916),a=p(7950),C=f.assert,d=p(1259),R=p(5957);function h(L){if(!(this instanceof h))return new h(L);"string"==typeof L&&(C(Object.prototype.hasOwnProperty.call(M,L),"Unknown curve "+L),L=M[L]),L instanceof M.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}Be.exports=h,h.prototype.keyPair=function(w){return new d(this,w)},h.prototype.keyFromPrivate=function(w,D){return d.fromPrivate(this,w,D)},h.prototype.keyFromPublic=function(w,D){return d.fromPublic(this,w,D)},h.prototype.genKeyPair=function(w){w||(w={});for(var D=new e({hash:this.hash,pers:w.pers,persEnc:w.persEnc||"utf8",entropy:w.entropy||a(this.hash.hmacStrength),entropyEnc:w.entropy&&w.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),k=this.n.sub(new t(2));;){var E=new t(D.generate(S));if(!(E.cmp(k)>0))return E.iaddn(1),this.keyFromPrivate(E)}},h.prototype._truncateToN=function(w,D){var S=8*w.byteLength()-this.n.bitLength();return S>0&&(w=w.ushrn(S)),!D&&w.cmp(this.n)>=0?w.sub(this.n):w},h.prototype.sign=function(w,D,S,k){"object"==typeof S&&(k=S,S=null),k||(k={}),D=this.keyFromPrivate(D,S),w=this._truncateToN(new t(w,16));for(var E=this.n.byteLength(),B=D.getPrivate().toArray("be",E),Z=w.toArray("be",E),Y=new e({hash:this.hash,entropy:B,nonce:Z,pers:k.pers,persEnc:k.persEnc||"utf8"}),ae=this.n.sub(new t(1)),ee=0;;ee++){var ue=k.k?k.k(ee):new t(Y.generate(this.n.byteLength()));if(!((ue=this._truncateToN(ue,!0)).cmpn(1)<=0||ue.cmp(ae)>=0)){var ne=this.g.mul(ue);if(!ne.isInfinity()){var re=ne.getX(),ge=re.umod(this.n);if(0!==ge.cmpn(0)){var q=ue.invm(this.n).mul(ge.mul(D.getPrivate()).iadd(w));if(0!==(q=q.umod(this.n)).cmpn(0)){var _e=(ne.getY().isOdd()?1:0)|(0!==re.cmp(ge)?2:0);return k.canonical&&q.cmp(this.nh)>0&&(q=this.n.sub(q),_e^=1),new R({r:ge,s:q,recoveryParam:_e})}}}}}},h.prototype.verify=function(w,D,S,k){w=this._truncateToN(new t(w,16)),S=this.keyFromPublic(S,k);var E=(D=new R(D,"hex")).r,B=D.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||B.cmpn(1)<0||B.cmp(this.n)>=0)return!1;var ee,Z=B.invm(this.n),Y=Z.mul(w).umod(this.n),ae=Z.mul(E).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(Y,S.getPublic(),ae)).isInfinity()&&ee.eqXToP(E):!(ee=this.g.mulAdd(Y,S.getPublic(),ae)).isInfinity()&&0===ee.getX().umod(this.n).cmp(E)},h.prototype.recoverPubKey=function(L,w,D,S){C((3&D)===D,"The recovery param is more than two bits"),w=new R(w,S);var k=this.n,E=new t(L),B=w.r,Z=w.s,Y=1&D,ae=D>>1;if(B.cmp(this.curve.p.umod(this.curve.n))>=0&&ae)throw new Error("Unable to find sencond key candinate");B=this.curve.pointFromX(ae?B.add(this.curve.n):B,Y);var ee=w.r.invm(k),ue=k.sub(E).mul(ee).umod(k),ne=Z.mul(ee).umod(k);return this.g.mulAdd(ue,B,ne)},h.prototype.getKeyRecoveryParam=function(L,w,D,S){if(null!==(w=new R(w,S)).recoveryParam)return w.recoveryParam;for(var k=0;k<4;k++){var E;try{E=this.recoverPubKey(L,w,k)}catch(B){continue}if(E.eq(D))return k}throw new Error("Unable to find valid recovery factor")}},1259:(Be,K,p)=>{"use strict";var t=p(7433),f=p(1970).assert;function M(a,C){this.ec=a,this.priv=null,this.pub=null,C.priv&&this._importPrivate(C.priv,C.privEnc),C.pub&&this._importPublic(C.pub,C.pubEnc)}Be.exports=M,M.fromPublic=function(C,d,R){return d instanceof M?d:new M(C,{pub:d,pubEnc:R})},M.fromPrivate=function(C,d,R){return d instanceof M?d:new M(C,{priv:d,privEnc:R})},M.prototype.validate=function(){var C=this.getPublic();return C.isInfinity()?{result:!1,reason:"Invalid public key"}:C.validate()?C.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"}},M.prototype.getPublic=function(C,d){return"string"==typeof C&&(d=C,C=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,C):this.pub},M.prototype.getPrivate=function(C){return"hex"===C?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(C,d){this.priv=new t(C,d||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(C,d){if(C.x||C.y)return"mont"===this.ec.curve.type?f(C.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&f(C.x&&C.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(C.x,C.y));this.pub=this.ec.curve.decodePoint(C,d)},M.prototype.derive=function(C){return C.validate()||f(C.validate(),"public point not validated"),C.mul(this.priv).getX()},M.prototype.sign=function(C,d,R){return this.ec.sign(C,this,d,R)},M.prototype.verify=function(C,d){return this.ec.verify(C,d,this)},M.prototype.inspect=function(){return""}},5957:(Be,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert;function M(h,L){if(h instanceof M)return h;this._importDER(h,L)||(f(h.r&&h.s,"Signature without r or s"),this.r=new t(h.r,16),this.s=new t(h.s,16),this.recoveryParam=void 0===h.recoveryParam?null:h.recoveryParam)}function a(){this.place=0}function C(h,L){var w=h[L.place++];if(!(128&w))return w;var D=15&w;if(0===D||D>4)return!1;for(var S=0,k=0,E=L.place;k>>=0;return!(S<=127)&&(L.place=E,S)}function d(h){for(var L=0,w=h.length-1;!h[L]&&!(128&h[L+1])&&L>>3);for(h.push(128|w);--w;)h.push(L>>>(w<<3)&255);h.push(L)}}Be.exports=M,M.prototype._importDER=function(L,w){L=e.toArray(L,w);var D=new a;if(48!==L[D.place++])return!1;var S=C(L,D);if(!1===S||S+D.place!==L.length||2!==L[D.place++])return!1;var k=C(L,D);if(!1===k)return!1;var E=L.slice(D.place,k+D.place);if(D.place+=k,2!==L[D.place++])return!1;var B=C(L,D);if(!1===B||L.length!==B+D.place)return!1;var Z=L.slice(D.place,B+D.place);if(0===E[0]){if(!(128&E[1]))return!1;E=E.slice(1)}if(0===Z[0]){if(!(128&Z[1]))return!1;Z=Z.slice(1)}return this.r=new t(E),this.s=new t(Z),this.recoveryParam=null,!0},M.prototype.toDER=function(L){var w=this.r.toArray(),D=this.s.toArray();for(128&w[0]&&(w=[0].concat(w)),128&D[0]&&(D=[0].concat(D)),w=d(w),D=d(D);!(D[0]||128&D[1]);)D=D.slice(1);var S=[2];R(S,w.length),(S=S.concat(w)).push(2),R(S,D.length);var k=S.concat(D),E=[48];return R(E,k.length),E=E.concat(k),e.encode(E,L)}},1885:(Be,K,p)=>{"use strict";var t=p(7084),e=p(2916),f=p(1970),M=f.assert,a=f.parseBytes,C=p(7535),d=p(8241);function R(h){if(M("ed25519"===h,"only tested with ed25519 so far"),!(this instanceof R))return new R(h);this.curve=h=e[h].curve,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=t.sha512}Be.exports=R,R.prototype.sign=function(L,w){L=a(L);var D=this.keyFromSecret(w),S=this.hashInt(D.messagePrefix(),L),k=this.g.mul(S),E=this.encodePoint(k),B=this.hashInt(E,D.pubBytes(),L).mul(D.priv()),Z=S.add(B).umod(this.curve.n);return this.makeSignature({R:k,S:Z,Rencoded:E})},R.prototype.verify=function(L,w,D){L=a(L),w=this.makeSignature(w);var S=this.keyFromPublic(D),k=this.hashInt(w.Rencoded(),S.pubBytes(),L),E=this.g.mul(w.S());return w.R().add(S.pub().mul(k)).eq(E)},R.prototype.hashInt=function(){for(var L=this.hash(),w=0;w{"use strict";var t=p(1970),e=t.assert,f=t.parseBytes,M=t.cachedProperty;function a(C,d){this.eddsa=C,this._secret=f(d.secret),C.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=f(d.pub)}a.fromPublic=function(d,R){return R instanceof a?R:new a(d,{pub:R})},a.fromSecret=function(d,R){return R instanceof a?R:new a(d,{secret:R})},a.prototype.secret=function(){return this._secret},M(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(a,"privBytes",function(){var d=this.eddsa,R=this.hash(),h=d.encodingLength-1,L=R.slice(0,d.encodingLength);return L[0]&=248,L[h]&=127,L[h]|=64,L}),M(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,R){return this.eddsa.verify(d,R,this)},a.prototype.getSecret=function(d){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),d)},a.prototype.getPublic=function(d){return t.encode(this.pubBytes(),d)},Be.exports=a},8241:(Be,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert,M=e.cachedProperty,a=e.parseBytes;function C(d,R){this.eddsa=d,"object"!=typeof R&&(R=a(R)),Array.isArray(R)&&(R={R:R.slice(0,d.encodingLength),S:R.slice(d.encodingLength)}),f(R.R&&R.S,"Signature without R or S"),d.isPoint(R.R)&&(this._R=R.R),R.S instanceof t&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}M(C,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(C,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(C,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(C,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),C.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},C.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},Be.exports=C},5150:Be=>{Be.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"]]}}},1970:(Be,K,p)=>{"use strict";var t=K,e=p(7433),f=p(2391),M=p(8195);t.assert=f,t.toArray=M.toArray,t.zero2=M.zero2,t.toHex=M.toHex,t.encode=M.encode,t.getNAF=function a(L,w,D){var S=new Array(Math.max(L.bitLength(),D)+1);S.fill(0);for(var k=1<(k>>1)-1?(k>>1)-Y:Y):Z=0,S[B]=Z,E.iushrn(1)}return S},t.getJSF=function C(L,w){var D=[[],[]];L=L.clone(),w=w.clone();for(var E,S=0,k=0;L.cmpn(-S)>0||w.cmpn(-k)>0;){var Y,ae,B=L.andln(3)+S&3,Z=w.andln(3)+k&3;3===B&&(B=-1),3===Z&&(Z=-1),Y=0==(1&B)?0:3!=(E=L.andln(7)+S&7)&&5!==E||2!==Z?B:-B,D[0].push(Y),ae=0==(1&Z)?0:3!=(E=w.andln(7)+k&7)&&5!==E||2!==B?Z:-Z,D[1].push(ae),2*S===Y+1&&(S=1-S),2*k===ae+1&&(k=1-k),L.iushrn(1),w.iushrn(1)}return D},t.cachedProperty=function d(L,w,D){var S="_"+w;L.prototype[w]=function(){return void 0!==this[S]?this[S]:this[S]=D.call(this)}},t.parseBytes=function R(L){return"string"==typeof L?t.toArray(L,"hex"):L},t.intFromLE=function h(L){return new e(L,"hex","le")}},7433:function(Be,K,p){!function(t,e){"use strict";function f(x,i){if(!x)throw new Error(i||"Assertion failed")}function M(x,i){x.super_=i;var r=function(){};r.prototype=i.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,i,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(x||0,i||10,r||"be"))}var C;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{C="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(x){}function d(x,i){var r=x.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Ei=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Ei,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},8419:Be=>{"use strict";Be.exports=function(p){for(var t=[],e=p.length,f=0;f=55296&&M<=56319&&e>f+1){var a=p.charCodeAt(f+1);a>=56320&&a<=57343&&(M=1024*(M-55296)+a-56320+65536,f+=1)}M<128?t.push(M):M<2048?(t.push(M>>6|192),t.push(63&M|128)):M<55296||M>=57344&&M<65536?(t.push(M>>12|224),t.push(M>>6&63|128),t.push(63&M|128)):M>=65536&&M<=1114111?(t.push(M>>18|240),t.push(M>>12&63|128),t.push(M>>6&63|128),t.push(63&M|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:Be=>{"use strict";var t,K="object"==typeof Reflect?Reflect:null,p=K&&"function"==typeof K.apply?K.apply:function(ee,ue,ne){return Function.prototype.apply.call(ee,ue,ne)};t=K&&"function"==typeof K.ownKeys?K.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var f=Number.isNaN||function(ee){return ee!=ee};function M(){M.init.call(this)}Be.exports=M,Be.exports.once=function B(ae,ee){return new Promise(function(ue,ne){function re(q){ae.removeListener(ee,ge),ne(q)}function ge(){"function"==typeof ae.removeListener&&ae.removeListener("error",re),ue([].slice.call(arguments))}Y(ae,ee,ge,{once:!0}),"error"!==ee&&function Z(ae,ee,ue){"function"==typeof ae.on&&Y(ae,"error",ee,ue)}(ae,re,{once:!0})})},M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var a=10;function C(ae){if("function"!=typeof ae)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ae)}function d(ae){return void 0===ae._maxListeners?M.defaultMaxListeners:ae._maxListeners}function R(ae,ee,ue,ne){var re,ge,q;if(C(ue),void 0===(ge=ae._events)?(ge=ae._events=Object.create(null),ae._eventsCount=0):(void 0!==ge.newListener&&(ae.emit("newListener",ee,ue.listener?ue.listener:ue),ge=ae._events),q=ge[ee]),void 0===q)q=ge[ee]=ue,++ae._eventsCount;else if("function"==typeof q?q=ge[ee]=ne?[ue,q]:[q,ue]:ne?q.unshift(ue):q.push(ue),(re=d(ae))>0&&q.length>re&&!q.warned){q.warned=!0;var _e=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");_e.name="MaxListenersExceededWarning",_e.emitter=ae,_e.type=ee,_e.count=q.length,function e(ae){console&&console.warn&&console.warn(ae)}(_e)}return ae}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 L(ae,ee,ue){var ne={fired:!1,wrapFn:void 0,target:ae,type:ee,listener:ue},re=h.bind(ne);return re.listener=ue,ne.wrapFn=re,re}function w(ae,ee,ue){var ne=ae._events;if(void 0===ne)return[];var re=ne[ee];return void 0===re?[]:"function"==typeof re?ue?[re.listener||re]:[re]:ue?function E(ae){for(var ee=new Array(ae.length),ue=0;ue0&&(q=ue[0]),q instanceof Error)throw q;var _e=new Error("Unhandled error."+(q?" ("+q.message+")":""));throw _e.context=q,_e}var x=ge[ee];if(void 0===x)return!1;if("function"==typeof x)p(x,this,ue);else{var i=x.length,r=S(x,i);for(ne=0;ne=0;q--)if(ne[q]===ue||ne[q].listener===ue){_e=ne[q].listener,ge=q;break}if(ge<0)return this;0===ge?ne.shift():function k(ae,ee){for(;ee+1=0;re--)this.removeListener(ee,ue[re]);return this},M.prototype.listeners=function(ee){return w(this,ee,!0)},M.prototype.rawListeners=function(ee){return w(this,ee,!1)},M.listenerCount=function(ae,ee){return"function"==typeof ae.listenerCount?ae.listenerCount(ee):D.call(ae,ee)},M.prototype.listenerCount=D,M.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(Be,K,p)=>{var t=p(3502).Buffer,e=p(8095);Be.exports=function f(M,a,C,d){if(t.isBuffer(M)||(M=t.from(M,"binary")),a&&(t.isBuffer(a)||(a=t.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var R=C/8,h=t.alloc(R),L=t.alloc(d||0),w=t.alloc(0);R>0||d>0;){var D=new e;D.update(w),D.update(M),a&&D.update(a),w=D.digest();var S=0;if(R>0){var k=h.length-R;S=Math.min(R,w.length),w.copy(h,k,0,S),R-=S}if(S0){var E=L.length-d,B=Math.min(d,w.length-S);w.copy(L,E,S,S+B),d-=B}}return w.fill(0),{key:h,iv:L}}},9650:(Be,K,p)=>{"use strict";var t=p(3502).Buffer,e=p(5685).Transform;function a(C){e.call(this),this._block=t.allocUnsafe(C),this._blockSize=C,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,e),a.prototype._transform=function(C,d,R){var h=null;try{this.update(C,d)}catch(L){h=L}R(h)},a.prototype._flush=function(C){var d=null;try{this.push(this.digest())}catch(R){d=R}C(d)},a.prototype.update=function(C,d){if(function M(C,d){if(!t.isBuffer(C)&&"string"!=typeof C)throw new TypeError(d+" must be a string or a buffer")}(C,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(C)||(C=t.from(C,d));for(var R=this._block,h=0;this._blockOffset+C.length-h>=this._blockSize;){for(var L=this._blockOffset;L0;++w)this._length[w]+=D,(D=this._length[w]/4294967296|0)>0&&(this._length[w]-=4294967296*D);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(C){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==C&&(d=d.toString(C)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return d},a.prototype._digest=function(){throw new Error("_digest is not implemented")},Be.exports=a},7084:(Be,K,p)=>{var t=K;t.utils=p(9299),t.common=p(3800),t.sha=p(4962),t.ripemd=p(9458),t.hmac=p(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(Be,K,p)=>{"use strict";var t=p(9299),e=p(2391);function f(){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}K.BlockHash=f,f.prototype.update=function(a,C){if(a=t.toArray(a,C),this.pending=this.pending?this.pending.concat(a):a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var d=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-d,a.length),0===this.pending.length&&(this.pending=null),a=t.join32(a,0,a.length-d,this.endian);for(var R=0;R>>24&255,R[h++]=a>>>16&255,R[h++]=a>>>8&255,R[h++]=255&a}else for(R[h++]=255&a,R[h++]=a>>>8&255,R[h++]=a>>>16&255,R[h++]=a>>>24&255,R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=0,L=8;L{"use strict";var t=p(9299),e=p(2391);function f(M,a,C){if(!(this instanceof f))return new f(M,a,C);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,C))}Be.exports=f,f.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),e(a.length<=this.blockSize);for(var C=a.length;C{"use strict";var t=p(9299),e=p(3800),f=t.rotl32,M=t.sum32,a=t.sum32_3,C=t.sum32_4,d=e.BlockHash;function R(){if(!(this instanceof R))return new R;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(B,Z,Y,ae){return B<=15?Z^Y^ae:B<=31?Z&Y|~Z&ae:B<=47?(Z|~Y)^ae:B<=63?Z&ae|Y&~ae:Z^(Y|~ae)}function w(B){return B<=15?1352829926:B<=31?1548603684:B<=47?1836072691:B<=63?2053994217:0}t.inherits(R,d),K.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(Z,Y){for(var ae=this.h[0],ee=this.h[1],ue=this.h[2],ne=this.h[3],re=this.h[4],ge=ae,q=ee,_e=ue,x=ne,i=re,r=0;r<80;r++){var u=M(f(C(ae,h(r,ee,ue,ne),Z[D[r]+Y],(B=r)<=15?0:B<=31?1518500249:B<=47?1859775393:B<=63?2400959708:2840853838),k[r]),re);ae=re,re=ne,ne=f(ue,10),ue=ee,ee=u,u=M(f(C(ge,h(79-r,q,_e,x),Z[S[r]+Y],w(r)),E[r]),i),ge=i,i=x,x=f(_e,10),_e=q,q=u}var B;u=a(this.h[1],ue,x),this.h[1]=a(this.h[2],ne,i),this.h[2]=a(this.h[3],re,ge),this.h[3]=a(this.h[4],ae,q),this.h[4]=a(this.h[0],ee,_e),this.h[0]=u},R.prototype._digest=function(Z){return"hex"===Z?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var D=[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],S=[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],k=[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],E=[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]},4962:(Be,K,p)=>{"use strict";K.sha1=p(9007),K.sha224=p(55),K.sha256=p(9342),K.sha384=p(8634),K.sha512=p(39)},9007:(Be,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=t.rotl32,a=t.sum32,C=t.sum32_5,d=f.ft_1,R=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(L,R),Be.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(D,S){for(var k=this.W,E=0;E<16;E++)k[E]=D[S+E];for(;E{"use strict";var t=p(9299),e=p(9342);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(f,e),Be.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(Be,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=p(2391),a=t.sum32,C=t.sum32_4,d=t.sum32_5,R=f.ch32,h=f.maj32,L=f.s0_256,w=f.s1_256,D=f.g0_256,S=f.g1_256,k=e.BlockHash,E=[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;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}t.inherits(B,k),Be.exports=B,B.blockSize=512,B.outSize=256,B.hmacStrength=192,B.padLength=64,B.prototype._update=function(Y,ae){for(var ee=this.W,ue=0;ue<16;ue++)ee[ue]=Y[ae+ue];for(;ue{"use strict";var t=p(9299),e=p(39);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(f,e),Be.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(Be,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(2391),M=t.rotr64_hi,a=t.rotr64_lo,C=t.shr64_hi,d=t.shr64_lo,R=t.sum64,h=t.sum64_hi,L=t.sum64_lo,w=t.sum64_4_hi,D=t.sum64_4_lo,S=t.sum64_5_hi,k=t.sum64_5_lo,E=e.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 Z(){if(!(this instanceof Z))return new Z;E.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 Y(u,c,v,T,I){var y=u&v^~u&I;return y<0&&(y+=4294967296),y}function ae(u,c,v,T,I,y){var n=c&T^~c&y;return n<0&&(n+=4294967296),n}function ee(u,c,v,T,I){var y=u&v^u&I^v&I;return y<0&&(y+=4294967296),y}function ue(u,c,v,T,I,y){var n=c&T^c&y^T&y;return n<0&&(n+=4294967296),n}function ne(u,c){var y=M(u,c,28)^M(c,u,2)^M(c,u,7);return y<0&&(y+=4294967296),y}function re(u,c){var y=a(u,c,28)^a(c,u,2)^a(c,u,7);return y<0&&(y+=4294967296),y}function ge(u,c){var y=M(u,c,14)^M(u,c,18)^M(c,u,9);return y<0&&(y+=4294967296),y}function q(u,c){var y=a(u,c,14)^a(u,c,18)^a(c,u,9);return y<0&&(y+=4294967296),y}function _e(u,c){var y=M(u,c,1)^M(u,c,8)^C(u,c,7);return y<0&&(y+=4294967296),y}function x(u,c){var y=a(u,c,1)^a(u,c,8)^d(u,c,7);return y<0&&(y+=4294967296),y}function i(u,c){var y=M(u,c,19)^M(c,u,29)^C(u,c,6);return y<0&&(y+=4294967296),y}function r(u,c){var y=a(u,c,19)^a(c,u,29)^d(u,c,6);return y<0&&(y+=4294967296),y}t.inherits(Z,E),Be.exports=Z,Z.blockSize=1024,Z.outSize=512,Z.hmacStrength=192,Z.padLength=128,Z.prototype._prepareBlock=function(c,v){for(var T=this.W,I=0;I<32;I++)T[I]=c[v+I];for(;I{"use strict";var e=p(9299).rotr32;function M(w,D,S){return w&D^~w&S}function a(w,D,S){return w&D^w&S^D&S}function C(w,D,S){return w^D^S}K.ft_1=function f(w,D,S,k){return 0===w?M(D,S,k):1===w||3===w?C(D,S,k):2===w?a(D,S,k):void 0},K.ch32=M,K.maj32=a,K.p32=C,K.s0_256=function d(w){return e(w,2)^e(w,13)^e(w,22)},K.s1_256=function R(w){return e(w,6)^e(w,11)^e(w,25)},K.g0_256=function h(w){return e(w,7)^e(w,18)^w>>>3},K.g1_256=function L(w){return e(w,17)^e(w,19)^w>>>10}},9299:(Be,K,p)=>{"use strict";var t=p(2391),e=p(3894);function f(r,u){return!(55296!=(64512&r.charCodeAt(u))||u<0||u+1>=r.length)&&56320==(64512&r.charCodeAt(u+1))}function C(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function R(r){return 1===r.length?"0"+r:r}function h(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}K.inherits=e,K.toArray=function M(r,u){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(u){if("hex"===u)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),T=0;T>6|192,c[v++]=63&I|128):f(r,T)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++T)),c[v++]=I>>18|240,c[v++]=I>>12&63|128,c[v++]=I>>6&63|128,c[v++]=63&I|128):(c[v++]=I>>12|224,c[v++]=I>>6&63|128,c[v++]=63&I|128)}else for(T=0;T>>0;return I},K.split32=function w(r,u){for(var c=new Array(4*r.length),v=0,T=0;v>>24,c[T+1]=I>>>16&255,c[T+2]=I>>>8&255,c[T+3]=255&I):(c[T+3]=I>>>24,c[T+2]=I>>>16&255,c[T+1]=I>>>8&255,c[T]=255&I)}return c},K.rotr32=function D(r,u){return r>>>u|r<<32-u},K.rotl32=function S(r,u){return r<>>32-u},K.sum32=function k(r,u){return r+u>>>0},K.sum32_3=function E(r,u,c){return r+u+c>>>0},K.sum32_4=function B(r,u,c,v){return r+u+c+v>>>0},K.sum32_5=function Z(r,u,c,v,T){return r+u+c+v+T>>>0},K.sum64=function Y(r,u,c,v){var y=v+r[u+1]>>>0;r[u]=(y>>0,r[u+1]=y},K.sum64_hi=function ae(r,u,c,v){return(u+v>>>0>>0},K.sum64_lo=function ee(r,u,c,v){return u+v>>>0},K.sum64_4_hi=function ue(r,u,c,v,T,I,y,n){var _=0,V=u;return _+=(V=V+v>>>0)>>0)>>0)>>0},K.sum64_4_lo=function ne(r,u,c,v,T,I,y,n){return u+v+I+n>>>0},K.sum64_5_hi=function re(r,u,c,v,T,I,y,n,_,V){var N=0,H=u;return N+=(H=H+v>>>0)>>0)>>0)>>0)>>0},K.sum64_5_lo=function ge(r,u,c,v,T,I,y,n,_,V){return u+v+I+n+V>>>0},K.rotr64_hi=function q(r,u,c){return(u<<32-c|r>>>c)>>>0},K.rotr64_lo=function _e(r,u,c){return(r<<32-c|u>>>c)>>>0},K.shr64_hi=function x(r,u,c){return r>>>c},K.shr64_lo=function i(r,u,c){return(r<<32-c|u>>>c)>>>0}},2438:(Be,K,p)=>{"use strict";var t=p(7084),e=p(8195),f=p(2391);function M(a){if(!(this instanceof M))return new M(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var C=e.toArray(a.entropy,a.entropyEnc||"hex"),d=e.toArray(a.nonce,a.nonceEnc||"hex"),R=e.toArray(a.pers,a.persEnc||"hex");f(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(C,d,R)}Be.exports=M,M.prototype._init=function(C,d,R){var h=C.concat(d).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(C.concat(R||[])),this._reseed=1},M.prototype.generate=function(C,d,R,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(h=R,R=d,d=null),R&&(R=e.toArray(R,h||"hex"),this._update(R));for(var L=[];L.length{K.read=function(p,t,e,f,M){var a,C,d=8*M-f-1,R=(1<>1,L=-7,w=e?M-1:0,D=e?-1:1,S=p[t+w];for(w+=D,a=S&(1<<-L)-1,S>>=-L,L+=d;L>0;a=256*a+p[t+w],w+=D,L-=8);for(C=a&(1<<-L)-1,a>>=-L,L+=f;L>0;C=256*C+p[t+w],w+=D,L-=8);if(0===a)a=1-h;else{if(a===R)return C?NaN:1/0*(S?-1:1);C+=Math.pow(2,f),a-=h}return(S?-1:1)*C*Math.pow(2,a-f)},K.write=function(p,t,e,f,M,a){var C,d,R,h=8*a-M-1,L=(1<>1,D=23===M?Math.pow(2,-24)-Math.pow(2,-77):0,S=f?0:a-1,k=f?1:-1,E=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,C=L):(C=Math.floor(Math.log(t)/Math.LN2),t*(R=Math.pow(2,-C))<1&&(C--,R*=2),(t+=C+w>=1?D/R:D*Math.pow(2,1-w))*R>=2&&(C++,R/=2),C+w>=L?(d=0,C=L):C+w>=1?(d=(t*R-1)*Math.pow(2,M),C+=w):(d=t*Math.pow(2,w-1)*Math.pow(2,M),C=0));M>=8;p[e+S]=255&d,S+=k,d/=256,M-=8);for(C=C<0;p[e+S]=255&C,S+=k,C/=256,h-=8);p[e+S-k]|=128*E}},3894:Be=>{Be.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var e=function(){};e.prototype=t.prototype,p.prototype=new e,p.prototype.constructor=p}}},717:(Be,K,p)=>{"use strict";var t=p(623);function e(f){return!0===t(f)&&"[object Object]"===Object.prototype.toString.call(f)}Be.exports=function(M){var a,C;return!(!1===e(M)||(a=M.constructor,"function"!=typeof a)||(C=a.prototype,!1===e(C))||!1===C.hasOwnProperty("isPrototypeOf"))}},623:Be=>{"use strict";Be.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:Be=>{var K=Object.prototype.toString;function p(h){return"function"==typeof h.constructor?h.constructor.name:null}Be.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var w=typeof L;if("boolean"===w)return"boolean";if("string"===w)return"string";if("number"===w)return"number";if("symbol"===w)return"symbol";if("function"===w)return function a(h,L){return"GeneratorFunction"===p(h)}(L)?"generatorfunction":"function";if(function t(h){return Array.isArray?Array.isArray(h):h instanceof Array}(L))return"array";if(function R(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(L))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function f(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(L))return"date";if(function e(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(L))return"error";if(function M(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(L))return"regexp";switch(p(L)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function C(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(L))return"generator";switch(w=K.call(L)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return w.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Be,K,p)=>{"use strict";var t=p(3894),e=p(9650),f=p(3502).Buffer,M=new Array(16);function a(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function C(w,D){return w<>>32-D}function d(w,D,S,k,E,B,Z){return C(w+(D&S|~D&k)+E+B|0,Z)+D|0}function R(w,D,S,k,E,B,Z){return C(w+(D&k|S&~k)+E+B|0,Z)+D|0}function h(w,D,S,k,E,B,Z){return C(w+(D^S^k)+E+B|0,Z)+D|0}function L(w,D,S,k,E,B,Z){return C(w+(S^(D|~k))+E+B|0,Z)+D|0}t(a,e),a.prototype._update=function(){for(var w=M,D=0;D<16;++D)w[D]=this._block.readInt32LE(4*D);var S=this._a,k=this._b,E=this._c,B=this._d;S=d(S,k,E,B,w[0],3614090360,7),B=d(B,S,k,E,w[1],3905402710,12),E=d(E,B,S,k,w[2],606105819,17),k=d(k,E,B,S,w[3],3250441966,22),S=d(S,k,E,B,w[4],4118548399,7),B=d(B,S,k,E,w[5],1200080426,12),E=d(E,B,S,k,w[6],2821735955,17),k=d(k,E,B,S,w[7],4249261313,22),S=d(S,k,E,B,w[8],1770035416,7),B=d(B,S,k,E,w[9],2336552879,12),E=d(E,B,S,k,w[10],4294925233,17),k=d(k,E,B,S,w[11],2304563134,22),S=d(S,k,E,B,w[12],1804603682,7),B=d(B,S,k,E,w[13],4254626195,12),E=d(E,B,S,k,w[14],2792965006,17),S=R(S,k=d(k,E,B,S,w[15],1236535329,22),E,B,w[1],4129170786,5),B=R(B,S,k,E,w[6],3225465664,9),E=R(E,B,S,k,w[11],643717713,14),k=R(k,E,B,S,w[0],3921069994,20),S=R(S,k,E,B,w[5],3593408605,5),B=R(B,S,k,E,w[10],38016083,9),E=R(E,B,S,k,w[15],3634488961,14),k=R(k,E,B,S,w[4],3889429448,20),S=R(S,k,E,B,w[9],568446438,5),B=R(B,S,k,E,w[14],3275163606,9),E=R(E,B,S,k,w[3],4107603335,14),k=R(k,E,B,S,w[8],1163531501,20),S=R(S,k,E,B,w[13],2850285829,5),B=R(B,S,k,E,w[2],4243563512,9),E=R(E,B,S,k,w[7],1735328473,14),S=h(S,k=R(k,E,B,S,w[12],2368359562,20),E,B,w[5],4294588738,4),B=h(B,S,k,E,w[8],2272392833,11),E=h(E,B,S,k,w[11],1839030562,16),k=h(k,E,B,S,w[14],4259657740,23),S=h(S,k,E,B,w[1],2763975236,4),B=h(B,S,k,E,w[4],1272893353,11),E=h(E,B,S,k,w[7],4139469664,16),k=h(k,E,B,S,w[10],3200236656,23),S=h(S,k,E,B,w[13],681279174,4),B=h(B,S,k,E,w[0],3936430074,11),E=h(E,B,S,k,w[3],3572445317,16),k=h(k,E,B,S,w[6],76029189,23),S=h(S,k,E,B,w[9],3654602809,4),B=h(B,S,k,E,w[12],3873151461,11),E=h(E,B,S,k,w[15],530742520,16),S=L(S,k=h(k,E,B,S,w[2],3299628645,23),E,B,w[0],4096336452,6),B=L(B,S,k,E,w[7],1126891415,10),E=L(E,B,S,k,w[14],2878612391,15),k=L(k,E,B,S,w[5],4237533241,21),S=L(S,k,E,B,w[12],1700485571,6),B=L(B,S,k,E,w[3],2399980690,10),E=L(E,B,S,k,w[10],4293915773,15),k=L(k,E,B,S,w[1],2240044497,21),S=L(S,k,E,B,w[8],1873313359,6),B=L(B,S,k,E,w[15],4264355552,10),E=L(E,B,S,k,w[6],2734768916,15),k=L(k,E,B,S,w[13],1309151649,21),S=L(S,k,E,B,w[4],4149444226,6),B=L(B,S,k,E,w[11],3174756917,10),E=L(E,B,S,k,w[2],718787259,15),k=L(k,E,B,S,w[9],3951481745,21),this._a=this._a+S|0,this._b=this._b+k|0,this._c=this._c+E|0,this._d=this._d+B|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 w=f.allocUnsafe(16);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w},Be.exports=a},7079:(Be,K,p)=>{var t=p(1378),e=p(7950);function f(M){this.rand=M||new e.Rand}Be.exports=f,f.create=function(a){return new f(a)},f.prototype._randbelow=function(a){var C=a.bitLength(),d=Math.ceil(C/8);do{var R=new t(this.rand.generate(d))}while(R.cmp(a)>=0);return R},f.prototype._randrange=function(a,C){var d=C.sub(a);return a.add(this._randbelow(d))},f.prototype.test=function(a,C,d){var R=a.bitLength(),h=t.mont(a),L=new t(1).toRed(h);C||(C=Math.max(1,R/48|0));for(var w=a.subn(1),D=0;!w.testn(D);D++);for(var S=a.shrn(D),k=w.toRed(h);C>0;C--){var B=this._randrange(new t(2),w);d&&d(B);var Z=B.toRed(h).redPow(S);if(0!==Z.cmp(L)&&0!==Z.cmp(k)){for(var Y=1;Y0;C--){var k=this._randrange(new t(2),L),E=a.gcd(k);if(0!==E.cmpn(1))return E;var B=k.toRed(R).redPow(D);if(0!==B.cmp(h)&&0!==B.cmp(S)){for(var Z=1;Z=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Ei=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Ei,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},2391:Be=>{function K(p,t){if(!p)throw new Error(t||"Assertion failed")}Be.exports=K,K.equal=function(t,e,f){if(t!=e)throw new Error(f||"Assertion failed: "+t+" != "+e)}},8195:(Be,K)=>{"use strict";var p=K;function e(M){return 1===M.length?"0"+M:M}function f(M){for(var a="",C=0;C>8,L=255&R;h?C.push(h,L):C.push(L)}return C},p.zero2=e,p.toHex=f,p.encode=function(a,C){return"hex"===C?f(a):a}},5768:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(K,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(Be,K,p)=>{"use strict";var t=p(7977);K.certificate=p(2390);var e=t.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())});K.RSAPrivateKey=e;var f=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});K.RSAPublicKey=f;var M=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});K.PublicKey=M;var a=t.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())}),C=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});K.PrivateKey=C;var d=t.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())});K.EncryptedPrivateKey=d;var R=t.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())});K.DSAPrivateKey=R,K.DSAparam=t.define("DSAparam",function(){this.int()});var h=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});K.ECPrivateKey=h;var L=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});K.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Be,K,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),C=t.define("RelativeDistinguishedName",function(){this.setof(f)}),d=t.define("RDNSequence",function(){this.seqof(C)}),R=t.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),h=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),L=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),w=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(R),this.key("validity").use(h),this.key("subject").use(R),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(L).optional())}),D=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});Be.exports=D},5269:(Be,K,p)=>{var t=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=p(347),a=p(4330),C=p(3502).Buffer;Be.exports=function(d,R){var w,h=d.toString(),L=h.match(t);if(L){var S="aes"+L[1],k=C.from(L[2],"hex"),E=C.from(L[3].replace(/[\r\n]/g,""),"base64"),B=M(R,k.slice(0,8),parseInt(L[1],10)).key,Z=[],Y=a.createDecipheriv(S,B,k);Z.push(Y.update(E)),Z.push(Y.final()),w=C.concat(Z)}else{var D=h.match(f);w=C.from(D[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(e)[1],data:w}}},2772:(Be,K,p)=>{var t=p(2999),e=p(2562),f=p(5269),M=p(4330),a=p(9357),C=p(3502).Buffer;function d(h){var L;"object"==typeof h&&!C.isBuffer(h)&&(L=h.passphrase,h=h.key),"string"==typeof h&&(h=C.from(h));var k,E,w=f(h,L),D=w.tag,S=w.data;switch(D){case"CERTIFICATE":E=t.certificate.decode(S,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=t.PublicKey.decode(S,"der")),k=E.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=t.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":S=function R(h,L){var w=h.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=e[h.algorithm.decrypt.cipher.algo.join(".")],k=h.algorithm.decrypt.cipher.iv,E=h.subjectPrivateKey,B=parseInt(S.split("-")[1],10)/8,Z=a.pbkdf2Sync(L,w,D,B,"sha1"),Y=M.createDecipheriv(S,Z,k),ae=[];return ae.push(Y.update(E)),ae.push(Y.final()),C.concat(ae)}(S=t.EncryptedPrivateKey.decode(S,"der"),L);case"PRIVATE KEY":switch(k=(E=t.PrivateKey.decode(S,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:t.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=t.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(S,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(S,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(S,"der")};case"EC PRIVATE KEY":return{curve:(S=t.ECPrivateKey.decode(S,"der")).parameters.value,privateKey:S.privateKey};default:throw new Error("unknown key type "+D)}}Be.exports=d,d.signature=t.signature},9357:(Be,K,p)=>{K.pbkdf2=p(415),K.pbkdf2Sync=p(7472)},415:(Be,K,p)=>{var C,w,t=p(3502).Buffer,e=p(2697),f=p(8867),M=p(7472),a=p(4566),d=global.crypto&&global.crypto.subtle,R={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"},h=[];function D(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function S(E,B,Z,Y,ae){return d.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return d.deriveBits({name:"PBKDF2",salt:B,iterations:Z,hash:{name:ae}},ee,Y<<3)}).then(function(ee){return t.from(ee)})}Be.exports=function(E,B,Z,Y,ae,ee){"function"==typeof ae&&(ee=ae,ae=void 0);var ue=R[(ae=ae||"sha1").toLowerCase()];if(ue&&"function"==typeof global.Promise){if(e(Z,Y),E=a(E,f,"Password"),B=a(B,f,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function k(E,B){E.then(function(Z){D()(function(){B(null,Z)})},function(Z){D()(function(){B(Z)})})}(function L(E){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[E])return h[E];var B=S(C=C||t.alloc(8),C,10,128,E).then(function(){return!0}).catch(function(){return!1});return h[E]=B,B}(ue).then(function(ne){return ne?S(E,B,Z,Y,ue):M(E,B,Z,Y,ae)}),ee)}else D()(function(){var ne;try{ne=M(E,B,Z,Y,ae)}catch(re){return ee(re)}ee(null,ne)})}},8867:Be=>{var K;K=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",Be.exports=K},2697:Be=>{var K=Math.pow(2,30)-1;Be.exports=function(p,t){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>K||t!=t)throw new TypeError("Bad key length")}},7472:(Be,K,p)=>{var t=p(5640),e=p(5634),f=p(5244),M=p(3502).Buffer,a=p(2697),C=p(8867),d=p(4566),R=M.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(S,k,E){var B=function w(S){return"rmd160"===S||"ripemd160"===S?function E(B){return(new e).update(B).digest()}:"md5"===S?t:function k(B){return f(S).update(B).digest()}}(S),Z="sha512"===S||"sha384"===S?128:64;k.length>Z?k=B(k):k.length{var t=p(3502).Buffer;Be.exports=function(e,f,M){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,f);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Be,K,p)=>{K.publicEncrypt=p(6562),K.privateDecrypt=p(6705),K.privateEncrypt=function(e,f){return K.publicEncrypt(e,f,!0)},K.publicDecrypt=function(e,f){return K.privateDecrypt(e,f,!0)}},6945:(Be,K,p)=>{var t=p(6386),e=p(3502).Buffer;function f(M){var a=e.allocUnsafe(4);return a.writeUInt32BE(M,0),a}Be.exports=function(M,a){for(var R,C=e.alloc(0),d=0;C.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Ei=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Ei>>>26)|0,Ei&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Ei,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},6705:(Be,K,p)=>{var t=p(2772),e=p(6945),f=p(9401),M=p(2057),a=p(8466),C=p(6386),d=p(8651),R=p(3502).Buffer;Be.exports=function(S,k,E){var B;B=S.padding?S.padding:E?1:4;var ae,Z=t(S),Y=Z.modulus.byteLength();if(k.length>Y||new M(k).cmp(Z.modulus)>=0)throw new Error("decryption error");ae=E?d(new M(k),Z):a(k,Z);var ee=R.alloc(Y-ae.length);if(ae=R.concat([ee,ae],Y),4===B)return function h(D,S){var k=D.modulus.byteLength(),E=C("sha1").update(R.alloc(0)).digest(),B=E.length;if(0!==S[0])throw new Error("decryption error");var Z=S.slice(1,B+1),Y=S.slice(B+1),ae=f(Z,e(Y,B)),ee=f(Y,e(ae,k-B-1));if(function w(D,S){D=R.from(D),S=R.from(S);var k=0,E=D.length;D.length!==S.length&&(k++,E=Math.min(D.length,S.length));for(var B=-1;++B=S.length){Z++;break}var Y=S.slice(2,B-1);if(("0002"!==E.toString("hex")&&!k||"0001"!==E.toString("hex")&&k)&&Z++,Y.length<8&&Z++,Z)throw new Error("decryption error");return S.slice(B)}(0,ae,E);if(3===B)return ae;throw new Error("unknown padding")}},6562:(Be,K,p)=>{var t=p(2772),e=p(3753),f=p(6386),M=p(6945),a=p(9401),C=p(2057),d=p(8651),R=p(8466),h=p(3502).Buffer;Be.exports=function(k,E,B){var Z;Z=k.padding?k.padding:B?1:4;var ae,Y=t(k);if(4===Z)ae=function L(S,k){var E=S.modulus.byteLength(),B=k.length,Z=f("sha1").update(h.alloc(0)).digest(),Y=Z.length,ae=2*Y;if(B>E-ae-2)throw new Error("message too long");var ee=h.alloc(E-B-ae-2),ue=E-Y-1,ne=e(Y),re=a(h.concat([Z,ee,h.alloc(1,1),k],ue),M(ne,ue)),ge=a(ne,M(re,Y));return new C(h.concat([h.alloc(1),ge,re],E))}(Y,E);else if(1===Z)ae=function w(S,k,E){var Y,B=k.length,Z=S.modulus.byteLength();if(B>Z-11)throw new Error("message too long");return Y=E?h.alloc(Z-B-3,255):function D(S){for(var Y,k=h.allocUnsafe(S),E=0,B=e(2*S),Z=0;E=0)throw new Error("data too long for modulus")}return B?R(ae,Y):d(ae,Y)}},8651:(Be,K,p)=>{var t=p(2057),e=p(3502).Buffer;Be.exports=function f(M,a){return e.from(M.toRed(t.mont(a.modulus)).redPow(new t(a.publicExponent)).fromRed().toArray())}},9401:Be=>{Be.exports=function(p,t){for(var e=p.length,f=-1;++f{const t=p(8695),e=p(1465),f=p(3210),M=p(2334);function a(C,d,R,h,L){const w=[].slice.call(arguments,1),D=w.length,S="function"==typeof w[D-1];if(!S&&!t())throw new Error("Callback required as last argument");if(!S){if(D<1)throw new Error("Too few arguments provided");return 1===D?(R=d,d=h=void 0):2===D&&!d.getContext&&(h=R,R=d,d=void 0),new Promise(function(k,E){try{const B=e.create(R,h);k(C(B,d,h))}catch(B){E(B)}})}if(D<2)throw new Error("Too few arguments provided");2===D?(L=R,R=d,d=h=void 0):3===D&&(d.getContext&&void 0===L?(L=h,h=void 0):(L=h,h=R,R=d,d=void 0));try{const k=e.create(R,h);L(null,C(k,d,h))}catch(k){L(k)}}K.create=e.create,K.toCanvas=a.bind(null,f.render),K.toDataURL=a.bind(null,f.renderToDataURL),K.toString=a.bind(null,function(C,d,R){return M.render(C,R)})},8695:Be=>{Be.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Be,K,p)=>{const t=p(4792).getSymbolSize;K.getRowColCoords=function(f){if(1===f)return[];const M=Math.floor(f/7)+2,a=t(f),C=145===a?26:2*Math.ceil((a-13)/(2*M-2)),d=[a-7];for(let R=1;R{const t=p(4016),e=["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 f(M){this.mode=t.ALPHANUMERIC,this.data=M}f.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(a){let C;for(C=0;C+2<=this.data.length;C+=2){let d=45*e.indexOf(this.data[C]);d+=e.indexOf(this.data[C+1]),a.put(d,11)}this.data.length%2&&a.put(e.indexOf(this.data[C]),6)},Be.exports=f},2118:Be=>{function K(){this.buffer=[],this.length=0}K.prototype={get:function(p){const t=Math.floor(p/8);return 1==(this.buffer[t]>>>7-p%8&1)},put:function(p,t){for(let e=0;e>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),p&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Be.exports=K},4425:Be=>{function K(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}K.prototype.set=function(p,t,e,f){const M=p*this.size+t;this.data[M]=e,f&&(this.reservedBit[M]=!0)},K.prototype.get=function(p,t){return this.data[p*this.size+t]},K.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},K.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},Be.exports=K},5663:(Be,K,p)=>{const t=p(8419),e=p(4016);function f(M){this.mode=e.BYTE,"string"==typeof M&&(M=t(M)),this.data=new Uint8Array(M)}f.getBitsLength=function(a){return 8*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){for(let a=0,C=this.data.length;a{const t=p(2259),e=[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],f=[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];K.getBlocksCount=function(a,C){switch(C){case t.L:return e[4*(a-1)+0];case t.M:return e[4*(a-1)+1];case t.Q:return e[4*(a-1)+2];case t.H:return e[4*(a-1)+3];default:return}},K.getTotalCodewordsCount=function(a,C){switch(C){case t.L:return f[4*(a-1)+0];case t.M:return f[4*(a-1)+1];case t.Q:return f[4*(a-1)+2];case t.H:return f[4*(a-1)+3];default:return}}},2259:(Be,K)=>{K.L={bit:1},K.M={bit:0},K.Q={bit:3},K.H={bit:2},K.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},K.from=function(e,f){if(K.isValid(e))return e;try{return function p(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return K.L;case"m":case"medium":return K.M;case"q":case"quartile":return K.Q;case"h":case"high":return K.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch(M){return f}}},3114:(Be,K,p)=>{const t=p(4792).getSymbolSize;K.getPositions=function(M){const a=t(M);return[[0,0],[a-7,0],[0,a-7]]}},7078:(Be,K,p)=>{const t=p(4792),M=t.getBCHDigit(1335);K.getEncodedBits=function(C,d){const R=C.bit<<3|d;let h=R<<10;for(;t.getBCHDigit(h)-M>=0;)h^=1335<{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let f=1;for(let M=0;M<255;M++)p[M]=f,t[f]=M,f<<=1,256&f&&(f^=285);for(let M=255;M<512;M++)p[M]=p[M-255]})(),K.log=function(f){if(f<1)throw new Error("log("+f+")");return t[f]},K.exp=function(f){return p[f]},K.mul=function(f,M){return 0===f||0===M?0:p[t[f]+t[M]]}},4388:(Be,K,p)=>{const t=p(4016),e=p(4792);function f(M){this.mode=t.KANJI,this.data=M}f.getBitsLength=function(a){return 13*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){let a;for(a=0;a=33088&&C<=40956)C-=33088;else{if(!(C>=57408&&C<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");C-=49472}C=192*(C>>>8&255)+(255&C),M.put(C,13)}},Be.exports=f},3667:(Be,K)=>{K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,f,M){switch(e){case K.Patterns.PATTERN000:return(f+M)%2==0;case K.Patterns.PATTERN001:return f%2==0;case K.Patterns.PATTERN010:return M%3==0;case K.Patterns.PATTERN011:return(f+M)%3==0;case K.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(M/3))%2==0;case K.Patterns.PATTERN101:return f*M%2+f*M%3==0;case K.Patterns.PATTERN110:return(f*M%2+f*M%3)%2==0;case K.Patterns.PATTERN111:return(f*M%3+(f+M)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}K.isValid=function(f){return null!=f&&""!==f&&!isNaN(f)&&f>=0&&f<=7},K.from=function(f){return K.isValid(f)?parseInt(f,10):void 0},K.getPenaltyN1=function(f){const M=f.size;let a=0,C=0,d=0,R=null,h=null;for(let L=0;L=5&&(a+=C-5+3),R=D,C=1),D=f.get(w,L),D===h?d++:(d>=5&&(a+=d-5+3),h=D,d=1)}C>=5&&(a+=C-5+3),d>=5&&(a+=d-5+3)}return a},K.getPenaltyN2=function(f){const M=f.size;let a=0;for(let C=0;C=10&&(1488===C||93===C)&&a++,d=d<<1&2047|f.get(h,R),h>=10&&(1488===d||93===d)&&a++}return 40*a},K.getPenaltyN4=function(f){let M=0;const a=f.data.length;for(let d=0;d{const t=p(4406),e=p(2699);K.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},K.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},K.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},K.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},K.MIXED={bit:-1},K.getCharCountIndicator=function(a,C){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(C))throw new Error("Invalid version: "+C);return C>=1&&C<10?a.ccBits[0]:C<27?a.ccBits[1]:a.ccBits[2]},K.getBestModeForData=function(a){return e.testNumeric(a)?K.NUMERIC:e.testAlphanumeric(a)?K.ALPHANUMERIC:e.testKanji(a)?K.KANJI:K.BYTE},K.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},K.isValid=function(a){return a&&a.bit&&a.ccBits},K.from=function(a,C){if(K.isValid(a))return a;try{return function f(M){if("string"!=typeof M)throw new Error("Param is not a string");switch(M.toLowerCase()){case"numeric":return K.NUMERIC;case"alphanumeric":return K.ALPHANUMERIC;case"kanji":return K.KANJI;case"byte":return K.BYTE;default:throw new Error("Unknown mode: "+M)}}(a)}catch(d){return C}}},7783:(Be,K,p)=>{const t=p(4016);function e(f){this.mode=t.NUMERIC,this.data=f.toString()}e.getBitsLength=function(M){return 10*Math.floor(M/3)+(M%3?M%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(M){let a,C,d;for(a=0;a+3<=this.data.length;a+=3)C=this.data.substr(a,3),d=parseInt(C,10),M.put(d,10);const R=this.data.length-a;R>0&&(C=this.data.substr(a),d=parseInt(C,10),M.put(d,3*R+1))},Be.exports=e},1106:(Be,K,p)=>{const t=p(5339);K.mul=function(f,M){const a=new Uint8Array(f.length+M.length-1);for(let C=0;C=0;){const C=a[0];for(let R=0;R{const t=p(4792),e=p(2259),f=p(2118),M=p(4425),a=p(6221),C=p(3114),d=p(3667),R=p(4655),h=p(2636),L=p(2088),w=p(7078),D=p(4016),S=p(2033);function Y(re,ge,q){const _e=re.size,x=w.getEncodedBits(ge,q);let i,r;for(i=0;i<15;i++)r=1==(x>>i&1),re.set(i<6?i:i<8?i+1:_e-15+i,8,r,!0),re.set(8,i<8?_e-i-1:i<9?15-i-1+1:15-i-1,r,!0);re.set(_e-8,8,1,!0)}function ne(re,ge,q,_e){let x;if(Array.isArray(re))x=S.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let v=ge;if(!v){const T=S.rawSplit(re);v=L.getBestVersionForData(T,q)}x=S.fromString(re,v||40)}}const i=L.getBestVersionForData(x,q);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(ge){if(ge=0&&u<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===u||6===u)||u>=2&&u<=4&&c>=2&&c<=4,!0)}}(c,ge),function E(re){const ge=re.size;for(let q=8;q=7&&function Z(re,ge){const q=re.size,_e=L.getEncodedBits(ge);let x,i,r;for(let u=0;u<18;u++)x=Math.floor(u/3),i=u%3+q-8-3,r=1==(_e>>u&1),re.set(x,i,r,!0),re.set(i,x,r,!0)}(c,ge),function ae(re,ge){const q=re.size;let _e=-1,x=q-1,i=7,r=0;for(let u=q-1;u>0;u-=2)for(6===u&&u--;;){for(let c=0;c<2;c++)if(!re.isReserved(x,u-c)){let v=!1;r>>i&1)),re.set(x,u-c,v),i--,-1===i&&(r++,i=7)}if(x+=_e,x<0||q<=x){x-=_e,_e=-_e;break}}}(c,r),isNaN(_e)&&(_e=d.getBestMask(c,Y.bind(null,c,q))),d.applyMask(_e,c),Y(c,q,_e),{modules:c,version:ge,errorCorrectionLevel:q,maskPattern:_e,segments:x}}K.create=function(ge,q){if(void 0===ge||""===ge)throw new Error("No input text");let x,i,_e=e.M;return void 0!==q&&(_e=e.from(q.errorCorrectionLevel,e.M),x=L.from(q.version),i=d.from(q.maskPattern),q.toSJISFunc&&t.setToSJISFunction(q.toSJISFunc)),ne(ge,x,_e,i)}},2636:(Be,K,p)=>{const t=p(1106);function e(f){this.genPoly=void 0,this.degree=f,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(M){this.degree=M,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(M){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(M.length+this.degree);a.set(M);const C=t.mod(a,this.genPoly),d=this.degree-C.length;if(d>0){const R=new Uint8Array(this.degree);return R.set(C,d),R}return C},Be.exports=e},2699:(Be,K)=>{const p="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const f="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";K.KANJI=new RegExp(e,"g"),K.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),K.BYTE=new RegExp(f,"g"),K.NUMERIC=new RegExp(p,"g"),K.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const M=new RegExp("^"+e+"$"),a=new RegExp("^"+p+"$"),C=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");K.testKanji=function(R){return M.test(R)},K.testNumeric=function(R){return a.test(R)},K.testAlphanumeric=function(R){return C.test(R)}},2033:(Be,K,p)=>{const t=p(4016),e=p(7783),f=p(2424),M=p(5663),a=p(4388),C=p(2699),d=p(4792),R=p(4901);function h(Z){return unescape(encodeURIComponent(Z)).length}function L(Z,Y,ae){const ee=[];let ue;for(;null!==(ue=Z.exec(ae));)ee.push({data:ue[0],index:ue.index,mode:Y,length:ue[0].length});return ee}function w(Z){const Y=L(C.NUMERIC,t.NUMERIC,Z),ae=L(C.ALPHANUMERIC,t.ALPHANUMERIC,Z);let ee,ue;return d.isKanjiModeEnabled()?(ee=L(C.BYTE,t.BYTE,Z),ue=L(C.KANJI,t.KANJI,Z)):(ee=L(C.BYTE_KANJI,t.BYTE,Z),ue=[]),Y.concat(ae,ee,ue).sort(function(re,ge){return re.index-ge.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function D(Z,Y){switch(Y){case t.NUMERIC:return e.getBitsLength(Z);case t.ALPHANUMERIC:return f.getBitsLength(Z);case t.KANJI:return a.getBitsLength(Z);case t.BYTE:return M.getBitsLength(Z)}}function B(Z,Y){let ae;const ee=t.getBestModeForData(Z);if(ae=t.from(Y,ee),ae!==t.BYTE&&ae.bit=0?Y[Y.length-1]:null;return ee&&ee.mode===ae.mode?(Y[Y.length-1].data+=ae.data,Y):(Y.push(ae),Y)},[])}(ge))},K.rawSplit=function(Y){return K.fromArray(w(Y,d.isKanjiModeEnabled()))}},4792:(Be,K)=>{let p;const t=[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];K.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return 4*f+17},K.getSymbolTotalCodewords=function(f){return t[f]},K.getBCHDigit=function(e){let f=0;for(;0!==e;)f++,e>>>=1;return f},K.setToSJISFunction=function(f){if("function"!=typeof f)throw new Error('"toSJISFunc" is not a valid function.');p=f},K.isKanjiModeEnabled=function(){return void 0!==p},K.toSJIS=function(f){return p(f)}},4406:(Be,K)=>{K.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(Be,K,p)=>{const t=p(4792),e=p(4655),f=p(2259),M=p(4016),a=p(4406),d=t.getBCHDigit(7973);function h(D,S){return M.getCharCountIndicator(D,S)+4}function L(D,S){let k=0;return D.forEach(function(E){k+=h(E.mode,S)+E.getBitsLength()}),k}K.from=function(S,k){return a.isValid(S)?parseInt(S,10):k},K.getCapacity=function(S,k,E){if(!a.isValid(S))throw new Error("Invalid QR Code version");void 0===E&&(E=M.BYTE);const Y=8*(t.getSymbolTotalCodewords(S)-e.getTotalCodewordsCount(S,k));if(E===M.MIXED)return Y;const ae=Y-h(E,S);switch(E){case M.NUMERIC:return Math.floor(ae/10*3);case M.ALPHANUMERIC:return Math.floor(ae/11*2);case M.KANJI:return Math.floor(ae/13);default:return Math.floor(ae/8)}},K.getBestVersionForData=function(S,k){let E;const B=f.from(k,f.M);if(Array.isArray(S)){if(S.length>1)return function w(D,S){for(let k=1;k<=40;k++)if(L(D,k)<=K.getCapacity(k,S,M.MIXED))return k}(S,B);if(0===S.length)return 1;E=S[0]}else E=S;return function R(D,S,k){for(let E=1;E<=40;E++)if(S<=K.getCapacity(E,k,D))return E}(E.mode,E.getLength(),B)},K.getEncodedBits=function(S){if(!a.isValid(S)||S<7)throw new Error("Invalid QR Code version");let k=S<<12;for(;t.getBCHDigit(k)-d>=0;)k^=7973<{const t=p(6355);K.render=function(a,C,d){let R=d,h=C;void 0===R&&(!C||!C.getContext)&&(R=C,C=void 0),C||(h=function f(){try{return document.createElement("canvas")}catch(M){throw new Error("You need to specify a canvas element")}}()),R=t.getOptions(R);const L=t.getImageWidth(a.modules.size,R),w=h.getContext("2d"),D=w.createImageData(L,L);return t.qrToImageData(D.data,a,R),function e(M,a,C){M.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=C,a.width=C,a.style.height=C+"px",a.style.width=C+"px"}(w,h,L),w.putImageData(D,0,0),h},K.renderToDataURL=function(a,C,d){let R=d;return void 0===R&&(!C||!C.getContext)&&(R=C,C=void 0),R||(R={}),K.render(a,C,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(Be,K,p)=>{const t=p(6355);function e(a,C){const d=a.a/255,R=C+'="'+a.hex+'"';return d<1?R+" "+C+'-opacity="'+d.toFixed(2).slice(1)+'"':R}function f(a,C,d){let R=a+C;return void 0!==d&&(R+=" "+d),R}K.render=function(C,d,R){const h=t.getOptions(d),L=C.modules.size,w=C.modules.data,D=L+2*h.margin,S=h.color.light.a?"':"",k="0&&S>0&&a[D-1]||(R+=L?f("M",S+d,.5+k+d):f("m",h,0),h=0,L=!1),S+1',Z=''+S+k+"\n";return"function"==typeof R&&R(null,Z),Z}},6355:(Be,K)=>{function p(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let 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(M){return[M,M]}))),6===e.length&&e.push("F","F");const f=parseInt(e.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:255&f,hex:"#"+e.slice(0,6).join("")}}K.getOptions=function(e){e||(e={}),e.color||(e.color={});const M=e.width&&e.width>=21?e.width:void 0;return{width:M,scale:M?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:p(e.color.dark||"#000000ff"),light:p(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},K.getScale=function(e,f){return f.width&&f.width>=e+2*f.margin?f.width/(e+2*f.margin):f.scale},K.getImageWidth=function(e,f){const M=K.getScale(e,f);return Math.floor((e+2*f.margin)*M)},K.qrToImageData=function(e,f,M){const a=f.modules.size,C=f.modules.data,d=K.getScale(a,M),R=Math.floor((a+2*M.margin)*d),h=M.margin*d,L=[M.color.light,M.color.dark];for(let w=0;w=h&&D>=h&&w{"use strict";var t=65536,M=p(3502).Buffer,a=global.crypto||global.msCrypto;Be.exports=a&&a.getRandomValues?function C(d,R){if(d>4294967295)throw new RangeError("requested too many random bytes");var h=M.allocUnsafe(d);if(d>0)if(d>t)for(var L=0;L{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=p(3502),f=p(3753),M=e.Buffer,a=e.kMaxLength,C=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function R(S,k){if("number"!=typeof S||S!=S)throw new TypeError("offset must be a number");if(S>d||S<0)throw new TypeError("offset must be a uint32");if(S>a||S>k)throw new RangeError("offset out of range")}function h(S,k,E){if("number"!=typeof S||S!=S)throw new TypeError("size must be a number");if(S>d||S<0)throw new TypeError("size must be a uint32");if(S+k>E||S>a)throw new RangeError("buffer too small")}function w(S,k,E,B){if(process.browser){var Y=new Uint8Array(S.buffer,k,E);return C.getRandomValues(Y),B?void process.nextTick(function(){B(null,S)}):S}if(!B)return f(E).copy(S,k),S;f(E,function(ee,ue){if(ee)return B(ee);ue.copy(S,k),B(null,S)})}C&&C.getRandomValues||!process.browser?(K.randomFill=function L(S,k,E,B){if(!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)B=k,k=0,E=S.length;else if("function"==typeof E)B=E,E=S.length-k;else if("function"!=typeof B)throw new TypeError('"cb" argument must be a function');return R(k,S.length),h(E,k,S.length),w(S,k,E,B)},K.randomFillSync=function D(S,k,E){if(void 0===k&&(k=0),!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(k,S.length),void 0===E&&(E=S.length-k),h(E,k,S.length),w(S,k,E)}):(K.randomFill=t,K.randomFillSync=t)},891:Be=>{"use strict";var p={};function t(C,d,R){R||(R=Error);var L=function(w){function D(S,k,E){return w.call(this,function h(w,D,S){return"string"==typeof d?d:d(w,D,S)}(S,k,E))||this}return function K(C,d){C.prototype=Object.create(d.prototype),C.prototype.constructor=C,C.__proto__=d}(D,w),D}(R);L.prototype.name=R.name,L.prototype.code=C,p[C]=L}function e(C,d){if(Array.isArray(C)){var R=C.length;return C=C.map(function(h){return String(h)}),R>2?"one of ".concat(d," ").concat(C.slice(0,R-1).join(", "),", or ")+C[R-1]:2===R?"one of ".concat(d," ").concat(C[0]," or ").concat(C[1]):"of ".concat(d," ").concat(C[0])}return"of ".concat(d," ").concat(String(C))}t("ERR_INVALID_OPT_VALUE",function(C,d){return'The value "'+d+'" is invalid for option "'+C+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(C,d,R){var h,L;if("string"==typeof d&&function f(C,d,R){return C.substr(!R||R<0?0:+R,d.length)===d}(d,"not ")?(h="must not be",d=d.replace(/^not /,"")):h="must be",function M(C,d,R){return(void 0===R||R>C.length)&&(R=C.length),C.substring(R-d.length,R)===d}(C," argument"))L="The ".concat(C," ").concat(h," ").concat(e(d,"type"));else{var w=function a(C,d,R){return"number"!=typeof R&&(R=0),!(R+d.length>C.length)&&-1!==C.indexOf(d,R)}(C,".")?"property":"argument";L='The "'.concat(C,'" ').concat(w," ").concat(h," ").concat(e(d,"type"))}return L+". Received type ".concat(typeof R)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(C){return"The "+C+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(C){return"Cannot call "+C+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(C){return"Unknown encoding: "+C},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Be.exports.q=p},1339:(Be,K,p)=>{"use strict";var t=Object.keys||function(L){var w=[];for(var D in L)w.push(D);return w};Be.exports=d;var e=p(3154),f=p(520);p(3894)(d,e);for(var M=t(f.prototype),a=0;a{"use strict";Be.exports=e;var t=p(6025);function e(f){if(!(this instanceof e))return new e(f);t.call(this,f)}p(3894)(e,t),e.prototype._transform=function(f,M,a){a(null,f)}},3154:(Be,K,p)=>{"use strict";var t;Be.exports=x,x.ReadableState=_e,p(9069);var L,f=function(Ie,ut){return Ie.listeners(ut).length},M=p(4970),a=p(3172).Buffer,C=global.Uint8Array||function(){},h=p(4616);L=h&&h.debuglog?h.debuglog("stream"):function(){};var ee,ue,ne,w=p(5019),D=p(1920),k=p(7102).getHighWaterMark,E=p(891).q,B=E.ERR_INVALID_ARG_TYPE,Z=E.ERR_STREAM_PUSH_AFTER_EOF,Y=E.ERR_METHOD_NOT_IMPLEMENTED,ae=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(x,M);var re=D.errorOrDestroy,ge=["error","close","destroy","pause","resume"];function _e(J,Ie,ut){t=t||p(1339),"boolean"!=typeof ut&&(ut=Ie instanceof t),this.objectMode=!!(J=J||{}).objectMode,ut&&(this.objectMode=this.objectMode||!!J.readableObjectMode),this.highWaterMark=k(this,J,"readableHighWaterMark",ut),this.buffer=new w,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!==J.emitClose,this.autoDestroy=!!J.autoDestroy,this.destroyed=!1,this.defaultEncoding=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(ee||(ee=p(3054).s),this.decoder=new ee(J.encoding),this.encoding=J.encoding)}function x(J){if(t=t||p(1339),!(this instanceof x))return new x(J);this._readableState=new _e(J,this,this instanceof t),this.readable=!0,J&&("function"==typeof J.read&&(this._read=J.read),"function"==typeof J.destroy&&(this._destroy=J.destroy)),M.call(this)}function i(J,Ie,ut,Oe,we){L("readableAddChunk",Ie);var Te,ce=J._readableState;if(null===Ie)ce.reading=!1,function I(J,Ie){if(L("onEofChunk"),!Ie.ended){if(Ie.decoder){var ut=Ie.decoder.end();ut&&ut.length&&(Ie.buffer.push(ut),Ie.length+=Ie.objectMode?1:ut.length)}Ie.ended=!0,Ie.sync?y(J):(Ie.needReadable=!1,Ie.emittedReadable||(Ie.emittedReadable=!0,n(J)))}}(J,ce);else if(we||(Te=function u(J,Ie){var ut;return!function R(J){return a.isBuffer(J)||J instanceof C}(Ie)&&"string"!=typeof Ie&&void 0!==Ie&&!J.objectMode&&(ut=new B("chunk",["string","Buffer","Uint8Array"],Ie)),ut}(ce,Ie)),Te)re(J,Te);else if(ce.objectMode||Ie&&Ie.length>0)if("string"!=typeof Ie&&!ce.objectMode&&Object.getPrototypeOf(Ie)!==a.prototype&&(Ie=function d(J){return a.from(J)}(Ie)),Oe)ce.endEmitted?re(J,new ae):r(J,ce,Ie,!0);else if(ce.ended)re(J,new Z);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!ut?(Ie=ce.decoder.write(Ie),ce.objectMode||0!==Ie.length?r(J,ce,Ie,!1):_(J,ce)):r(J,ce,Ie,!1)}else Oe||(ce.reading=!1,_(J,ce));return!ce.ended&&(ce.lengthIe.highWaterMark&&(Ie.highWaterMark=function v(J){return J>=c?J=c:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}(J)),J<=Ie.length?J:Ie.ended?Ie.length:(Ie.needReadable=!0,0))}function y(J){var Ie=J._readableState;L("emitReadable",Ie.needReadable,Ie.emittedReadable),Ie.needReadable=!1,Ie.emittedReadable||(L("emitReadable",Ie.flowing),Ie.emittedReadable=!0,process.nextTick(n,J))}function n(J){var Ie=J._readableState;L("emitReadable_",Ie.destroyed,Ie.length,Ie.ended),!Ie.destroyed&&(Ie.length||Ie.ended)&&(J.emit("readable"),Ie.emittedReadable=!1),Ie.needReadable=!Ie.flowing&&!Ie.ended&&Ie.length<=Ie.highWaterMark,Pe(J)}function _(J,Ie){Ie.readingMore||(Ie.readingMore=!0,process.nextTick(V,J,Ie))}function V(J,Ie){for(;!Ie.reading&&!Ie.ended&&(Ie.length0,Ie.resumeScheduled&&!Ie.paused?Ie.flowing=!0:J.listenerCount("data")>0&&J.resume()}function X(J){L("readable nexttick read 0"),J.read(0)}function be(J,Ie){L("resume",Ie.reading),Ie.reading||J.read(0),Ie.resumeScheduled=!1,J.emit("resume"),Pe(J),Ie.flowing&&!Ie.reading&&J.read(0)}function Pe(J){var Ie=J._readableState;for(L("flow",Ie.flowing);Ie.flowing&&null!==J.read(););}function Ee(J,Ie){return 0===Ie.length?null:(Ie.objectMode?ut=Ie.buffer.shift():!J||J>=Ie.length?(ut=Ie.decoder?Ie.buffer.join(""):1===Ie.buffer.length?Ie.buffer.first():Ie.buffer.concat(Ie.length),Ie.buffer.clear()):ut=Ie.buffer.consume(J,Ie.decoder),ut);var ut}function j(J){var Ie=J._readableState;L("endReadable",Ie.endEmitted),Ie.endEmitted||(Ie.ended=!0,process.nextTick(Ve,Ie,J))}function Ve(J,Ie){if(L("endReadableNT",J.endEmitted,J.length),!J.endEmitted&&0===J.length&&(J.endEmitted=!0,Ie.readable=!1,Ie.emit("end"),J.autoDestroy)){var ut=Ie._writableState;(!ut||ut.autoDestroy&&ut.finished)&&Ie.destroy()}}function Me(J,Ie){for(var ut=0,Oe=J.length;ut=Ie.highWaterMark:Ie.length>0)||Ie.ended))return L("read: emitReadable",Ie.length,Ie.ended),0===Ie.length&&Ie.ended?j(this):y(this),null;if(0===(J=T(J,Ie))&&Ie.ended)return 0===Ie.length&&j(this),null;var we,Oe=Ie.needReadable;return L("need readable",Oe),(0===Ie.length||Ie.length-J0?Ee(J,Ie):null)?(Ie.needReadable=Ie.length<=Ie.highWaterMark,J=0):(Ie.length-=J,Ie.awaitDrain=0),0===Ie.length&&(Ie.ended||(Ie.needReadable=!0),ut!==J&&Ie.ended&&j(this)),null!==we&&this.emit("data",we),we},x.prototype._read=function(J){re(this,new Y("_read()"))},x.prototype.pipe=function(J,Ie){var ut=this,Oe=this._readableState;switch(Oe.pipesCount){case 0:Oe.pipes=J;break;case 1:Oe.pipes=[Oe.pipes,J];break;default:Oe.pipes.push(J)}Oe.pipesCount+=1,L("pipe count=%d opts=%j",Oe.pipesCount,Ie);var ce=Ie&&!1===Ie.end||J===process.stdout||J===process.stderr?Dt:xe;function xe(){L("onend"),J.end()}Oe.endEmitted?process.nextTick(ce):ut.once("end",ce),J.on("unpipe",function Te(di,Yt){L("onunpipe"),di===ut&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function Ce(){L("cleanup"),J.removeListener("close",pt),J.removeListener("finish",tt),J.removeListener("drain",W),J.removeListener("error",Q),J.removeListener("unpipe",Te),ut.removeListener("end",xe),ut.removeListener("end",Dt),ut.removeListener("data",fe),te=!0,Oe.awaitDrain&&(!J._writableState||J._writableState.needDrain)&&W()}())});var W=function N(J){return function(){var ut=J._readableState;L("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,0===ut.awaitDrain&&f(J,"data")&&(ut.flowing=!0,Pe(J))}}(ut);J.on("drain",W);var te=!1;function fe(di){L("ondata");var Yt=J.write(di);L("dest.write",Yt),!1===Yt&&((1===Oe.pipesCount&&Oe.pipes===J||Oe.pipesCount>1&&-1!==Me(Oe.pipes,J))&&!te&&(L("false write response, pause",Oe.awaitDrain),Oe.awaitDrain++),ut.pause())}function Q(di){L("onerror",di),Dt(),J.removeListener("error",Q),0===f(J,"error")&&re(J,di)}function pt(){J.removeListener("finish",tt),Dt()}function tt(){L("onfinish"),J.removeListener("close",pt),Dt()}function Dt(){L("unpipe"),ut.unpipe(J)}return ut.on("data",fe),function q(J,Ie,ut){if("function"==typeof J.prependListener)return J.prependListener(Ie,ut);J._events&&J._events[Ie]?Array.isArray(J._events[Ie])?J._events[Ie].unshift(ut):J._events[Ie]=[ut,J._events[Ie]]:J.on(Ie,ut)}(J,"error",Q),J.once("close",pt),J.once("finish",tt),J.emit("pipe",ut),Oe.flowing||(L("pipe resume"),ut.resume()),J},x.prototype.unpipe=function(J){var Ie=this._readableState,ut={hasUnpiped:!1};if(0===Ie.pipesCount)return this;if(1===Ie.pipesCount)return J&&J!==Ie.pipes||(J||(J=Ie.pipes),Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1,J&&J.emit("unpipe",this,ut)),this;if(!J){var Oe=Ie.pipes,we=Ie.pipesCount;Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1;for(var ce=0;ce0,!1!==Oe.flowing&&this.resume()):"readable"===J&&!Oe.endEmitted&&!Oe.readableListening&&(Oe.readableListening=Oe.needReadable=!0,Oe.flowing=!1,Oe.emittedReadable=!1,L("on readable",Oe.length,Oe.reading),Oe.length?y(this):Oe.reading||process.nextTick(X,this)),ut},x.prototype.removeListener=function(J,Ie){var ut=M.prototype.removeListener.call(this,J,Ie);return"readable"===J&&process.nextTick(H,this),ut},x.prototype.removeAllListeners=function(J){var Ie=M.prototype.removeAllListeners.apply(this,arguments);return("readable"===J||void 0===J)&&process.nextTick(H,this),Ie},x.prototype.resume=function(){var J=this._readableState;return J.flowing||(L("resume"),J.flowing=!J.readableListening,function he(J,Ie){Ie.resumeScheduled||(Ie.resumeScheduled=!0,process.nextTick(be,J,Ie))}(this,J)),J.paused=!1,this},x.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(J){var Ie=this,ut=this._readableState,Oe=!1;for(var we in J.on("end",function(){if(L("wrapped end"),ut.decoder&&!ut.ended){var Te=ut.decoder.end();Te&&Te.length&&Ie.push(Te)}Ie.push(null)}),J.on("data",function(Te){L("wrapped data"),ut.decoder&&(Te=ut.decoder.write(Te)),ut.objectMode&&null==Te||!(ut.objectMode||Te&&Te.length)||Ie.push(Te)||(Oe=!0,J.pause())}),J)void 0===this[we]&&"function"==typeof J[we]&&(this[we]=function(xe){return function(){return J[xe].apply(J,arguments)}}(we));for(var ce=0;ce{"use strict";Be.exports=R;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,f=t.ERR_MULTIPLE_CALLBACK,M=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,C=p(1339);function d(w,D){var S=this._transformState;S.transforming=!1;var k=S.writecb;if(null===k)return this.emit("error",new f);S.writechunk=null,S.writecb=null,null!=D&&this.push(D),k(w);var E=this._readableState;E.reading=!1,(E.needReadable||E.length{"use strict";function e(Pe){var Ee=this;this.next=null,this.entry=null,this.finish=function(){!function be(Pe,Ee,j){var Ve=Pe.entry;for(Pe.entry=null;Ve;){var Me=Ve.callback;Ee.pendingcb--,Me(j),Ve=Ve.next}Ee.corkedRequestsFree.next=Pe}(Ee,Pe)}}var f;Be.exports=_e,_e.WritableState=ge;var q,M={deprecate:p(4364)},a=p(4970),C=p(3172).Buffer,d=global.Uint8Array||function(){},L=p(1920),D=p(7102).getHighWaterMark,S=p(891).q,k=S.ERR_INVALID_ARG_TYPE,E=S.ERR_METHOD_NOT_IMPLEMENTED,B=S.ERR_MULTIPLE_CALLBACK,Z=S.ERR_STREAM_CANNOT_PIPE,Y=S.ERR_STREAM_DESTROYED,ae=S.ERR_STREAM_NULL_VALUES,ee=S.ERR_STREAM_WRITE_AFTER_END,ue=S.ERR_UNKNOWN_ENCODING,ne=L.errorOrDestroy;function re(){}function ge(Pe,Ee,j){f=f||p(1339),"boolean"!=typeof j&&(j=Ee instanceof f),this.objectMode=!!(Pe=Pe||{}).objectMode,j&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode),this.highWaterMark=D(this,Pe,"writableHighWaterMark",j),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Pe.decodeStrings),this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Me){!function I(Pe,Ee){var j=Pe._writableState,Ve=j.sync,Me=j.writecb;if("function"!=typeof Me)throw new B;if(function T(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}(j),Ee)!function v(Pe,Ee,j,Ve,Me){--Ee.pendingcb,j?(process.nextTick(Me,Ve),process.nextTick(X,Pe,Ee),Pe._writableState.errorEmitted=!0,ne(Pe,Ve)):(Me(Ve),Pe._writableState.errorEmitted=!0,ne(Pe,Ve),X(Pe,Ee))}(Pe,j,Ve,Ee,Me);else{var J=V(j)||Pe.destroyed;!J&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&_(Pe,j),Ve?process.nextTick(y,Pe,j,J,Me):y(Pe,j,J,Me)}}(Ee,Me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Pe.emitClose,this.autoDestroy=!!Pe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function _e(Pe){var Ee=this instanceof(f=f||p(1339));if(!Ee&&!q.call(_e,this))return new _e(Pe);this._writableState=new ge(Pe,this,Ee),this.writable=!0,Pe&&("function"==typeof Pe.write&&(this._write=Pe.write),"function"==typeof Pe.writev&&(this._writev=Pe.writev),"function"==typeof Pe.destroy&&(this._destroy=Pe.destroy),"function"==typeof Pe.final&&(this._final=Pe.final)),a.call(this)}function c(Pe,Ee,j,Ve,Me,J,Ie){Ee.writelen=Ve,Ee.writecb=Ie,Ee.writing=!0,Ee.sync=!0,Ee.destroyed?Ee.onwrite(new Y("write")):j?Pe._writev(Me,Ee.onwrite):Pe._write(Me,J,Ee.onwrite),Ee.sync=!1}function y(Pe,Ee,j,Ve){j||function n(Pe,Ee){0===Ee.length&&Ee.needDrain&&(Ee.needDrain=!1,Pe.emit("drain"))}(Pe,Ee),Ee.pendingcb--,Ve(),X(Pe,Ee)}function _(Pe,Ee){Ee.bufferProcessing=!0;var j=Ee.bufferedRequest;if(Pe._writev&&j&&j.next){var Me=new Array(Ee.bufferedRequestCount),J=Ee.corkedRequestsFree;J.entry=j;for(var Ie=0,ut=!0;j;)Me[Ie]=j,j.isBuf||(ut=!1),j=j.next,Ie+=1;Me.allBuffers=ut,c(Pe,Ee,!0,Ee.length,Me,"",J.finish),Ee.pendingcb++,Ee.lastBufferedRequest=null,J.next?(Ee.corkedRequestsFree=J.next,J.next=null):Ee.corkedRequestsFree=new e(Ee),Ee.bufferedRequestCount=0}else{for(;j;){var Oe=j.chunk;if(c(Pe,Ee,!1,Ee.objectMode?1:Oe.length,Oe,j.encoding,j.callback),j=j.next,Ee.bufferedRequestCount--,Ee.writing)break}null===j&&(Ee.lastBufferedRequest=null)}Ee.bufferedRequest=j,Ee.bufferProcessing=!1}function V(Pe){return Pe.ending&&0===Pe.length&&null===Pe.bufferedRequest&&!Pe.finished&&!Pe.writing}function N(Pe,Ee){Pe._final(function(j){Ee.pendingcb--,j&&ne(Pe,j),Ee.prefinished=!0,Pe.emit("prefinish"),X(Pe,Ee)})}function X(Pe,Ee){var j=V(Ee);if(j&&(function H(Pe,Ee){!Ee.prefinished&&!Ee.finalCalled&&("function"!=typeof Pe._final||Ee.destroyed?(Ee.prefinished=!0,Pe.emit("prefinish")):(Ee.pendingcb++,Ee.finalCalled=!0,process.nextTick(N,Pe,Ee)))}(Pe,Ee),0===Ee.pendingcb&&(Ee.finished=!0,Pe.emit("finish"),Ee.autoDestroy))){var Ve=Pe._readableState;(!Ve||Ve.autoDestroy&&Ve.endEmitted)&&Pe.destroy()}return j}p(3894)(_e,a),ge.prototype.getBuffer=function(){for(var Ee=this.bufferedRequest,j=[];Ee;)j.push(Ee),Ee=Ee.next;return j},function(){try{Object.defineProperty(ge.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(q=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:function(Ee){return!!q.call(this,Ee)||this===_e&&Ee&&Ee._writableState instanceof ge}})):q=function(Ee){return Ee instanceof this},_e.prototype.pipe=function(){ne(this,new Z)},_e.prototype.write=function(Pe,Ee,j){var Ve=this._writableState,Me=!1,J=!Ve.objectMode&&function h(Pe){return C.isBuffer(Pe)||Pe instanceof d}(Pe);return J&&!C.isBuffer(Pe)&&(Pe=function R(Pe){return C.from(Pe)}(Pe)),"function"==typeof Ee&&(j=Ee,Ee=null),J?Ee="buffer":Ee||(Ee=Ve.defaultEncoding),"function"!=typeof j&&(j=re),Ve.ending?function x(Pe,Ee){var j=new ee;ne(Pe,j),process.nextTick(Ee,j)}(this,j):(J||function i(Pe,Ee,j,Ve){var Me;return null===j?Me=new ae:"string"!=typeof j&&!Ee.objectMode&&(Me=new k("chunk",["string","Buffer"],j)),!Me||(ne(Pe,Me),process.nextTick(Ve,Me),!1)}(this,Ve,Pe,j))&&(Ve.pendingcb++,Me=function u(Pe,Ee,j,Ve,Me,J){if(!j){var Ie=function r(Pe,Ee,j){return!Pe.objectMode&&!1!==Pe.decodeStrings&&"string"==typeof Ee&&(Ee=C.from(Ee,j)),Ee}(Ee,Ve,Me);Ve!==Ie&&(j=!0,Me="buffer",Ve=Ie)}var ut=Ee.objectMode?1:Ve.length;Ee.length+=ut;var Oe=Ee.length-1))throw new ue(Ee);return this._writableState.defaultEncoding=Ee,this},Object.defineProperty(_e.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_e.prototype._write=function(Pe,Ee,j){j(new E("_write()"))},_e.prototype._writev=null,_e.prototype.end=function(Pe,Ee,j){var Ve=this._writableState;return"function"==typeof Pe?(j=Pe,Pe=null,Ee=null):"function"==typeof Ee&&(j=Ee,Ee=null),null!=Pe&&this.write(Pe,Ee),Ve.corked&&(Ve.corked=1,this.uncork()),Ve.ending||function he(Pe,Ee,j){Ee.ending=!0,X(Pe,Ee),j&&(Ee.finished?process.nextTick(j):Pe.once("finish",j)),Ee.ended=!0,Pe.writable=!1}(this,Ve,j),this},Object.defineProperty(_e.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_e.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ee){!this._writableState||(this._writableState.destroyed=Ee)}}),_e.prototype.destroy=L.destroy,_e.prototype._undestroy=L.undestroy,_e.prototype._destroy=function(Pe,Ee){Ee(Pe)}},3872:(Be,K,p)=>{"use strict";var t;function e(Y,ae,ee){return ae in Y?Object.defineProperty(Y,ae,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[ae]=ee,Y}var f=p(7542),M=Symbol("lastResolve"),a=Symbol("lastReject"),C=Symbol("error"),d=Symbol("ended"),R=Symbol("lastPromise"),h=Symbol("handlePromise"),L=Symbol("stream");function w(Y,ae){return{value:Y,done:ae}}function D(Y){var ae=Y[M];if(null!==ae){var ee=Y[L].read();null!==ee&&(Y[R]=null,Y[M]=null,Y[a]=null,ae(w(ee,!1)))}}function S(Y){process.nextTick(D,Y)}var E=Object.getPrototypeOf(function(){}),B=Object.setPrototypeOf((e(t={get stream(){return this[L]},next:function(){var ae=this,ee=this[C];if(null!==ee)return Promise.reject(ee);if(this[d])return Promise.resolve(w(void 0,!0));if(this[L].destroyed)return new Promise(function(ge,q){process.nextTick(function(){ae[C]?q(ae[C]):ge(w(void 0,!0))})});var ne,ue=this[R];if(ue)ne=new Promise(function k(Y,ae){return function(ee,ue){Y.then(function(){ae[d]?ee(w(void 0,!0)):ae[h](ee,ue)},ue)}}(ue,this));else{var re=this[L].read();if(null!==re)return Promise.resolve(w(re,!1));ne=new Promise(this[h])}return this[R]=ne,ne}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var ae=this;return new Promise(function(ee,ue){ae[L].destroy(null,function(ne){ne?ue(ne):ee(w(void 0,!0))})})}),t),E);Be.exports=function(ae){var ee,ue=Object.create(B,(e(ee={},L,{value:ae,writable:!0}),e(ee,M,{value:null,writable:!0}),e(ee,a,{value:null,writable:!0}),e(ee,C,{value:null,writable:!0}),e(ee,d,{value:ae._readableState.endEmitted,writable:!0}),e(ee,h,{value:function(re,ge){var q=ue[L].read();q?(ue[R]=null,ue[M]=null,ue[a]=null,re(w(q,!1))):(ue[M]=re,ue[a]=ge)},writable:!0}),ee));return ue[R]=null,f(ae,function(ne){if(ne&&"ERR_STREAM_PREMATURE_CLOSE"!==ne.code){var re=ue[a];return null!==re&&(ue[R]=null,ue[M]=null,ue[a]=null,re(ne)),void(ue[C]=ne)}var ge=ue[M];null!==ge&&(ue[R]=null,ue[M]=null,ue[a]=null,ge(w(void 0,!0))),ue[d]=!0}),ae.on("readable",S.bind(null,ue)),ue}},5019:(Be,K,p)=>{"use strict";function t(S,k){var E=Object.keys(S);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(S);k&&(B=B.filter(function(Z){return Object.getOwnPropertyDescriptor(S,Z).enumerable})),E.push.apply(E,B)}return E}function f(S,k,E){return k in S?Object.defineProperty(S,k,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[k]=E,S}function a(S,k){for(var E=0;E0?this.tail.next=B:this.head=B,this.tail=B,++this.length}},{key:"unshift",value:function(E){var B={data:E,next:this.head};0===this.length&&(this.tail=B),this.head=B,++this.length}},{key:"shift",value:function(){if(0!==this.length){var E=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(0===this.length)return"";for(var B=this.head,Z=""+B.data;B=B.next;)Z+=E+B.data;return Z}},{key:"concat",value:function(E){if(0===this.length)return R.alloc(0);for(var B=R.allocUnsafe(E>>>0),Z=this.head,Y=0;Z;)D(Z.data,B,Y),Y+=Z.data.length,Z=Z.next;return B}},{key:"consume",value:function(E,B){var Z;return Eae.length?ae.length:E;if(Y+=ee===ae.length?ae:ae.slice(0,E),0==(E-=ee)){ee===ae.length?(++Z,this.head=B.next?B.next:this.tail=null):(this.head=B,B.data=ae.slice(ee));break}++Z}return this.length-=Z,Y}},{key:"_getBuffer",value:function(E){var B=R.allocUnsafe(E),Z=this.head,Y=1;for(Z.data.copy(B),E-=Z.data.length;Z=Z.next;){var ae=Z.data,ee=E>ae.length?ae.length:E;if(ae.copy(B,B.length-E,0,ee),0==(E-=ee)){ee===ae.length?(++Y,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ae.slice(ee));break}++Y}return this.length-=Y,B}},{key:w,value:function(E,B){return L(this,function e(S){for(var k=1;k{"use strict";function p(a,C){f(a,C),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function f(a,C){a.emit("error",C)}Be.exports={destroy:function K(a,C){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(C?C(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(f,this,a)):process.nextTick(f,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(L){!C&&L?d._writableState?d._writableState.errorEmitted?process.nextTick(t,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,L)):process.nextTick(p,d,L):C?(process.nextTick(t,d),C(L)):process.nextTick(t,d)}),this)},undestroy:function e(){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 M(a,C){var d=a._readableState,R=a._writableState;d&&d.autoDestroy||R&&R.autoDestroy?a.destroy(C):a.emit("error",C)}}},7542:(Be,K,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}Be.exports=function a(C,d,R){if("function"==typeof d)return a(C,null,d);d||(d={}),R=function e(C){var d=!1;return function(){if(!d){d=!0;for(var R=arguments.length,h=new Array(R),L=0;L{Be.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Be,K,p)=>{"use strict";var t,f=p(891).q,M=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function C(S){if(S)throw S}function R(S,k,E,B){B=function e(S){var k=!1;return function(){k||(k=!0,S.apply(void 0,arguments))}}(B);var Z=!1;S.on("close",function(){Z=!0}),void 0===t&&(t=p(7542)),t(S,{readable:k,writable:E},function(ae){if(ae)return B(ae);Z=!0,B()});var Y=!1;return function(ae){if(!Z&&!Y){if(Y=!0,function d(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();B(ae||new a("pipe"))}}}function h(S){S()}function L(S,k){return S.pipe(k)}function w(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():C}Be.exports=function D(){for(var S=arguments.length,k=new Array(S),E=0;E0,function(re){Z||(Z=re),re&&Y.forEach(h),!ue&&(Y.forEach(h),B(Z))})});return k.reduce(L)}},7102:(Be,K,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;Be.exports={getHighWaterMark:function f(M,a,C,d){var R=function e(M,a,C){return null!=M.highWaterMark?M.highWaterMark:a?M[C]:null}(a,d,C);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new t(d?C:"highWaterMark",R);return Math.floor(R)}return M.objectMode?16:16384}}},4970:(Be,K,p)=>{Be.exports=p(9069).EventEmitter},5685:(Be,K,p)=>{(K=Be.exports=p(3154)).Stream=K,K.Readable=K,K.Writable=p(520),K.Duplex=p(1339),K.Transform=p(6025),K.PassThrough=p(6071),K.finished=p(7542),K.pipeline=p(954)},5634:(Be,K,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),f=p(9650),M=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],C=[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],d=[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],R=[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],h=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function w(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function D(Y,ae){return Y<>>32-ae}function S(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae^ee^ue)+re+ge|0,q)+ne|0}function k(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae&ee|~ae&ue)+re+ge|0,q)+ne|0}function E(Y,ae,ee,ue,ne,re,ge,q){return D(Y+((ae|~ee)^ue)+re+ge|0,q)+ne|0}function B(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae&ue|ee&~ue)+re+ge|0,q)+ne|0}function Z(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae^(ee|~ue))+re+ge|0,q)+ne|0}e(w,f),w.prototype._update=function(){for(var Y=M,ae=0;ae<16;++ae)Y[ae]=this._block.readInt32LE(4*ae);for(var ee=0|this._a,ue=0|this._b,ne=0|this._c,re=0|this._d,ge=0|this._e,q=0|this._a,_e=0|this._b,x=0|this._c,i=0|this._d,r=0|this._e,u=0;u<80;u+=1){var c,v;u<16?(c=S(ee,ue,ne,re,ge,Y[a[u]],h[0],d[u]),v=Z(q,_e,x,i,r,Y[C[u]],L[0],R[u])):u<32?(c=k(ee,ue,ne,re,ge,Y[a[u]],h[1],d[u]),v=B(q,_e,x,i,r,Y[C[u]],L[1],R[u])):u<48?(c=E(ee,ue,ne,re,ge,Y[a[u]],h[2],d[u]),v=E(q,_e,x,i,r,Y[C[u]],L[2],R[u])):u<64?(c=B(ee,ue,ne,re,ge,Y[a[u]],h[3],d[u]),v=k(q,_e,x,i,r,Y[C[u]],L[3],R[u])):(c=Z(ee,ue,ne,re,ge,Y[a[u]],h[4],d[u]),v=S(q,_e,x,i,r,Y[C[u]],L[4],R[u])),ee=ge,ge=re,re=D(ne,10),ne=ue,ue=c,q=r,r=i,i=D(x,10),x=_e,_e=v}var T=this._b+ne+i|0;this._b=this._c+re+r|0,this._c=this._d+ge+q|0,this._d=this._e+ee+_e|0,this._e=this._a+ue+x|0,this._a=T},w.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 Y=t.alloc?t.alloc(20):new t(20);return Y.writeInt32LE(this._a,0),Y.writeInt32LE(this._b,4),Y.writeInt32LE(this._c,8),Y.writeInt32LE(this._d,12),Y.writeInt32LE(this._e,16),Y},Be.exports=w},1135:(Be,K,p)=>{"use strict";p.d(K,{X:()=>e});var t=p(7579);class e extends t.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const a=super._subscribe(M);return!a.closed&&M.next(this._value),a}getValue(){const{hasError:M,thrownError:a,_value:C}=this;if(M)throw a;return this._throwIfClosed(),C}next(M){super.next(this._value=M)}}},8306:(Be,K,p)=>{"use strict";p.d(K,{y:()=>L});var t=p(930),e=p(727),f=p(8822),M=p(4671);var d=p(2416),R=p(576),h=p(2806);let L=(()=>{class k{constructor(B){B&&(this._subscribe=B)}lift(B){const Z=new k;return Z.source=this,Z.operator=B,Z}subscribe(B,Z,Y){const ae=function S(k){return k&&k instanceof t.Lv||function D(k){return k&&(0,R.m)(k.next)&&(0,R.m)(k.error)&&(0,R.m)(k.complete)}(k)&&(0,e.Nn)(k)}(B)?B:new t.Hp(B,Z,Y);return(0,h.x)(()=>{const{operator:ee,source:ue}=this;ae.add(ee?ee.call(ae,ue):ue?this._subscribe(ae):this._trySubscribe(ae))}),ae}_trySubscribe(B){try{return this._subscribe(B)}catch(Z){B.error(Z)}}forEach(B,Z){return new(Z=w(Z))((Y,ae)=>{const ee=new t.Hp({next:ue=>{try{B(ue)}catch(ne){ae(ne),ee.unsubscribe()}},error:ae,complete:Y});this.subscribe(ee)})}_subscribe(B){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(B)}[f.L](){return this}pipe(...B){return function C(k){return 0===k.length?M.y:1===k.length?k[0]:function(B){return k.reduce((Z,Y)=>Y(Z),B)}}(B)(this)}toPromise(B){return new(B=w(B))((Z,Y)=>{let ae;this.subscribe(ee=>ae=ee,ee=>Y(ee),()=>Z(ae))})}}return k.create=E=>new k(E),k})();function w(k){var E;return null!==(E=null!=k?k:d.v.Promise)&&void 0!==E?E:Promise}},4707:(Be,K,p)=>{"use strict";p.d(K,{t:()=>f});var t=p(7579),e=p(6063);class f extends t.x{constructor(a=1/0,C=1/0,d=e.l){super(),this._bufferSize=a,this._windowTime=C,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,C)}next(a){const{isStopped:C,_buffer:d,_infiniteTimeWindow:R,_timestampProvider:h,_windowTime:L}=this;C||(d.push(a),!R&&d.push(h.now()+L)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:R}=this,h=R.slice();for(let L=0;L{"use strict";p.d(K,{u:()=>R,x:()=>d});var t=p(8306),e=p(727);const M=(0,p(3888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),C=p(2806);let d=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const D=new R(this,this);return D.operator=w,D}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const D of this.currentObservers)D.next(w)}})}error(w){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:D}=this;for(;D.length;)D.shift().error(w)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:D,isStopped:S,observers:k}=this;return D||S?e.Lc:(this.currentObservers=null,k.push(w),new e.w0(()=>{this.currentObservers=null,(0,a.P)(k,w)}))}_checkFinalizedStatuses(w){const{hasError:D,thrownError:S,isStopped:k}=this;D?w.error(S):k&&w.complete()}asObservable(){const w=new t.y;return w.source=this,w}}return h.create=(L,w)=>new R(L,w),h})();class R extends d{constructor(L,w){super(),this.destination=L,this.source=w}next(L){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===D||D.call(w,L)}error(L){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===D||D.call(w,L)}complete(){var L,w;null===(w=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===w||w.call(L)}_subscribe(L){var w,D;return null!==(D=null===(w=this.source)||void 0===w?void 0:w.subscribe(L))&&void 0!==D?D:e.Lc}}},930:(Be,K,p)=>{"use strict";p.d(K,{Hp:()=>B,Lv:()=>D});var t=p(576),e=p(727),f=p(2416),M=p(7849),a=p(5032);const C=h("C",void 0,void 0);function h(ue,ne,re){return{kind:ue,value:ne,error:re}}var L=p(3410),w=p(2806);class D extends e.w0{constructor(ne){super(),this.isStopped=!1,ne?(this.destination=ne,(0,e.Nn)(ne)&&ne.add(this)):this.destination=ee}static create(ne,re,ge){return new B(ne,re,ge)}next(ne){this.isStopped?ae(function R(ue){return h("N",ue,void 0)}(ne),this):this._next(ne)}error(ne){this.isStopped?ae(function d(ue){return h("E",void 0,ue)}(ne),this):(this.isStopped=!0,this._error(ne))}complete(){this.isStopped?ae(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ne){this.destination.next(ne)}_error(ne){try{this.destination.error(ne)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const S=Function.prototype.bind;function k(ue,ne){return S.call(ue,ne)}class E{constructor(ne){this.partialObserver=ne}next(ne){const{partialObserver:re}=this;if(re.next)try{re.next(ne)}catch(ge){Z(ge)}}error(ne){const{partialObserver:re}=this;if(re.error)try{re.error(ne)}catch(ge){Z(ge)}else Z(ne)}complete(){const{partialObserver:ne}=this;if(ne.complete)try{ne.complete()}catch(re){Z(re)}}}class B extends D{constructor(ne,re,ge){let q;if(super(),(0,t.m)(ne)||!ne)q={next:null!=ne?ne:void 0,error:null!=re?re:void 0,complete:null!=ge?ge:void 0};else{let _e;this&&f.v.useDeprecatedNextContext?(_e=Object.create(ne),_e.unsubscribe=()=>this.unsubscribe(),q={next:ne.next&&k(ne.next,_e),error:ne.error&&k(ne.error,_e),complete:ne.complete&&k(ne.complete,_e)}):q=ne}this.destination=new E(q)}}function Z(ue){f.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(ue):(0,M.h)(ue)}function ae(ue,ne){const{onStoppedNotification:re}=f.v;re&&L.z.setTimeout(()=>re(ue,ne))}const ee={closed:!0,next:a.Z,error:function Y(ue){throw ue},complete:a.Z}},727:(Be,K,p)=>{"use strict";p.d(K,{Lc:()=>C,w0:()=>a,Nn:()=>d});var t=p(576);const f=(0,p(3888).d)(h=>function(w){h(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((D,S)=>`${S+1}) ${D.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(8737);class a{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const k of w)k.remove(this);else w.remove(this);const{initialTeardown:D}=this;if((0,t.m)(D))try{D()}catch(k){L=k instanceof f?k.errors:[k]}const{_finalizers:S}=this;if(S){this._finalizers=null;for(const k of S)try{R(k)}catch(E){L=null!=L?L:[],E instanceof f?L=[...L,...E.errors]:L.push(E)}}if(L)throw new f(L)}}add(L){var w;if(L&&L!==this)if(this.closed)R(L);else{if(L instanceof a){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(L)}}_hasParent(L){const{_parentage:w}=this;return w===L||Array.isArray(w)&&w.includes(L)}_addParent(L){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(L),w):w?[w,L]:L}_removeParent(L){const{_parentage:w}=this;w===L?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,L)}remove(L){const{_finalizers:w}=this;w&&(0,M.P)(w,L),L instanceof a&&L._removeParent(this)}}a.EMPTY=(()=>{const h=new a;return h.closed=!0,h})();const C=a.EMPTY;function d(h){return h instanceof a||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function R(h){(0,t.m)(h)?h():h.unsubscribe()}},2416:(Be,K,p)=>{"use strict";p.d(K,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Be,K,p)=>{"use strict";p.d(K,{a:()=>L});var t=p(8306),e=p(4742),f=p(457),M=p(4671),a=p(3268),C=p(3269),d=p(1810),R=p(5403),h=p(9672);function L(...S){const k=(0,C.yG)(S),E=(0,C.jO)(S),{args:B,keys:Z}=(0,e.D)(S);if(0===B.length)return(0,f.D)([],k);const Y=new t.y(function w(S,k,E=M.y){return B=>{D(k,()=>{const{length:Z}=S,Y=new Array(Z);let ae=Z,ee=Z;for(let ue=0;ue{const ne=(0,f.D)(S[ue],k);let re=!1;ne.subscribe((0,R.x)(B,ge=>{Y[ue]=ge,re||(re=!0,ee--),ee||B.next(E(Y.slice()))},()=>{--ae||B.complete()}))},B)},B)}}(B,k,Z?ae=>(0,d.n)(Z,ae):M.y));return E?Y.pipe((0,a.Z)(E)):Y}function D(S,k,E){S?(0,h.f)(E,S,k):k()}},7272:(Be,K,p)=>{"use strict";p.d(K,{z:()=>a});var t=p(8189),f=p(3269),M=p(457);function a(...C){return function e(){return(0,t.J)(1)}()((0,M.D)(C,(0,f.yG)(C)))}},9770:(Be,K,p)=>{"use strict";p.d(K,{P:()=>f});var t=p(8306),e=p(8421);function f(M){return new t.y(a=>{(0,e.Xf)(M()).subscribe(a)})}},515:(Be,K,p)=>{"use strict";p.d(K,{E:()=>e});const e=new(p(8306).y)(a=>a.complete())},4128:(Be,K,p)=>{"use strict";p.d(K,{D:()=>R});var t=p(8306),e=p(4742),f=p(8421),M=p(3269),a=p(5403),C=p(3268),d=p(1810);function R(...h){const L=(0,M.jO)(h),{args:w,keys:D}=(0,e.D)(h),S=new t.y(k=>{const{length:E}=w;if(!E)return void k.complete();const B=new Array(E);let Z=E,Y=E;for(let ae=0;ae{ee||(ee=!0,Y--),B[ae]=ue},()=>Z--,void 0,()=>{(!Z||!ee)&&(Y||k.next(D?(0,d.n)(D,B):B),k.complete())}))}});return L?S.pipe((0,C.Z)(L)):S}},457:(Be,K,p)=>{"use strict";p.d(K,{D:()=>re});var t=p(8421),e=p(5363),f=p(4482);function M(ge,q=0){return(0,f.e)((_e,x)=>{x.add(ge.schedule(()=>_e.subscribe(x),q))})}var d=p(8306),h=p(2202),L=p(576),w=p(9672);function S(ge,q){if(!ge)throw new Error("Iterable cannot be null");return new d.y(_e=>{(0,w.f)(_e,q,()=>{const x=ge[Symbol.asyncIterator]();(0,w.f)(_e,q,()=>{x.next().then(i=>{i.done?_e.complete():_e.next(i.value)})},0,!0)})})}var k=p(3670),E=p(8239),B=p(1144),Z=p(6495),Y=p(2206),ae=p(4532),ee=p(3260);function re(ge,q){return q?function ne(ge,q){if(null!=ge){if((0,k.c)(ge))return function a(ge,q){return(0,t.Xf)(ge).pipe(M(q),(0,e.Q)(q))}(ge,q);if((0,B.z)(ge))return function R(ge,q){return new d.y(_e=>{let x=0;return q.schedule(function(){x===ge.length?_e.complete():(_e.next(ge[x++]),_e.closed||this.schedule())})})}(ge,q);if((0,E.t)(ge))return function C(ge,q){return(0,t.Xf)(ge).pipe(M(q),(0,e.Q)(q))}(ge,q);if((0,Y.D)(ge))return S(ge,q);if((0,Z.T)(ge))return function D(ge,q){return new d.y(_e=>{let x;return(0,w.f)(_e,q,()=>{x=ge[h.h](),(0,w.f)(_e,q,()=>{let i,r;try{({value:i,done:r}=x.next())}catch(u){return void _e.error(u)}r?_e.complete():_e.next(i)},0,!0)}),()=>(0,L.m)(null==x?void 0:x.return)&&x.return()})}(ge,q);if((0,ee.L)(ge))return function ue(ge,q){return S((0,ee.Q)(ge),q)}(ge,q)}throw(0,ae.z)(ge)}(ge,q):(0,t.Xf)(ge)}},4968:(Be,K,p)=>{"use strict";p.d(K,{R:()=>L});var t=p(8421),e=p(8306),f=p(5577),M=p(1144),a=p(576),C=p(3268);const d=["addListener","removeListener"],R=["addEventListener","removeEventListener"],h=["on","off"];function L(E,B,Z,Y){if((0,a.m)(Z)&&(Y=Z,Z=void 0),Y)return L(E,B,Z).pipe((0,C.Z)(Y));const[ae,ee]=function k(E){return(0,a.m)(E.addEventListener)&&(0,a.m)(E.removeEventListener)}(E)?R.map(ue=>ne=>E[ue](B,ne,Z)):function D(E){return(0,a.m)(E.addListener)&&(0,a.m)(E.removeListener)}(E)?d.map(w(E,B)):function S(E){return(0,a.m)(E.on)&&(0,a.m)(E.off)}(E)?h.map(w(E,B)):[];if(!ae&&(0,M.z)(E))return(0,f.z)(ue=>L(ue,B,Z))((0,t.Xf)(E));if(!ae)throw new TypeError("Invalid event target");return new e.y(ue=>{const ne=(...re)=>ue.next(1ee(ne)})}function w(E,B){return Z=>Y=>E[Z](B,Y)}},8421:(Be,K,p)=>{"use strict";p.d(K,{Xf:()=>S});var t=p(655),e=p(1144),f=p(8239),M=p(8306),a=p(3670),C=p(2206),d=p(4532),R=p(6495),h=p(3260),L=p(576),w=p(7849),D=p(8822);function S(ue){if(ue instanceof M.y)return ue;if(null!=ue){if((0,a.c)(ue))return function k(ue){return new M.y(ne=>{const re=ue[D.L]();if((0,L.m)(re.subscribe))return re.subscribe(ne);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ue);if((0,e.z)(ue))return function E(ue){return new M.y(ne=>{for(let re=0;re{ue.then(re=>{ne.closed||(ne.next(re),ne.complete())},re=>ne.error(re)).then(null,w.h)})}(ue);if((0,C.D)(ue))return Y(ue);if((0,R.T)(ue))return function Z(ue){return new M.y(ne=>{for(const re of ue)if(ne.next(re),ne.closed)return;ne.complete()})}(ue);if((0,h.L)(ue))return function ae(ue){return Y((0,h.Q)(ue))}(ue)}throw(0,d.z)(ue)}function Y(ue){return new M.y(ne=>{(function ee(ue,ne){var re,ge,q,_e;return(0,t.mG)(this,void 0,void 0,function*(){try{for(re=(0,t.KL)(ue);!(ge=yield re.next()).done;)if(ne.next(ge.value),ne.closed)return}catch(x){q={error:x}}finally{try{ge&&!ge.done&&(_e=re.return)&&(yield _e.call(re))}finally{if(q)throw q.error}}ne.complete()})})(ue,ne).catch(re=>ne.error(re))})}},6451:(Be,K,p)=>{"use strict";p.d(K,{T:()=>C});var t=p(8189),e=p(8421),f=p(515),M=p(3269),a=p(457);function C(...d){const R=(0,M.yG)(d),h=(0,M._6)(d,1/0),L=d;return L.length?1===L.length?(0,e.Xf)(L[0]):(0,t.J)(h)((0,a.D)(L,R)):f.E}},9646:(Be,K,p)=>{"use strict";p.d(K,{of:()=>f});var t=p(3269),e=p(457);function f(...M){const a=(0,t.yG)(M);return(0,e.D)(M,a)}},2843:(Be,K,p)=>{"use strict";p.d(K,{_:()=>f});var t=p(8306),e=p(576);function f(M,a){const C=(0,e.m)(M)?M:()=>M,d=R=>R.error(C());return new t.y(a?R=>a.schedule(d,0,R):d)}},2805:(Be,K,p)=>{"use strict";p.d(K,{H:()=>a});var t=p(8306),e=p(4986),f=p(3532),M=p(1165);function a(C=0,d,R=e.P){let h=-1;return null!=d&&((0,f.K)(d)?R=d:h=d),new t.y(L=>{let w=(0,M.q)(C)?+C-R.now():C;w<0&&(w=0);let D=0;return R.schedule(function(){L.closed||(L.next(D++),0<=h?this.schedule(void 0,h):L.complete())},w)})}},5403:(Be,K,p)=>{"use strict";p.d(K,{Q:()=>f,x:()=>e});var t=p(930);function e(M,a,C,d,R){return new f(M,a,C,d,R)}class f extends t.Lv{constructor(a,C,d,R,h,L){super(a),this.onFinalize=h,this.shouldUnsubscribe=L,this._next=C?function(w){try{C(w)}catch(D){a.error(D)}}:super._next,this._error=R?function(w){try{R(w)}catch(D){a.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(w){a.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(Be,K,p)=>{"use strict";p.d(K,{e:()=>d});var t=p(4986),e=p(4482),f=p(8421),M=p(5403),C=p(2805);function d(R,h=t.z){return function a(R){return(0,e.e)((h,L)=>{let w=!1,D=null,S=null,k=!1;const E=()=>{if(null==S||S.unsubscribe(),S=null,w){w=!1;const Z=D;D=null,L.next(Z)}k&&L.complete()},B=()=>{S=null,k&&L.complete()};h.subscribe((0,M.x)(L,Z=>{w=!0,D=Z,S||(0,f.Xf)(R(Z)).subscribe(S=(0,M.x)(L,E,B))},()=>{k=!0,(!w||!S||S.closed)&&L.complete()}))})}(()=>(0,C.H)(R,h))}},262:(Be,K,p)=>{"use strict";p.d(K,{K:()=>M});var t=p(8421),e=p(5403),f=p(4482);function M(a){return(0,f.e)((C,d)=>{let L,R=null,h=!1;R=C.subscribe((0,e.x)(d,void 0,void 0,w=>{L=(0,t.Xf)(a(w,M(a)(C))),R?(R.unsubscribe(),R=null,L.subscribe(d)):h=!0})),h&&(R.unsubscribe(),R=null,L.subscribe(d))})}},4351:(Be,K,p)=>{"use strict";p.d(K,{b:()=>f});var t=p(5577),e=p(576);function f(M,a){return(0,e.m)(a)?(0,t.z)(M,a,1):(0,t.z)(M,1)}},8372:(Be,K,p)=>{"use strict";p.d(K,{b:()=>M});var t=p(4986),e=p(4482),f=p(5403);function M(a,C=t.z){return(0,e.e)((d,R)=>{let h=null,L=null,w=null;const D=()=>{if(h){h.unsubscribe(),h=null;const k=L;L=null,R.next(k)}};function S(){const k=w+a,E=C.now();if(E{L=k,w=C.now(),h||(h=C.schedule(S,a),R.add(h))},()=>{D(),R.complete()},void 0,()=>{L=h=null}))})}},6590:(Be,K,p)=>{"use strict";p.d(K,{d:()=>f});var t=p(4482),e=p(5403);function f(M){return(0,t.e)((a,C)=>{let d=!1;a.subscribe((0,e.x)(C,R=>{d=!0,C.next(R)},()=>{d||C.next(M),C.complete()}))})}},4086:(Be,K,p)=>{"use strict";p.d(K,{g:()=>h});var t=p(4986),e=p(7272),f=p(5698),M=p(8502),a=p(9718),C=p(5577);function d(L,w){return w?D=>(0,e.z)(w.pipe((0,f.q)(1),(0,M.l)()),D.pipe(d(L))):(0,C.z)((D,S)=>L(D,S).pipe((0,f.q)(1),(0,a.h)(D)))}var R=p(2805);function h(L,w=t.z){const D=(0,R.H)(L,w);return d(()=>D)}},1884:(Be,K,p)=>{"use strict";p.d(K,{x:()=>M});var t=p(4671),e=p(4482),f=p(5403);function M(C,d=t.y){return C=null!=C?C:a,(0,e.e)((R,h)=>{let L,w=!0;R.subscribe((0,f.x)(h,D=>{const S=d(D);(w||!C(L,S))&&(w=!1,L=S,h.next(D))}))})}function a(C,d){return C===d}},9300:(Be,K,p)=>{"use strict";p.d(K,{h:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((C,d)=>{let R=0;C.subscribe((0,e.x)(d,h=>M.call(a,h,R++)&&d.next(h)))})}},8746:(Be,K,p)=>{"use strict";p.d(K,{x:()=>e});var t=p(4482);function e(f){return(0,t.e)((M,a)=>{try{M.subscribe(a)}finally{a.add(f)}})}},590:(Be,K,p)=>{"use strict";p.d(K,{P:()=>d});var t=p(6805),e=p(9300),f=p(5698),M=p(6590),a=p(8068),C=p(4671);function d(R,h){const L=arguments.length>=2;return w=>w.pipe(R?(0,e.h)((D,S)=>R(D,S,w)):C.y,(0,f.q)(1),L?(0,M.d)(h):(0,a.T)(()=>new t.K))}},8502:(Be,K,p)=>{"use strict";p.d(K,{l:()=>M});var t=p(4482),e=p(5403),f=p(5032);function M(){return(0,t.e)((a,C)=>{a.subscribe((0,e.x)(C,f.Z))})}},4004:(Be,K,p)=>{"use strict";p.d(K,{U:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((C,d)=>{let R=0;C.subscribe((0,e.x)(d,h=>{d.next(M.call(a,h,R++))}))})}},9718:(Be,K,p)=>{"use strict";p.d(K,{h:()=>e});var t=p(4004);function e(f){return(0,t.U)(()=>f)}},8189:(Be,K,p)=>{"use strict";p.d(K,{J:()=>f});var t=p(5577),e=p(4671);function f(M=1/0){return(0,t.z)(e.y,M)}},5577:(Be,K,p)=>{"use strict";p.d(K,{z:()=>R});var t=p(4004),e=p(8421),f=p(4482),M=p(9672),a=p(5403),d=p(576);function R(h,L,w=1/0){return(0,d.m)(L)?R((D,S)=>(0,t.U)((k,E)=>L(D,k,S,E))((0,e.Xf)(h(D,S))),w):("number"==typeof L&&(w=L),(0,f.e)((D,S)=>function C(h,L,w,D,S,k,E,B){const Z=[];let Y=0,ae=0,ee=!1;const ue=()=>{ee&&!Z.length&&!Y&&L.complete()},ne=ge=>Y{k&&L.next(ge),Y++;let q=!1;(0,e.Xf)(w(ge,ae++)).subscribe((0,a.x)(L,_e=>{null==S||S(_e),k?ne(_e):L.next(_e)},()=>{q=!0},void 0,()=>{if(q)try{for(Y--;Z.length&&Yre(_e)):re(_e)}ue()}catch(_e){L.error(_e)}}))};return h.subscribe((0,a.x)(L,ne,()=>{ee=!0,ue()})),()=>{null==B||B()}}(D,S,h,w)))}},5363:(Be,K,p)=>{"use strict";p.d(K,{Q:()=>M});var t=p(9672),e=p(4482),f=p(5403);function M(a,C=0){return(0,e.e)((d,R)=>{d.subscribe((0,f.x)(R,h=>(0,t.f)(R,a,()=>R.next(h),C),()=>(0,t.f)(R,a,()=>R.complete(),C),h=>(0,t.f)(R,a,()=>R.error(h),C)))})}},5026:(Be,K,p)=>{"use strict";p.d(K,{R:()=>M});var t=p(4482),e=p(5403);function f(a,C,d,R,h){return(L,w)=>{let D=d,S=C,k=0;L.subscribe((0,e.x)(w,E=>{const B=k++;S=D?a(S,E,B):(D=!0,E),R&&w.next(S)},h&&(()=>{D&&w.next(S),w.complete()})))}}function M(a,C){return(0,t.e)(f(a,C,arguments.length>=2,!0))}},3099:(Be,K,p)=>{"use strict";p.d(K,{B:()=>a});var t=p(8421),e=p(7579),f=p(930),M=p(4482);function a(d={}){const{connector:R=(()=>new e.x),resetOnError:h=!0,resetOnComplete:L=!0,resetOnRefCountZero:w=!0}=d;return D=>{let S,k,E,B=0,Z=!1,Y=!1;const ae=()=>{null==k||k.unsubscribe(),k=void 0},ee=()=>{ae(),S=E=void 0,Z=Y=!1},ue=()=>{const ne=S;ee(),null==ne||ne.unsubscribe()};return(0,M.e)((ne,re)=>{B++,!Y&&!Z&&ae();const ge=E=null!=E?E:R();re.add(()=>{B--,0===B&&!Y&&!Z&&(k=C(ue,w))}),ge.subscribe(re),!S&&B>0&&(S=new f.Hp({next:q=>ge.next(q),error:q=>{Y=!0,ae(),k=C(ee,h,q),ge.error(q)},complete:()=>{Z=!0,ae(),k=C(ee,L),ge.complete()}}),(0,t.Xf)(ne).subscribe(S))})(D)}}function C(d,R,...h){if(!0===R)return void d();if(!1===R)return;const L=new f.Hp({next:()=>{L.unsubscribe(),d()}});return R(...h).subscribe(L)}},5684:(Be,K,p)=>{"use strict";p.d(K,{T:()=>e});var t=p(9300);function e(f){return(0,t.h)((M,a)=>f<=a)}},8675:(Be,K,p)=>{"use strict";p.d(K,{O:()=>M});var t=p(7272),e=p(3269),f=p(4482);function M(...a){const C=(0,e.yG)(a);return(0,f.e)((d,R)=>{(C?(0,t.z)(a,d,C):(0,t.z)(a,d)).subscribe(R)})}},3900:(Be,K,p)=>{"use strict";p.d(K,{w:()=>M});var t=p(8421),e=p(4482),f=p(5403);function M(a,C){return(0,e.e)((d,R)=>{let h=null,L=0,w=!1;const D=()=>w&&!h&&R.complete();d.subscribe((0,f.x)(R,S=>{null==h||h.unsubscribe();let k=0;const E=L++;(0,t.Xf)(a(S,E)).subscribe(h=(0,f.x)(R,B=>R.next(C?C(S,B,E,k++):B),()=>{h=null,D()}))},()=>{w=!0,D()}))})}},5698:(Be,K,p)=>{"use strict";p.d(K,{q:()=>M});var t=p(515),e=p(4482),f=p(5403);function M(a){return a<=0?()=>t.E:(0,e.e)((C,d)=>{let R=0;C.subscribe((0,f.x)(d,h=>{++R<=a&&(d.next(h),a<=R&&d.complete())}))})}},2722:(Be,K,p)=>{"use strict";p.d(K,{R:()=>a});var t=p(4482),e=p(5403),f=p(8421),M=p(5032);function a(C){return(0,t.e)((d,R)=>{(0,f.Xf)(C).subscribe((0,e.x)(R,()=>R.complete(),M.Z)),!R.closed&&d.subscribe(R)})}},8505:(Be,K,p)=>{"use strict";p.d(K,{b:()=>a});var t=p(576),e=p(4482),f=p(5403),M=p(4671);function a(C,d,R){const h=(0,t.m)(C)||d||R?{next:C,error:d,complete:R}:C;return h?(0,e.e)((L,w)=>{var D;null===(D=h.subscribe)||void 0===D||D.call(h);let S=!0;L.subscribe((0,f.x)(w,k=>{var E;null===(E=h.next)||void 0===E||E.call(h,k),w.next(k)},()=>{var k;S=!1,null===(k=h.complete)||void 0===k||k.call(h),w.complete()},k=>{var E;S=!1,null===(E=h.error)||void 0===E||E.call(h,k),w.error(k)},()=>{var k,E;S&&(null===(k=h.unsubscribe)||void 0===k||k.call(h)),null===(E=h.finalize)||void 0===E||E.call(h)}))}):M.y}},8068:(Be,K,p)=>{"use strict";p.d(K,{T:()=>M});var t=p(6805),e=p(4482),f=p(5403);function M(C=a){return(0,e.e)((d,R)=>{let h=!1;d.subscribe((0,f.x)(R,L=>{h=!0,R.next(L)},()=>h?R.complete():R.error(C())))})}function a(){return new t.K}},7414:(Be,K,p)=>{"use strict";p.d(K,{V:()=>h});var t=p(4986),e=p(1165),f=p(4482),M=p(8421),a=p(3888),C=p(5403),d=p(9672);const R=(0,a.d)(w=>function(S=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=S});function h(w,D){const{first:S,each:k,with:E=L,scheduler:B=(null!=D?D:t.z),meta:Z=null}=(0,e.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==S&&null==k)throw new TypeError("No timeout provided.");return(0,f.e)((Y,ae)=>{let ee,ue,ne=null,re=0;const ge=q=>{ue=(0,d.f)(ae,B,()=>{try{ee.unsubscribe(),(0,M.Xf)(E({meta:Z,lastValue:ne,seen:re})).subscribe(ae)}catch(_e){ae.error(_e)}},q)};ee=Y.subscribe((0,C.x)(ae,q=>{null==ue||ue.unsubscribe(),re++,ae.next(ne=q),k>0&&ge(k)},void 0,void 0,()=>{(null==ue?void 0:ue.closed)||null==ue||ue.unsubscribe(),ne=null})),!re&&ge(null!=S?"number"==typeof S?S:+S-B.now():k)})}function L(w){throw new R(w)}},1365:(Be,K,p)=>{"use strict";p.d(K,{M:()=>d});var t=p(4482),e=p(5403),f=p(8421),M=p(4671),a=p(5032),C=p(3269);function d(...R){const h=(0,C.jO)(R);return(0,t.e)((L,w)=>{const D=R.length,S=new Array(D);let k=R.map(()=>!1),E=!1;for(let B=0;B{S[B]=Z,!E&&!k[B]&&(k[B]=!0,(E=k.every(M.y))&&(k=null))},a.Z));L.subscribe((0,e.x)(w,B=>{if(E){const Z=[B,...S];w.next(h?h(...Z):Z)}}))})}},4408:(Be,K,p)=>{"use strict";p.d(K,{o:()=>a});var t=p(727);class e extends t.w0{constructor(d,R){super()}schedule(d,R=0){return this}}const f={setInterval(C,d,...R){const{delegate:h}=f;return(null==h?void 0:h.setInterval)?h.setInterval(C,d,...R):setInterval(C,d,...R)},clearInterval(C){const{delegate:d}=f;return((null==d?void 0:d.clearInterval)||clearInterval)(C)},delegate:void 0};var M=p(8737);class a extends e{constructor(d,R){super(d,R),this.scheduler=d,this.work=R,this.pending=!1}schedule(d,R=0){var h;if(this.closed)return this;this.state=d;const L=this.id,w=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(w,L,R)),this.pending=!0,this.delay=R,this.id=null!==(h=this.id)&&void 0!==h?h:this.requestAsyncId(w,this.id,R),this}requestAsyncId(d,R,h=0){return f.setInterval(d.flush.bind(d,this),h)}recycleAsyncId(d,R,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return R;null!=R&&f.clearInterval(R)}execute(d,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(d,R);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,R){let L,h=!1;try{this.work(d)}catch(w){h=!0,L=w||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:d,scheduler:R}=this,{actions:h}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(h,this),null!=d&&(this.id=this.recycleAsyncId(R,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(Be,K,p)=>{"use strict";p.d(K,{v:()=>f});var t=p(6063);class e{constructor(a,C=e.now){this.schedulerActionCtor=a,this.now=C}schedule(a,C=0,d){return new this.schedulerActionCtor(this,a).schedule(d,C)}}e.now=t.l.now;class f extends e{constructor(a,C=e.now){super(a,C),this.actions=[],this._active=!1}flush(a){const{actions:C}=this;if(this._active)return void C.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=C.shift());if(this._active=!1,d){for(;a=C.shift();)a.unsubscribe();throw d}}}},3101:(Be,K,p)=>{"use strict";p.d(K,{E:()=>k});var t=p(4408);let f,e=1;const M={};function a(B){return B in M&&(delete M[B],!0)}const C={setImmediate(B){const Z=e++;return M[Z]=!0,f||(f=Promise.resolve()),f.then(()=>a(Z)&&B()),Z},clearImmediate(B){a(B)}},{setImmediate:R,clearImmediate:h}=C,L={setImmediate(...B){const{delegate:Z}=L;return((null==Z?void 0:Z.setImmediate)||R)(...B)},clearImmediate(B){const{delegate:Z}=L;return((null==Z?void 0:Z.clearImmediate)||h)(B)},delegate:void 0};var D=p(7565);const k=new class S extends D.v{flush(Z){this._active=!0;const Y=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let ee;Z=Z||ae.shift();do{if(ee=Z.execute(Z.state,Z.delay))break}while((Z=ae[0])&&Z.id===Y&&ae.shift());if(this._active=!1,ee){for(;(Z=ae[0])&&Z.id===Y&&ae.shift();)Z.unsubscribe();throw ee}}}(class w extends t.o{constructor(Z,Y){super(Z,Y),this.scheduler=Z,this.work=Y}requestAsyncId(Z,Y,ae=0){return null!==ae&&ae>0?super.requestAsyncId(Z,Y,ae):(Z.actions.push(this),Z._scheduled||(Z._scheduled=L.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,Y,ae=0){var ee;if(null!=ae?ae>0:this.delay>0)return super.recycleAsyncId(Z,Y,ae);const{actions:ue}=Z;null!=Y&&(null===(ee=ue[ue.length-1])||void 0===ee?void 0:ee.id)!==Y&&(L.clearImmediate(Y),Z._scheduled=void 0)}})},4986:(Be,K,p)=>{"use strict";p.d(K,{P:()=>M,z:()=>f});var t=p(4408);const f=new(p(7565).v)(t.o),M=f},6063:(Be,K,p)=>{"use strict";p.d(K,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(Be,K,p)=>{"use strict";p.d(K,{N:()=>a});var t=p(4408),f=p(7565);const a=new class M extends f.v{}(class e extends t.o{constructor(R,h){super(R,h),this.scheduler=R,this.work=h}schedule(R,h=0){return h>0?super.schedule(R,h):(this.delay=h,this.state=R,this.scheduler.flush(this),this)}execute(R,h){return h>0||this.closed?super.execute(R,h):this._execute(R,h)}requestAsyncId(R,h,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(R,h,L):(R.flush(this),0)}})},3410:(Be,K,p)=>{"use strict";p.d(K,{z:()=>t});const t={setTimeout(e,f,...M){const{delegate:a}=t;return(null==a?void 0:a.setTimeout)?a.setTimeout(e,f,...M):setTimeout(e,f,...M)},clearTimeout(e){const{delegate:f}=t;return((null==f?void 0:f.clearTimeout)||clearTimeout)(e)},delegate:void 0}},2202:(Be,K,p)=>{"use strict";p.d(K,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Be,K,p)=>{"use strict";p.d(K,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Be,K,p)=>{"use strict";p.d(K,{K:()=>e});const e=(0,p(3888).d)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Be,K,p)=>{"use strict";p.d(K,{_6:()=>C,jO:()=>M,yG:()=>a});var t=p(576),e=p(3532);function f(d){return d[d.length-1]}function M(d){return(0,t.m)(f(d))?d.pop():void 0}function a(d){return(0,e.K)(f(d))?d.pop():void 0}function C(d,R){return"number"==typeof f(d)?d.pop():R}},4742:(Be,K,p)=>{"use strict";p.d(K,{D:()=>a});const{isArray:t}=Array,{getPrototypeOf:e,prototype:f,keys:M}=Object;function a(d){if(1===d.length){const R=d[0];if(t(R))return{args:R,keys:null};if(function C(d){return d&&"object"==typeof d&&e(d)===f}(R)){const h=M(R);return{args:h.map(L=>R[L]),keys:h}}}return{args:d,keys:null}}},8737:(Be,K,p)=>{"use strict";function t(e,f){if(e){const M=e.indexOf(f);0<=M&&e.splice(M,1)}}p.d(K,{P:()=>t})},3888:(Be,K,p)=>{"use strict";function t(e){const M=e(a=>{Error.call(a),a.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(K,{d:()=>t})},1810:(Be,K,p)=>{"use strict";function t(e,f){return e.reduce((M,a,C)=>(M[a]=f[C],M),{})}p.d(K,{n:()=>t})},2806:(Be,K,p)=>{"use strict";p.d(K,{O:()=>M,x:()=>f});var t=p(2416);let e=null;function f(a){if(t.v.useDeprecatedSynchronousErrorHandling){const C=!e;if(C&&(e={errorThrown:!1,error:null}),a(),C){const{errorThrown:d,error:R}=e;if(e=null,d)throw R}}else a()}function M(a){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},9672:(Be,K,p)=>{"use strict";function t(e,f,M,a=0,C=!1){const d=f.schedule(function(){M(),C?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(d),!C)return d}p.d(K,{f:()=>t})},4671:(Be,K,p)=>{"use strict";function t(e){return e}p.d(K,{y:()=>t})},1144:(Be,K,p)=>{"use strict";p.d(K,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(Be,K,p)=>{"use strict";p.d(K,{D:()=>e});var t=p(576);function e(f){return Symbol.asyncIterator&&(0,t.m)(null==f?void 0:f[Symbol.asyncIterator])}},1165:(Be,K,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(K,{q:()=>t})},576:(Be,K,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(K,{m:()=>t})},3670:(Be,K,p)=>{"use strict";p.d(K,{c:()=>f});var t=p(8822),e=p(576);function f(M){return(0,e.m)(M[t.L])}},6495:(Be,K,p)=>{"use strict";p.d(K,{T:()=>f});var t=p(2202),e=p(576);function f(M){return(0,e.m)(null==M?void 0:M[t.h])}},5191:(Be,K,p)=>{"use strict";p.d(K,{b:()=>f});var t=p(8306),e=p(576);function f(M){return!!M&&(M instanceof t.y||(0,e.m)(M.lift)&&(0,e.m)(M.subscribe))}},8239:(Be,K,p)=>{"use strict";p.d(K,{t:()=>e});var t=p(576);function e(f){return(0,t.m)(null==f?void 0:f.then)}},3260:(Be,K,p)=>{"use strict";p.d(K,{L:()=>M,Q:()=>f});var t=p(655),e=p(576);function f(a){return(0,t.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:R,done:h}=yield(0,t.qq)(d.read());if(h)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(R)}}finally{d.releaseLock()}})}function M(a){return(0,e.m)(null==a?void 0:a.getReader)}},3532:(Be,K,p)=>{"use strict";p.d(K,{K:()=>e});var t=p(576);function e(f){return f&&(0,t.m)(f.schedule)}},4482:(Be,K,p)=>{"use strict";p.d(K,{A:()=>e,e:()=>f});var t=p(576);function e(M){return(0,t.m)(null==M?void 0:M.lift)}function f(M){return a=>{if(e(a))return a.lift(function(C){try{return M(C,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Be,K,p)=>{"use strict";p.d(K,{Z:()=>M});var t=p(4004);const{isArray:e}=Array;function M(a){return(0,t.U)(C=>function f(a,C){return e(C)?a(...C):a(C)}(a,C))}},5032:(Be,K,p)=>{"use strict";function t(){}p.d(K,{Z:()=>t})},7849:(Be,K,p)=>{"use strict";p.d(K,{h:()=>f});var t=p(2416),e=p(3410);function f(M){e.z.setTimeout(()=>{const{onUnhandledError:a}=t.v;if(!a)throw M;a(M)})}},4532:(Be,K,p)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(K,{z:()=>t})},3502:(Be,K,p)=>{var t=p(3172),e=t.Buffer;function f(a,C){for(var d in a)C[d]=a[d]}function M(a,C,d){return e(a,C,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Be.exports=t:(f(t,K),K.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,C,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,C,d)},M.alloc=function(a,C,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var R=e(a);return void 0!==C?"string"==typeof d?R.fill(C,d):R.fill(C):R.fill(0),R},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2038:(Be,K,p)=>{"use strict";var M,t=p(3172),e=t.Buffer,f={};for(M in t)!t.hasOwnProperty(M)||"SlowBuffer"===M||"Buffer"===M||(f[M]=t[M]);var a=f.Buffer={};for(M in e)!e.hasOwnProperty(M)||"allocUnsafe"===M||"allocUnsafeSlow"===M||(a[M]=e[M]);if(f.Buffer.prototype=e.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(C,d,R){if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof C);if(C&&void 0===C.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);return e(C,d,R)}),a.alloc||(a.alloc=function(C,d,R){if("number"!=typeof C)throw new TypeError('The "size" argument must be of type number. Received type '+typeof C);if(C<0||C>=2*(1<<30))throw new RangeError('The value "'+C+'" is invalid for option "size"');var h=e(C);return d&&0!==d.length?"string"==typeof R?h.fill(d,R):h.fill(d):h.fill(0),h}),!f.kStringMaxLength)try{f.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(C){}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),Be.exports=f},6692:(Be,K,p)=>{var t=p(3502).Buffer;function e(f,M){this._block=t.alloc(f),this._finalSize=M,this._blockSize=f,this._len=0}e.prototype.update=function(f,M){"string"==typeof f&&(f=t.from(f,M=M||"utf8"));for(var a=this._block,C=this._blockSize,d=f.length,R=this._len,h=0;h=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var C=(4294967295&a)>>>0;this._block.writeUInt32BE((a-C)/4294967296,this._blockSize-8),this._block.writeUInt32BE(C,this._blockSize-4)}this._update(this._block);var R=this._hash();return f?R.toString(f):R},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Be.exports=e},5244:(Be,K,p)=>{var t=Be.exports=function(f){f=f.toLowerCase();var M=t[f];if(!M)throw new Error(f+" is not supported (we accept pull requests)");return new M};t.sha=p(8932),t.sha1=p(7736),t.sha224=p(5044),t.sha256=p(5014),t.sha384=p(6540),t.sha512=p(117)},8932:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function C(){this.init(),this._w=a,e.call(this,64,56)}function d(L){return L<<5|L>>>27}function R(L){return L<<30|L>>>2}function h(L,w,D,S){return 0===L?w&D|~w&S:2===L?w&D|w&S|D&S:w^D^S}t(C,e),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(L){for(var w=this._w,D=0|this._a,S=0|this._b,k=0|this._c,E=0|this._d,B=0|this._e,Z=0;Z<16;++Z)w[Z]=L.readInt32BE(4*Z);for(;Z<80;++Z)w[Z]=w[Z-3]^w[Z-8]^w[Z-14]^w[Z-16];for(var Y=0;Y<80;++Y){var ae=~~(Y/20),ee=d(D)+h(ae,S,k,E)+B+w[Y]+M[ae]|0;B=E,E=k,k=R(S),S=D,D=ee}this._a=D+this._a|0,this._b=S+this._b|0,this._c=k+this._c|0,this._d=E+this._d|0,this._e=B+this._e|0},C.prototype._hash=function(){var L=f.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},Be.exports=C},7736:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function C(){this.init(),this._w=a,e.call(this,64,56)}function d(w){return w<<1|w>>>31}function R(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function L(w,D,S,k){return 0===w?D&S|~D&k:2===w?D&S|D&k|S&k:D^S^k}t(C,e),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(w){for(var D=this._w,S=0|this._a,k=0|this._b,E=0|this._c,B=0|this._d,Z=0|this._e,Y=0;Y<16;++Y)D[Y]=w.readInt32BE(4*Y);for(;Y<80;++Y)D[Y]=d(D[Y-3]^D[Y-8]^D[Y-14]^D[Y-16]);for(var ae=0;ae<80;++ae){var ee=~~(ae/20),ue=R(S)+L(ee,k,E,B)+Z+D[ae]+M[ee]|0;Z=B,B=E,E=h(k),k=S,S=ue}this._a=S+this._a|0,this._b=k+this._b|0,this._c=E+this._c|0,this._d=B+this._d|0,this._e=Z+this._e|0},C.prototype._hash=function(){var w=f.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},Be.exports=C},5044:(Be,K,p)=>{var t=p(3894),e=p(5014),f=p(6692),M=p(3502).Buffer,a=new Array(64);function C(){this.init(),this._w=a,f.call(this,64,56)}t(C,e),C.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},C.prototype._hash=function(){var d=M.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},Be.exports=C},5014:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 C(){this.init(),this._w=a,e.call(this,64,56)}function d(S,k,E){return E^S&(k^E)}function R(S,k,E){return S&k|E&(S|k)}function h(S){return(S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10)}function L(S){return(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7)}function w(S){return(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3}function D(S){return(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10}t(C,e),C.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},C.prototype._update=function(S){for(var k=this._w,E=0|this._a,B=0|this._b,Z=0|this._c,Y=0|this._d,ae=0|this._e,ee=0|this._f,ue=0|this._g,ne=0|this._h,re=0;re<16;++re)k[re]=S.readInt32BE(4*re);for(;re<64;++re)k[re]=D(k[re-2])+k[re-7]+w(k[re-15])+k[re-16]|0;for(var ge=0;ge<64;++ge){var q=ne+L(ae)+d(ae,ee,ue)+M[ge]+k[ge]|0,_e=h(E)+R(E,B,Z)|0;ne=ue,ue=ee,ee=ae,ae=Y+q|0,Y=Z,Z=B,B=E,E=q+_e|0}this._a=E+this._a|0,this._b=B+this._b|0,this._c=Z+this._c|0,this._d=Y+this._d|0,this._e=ae+this._e|0,this._f=ee+this._f|0,this._g=ue+this._g|0,this._h=ne+this._h|0},C.prototype._hash=function(){var S=f.allocUnsafe(32);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S.writeInt32BE(this._h,28),S},Be.exports=C},6540:(Be,K,p)=>{var t=p(3894),e=p(117),f=p(6692),M=p(3502).Buffer,a=new Array(160);function C(){this.init(),this._w=a,f.call(this,128,112)}t(C,e),C.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},C.prototype._hash=function(){var d=M.allocUnsafe(48);function R(h,L,w){d.writeInt32BE(h,w),d.writeInt32BE(L,w+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),d},Be.exports=C},117:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 C(){this.init(),this._w=a,e.call(this,128,112)}function d(B,Z,Y){return Y^B&(Z^Y)}function R(B,Z,Y){return B&Z|Y&(B|Z)}function h(B,Z){return(B>>>28|Z<<4)^(Z>>>2|B<<30)^(Z>>>7|B<<25)}function L(B,Z){return(B>>>14|Z<<18)^(B>>>18|Z<<14)^(Z>>>9|B<<23)}function w(B,Z){return(B>>>1|Z<<31)^(B>>>8|Z<<24)^B>>>7}function D(B,Z){return(B>>>1|Z<<31)^(B>>>8|Z<<24)^(B>>>7|Z<<25)}function S(B,Z){return(B>>>19|Z<<13)^(Z>>>29|B<<3)^B>>>6}function k(B,Z){return(B>>>19|Z<<13)^(Z>>>29|B<<3)^(B>>>6|Z<<26)}function E(B,Z){return B>>>0>>0?1:0}t(C,e),C.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},C.prototype._update=function(B){for(var Z=this._w,Y=0|this._ah,ae=0|this._bh,ee=0|this._ch,ue=0|this._dh,ne=0|this._eh,re=0|this._fh,ge=0|this._gh,q=0|this._hh,_e=0|this._al,x=0|this._bl,i=0|this._cl,r=0|this._dl,u=0|this._el,c=0|this._fl,v=0|this._gl,T=0|this._hl,I=0;I<32;I+=2)Z[I]=B.readInt32BE(4*I),Z[I+1]=B.readInt32BE(4*I+4);for(;I<160;I+=2){var y=Z[I-30],n=Z[I-30+1],_=w(y,n),V=D(n,y),N=S(y=Z[I-4],n=Z[I-4+1]),H=k(n,y),be=Z[I-32],Pe=Z[I-32+1],Ee=V+Z[I-14+1]|0,j=_+Z[I-14]+E(Ee,V)|0;j=(j=j+N+E(Ee=Ee+H|0,H)|0)+be+E(Ee=Ee+Pe|0,Pe)|0,Z[I]=j,Z[I+1]=Ee}for(var Ve=0;Ve<160;Ve+=2){j=Z[Ve],Ee=Z[Ve+1];var Me=R(Y,ae,ee),J=R(_e,x,i),Ie=h(Y,_e),ut=h(_e,Y),Oe=L(ne,u),we=L(u,ne),ce=M[Ve],Te=M[Ve+1],xe=d(ne,re,ge),W=d(u,c,v),te=T+we|0,Ce=q+Oe+E(te,T)|0;Ce=(Ce=(Ce=Ce+xe+E(te=te+W|0,W)|0)+ce+E(te=te+Te|0,Te)|0)+j+E(te=te+Ee|0,Ee)|0;var fe=ut+J|0,Q=Ie+Me+E(fe,ut)|0;q=ge,T=v,ge=re,v=c,re=ne,c=u,ne=ue+Ce+E(u=r+te|0,r)|0,ue=ee,r=i,ee=ae,i=x,ae=Y,x=_e,Y=Ce+Q+E(_e=te+fe|0,te)|0}this._al=this._al+_e|0,this._bl=this._bl+x|0,this._cl=this._cl+i|0,this._dl=this._dl+r|0,this._el=this._el+u|0,this._fl=this._fl+c|0,this._gl=this._gl+v|0,this._hl=this._hl+T|0,this._ah=this._ah+Y+E(this._al,_e)|0,this._bh=this._bh+ae+E(this._bl,x)|0,this._ch=this._ch+ee+E(this._cl,i)|0,this._dh=this._dh+ue+E(this._dl,r)|0,this._eh=this._eh+ne+E(this._el,u)|0,this._fh=this._fh+re+E(this._fl,c)|0,this._gh=this._gh+ge+E(this._gl,v)|0,this._hh=this._hh+q+E(this._hl,T)|0},C.prototype._hash=function(){var B=f.allocUnsafe(64);function Z(Y,ae,ee){B.writeInt32BE(Y,ee),B.writeInt32BE(ae,ee+4)}return Z(this._ah,this._al,0),Z(this._bh,this._bl,8),Z(this._ch,this._cl,16),Z(this._dh,this._dl,24),Z(this._eh,this._el,32),Z(this._fh,this._fl,40),Z(this._gh,this._gl,48),Z(this._hh,this._hl,56),B},Be.exports=C},8012:function(Be,K,p){!function(t){"use strict";var e={};Be.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),Be.exports=R):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=R);var f=[];!function(){function h(S){for(var k=Math.sqrt(S),E=2;E<=k;E++)if(!(S%E))return!1;return!0}for(var w=2,D=0;D<64;)h(w)&&(f[D]=4294967296*((S=Math.pow(w,1/3))-(0|S))|0,D++),w++;var S}();var C=[],d=function(h,L,w){for(var D=h[0],S=h[1],k=h[2],E=h[3],B=h[4],Z=h[5],Y=h[6],ae=h[7],ee=0;ee<64;ee++){if(ee<16)C[ee]=0|L[w+ee];else{var ue=C[ee-15],re=C[ee-2];C[ee]=((ue<<25|ue>>>7)^(ue<<14|ue>>>18)^ue>>>3)+C[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+C[ee-16]}var _e=D&S^D&k^S&k,r=ae+((B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25))+(B&Z^~B&Y)+f[ee]+C[ee];ae=Y,Y=Z,Z=B,B=E+r|0,E=k,k=S,S=D,D=r+(((D<<30|D>>>2)^(D<<19|D>>>13)^(D<<10|D>>>22))+_e)|0}h[0]=h[0]+D|0,h[1]=h[1]+S|0,h[2]=h[2]+k|0,h[3]=h[3]+E|0,h[4]=h[4]+B|0,h[5]=h[5]+Z|0,h[6]=h[6]+Y|0,h[7]=h[7]+ae|0};function R(h,L){h.constructor===String&&(h=e.convertString.UTF8.stringToBytes(h));var w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],D=function(h){for(var L=[],w=0,D=0;w>>5]|=h[w]<<24-D%32;return L}(h),S=8*h.length;D[S>>5]|=128<<24-S%32,D[15+(S+64>>9<<4)]=S;for(var k=0;k>>5]>>>24-w%32&255);return L}(w);return L&&L.asBytes?E:L&&L.asString?e.convertString.bytesToString(E):e.bytesToHex(E)}R.x2=function(h,L){return R(R(h,{asBytes:!0}),L)}}(this)},4315:(Be,K,p)=>{"use strict";const t=Symbol.prototype.valueOf,e=p(2872);Be.exports=function f(h,L){switch(e(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const L=h.length,w=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return h.copy(w),w}(h);case"symbol":return function R(h){return t?Object(t.call(h)):{}}(h);case"arraybuffer":return function a(h){const L=new h.constructor(h.byteLength);return new Uint8Array(L).set(new Uint8Array(h)),L}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function C(h,L){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function M(h){const L=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,w=new h.constructor(h.source,L);return w.lastIndex=h.lastIndex,w}(h);case"error":return Object.create(h);default:return h}}},295:(Be,K,p)=>{Be.exports=f;var t=p(9069).EventEmitter;function f(){t.call(this)}p(3894)(f,t),f.Readable=p(3154),f.Writable=p(520),f.Duplex=p(1339),f.Transform=p(6025),f.PassThrough=p(6071),f.finished=p(7542),f.pipeline=p(954),f.Stream=f,f.prototype.pipe=function(M,a){var C=this;function d(k){M.writable&&!1===M.write(k)&&C.pause&&C.pause()}function R(){C.readable&&C.resume&&C.resume()}C.on("data",d),M.on("drain",R),!M._isStdio&&(!a||!1!==a.end)&&(C.on("end",L),C.on("close",w));var h=!1;function L(){h||(h=!0,M.end())}function w(){h||(h=!0,"function"==typeof M.destroy&&M.destroy())}function D(k){if(S(),0===t.listenerCount(this,"error"))throw k}function S(){C.removeListener("data",d),M.removeListener("drain",R),C.removeListener("end",L),C.removeListener("close",w),C.removeListener("error",D),M.removeListener("error",D),C.removeListener("end",S),C.removeListener("close",S),M.removeListener("close",S)}return C.on("error",D),M.on("error",D),C.on("end",S),C.on("close",S),M.on("close",S),M.emit("pipe",C),M}},3054:(Be,K,p)=>{"use strict";var t=p(3502).Buffer,e=t.isEncoding||function(Y){switch((Y=""+Y)&&Y.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 a(Y){var ae;switch(this.encoding=function M(Y){var ae=function f(Y){if(!Y)return"utf8";for(var ae;;)switch(Y){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 Y;default:if(ae)return;Y=(""+Y).toLowerCase(),ae=!0}}(Y);if("string"!=typeof ae&&(t.isEncoding===e||!e(Y)))throw new Error("Unknown encoding: "+Y);return ae||Y}(Y),this.encoding){case"utf16le":this.text=D,this.end=S,ae=4;break;case"utf8":this.fillLast=h,ae=4;break;case"base64":this.text=k,this.end=E,ae=3;break;default:return this.write=B,void(this.end=Z)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(ae)}function C(Y){return Y<=127?0:Y>>5==6?2:Y>>4==14?3:Y>>3==30?4:Y>>6==2?-1:-2}function h(Y){var ae=this.lastTotal-this.lastNeed,ee=function R(Y,ae,ee){if(128!=(192&ae[0]))return Y.lastNeed=0,"\ufffd";if(Y.lastNeed>1&&ae.length>1){if(128!=(192&ae[1]))return Y.lastNeed=1,"\ufffd";if(Y.lastNeed>2&&ae.length>2&&128!=(192&ae[2]))return Y.lastNeed=2,"\ufffd"}}(this,Y);return void 0!==ee?ee:this.lastNeed<=Y.length?(Y.copy(this.lastChar,ae,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Y.copy(this.lastChar,ae,0,Y.length),void(this.lastNeed-=Y.length))}function D(Y,ae){if((Y.length-ae)%2==0){var ee=Y.toString("utf16le",ae);if(ee){var ue=ee.charCodeAt(ee.length-1);if(ue>=55296&&ue<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Y[Y.length-2],this.lastChar[1]=Y[Y.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Y[Y.length-1],Y.toString("utf16le",ae,Y.length-1)}function S(Y){var ae=Y&&Y.length?this.write(Y):"";return this.lastNeed?ae+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ae}function k(Y,ae){var ee=(Y.length-ae)%3;return 0===ee?Y.toString("base64",ae):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=Y[Y.length-1]:(this.lastChar[0]=Y[Y.length-2],this.lastChar[1]=Y[Y.length-1]),Y.toString("base64",ae,Y.length-ee))}function E(Y){var ae=Y&&Y.length?this.write(Y):"";return this.lastNeed?ae+this.lastChar.toString("base64",0,3-this.lastNeed):ae}function B(Y){return Y.toString(this.encoding)}function Z(Y){return Y&&Y.length?this.write(Y):""}K.s=a,a.prototype.write=function(Y){if(0===Y.length)return"";var ae,ee;if(this.lastNeed){if(void 0===(ae=this.fillLast(Y)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(ne>0&&(Y.lastNeed=ne-1),ne):--ue=0?(ne>0&&(Y.lastNeed=ne-2),ne):--ue=0?(ne>0&&(2===ne?ne=0:Y.lastNeed=ne-3),ne):0}(this,Y,ae);if(!this.lastNeed)return Y.toString("utf8",ae);this.lastTotal=ee;var ue=Y.length-(ee-this.lastNeed);return Y.copy(this.lastChar,0,ue),Y.toString("utf8",ae,ue)},a.prototype.fillLast=function(Y){if(this.lastNeed<=Y.length)return Y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Y.length),this.lastNeed-=Y.length}},2167:(Be,K,p)=>{var t=p(4606);K.encode=t.encode,K.decode=t.decode},4606:(Be,K)=>{"use strict";var t=[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];K.encode=function(f){Buffer.isBuffer(f)||(f=new Buffer(f));for(var M=0,a=0,C=0,d=0,R=new Buffer(8*function e(f){var M=Math.floor(f.length/5);return f.length%5==0?M:M+1}(f));M3?(d=(d=h&255>>C)<<(C=(C+5)%8)|(M+1>8-C,M++):(d=h>>8-(C+5)&31,0==(C=(C+5)%8)&&M++),R[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(M=a;M>>(M=(M+5)%8),d++,C=255&a<<8-M)}return R.slice(0,d)}},4364:Be=>{function p(t){try{if(!global.localStorage)return!1}catch(f){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}Be.exports=function K(t,e){if(p("noDeprecation"))return t;var f=!1;return function M(){if(!f){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),f=!0}return t.apply(this,arguments)}}},655:(Be,K,p)=>{"use strict";function a(i,r,u,c){var I,v=arguments.length,T=v<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,u):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(i,r,u,c);else for(var y=i.length-1;y>=0;y--)(I=i[y])&&(T=(v<3?I(T):v>3?I(r,u,T):I(r,u))||T);return v>3&&T&&Object.defineProperty(r,u,T),T}function R(i,r,u,c){return new(u||(u=Promise))(function(T,I){function y(V){try{_(c.next(V))}catch(N){I(N)}}function n(V){try{_(c.throw(V))}catch(N){I(N)}}function _(V){V.done?T(V.value):function v(T){return T instanceof u?T:new u(function(I){I(T)})}(V.value).then(y,n)}_((c=c.apply(i,r||[])).next())})}function Z(i){return this instanceof Z?(this.v=i,this):new Z(i)}function Y(i,r,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,c=u.apply(i,r||[]),T=[];return v={},I("next"),I("throw"),I("return"),v[Symbol.asyncIterator]=function(){return this},v;function I(H){c[H]&&(v[H]=function(X){return new Promise(function(he,be){T.push([H,X,he,be])>1||y(H,X)})})}function y(H,X){try{!function n(H){H.value instanceof Z?Promise.resolve(H.value.v).then(_,V):N(T[0][2],H)}(c[H](X))}catch(he){N(T[0][3],he)}}function _(H){y("next",H)}function V(H){y("throw",H)}function N(H,X){H(X),T.shift(),T.length&&y(T[0][0],T[0][1])}}function ee(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function D(i){var r="function"==typeof Symbol&&Symbol.iterator,u=r&&i[r],c=0;if(u)return u.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u={},c("next"),c("throw"),c("return"),u[Symbol.asyncIterator]=function(){return this},u);function c(T){u[T]=i[T]&&function(I){return new Promise(function(y,n){!function v(T,I,y,n){Promise.resolve(n).then(function(_){T({value:_,done:y})},I)}(y,n,(I=i[T](I)).done,I.value)})}}}p.d(K,{FC:()=>Y,KL:()=>ee,gn:()=>a,mG:()=>R,qq:()=>Z})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Be,K,p)=>{"use strict";p.d(K,{F4:()=>L,IO:()=>E,LC:()=>e,SB:()=>h,X$:()=>M,ZE:()=>ae,ZN:()=>Y,_j:()=>t,eR:()=>w,jt:()=>a,k1:()=>ee,l3:()=>f,oB:()=>R,pV:()=>S,ru:()=>C,vP:()=>d});class t{}class e{}const f="*";function M(ue,ne){return{type:7,name:ue,definitions:ne,options:{}}}function a(ue,ne=null){return{type:4,styles:ne,timings:ue}}function C(ue,ne=null){return{type:3,steps:ue,options:ne}}function d(ue,ne=null){return{type:2,steps:ue,options:ne}}function R(ue){return{type:6,styles:ue,offset:null}}function h(ue,ne,re){return{type:0,name:ue,styles:ne,options:re}}function L(ue){return{type:5,steps:ue}}function w(ue,ne,re=null){return{type:1,expr:ue,animation:ne,options:re}}function S(ue=null){return{type:9,options:ue}}function E(ue,ne,re=null){return{type:11,selector:ue,animation:ne,options:re}}function Z(ue){Promise.resolve(null).then(ue)}class Y{constructor(ne=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ne+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ne=>ne()),this._onDoneFns=[])}onStart(ne){this._onStartFns.push(ne)}onDone(ne){this._onDoneFns.push(ne)}onDestroy(ne){this._onDestroyFns.push(ne)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ne=>ne()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ne=>ne()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ne){this._position=this.totalTime?ne*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ne){const re="start"==ne?this._onStartFns:this._onDoneFns;re.forEach(ge=>ge()),re.length=0}}class ae{constructor(ne){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ne;let re=0,ge=0,q=0;const _e=this.players.length;0==_e?Z(()=>this._onFinish()):this.players.forEach(x=>{x.onDone(()=>{++re==_e&&this._onFinish()}),x.onDestroy(()=>{++ge==_e&&this._onDestroy()}),x.onStart(()=>{++q==_e&&this._onStart()})}),this.totalTime=this.players.reduce((x,i)=>Math.max(x,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ne=>ne()),this._onDoneFns=[])}init(){this.players.forEach(ne=>ne.init())}onStart(ne){this._onStartFns.push(ne)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ne=>ne()),this._onStartFns=[])}onDone(ne){this._onDoneFns.push(ne)}onDestroy(ne){this._onDestroyFns.push(ne)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ne=>ne.play())}pause(){this.players.forEach(ne=>ne.pause())}restart(){this.players.forEach(ne=>ne.restart())}finish(){this._onFinish(),this.players.forEach(ne=>ne.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ne=>ne.destroy()),this._onDestroyFns.forEach(ne=>ne()),this._onDestroyFns=[])}reset(){this.players.forEach(ne=>ne.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ne){const re=ne*this.totalTime;this.players.forEach(ge=>{const q=ge.totalTime?Math.min(1,re/ge.totalTime):1;ge.setPosition(q)})}getPosition(){const ne=this.players.reduce((re,ge)=>null===re||ge.totalTime>re.totalTime?ge:re,null);return null!=ne?ne.getPosition():0}beforeDestroy(){this.players.forEach(ne=>{ne.beforeDestroy&&ne.beforeDestroy()})}triggerCallback(ne){const re="start"==ne?this._onStartFns:this._onDoneFns;re.forEach(ge=>ge()),re.length=0}}const ee="!"},5664:(Be,K,p)=>{"use strict";p.d(K,{$s:()=>x,Em:()=>v,Kd:()=>di,X6:()=>Te,ic:()=>I,kH:()=>Nt,mK:()=>J,qV:()=>Me,qm:()=>ti,rt:()=>Qt,s1:()=>c,tE:()=>Ot,yG:()=>xe});var t=p(9808),e=p(5e3),f=p(925),M=p(7579),a=p(727),C=p(1135),d=p(9646),R=p(1159),h=p(8505),L=p(8372),w=p(9300),D=p(4004),S=p(5698),k=p(5684),E=p(1884),B=p(2722),Z=p(3191),Y=p(7144);function ne(Re,ke){return(Re.getAttribute(ke)||"").match(/\S+/g)||[]}const ge="cdk-describedby-message",q="cdk-describedby-host";let _e=0,x=(()=>{class Re{constructor(de,ye){this._platform=ye,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+_e++,this._document=de}describe(de,ye,ht){if(!this._canBeDescribed(de,ye))return;const mt=i(ye,ht);"string"!=typeof ye?(r(ye),this._messageRegistry.set(mt,{messageElement:ye,referenceCount:0})):this._messageRegistry.has(mt)||this._createMessageElement(ye,ht),this._isElementDescribedByMessage(de,mt)||this._addMessageReference(de,mt)}removeDescription(de,ye,ht){var mt;if(!ye||!this._isElementNode(de))return;const Ft=i(ye,ht);if(this._isElementDescribedByMessage(de,Ft)&&this._removeMessageReference(de,Ft),"string"==typeof ye){const nt=this._messageRegistry.get(Ft);nt&&0===nt.referenceCount&&this._deleteMessageElement(Ft)}0===(null===(mt=this._messagesContainer)||void 0===mt?void 0:mt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var de;const ye=this._document.querySelectorAll(`[${q}="${this._id}"]`);for(let ht=0;ht0!=ht.indexOf(ge));de.setAttribute("aria-describedby",ye.join(" "))}_addMessageReference(de,ye){const ht=this._messageRegistry.get(ye);(function ee(Re,ke,de){const ye=ne(Re,ke);ye.some(ht=>ht.trim()==de.trim())||(ye.push(de.trim()),Re.setAttribute(ke,ye.join(" ")))})(de,"aria-describedby",ht.messageElement.id),de.setAttribute(q,this._id),ht.referenceCount++}_removeMessageReference(de,ye){const ht=this._messageRegistry.get(ye);ht.referenceCount--,function ue(Re,ke,de){const ht=ne(Re,ke).filter(mt=>mt!=de.trim());ht.length?Re.setAttribute(ke,ht.join(" ")):Re.removeAttribute(ke)}(de,"aria-describedby",ht.messageElement.id),de.removeAttribute(q)}_isElementDescribedByMessage(de,ye){const ht=ne(de,"aria-describedby"),mt=this._messageRegistry.get(ye),Ft=mt&&mt.messageElement.id;return!!Ft&&-1!=ht.indexOf(Ft)}_canBeDescribed(de,ye){if(!this._isElementNode(de))return!1;if(ye&&"object"==typeof ye)return!0;const ht=null==ye?"":`${ye}`.trim(),mt=de.getAttribute("aria-label");return!(!ht||mt&&mt.trim()===ht)}_isElementNode(de){return de.nodeType===this._document.ELEMENT_NODE}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(t.K0),e.LFG(f.t4))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function i(Re,ke){return"string"==typeof Re?`${ke||""}/${Re}`:Re}function r(Re){Re.id||(Re.id=`${ge}-${_e++}`)}class u{constructor(ke){this._items=ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=de=>de.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,ke instanceof e.n_E&&ke.changes.subscribe(de=>{if(this._activeItem){const ht=de.toArray().indexOf(this._activeItem);ht>-1&&ht!==this._activeItemIndex&&(this._activeItemIndex=ht)}})}skipPredicate(ke){return this._skipPredicateFn=ke,this}withWrap(ke=!0){return this._wrap=ke,this}withVerticalOrientation(ke=!0){return this._vertical=ke,this}withHorizontalOrientation(ke){return this._horizontal=ke,this}withAllowedModifierKeys(ke){return this._allowedModifierKeys=ke,this}withTypeAhead(ke=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(de=>this._pressedLetters.push(de)),(0,L.b)(ke),(0,w.h)(()=>this._pressedLetters.length>0),(0,D.U)(()=>this._pressedLetters.join(""))).subscribe(de=>{const ye=this._getItemsArray();for(let ht=1;ht!ke[mt]||this._allowedModifierKeys.indexOf(mt)>-1);switch(de){case R.Mf:return void this.tabOut.next();case R.JH:if(this._vertical&&ht){this.setNextItemActive();break}return;case R.LH:if(this._vertical&&ht){this.setPreviousItemActive();break}return;case R.SV:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case R.oh:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case R.Sd:if(this._homeAndEnd&&ht){this.setFirstItemActive();break}return;case R.uR:if(this._homeAndEnd&&ht){this.setLastItemActive();break}return;default:return void((ht||(0,R.Vb)(ke,"shiftKey"))&&(ke.key&&1===ke.key.length?this._letterKeyStream.next(ke.key.toLocaleUpperCase()):(de>=R.A&&de<=R.Z||de>=R.xE&&de<=R.aO)&&this._letterKeyStream.next(String.fromCharCode(de))))}this._pressedLetters=[],ke.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(ke){const de=this._getItemsArray(),ye="number"==typeof ke?ke:de.indexOf(ke),ht=de[ye];this._activeItem=null==ht?null:ht,this._activeItemIndex=ye}_setActiveItemByDelta(ke){this._wrap?this._setActiveInWrapMode(ke):this._setActiveInDefaultMode(ke)}_setActiveInWrapMode(ke){const de=this._getItemsArray();for(let ye=1;ye<=de.length;ye++){const ht=(this._activeItemIndex+ke*ye+de.length)%de.length;if(!this._skipPredicateFn(de[ht]))return void this.setActiveItem(ht)}}_setActiveInDefaultMode(ke){this._setActiveItemByIndex(this._activeItemIndex+ke,ke)}_setActiveItemByIndex(ke,de){const ye=this._getItemsArray();if(ye[ke]){for(;this._skipPredicateFn(ye[ke]);)if(!ye[ke+=de])return;this.setActiveItem(ke)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class c extends u{setActiveItem(ke){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ke),this.activeItem&&this.activeItem.setActiveStyles()}}class v extends u{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ke){return this._origin=ke,this}setActiveItem(ke){super.setActiveItem(ke),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Re{constructor(de){this._platform=de}isDisabled(de){return de.hasAttribute("disabled")}isVisible(de){return function n(Re){return!!(Re.offsetWidth||Re.offsetHeight||"function"==typeof Re.getClientRects&&Re.getClientRects().length)}(de)&&"visible"===getComputedStyle(de).visibility}isTabbable(de){if(!this._platform.isBrowser)return!1;const ye=function y(Re){try{return Re.frameElement}catch(ke){return null}}(function j(Re){return Re.ownerDocument&&Re.ownerDocument.defaultView||window}(de));if(ye&&(-1===be(ye)||!this.isVisible(ye)))return!1;let ht=de.nodeName.toLowerCase(),mt=be(de);return de.hasAttribute("contenteditable")?-1!==mt:!("iframe"===ht||"object"===ht||this._platform.WEBKIT&&this._platform.IOS&&!function Pe(Re){let ke=Re.nodeName.toLowerCase(),de="input"===ke&&Re.type;return"text"===de||"password"===de||"select"===ke||"textarea"===ke}(de))&&("audio"===ht?!!de.hasAttribute("controls")&&-1!==mt:"video"===ht?-1!==mt&&(null!==mt||this._platform.FIREFOX||de.hasAttribute("controls")):de.tabIndex>=0)}isFocusable(de,ye){return function Ee(Re){return!function V(Re){return function H(Re){return"input"==Re.nodeName.toLowerCase()}(Re)&&"hidden"==Re.type}(Re)&&(function _(Re){let ke=Re.nodeName.toLowerCase();return"input"===ke||"select"===ke||"button"===ke||"textarea"===ke}(Re)||function N(Re){return function X(Re){return"a"==Re.nodeName.toLowerCase()}(Re)&&Re.hasAttribute("href")}(Re)||Re.hasAttribute("contenteditable")||he(Re))}(de)&&!this.isDisabled(de)&&((null==ye?void 0:ye.ignoreVisibility)||this.isVisible(de))}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(f.t4))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function he(Re){if(!Re.hasAttribute("tabindex")||void 0===Re.tabIndex)return!1;let ke=Re.getAttribute("tabindex");return!(!ke||isNaN(parseInt(ke,10)))}function be(Re){if(!he(Re))return null;const ke=parseInt(Re.getAttribute("tabindex")||"",10);return isNaN(ke)?-1:ke}class Ve{constructor(ke,de,ye,ht,mt=!1){this._element=ke,this._checker=de,this._ngZone=ye,this._document=ht,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,mt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ke){this._enabled=ke,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ke,this._startAnchor),this._toggleAnchorTabIndex(ke,this._endAnchor))}destroy(){const ke=this._startAnchor,de=this._endAnchor;ke&&(ke.removeEventListener("focus",this.startAnchorListener),ke.remove()),de&&(de.removeEventListener("focus",this.endAnchorListener),de.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(ke){return new Promise(de=>{this._executeOnStable(()=>de(this.focusInitialElement(ke)))})}focusFirstTabbableElementWhenReady(ke){return new Promise(de=>{this._executeOnStable(()=>de(this.focusFirstTabbableElement(ke)))})}focusLastTabbableElementWhenReady(ke){return new Promise(de=>{this._executeOnStable(()=>de(this.focusLastTabbableElement(ke)))})}_getRegionBoundary(ke){const de=this._element.querySelectorAll(`[cdk-focus-region-${ke}], [cdkFocusRegion${ke}], [cdk-focus-${ke}]`);return"start"==ke?de.length?de[0]:this._getFirstTabbableElement(this._element):de.length?de[de.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ke){const de=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(de){if(!this._checker.isFocusable(de)){const ye=this._getFirstTabbableElement(de);return null==ye||ye.focus(ke),!!ye}return de.focus(ke),!0}return this.focusFirstTabbableElement(ke)}focusFirstTabbableElement(ke){const de=this._getRegionBoundary("start");return de&&de.focus(ke),!!de}focusLastTabbableElement(ke){const de=this._getRegionBoundary("end");return de&&de.focus(ke),!!de}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ke){if(this._checker.isFocusable(ke)&&this._checker.isTabbable(ke))return ke;const de=ke.children;for(let ye=0;ye=0;ye--){const ht=de[ye].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(de[ye]):null;if(ht)return ht}return null}_createAnchor(){const ke=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ke),ke.classList.add("cdk-visually-hidden"),ke.classList.add("cdk-focus-trap-anchor"),ke.setAttribute("aria-hidden","true"),ke}_toggleAnchorTabIndex(ke,de){ke?de.setAttribute("tabindex","0"):de.removeAttribute("tabindex")}toggleAnchors(ke){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ke,this._startAnchor),this._toggleAnchorTabIndex(ke,this._endAnchor))}_executeOnStable(ke){this._ngZone.isStable?ke():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(ke)}}let Me=(()=>{class Re{constructor(de,ye,ht){this._checker=de,this._ngZone=ye,this._document=ht}create(de,ye=!1){return new Ve(de,this._checker,this._ngZone,this._document,ye)}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(I),e.LFG(e.R0b),e.LFG(t.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),J=(()=>{class Re{constructor(de,ye,ht){this._elementRef=de,this._focusTrapFactory=ye,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(de){this.focusTrap.enabled=(0,Z.Ig)(de)}get autoCapture(){return this._autoCapture}set autoCapture(de){this._autoCapture=(0,Z.Ig)(de)}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(de){const ye=de.autoCapture;ye&&!ye.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Re.\u0275fac=function(de){return new(de||Re)(e.Y36(e.SBq),e.Y36(Me),e.Y36(t.K0))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Re})();function Te(Re){return 0===Re.buttons||0===Re.offsetX&&0===Re.offsetY}function xe(Re){const ke=Re.touches&&Re.touches[0]||Re.changedTouches&&Re.changedTouches[0];return!(!ke||-1!==ke.identifier||null!=ke.radiusX&&1!==ke.radiusX||null!=ke.radiusY&&1!==ke.radiusY)}const W=new e.OlP("cdk-input-modality-detector-options"),te={ignoreKeys:[R.zL,R.jx,R.b2,R.MW,R.JU]},fe=(0,f.i$)({passive:!0,capture:!0});let Q=(()=>{class Re{constructor(de,ye,ht,mt){this._platform=de,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=Ft=>{var nt,He;(null===(He=null===(nt=this._options)||void 0===nt?void 0:nt.ignoreKeys)||void 0===He?void 0:He.some(rt=>rt===Ft.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.sA)(Ft))},this._onMousedown=Ft=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Ft)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.sA)(Ft))},this._onTouchstart=Ft=>{xe(Ft)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.sA)(Ft))},this._options=Object.assign(Object.assign({},te),mt),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,E.x)()),de.isBrowser&&ye.runOutsideAngular(()=>{ht.addEventListener("keydown",this._onKeydown,fe),ht.addEventListener("mousedown",this._onMousedown,fe),ht.addEventListener("touchstart",this._onTouchstart,fe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fe),document.removeEventListener("mousedown",this._onMousedown,fe),document.removeEventListener("touchstart",this._onTouchstart,fe))}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(f.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(W,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const pt=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function tt(){return null}}),Dt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let di=(()=>{class Re{constructor(de,ye,ht,mt){this._ngZone=ye,this._defaultOptions=mt,this._document=ht,this._liveElement=de||this._createLiveElement()}announce(de,...ye){const ht=this._defaultOptions;let mt,Ft;return 1===ye.length&&"number"==typeof ye[0]?Ft=ye[0]:[mt,Ft]=ye,this.clear(),clearTimeout(this._previousTimeout),mt||(mt=ht&&ht.politeness?ht.politeness:"polite"),null==Ft&&ht&&(Ft=ht.duration),this._liveElement.setAttribute("aria-live",mt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(nt=>this._currentResolve=nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=de,"number"==typeof Ft&&(this._previousTimeout=setTimeout(()=>this.clear(),Ft)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var de,ye;clearTimeout(this._previousTimeout),null===(de=this._liveElement)||void 0===de||de.remove(),this._liveElement=null,null===(ye=this._currentResolve)||void 0===ye||ye.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const de="cdk-live-announcer-element",ye=this._document.getElementsByClassName(de),ht=this._document.createElement("div");for(let mt=0;mt{class Re{constructor(de,ye,ht,mt,Ft){this._ngZone=de,this._platform=ye,this._inputModalityDetector=ht,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new M.x,this._rootNodeFocusAndBlurListener=nt=>{const He=(0,f.sA)(nt),rt="focus"===nt.type?this._onFocus:this._onBlur;for(let et=He;et;et=et.parentElement)rt.call(this,nt,et)},this._document=mt,this._detectionMode=(null==Ft?void 0:Ft.detectionMode)||0}monitor(de,ye=!1){const ht=(0,Z.fI)(de);if(!this._platform.isBrowser||1!==ht.nodeType)return(0,d.of)(null);const mt=(0,f.kV)(ht)||this._getDocument(),Ft=this._elementInfo.get(ht);if(Ft)return ye&&(Ft.checkChildren=!0),Ft.subject;const nt={checkChildren:ye,subject:new M.x,rootNode:mt};return this._elementInfo.set(ht,nt),this._registerGlobalListeners(nt),nt.subject}stopMonitoring(de){const ye=(0,Z.fI)(de),ht=this._elementInfo.get(ye);ht&&(ht.subject.complete(),this._setClasses(ye),this._elementInfo.delete(ye),this._removeGlobalListeners(ht))}focusVia(de,ye,ht){const mt=(0,Z.fI)(de);mt===this._getDocument().activeElement?this._getClosestElementsInfo(mt).forEach(([nt,He])=>this._originChanged(nt,ye,He)):(this._setOrigin(ye),"function"==typeof mt.focus&&mt.focus(ht))}ngOnDestroy(){this._elementInfo.forEach((de,ye)=>this.stopMonitoring(ye))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(de){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(de)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(de){return 1===this._detectionMode||!!(null==de?void 0:de.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(de,ye){de.classList.toggle("cdk-focused",!!ye),de.classList.toggle("cdk-touch-focused","touch"===ye),de.classList.toggle("cdk-keyboard-focused","keyboard"===ye),de.classList.toggle("cdk-mouse-focused","mouse"===ye),de.classList.toggle("cdk-program-focused","program"===ye)}_setOrigin(de,ye=!1){this._ngZone.runOutsideAngular(()=>{this._origin=de,this._originFromTouchInteraction="touch"===de&&ye,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(de,ye){const ht=this._elementInfo.get(ye),mt=(0,f.sA)(de);!ht||!ht.checkChildren&&ye!==mt||this._originChanged(ye,this._getFocusOrigin(mt),ht)}_onBlur(de,ye){const ht=this._elementInfo.get(ye);!ht||ht.checkChildren&&de.relatedTarget instanceof Node&&ye.contains(de.relatedTarget)||(this._setClasses(ye),this._emitOrigin(ht.subject,null))}_emitOrigin(de,ye){this._ngZone.run(()=>de.next(ye))}_registerGlobalListeners(de){if(!this._platform.isBrowser)return;const ye=de.rootNode,ht=this._rootNodeFocusListenerCount.get(ye)||0;ht||this._ngZone.runOutsideAngular(()=>{ye.addEventListener("focus",this._rootNodeFocusAndBlurListener,ui),ye.addEventListener("blur",this._rootNodeFocusAndBlurListener,ui)}),this._rootNodeFocusListenerCount.set(ye,ht+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,B.R)(this._stopInputModalityDetector)).subscribe(mt=>{this._setOrigin(mt,!0)}))}_removeGlobalListeners(de){const ye=de.rootNode;if(this._rootNodeFocusListenerCount.has(ye)){const ht=this._rootNodeFocusListenerCount.get(ye);ht>1?this._rootNodeFocusListenerCount.set(ye,ht-1):(ye.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ui),ye.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ui),this._rootNodeFocusListenerCount.delete(ye))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(de,ye,ht){this._setClasses(de,ye),this._emitOrigin(ht.subject,ye),this._lastFocusOrigin=ye}_getClosestElementsInfo(de){const ye=[];return this._elementInfo.forEach((ht,mt)=>{(mt===de||ht.checkChildren&&mt.contains(de))&&ye.push([mt,ht])}),ye}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(e.R0b),e.LFG(f.t4),e.LFG(Q),e.LFG(t.K0,8),e.LFG(Zt,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Nt=(()=>{class Re{constructor(de,ye){this._elementRef=de,this._focusMonitor=ye,this.cdkFocusChange=new e.vpe}ngAfterViewInit(){const de=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(de,1===de.nodeType&&de.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ye=>this.cdkFocusChange.emit(ye))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Re.\u0275fac=function(de){return new(de||Re)(e.Y36(e.SBq),e.Y36(Ot))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Re})();const gt="cdk-high-contrast-black-on-white",it="cdk-high-contrast-white-on-black",bt="cdk-high-contrast-active";let ti=(()=>{class Re{constructor(de,ye){this._platform=de,this._document=ye}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const de=this._document.createElement("div");de.style.backgroundColor="rgb(1,2,3)",de.style.position="absolute",this._document.body.appendChild(de);const ye=this._document.defaultView||window,ht=ye&&ye.getComputedStyle?ye.getComputedStyle(de):null,mt=(ht&&ht.backgroundColor||"").replace(/ /g,"");switch(de.remove(),mt){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 de=this._document.body.classList;de.remove(bt),de.remove(gt),de.remove(it),this._hasCheckedHighContrastMode=!0;const ye=this.getHighContrastMode();1===ye?(de.add(bt),de.add(gt)):2===ye&&(de.add(bt),de.add(it))}}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(f.t4),e.LFG(t.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Qt=(()=>{class Re{constructor(de){de._applyBodyHighContrastModeCssClasses()}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(ti))},Re.\u0275mod=e.oAB({type:Re}),Re.\u0275inj=e.cJS({imports:[[Y.Q8]]}),Re})()},226:(Be,K,p)=>{"use strict";p.d(K,{Is:()=>d,vT:()=>h});var t=p(5e3),e=p(9808);const f=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,t.f3M)(e.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class L{constructor(D){if(this.value="ltr",this.change=new t.vpe,D){const k=D.documentElement?D.documentElement.dir:null;this.value=function C(L){const w=(null==L?void 0:L.toLowerCase())||"";return"auto"===w&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((D.body?D.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(D){return new(D||L)(t.LFG(f,8))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),h=(()=>{class L{}return L.\u0275fac=function(D){return new(D||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({}),L})()},3191:(Be,K,p)=>{"use strict";p.d(K,{Eq:()=>a,HM:()=>C,Ig:()=>e,du:()=>R,fI:()=>d,su:()=>f,t6:()=>M});var t=p(5e3);function e(h){return null!=h&&"false"!=`${h}`}function f(h,L=0){return M(h)?Number(h):L}function M(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}function a(h){return Array.isArray(h)?h:[h]}function C(h){return null==h?"":"string"==typeof h?h:`${h}px`}function d(h){return h instanceof t.SBq?h.nativeElement:h}function R(h,L=/\s+/){const w=[];if(null!=h){const D=Array.isArray(h)?h:`${h}`.split(L);for(const S of D){const k=`${S}`.trim();k&&w.push(k)}}return w}},449:(Be,K,p)=>{"use strict";p.d(K,{A8:()=>L,Ov:()=>R,Z9:()=>M,eX:()=>d,k:()=>w,o2:()=>f,yy:()=>C});var t=p(7579),e=p(5e3);class f{}function M(D){return D&&"function"==typeof D.connect}class C{applyChanges(S,k,E,B,Z){S.forEachOperation((Y,ae,ee)=>{let ue,ne;if(null==Y.previousIndex){const re=E(Y,ae,ee);ue=k.createEmbeddedView(re.templateRef,re.context,re.index),ne=1}else null==ee?(k.remove(ae),ne=3):(ue=k.get(ae),k.move(ue,ee),ne=2);Z&&Z({context:null==ue?void 0:ue.context,operation:ne,record:Y})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(S,k,E,B,Z){S.forEachOperation((Y,ae,ee)=>{let ue,ne;null==Y.previousIndex?(ue=this._insertView(()=>E(Y,ae,ee),ee,k,B(Y)),ne=ue?1:0):null==ee?(this._detachAndCacheView(ae,k),ne=3):(ue=this._moveView(ae,ee,k,B(Y)),ne=2),Z&&Z({context:null==ue?void 0:ue.context,operation:ne,record:Y})})}detach(){for(const S of this._viewCache)S.destroy();this._viewCache=[]}_insertView(S,k,E,B){const Z=this._insertViewFromCache(k,E);if(Z)return void(Z.context.$implicit=B);const Y=S();return E.createEmbeddedView(Y.templateRef,Y.context,Y.index)}_detachAndCacheView(S,k){const E=k.detach(S);this._maybeCacheView(E,k)}_moveView(S,k,E,B){const Z=E.get(S);return E.move(Z,k),Z.context.$implicit=B,Z}_maybeCacheView(S,k){if(this._viewCache.lengththis._markSelected(B)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...S){this._verifyValueAssignment(S),S.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...S){this._verifyValueAssignment(S),S.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(S){this.isSelected(S)?this.deselect(S):this.select(S)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(S){return this._selection.has(S)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(S){this._multiple&&this.selected&&this._selected.sort(S)}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(S){this.isSelected(S)||(this._multiple||this._unmarkAll(),this._selection.add(S),this._emitChanges&&this._selectedToEmit.push(S))}_unmarkSelected(S){this.isSelected(S)&&(this._selection.delete(S),this._emitChanges&&this._deselectedToEmit.push(S))}_unmarkAll(){this.isEmpty()||this._selection.forEach(S=>this._unmarkSelected(S))}_verifyValueAssignment(S){}}let L=(()=>{class D{constructor(){this._listeners=[]}notify(k,E){for(let B of this._listeners)B(k,E)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(E=>k!==E)}}ngOnDestroy(){this._listeners=[]}}return D.\u0275fac=function(k){return new(k||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const w=new e.OlP("_ViewRepeater")},1159:(Be,K,p)=>{"use strict";p.d(K,{A:()=>N,JH:()=>ee,JU:()=>C,K5:()=>a,Ku:()=>S,LH:()=>Y,L_:()=>D,MW:()=>di,Mf:()=>f,SV:()=>ae,Sd:()=>B,VM:()=>k,Vb:()=>Rt,Z:()=>Dt,ZH:()=>e,aO:()=>I,b2:()=>st,hY:()=>w,jx:()=>d,oh:()=>Z,uR:()=>E,xE:()=>q,yY:()=>ge,zL:()=>R});const e=8,f=9,a=13,C=16,d=17,R=18,w=27,D=32,S=33,k=34,E=35,B=36,Z=37,Y=38,ae=39,ee=40,ge=46,q=48,I=57,N=65,Dt=90,di=91,st=224;function Rt(Wt,...fi){return fi.length?fi.some(Ti=>Wt[Ti]):Wt.altKey||Wt.shiftKey||Wt.ctrlKey||Wt.metaKey}},5113:(Be,K,p)=>{"use strict";p.d(K,{Yg:()=>ee,u3:()=>ne,xu:()=>k});var t=p(5e3),e=p(3191),f=p(7579),M=p(9841),a=p(7272),C=p(8306),d=p(5698),R=p(5684),h=p(8372),L=p(4004),w=p(8675),D=p(2722),S=p(925);let k=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})();const E=new Set;let B,Z=(()=>{class re{constructor(q){this._platform=q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ae}matchMedia(q){return(this._platform.WEBKIT||this._platform.BLINK)&&function Y(re){if(!E.has(re))try{B||(B=document.createElement("style"),B.setAttribute("type","text/css"),document.head.appendChild(B)),B.sheet&&(B.sheet.insertRule(`@media ${re} {body{ }}`,0),E.add(re))}catch(ge){console.error(ge)}}(q),this._matchMedia(q)}}return re.\u0275fac=function(q){return new(q||re)(t.LFG(S.t4))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ae(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(q,_e){this._mediaMatcher=q,this._zone=_e,this._queries=new Map,this._destroySubject=new f.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(q){return ue((0,e.Eq)(q)).some(x=>this._registerQuery(x).mql.matches)}observe(q){const x=ue((0,e.Eq)(q)).map(r=>this._registerQuery(r).observable);let i=(0,M.a)(x);return i=(0,a.z)(i.pipe((0,d.q)(1)),i.pipe((0,R.T)(1),(0,h.b)(0))),i.pipe((0,L.U)(r=>{const u={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:v})=>{u.matches=u.matches||c,u.breakpoints[v]=c}),u}))}_registerQuery(q){if(this._queries.has(q))return this._queries.get(q);const _e=this._mediaMatcher.matchMedia(q),i={observable:new C.y(r=>{const u=c=>this._zone.run(()=>r.next(c));return _e.addListener(u),()=>{_e.removeListener(u)}}).pipe((0,w.O)(_e),(0,L.U)(({matches:r})=>({query:q,matches:r})),(0,D.R)(this._destroySubject)),mql:_e};return this._queries.set(q,i),i}}return re.\u0275fac=function(q){return new(q||re)(t.LFG(Z),t.LFG(t.R0b))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ue(re){return re.map(ge=>ge.split(",")).reduce((ge,q)=>ge.concat(q)).map(ge=>ge.trim())}const ne={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)"}},7144:(Be,K,p)=>{"use strict";p.d(K,{Q8:()=>h,wD:()=>R});var t=p(3191),e=p(5e3),f=p(8306),M=p(7579),a=p(8372);let C=(()=>{class L{create(D){return"undefined"==typeof MutationObserver?null:new MutationObserver(D)}}return L.\u0275fac=function(D){return new(D||L)},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),d=(()=>{class L{constructor(D){this._mutationObserverFactory=D,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((D,S)=>this._cleanupObserver(S))}observe(D){const S=(0,t.fI)(D);return new f.y(k=>{const B=this._observeElement(S).subscribe(k);return()=>{B.unsubscribe(),this._unobserveElement(S)}})}_observeElement(D){if(this._observedElements.has(D))this._observedElements.get(D).count++;else{const S=new M.x,k=this._mutationObserverFactory.create(E=>S.next(E));k&&k.observe(D,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(D,{observer:k,stream:S,count:1})}return this._observedElements.get(D).stream}_unobserveElement(D){this._observedElements.has(D)&&(this._observedElements.get(D).count--,this._observedElements.get(D).count||this._cleanupObserver(D))}_cleanupObserver(D){if(this._observedElements.has(D)){const{observer:S,stream:k}=this._observedElements.get(D);S&&S.disconnect(),k.complete(),this._observedElements.delete(D)}}}return L.\u0275fac=function(D){return new(D||L)(e.LFG(C))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),R=(()=>{class L{constructor(D,S,k){this._contentObserver=D,this._elementRef=S,this._ngZone=k,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,t.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,t.su)(D),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?D.pipe((0,a.b)(this.debounce)):D).subscribe(this.event)})}_unsubscribe(){var D;null===(D=this._currentSubscription)||void 0===D||D.unsubscribe()}}return L.\u0275fac=function(D){return new(D||L)(e.Y36(d),e.Y36(e.SBq),e.Y36(e.R0b))},L.\u0275dir=e.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),h=(()=>{class L{}return L.\u0275fac=function(D){return new(D||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({providers:[C]}),L})()},9776:(Be,K,p)=>{"use strict";p.d(K,{pI:()=>ut,xu:()=>Ie,_G:()=>n,aV:()=>Ve,X_:()=>_e,Xj:()=>T,U8:()=>ce});var t=p(5303),e=p(9808),f=p(5e3),M=p(3191),a=p(925),C=p(226),d=p(7429),R=p(7579),h=p(727),L=p(6451),w=p(4482),D=p(5403),k=p(5698),E=p(2722),B=p(1159);const Z=(0,a.Mq)();class Y{constructor(W,te){this._viewportRuler=W,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=te}attach(){}enable(){if(this._canBeEnabled()){const W=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=W.style.left||"",this._previousHTMLStyles.top=W.style.top||"",W.style.left=(0,M.HM)(-this._previousScrollPosition.left),W.style.top=(0,M.HM)(-this._previousScrollPosition.top),W.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const W=this._document.documentElement,Ce=W.style,fe=this._document.body.style,Q=Ce.scrollBehavior||"",pt=fe.scrollBehavior||"";this._isEnabled=!1,Ce.left=this._previousHTMLStyles.left,Ce.top=this._previousHTMLStyles.top,W.classList.remove("cdk-global-scrollblock"),Z&&(Ce.scrollBehavior=fe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(Ce.scrollBehavior=Q,fe.scrollBehavior=pt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const te=this._document.body,Ce=this._viewportRuler.getViewportSize();return te.scrollHeight>Ce.height||te.scrollWidth>Ce.width}}class ee{constructor(W,te,Ce,fe){this._scrollDispatcher=W,this._ngZone=te,this._viewportRuler=Ce,this._config=fe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(W){this._overlayRef=W}enable(){if(this._scrollSubscription)return;const W=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=W.subscribe(()=>{const te=this._viewportRuler.getViewportScrollPosition().top;Math.abs(te-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=W.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ue{enable(){}disable(){}attach(){}}function ne(xe,W){return W.some(te=>xe.bottomte.bottom||xe.rightte.right)}function re(xe,W){return W.some(te=>xe.topte.bottom||xe.leftte.right)}class ge{constructor(W,te,Ce,fe){this._scrollDispatcher=W,this._viewportRuler=te,this._ngZone=Ce,this._config=fe,this._scrollSubscription=null}attach(W){this._overlayRef=W}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 te=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ce,height:fe}=this._viewportRuler.getViewportSize();ne(te,[{width:Ce,height:fe,bottom:fe,right:Ce,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 q=(()=>{class xe{constructor(te,Ce,fe,Q){this._scrollDispatcher=te,this._viewportRuler=Ce,this._ngZone=fe,this.noop=()=>new ue,this.close=pt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,pt),this.block=()=>new Y(this._viewportRuler,this._document),this.reposition=pt=>new ge(this._scrollDispatcher,this._viewportRuler,this._ngZone,pt),this._document=Q}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(t.mF),f.LFG(t.rL),f.LFG(f.R0b),f.LFG(e.K0))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();class _e{constructor(W){if(this.scrollStrategy=new ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,W){const te=Object.keys(W);for(const Ce of te)void 0!==W[Ce]&&(this[Ce]=W[Ce])}}}class r{constructor(W,te){this.connectionPair=W,this.scrollableViewProperties=te}}class v{constructor(W,te,Ce,fe,Q,pt,tt,Dt,di){this._portalOutlet=W,this._host=te,this._pane=Ce,this._config=fe,this._ngZone=Q,this._keyboardDispatcher=pt,this._document=tt,this._location=Dt,this._outsideClickDispatcher=di,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=h.w0.EMPTY,this._backdropClickHandler=Yt=>this._backdropClick.next(Yt),this._backdropTransitionendHandler=Yt=>{this._disposeBackdrop(Yt.target)},this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,fe.scrollStrategy&&(this._scrollStrategy=fe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=fe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(W){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const te=this._portalOutlet.attach(W);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.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),te}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const W=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),W}dispose(){var W;const te=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(W=this._host)||void 0===W||W.remove(),this._previousHostParent=this._pane=this._host=null,te&&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(W){W!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=W,this.hasAttached()&&(W.attach(this),this.updatePosition()))}updateSize(W){this._config=Object.assign(Object.assign({},this._config),W),this._updateElementSize()}setDirection(W){this._config=Object.assign(Object.assign({},this._config),{direction:W}),this._updateElementDirection()}addPanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!0)}removePanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!1)}getDirection(){const W=this._config.direction;return W?"string"==typeof W?W:W.value:"ltr"}updateScrollStrategy(W){W!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=W,this.hasAttached()&&(W.attach(this),W.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const W=this._pane.style;W.width=(0,M.HM)(this._config.width),W.height=(0,M.HM)(this._config.height),W.minWidth=(0,M.HM)(this._config.minWidth),W.minHeight=(0,M.HM)(this._config.minHeight),W.maxWidth=(0,M.HM)(this._config.maxWidth),W.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(W){this._pane.style.pointerEvents=W?"":"none"}_attachBackdrop(){const W="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(W)})}):this._backdropElement.classList.add(W)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const W=this._backdropElement;!W||(W.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{W.addEventListener("transitionend",this._backdropTransitionendHandler)}),W.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(W)},500)))}_toggleClasses(W,te,Ce){const fe=(0,M.Eq)(te||[]).filter(Q=>!!Q);fe.length&&(Ce?W.classList.add(...fe):W.classList.remove(...fe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const W=this._ngZone.onStable.pipe((0,E.R)((0,L.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._host.remove()),W.unsubscribe())})})}_disposeScrollStrategy(){const W=this._scrollStrategy;W&&(W.disable(),W.detach&&W.detach())}_disposeBackdrop(W){W&&(W.removeEventListener("click",this._backdropClickHandler),W.removeEventListener("transitionend",this._backdropTransitionendHandler),W.remove(),this._backdropElement===W&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let T=(()=>{class xe{constructor(te,Ce){this._platform=Ce,this._document=te}ngOnDestroy(){var te;null===(te=this._containerElement)||void 0===te||te.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const te="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const fe=this._document.querySelectorAll(`.${te}[platform="server"], .${te}[platform="test"]`);for(let Q=0;Q{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const W=this._originRect,te=this._overlayRect,Ce=this._viewportRect,fe=this._containerRect,Q=[];let pt;for(let tt of this._preferredPositions){let Dt=this._getOriginPoint(W,fe,tt),di=this._getOverlayPoint(Dt,te,tt),Yt=this._getOverlayFit(di,te,Ce,tt);if(Yt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(tt,Dt);this._canFitWithFlexibleDimensions(Yt,di,Ce)?Q.push({position:tt,origin:Dt,overlayRect:te,boundingBoxRect:this._calculateBoundingBoxRect(Dt,tt)}):(!pt||pt.overlayFit.visibleAreaDt&&(Dt=Yt,tt=di)}return this._isPushed=!1,void this._applyPosition(tt.position,tt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(pt.position,pt.originPoint);this._applyPosition(pt.position,pt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const W=this._lastPosition;if(W){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const te=this._getOriginPoint(this._originRect,this._containerRect,W);this._applyPosition(W,te)}else this.apply()}withScrollableContainers(W){return this._scrollables=W,this}withPositions(W){return this._preferredPositions=W,-1===W.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(W){return this._viewportMargin=W,this}withFlexibleDimensions(W=!0){return this._hasFlexibleDimensions=W,this}withGrowAfterOpen(W=!0){return this._growAfterOpen=W,this}withPush(W=!0){return this._canPush=W,this}withLockedPosition(W=!0){return this._positionLocked=W,this}setOrigin(W){return this._origin=W,this}withDefaultOffsetX(W){return this._offsetX=W,this}withDefaultOffsetY(W){return this._offsetY=W,this}withTransformOriginOn(W){return this._transformOriginSelector=W,this}_getOriginPoint(W,te,Ce){let fe,Q;if("center"==Ce.originX)fe=W.left+W.width/2;else{const pt=this._isRtl()?W.right:W.left,tt=this._isRtl()?W.left:W.right;fe="start"==Ce.originX?pt:tt}return te.left<0&&(fe-=te.left),Q="center"==Ce.originY?W.top+W.height/2:"top"==Ce.originY?W.top:W.bottom,te.top<0&&(Q-=te.top),{x:fe,y:Q}}_getOverlayPoint(W,te,Ce){let fe,Q;return fe="center"==Ce.overlayX?-te.width/2:"start"===Ce.overlayX?this._isRtl()?-te.width:0:this._isRtl()?0:-te.width,Q="center"==Ce.overlayY?-te.height/2:"top"==Ce.overlayY?0:-te.height,{x:W.x+fe,y:W.y+Q}}_getOverlayFit(W,te,Ce,fe){const Q=N(te);let{x:pt,y:tt}=W,Dt=this._getOffset(fe,"x"),di=this._getOffset(fe,"y");Dt&&(pt+=Dt),di&&(tt+=di);let ui=0-tt,Ot=tt+Q.height-Ce.height,Nt=this._subtractOverflows(Q.width,0-pt,pt+Q.width-Ce.width),gt=this._subtractOverflows(Q.height,ui,Ot),it=Nt*gt;return{visibleArea:it,isCompletelyWithinViewport:Q.width*Q.height===it,fitsInViewportVertically:gt===Q.height,fitsInViewportHorizontally:Nt==Q.width}}_canFitWithFlexibleDimensions(W,te,Ce){if(this._hasFlexibleDimensions){const fe=Ce.bottom-te.y,Q=Ce.right-te.x,pt=V(this._overlayRef.getConfig().minHeight),tt=V(this._overlayRef.getConfig().minWidth),di=W.fitsInViewportHorizontally||null!=tt&&tt<=Q;return(W.fitsInViewportVertically||null!=pt&&pt<=fe)&&di}return!1}_pushOverlayOnScreen(W,te,Ce){if(this._previousPushAmount&&this._positionLocked)return{x:W.x+this._previousPushAmount.x,y:W.y+this._previousPushAmount.y};const fe=N(te),Q=this._viewportRect,pt=Math.max(W.x+fe.width-Q.width,0),tt=Math.max(W.y+fe.height-Q.height,0),Dt=Math.max(Q.top-Ce.top-W.y,0),di=Math.max(Q.left-Ce.left-W.x,0);let Yt=0,Zt=0;return Yt=fe.width<=Q.width?di||-pt:W.xNt&&!this._isInitialRender&&!this._growAfterOpen&&(pt=W.y-Nt/2)}if("end"===te.overlayX&&!fe||"start"===te.overlayX&&fe)ui=Ce.width-W.x+this._viewportMargin,Yt=W.x-this._viewportMargin;else if("start"===te.overlayX&&!fe||"end"===te.overlayX&&fe)Zt=W.x,Yt=Ce.right-W.x;else{const Ot=Math.min(Ce.right-W.x+Ce.left,W.x),Nt=this._lastBoundingBoxSize.width;Yt=2*Ot,Zt=W.x-Ot,Yt>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(Zt=W.x-Nt/2)}return{top:pt,left:Zt,bottom:tt,right:ui,width:Yt,height:Q}}_setBoundingBoxStyles(W,te){const Ce=this._calculateBoundingBoxRect(W,te);!this._isInitialRender&&!this._growAfterOpen&&(Ce.height=Math.min(Ce.height,this._lastBoundingBoxSize.height),Ce.width=Math.min(Ce.width,this._lastBoundingBoxSize.width));const fe={};if(this._hasExactPosition())fe.top=fe.left="0",fe.bottom=fe.right=fe.maxHeight=fe.maxWidth="",fe.width=fe.height="100%";else{const Q=this._overlayRef.getConfig().maxHeight,pt=this._overlayRef.getConfig().maxWidth;fe.height=(0,M.HM)(Ce.height),fe.top=(0,M.HM)(Ce.top),fe.bottom=(0,M.HM)(Ce.bottom),fe.width=(0,M.HM)(Ce.width),fe.left=(0,M.HM)(Ce.left),fe.right=(0,M.HM)(Ce.right),fe.alignItems="center"===te.overlayX?"center":"end"===te.overlayX?"flex-end":"flex-start",fe.justifyContent="center"===te.overlayY?"center":"bottom"===te.overlayY?"flex-end":"flex-start",Q&&(fe.maxHeight=(0,M.HM)(Q)),pt&&(fe.maxWidth=(0,M.HM)(pt))}this._lastBoundingBoxSize=Ce,_(this._boundingBox.style,fe)}_resetBoundingBoxStyles(){_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(W,te){const Ce={},fe=this._hasExactPosition(),Q=this._hasFlexibleDimensions,pt=this._overlayRef.getConfig();if(fe){const Yt=this._viewportRuler.getViewportScrollPosition();_(Ce,this._getExactOverlayY(te,W,Yt)),_(Ce,this._getExactOverlayX(te,W,Yt))}else Ce.position="static";let tt="",Dt=this._getOffset(te,"x"),di=this._getOffset(te,"y");Dt&&(tt+=`translateX(${Dt}px) `),di&&(tt+=`translateY(${di}px)`),Ce.transform=tt.trim(),pt.maxHeight&&(fe?Ce.maxHeight=(0,M.HM)(pt.maxHeight):Q&&(Ce.maxHeight="")),pt.maxWidth&&(fe?Ce.maxWidth=(0,M.HM)(pt.maxWidth):Q&&(Ce.maxWidth="")),_(this._pane.style,Ce)}_getExactOverlayY(W,te,Ce){let fe={top:"",bottom:""},Q=this._getOverlayPoint(te,this._overlayRect,W);return this._isPushed&&(Q=this._pushOverlayOnScreen(Q,this._overlayRect,Ce)),"bottom"===W.overlayY?fe.bottom=this._document.documentElement.clientHeight-(Q.y+this._overlayRect.height)+"px":fe.top=(0,M.HM)(Q.y),fe}_getExactOverlayX(W,te,Ce){let pt,fe={left:"",right:""},Q=this._getOverlayPoint(te,this._overlayRect,W);return this._isPushed&&(Q=this._pushOverlayOnScreen(Q,this._overlayRect,Ce)),pt=this._isRtl()?"end"===W.overlayX?"left":"right":"end"===W.overlayX?"right":"left","right"===pt?fe.right=this._document.documentElement.clientWidth-(Q.x+this._overlayRect.width)+"px":fe.left=(0,M.HM)(Q.x),fe}_getScrollVisibility(){const W=this._getOriginRect(),te=this._pane.getBoundingClientRect(),Ce=this._scrollables.map(fe=>fe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(W,Ce),isOriginOutsideView:ne(W,Ce),isOverlayClipped:re(te,Ce),isOverlayOutsideView:ne(te,Ce)}}_subtractOverflows(W,...te){return te.reduce((Ce,fe)=>Ce-Math.max(fe,0),W)}_getNarrowedViewportRect(){const W=this._document.documentElement.clientWidth,te=this._document.documentElement.clientHeight,Ce=this._viewportRuler.getViewportScrollPosition();return{top:Ce.top+this._viewportMargin,left:Ce.left+this._viewportMargin,right:Ce.left+W-this._viewportMargin,bottom:Ce.top+te-this._viewportMargin,width:W-2*this._viewportMargin,height:te-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(W,te){return"x"===te?null==W.offsetX?this._offsetX:W.offsetX:null==W.offsetY?this._offsetY:W.offsetY}_validatePositions(){}_addPanelClasses(W){this._pane&&(0,M.Eq)(W).forEach(te=>{""!==te&&-1===this._appliedPanelClasses.indexOf(te)&&(this._appliedPanelClasses.push(te),this._pane.classList.add(te))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(W=>{this._pane.classList.remove(W)}),this._appliedPanelClasses=[])}_getOriginRect(){const W=this._origin;if(W instanceof f.SBq)return W.nativeElement.getBoundingClientRect();if(W instanceof Element)return W.getBoundingClientRect();const te=W.width||0,Ce=W.height||0;return{top:W.y,bottom:W.y+Ce,left:W.x,right:W.x+te,height:Ce,width:te}}}function _(xe,W){for(let te in W)W.hasOwnProperty(te)&&(xe[te]=W[te]);return xe}function V(xe){if("number"!=typeof xe&&null!=xe){const[W,te]=xe.split(y);return te&&"px"!==te?null:parseFloat(W)}return xe||null}function N(xe){return{top:Math.floor(xe.top),right:Math.floor(xe.right),bottom:Math.floor(xe.bottom),left:Math.floor(xe.left),width:Math.floor(xe.width),height:Math.floor(xe.height)}}const H="cdk-global-overlay-wrapper";class X{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(W){const te=W.getConfig();this._overlayRef=W,this._width&&!te.width&&W.updateSize({width:this._width}),this._height&&!te.height&&W.updateSize({height:this._height}),W.hostElement.classList.add(H),this._isDisposed=!1}top(W=""){return this._bottomOffset="",this._topOffset=W,this._alignItems="flex-start",this}left(W=""){return this._rightOffset="",this._leftOffset=W,this._justifyContent="flex-start",this}bottom(W=""){return this._topOffset="",this._bottomOffset=W,this._alignItems="flex-end",this}right(W=""){return this._leftOffset="",this._rightOffset=W,this._justifyContent="flex-end",this}width(W=""){return this._overlayRef?this._overlayRef.updateSize({width:W}):this._width=W,this}height(W=""){return this._overlayRef?this._overlayRef.updateSize({height:W}):this._height=W,this}centerHorizontally(W=""){return this.left(W),this._justifyContent="center",this}centerVertically(W=""){return this.top(W),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const W=this._overlayRef.overlayElement.style,te=this._overlayRef.hostElement.style,Ce=this._overlayRef.getConfig(),{width:fe,height:Q,maxWidth:pt,maxHeight:tt}=Ce,Dt=!("100%"!==fe&&"100vw"!==fe||pt&&"100%"!==pt&&"100vw"!==pt),di=!("100%"!==Q&&"100vh"!==Q||tt&&"100%"!==tt&&"100vh"!==tt);W.position=this._cssPosition,W.marginLeft=Dt?"0":this._leftOffset,W.marginTop=di?"0":this._topOffset,W.marginBottom=this._bottomOffset,W.marginRight=this._rightOffset,Dt?te.justifyContent="flex-start":"center"===this._justifyContent?te.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?te.justifyContent="flex-end":"flex-end"===this._justifyContent&&(te.justifyContent="flex-start"):te.justifyContent=this._justifyContent,te.alignItems=di?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const W=this._overlayRef.overlayElement.style,te=this._overlayRef.hostElement,Ce=te.style;te.classList.remove(H),Ce.justifyContent=Ce.alignItems=W.marginTop=W.marginBottom=W.marginLeft=W.marginRight=W.position="",this._overlayRef=null,this._isDisposed=!0}}let he=(()=>{class xe{constructor(te,Ce,fe,Q){this._viewportRuler=te,this._document=Ce,this._platform=fe,this._overlayContainer=Q}global(){return new X}flexibleConnectedTo(te){return new n(te,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(t.rL),f.LFG(e.K0),f.LFG(a.t4),f.LFG(T))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),be=(()=>{class xe{constructor(te){this._attachedOverlays=[],this._document=te}ngOnDestroy(){this.detach()}add(te){this.remove(te),this._attachedOverlays.push(te)}remove(te){const Ce=this._attachedOverlays.indexOf(te);Ce>-1&&this._attachedOverlays.splice(Ce,1),0===this._attachedOverlays.length&&this.detach()}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(e.K0))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Pe=(()=>{class xe extends be{constructor(te,Ce){super(te),this._ngZone=Ce,this._keydownListener=fe=>{const Q=this._attachedOverlays;for(let pt=Q.length-1;pt>-1;pt--)if(Q[pt]._keydownEvents.observers.length>0){const tt=Q[pt]._keydownEvents;this._ngZone?this._ngZone.run(()=>tt.next(fe)):tt.next(fe);break}}}add(te){super.add(te),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(e.K0),f.LFG(f.R0b,8))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Ee=(()=>{class xe extends be{constructor(te,Ce,fe){super(te),this._platform=Ce,this._ngZone=fe,this._cursorStyleIsSet=!1,this._pointerDownListener=Q=>{this._pointerDownEventTarget=(0,a.sA)(Q)},this._clickListener=Q=>{const pt=(0,a.sA)(Q),tt="click"===Q.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:pt;this._pointerDownEventTarget=null;const Dt=this._attachedOverlays.slice();for(let di=Dt.length-1;di>-1;di--){const Yt=Dt[di];if(Yt._outsidePointerEvents.observers.length<1||!Yt.hasAttached())continue;if(Yt.overlayElement.contains(pt)||Yt.overlayElement.contains(tt))break;const Zt=Yt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Zt.next(Q)):Zt.next(Q)}}}add(te){if(super.add(te),!this._isAttached){const Ce=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ce)):this._addEventListeners(Ce),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ce.style.cursor,Ce.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const te=this._document.body;te.removeEventListener("pointerdown",this._pointerDownListener,!0),te.removeEventListener("click",this._clickListener,!0),te.removeEventListener("auxclick",this._clickListener,!0),te.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(te.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(te){te.addEventListener("pointerdown",this._pointerDownListener,!0),te.addEventListener("click",this._clickListener,!0),te.addEventListener("auxclick",this._clickListener,!0),te.addEventListener("contextmenu",this._clickListener,!0)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(e.K0),f.LFG(a.t4),f.LFG(f.R0b,8))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),j=0,Ve=(()=>{class xe{constructor(te,Ce,fe,Q,pt,tt,Dt,di,Yt,Zt,ui){this.scrollStrategies=te,this._overlayContainer=Ce,this._componentFactoryResolver=fe,this._positionBuilder=Q,this._keyboardDispatcher=pt,this._injector=tt,this._ngZone=Dt,this._document=di,this._directionality=Yt,this._location=Zt,this._outsideClickDispatcher=ui}create(te){const Ce=this._createHostElement(),fe=this._createPaneElement(Ce),Q=this._createPortalOutlet(fe),pt=new _e(te);return pt.direction=pt.direction||this._directionality.value,new v(Q,Ce,fe,pt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(te){const Ce=this._document.createElement("div");return Ce.id="cdk-overlay-"+j++,Ce.classList.add("cdk-overlay-pane"),te.appendChild(Ce),Ce}_createHostElement(){const te=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(te),te}_createPortalOutlet(te){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new d.u0(te,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(q),f.LFG(T),f.LFG(f._Vd),f.LFG(he),f.LFG(Pe),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(C.Is),f.LFG(e.Ye),f.LFG(Ee))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac}),xe})();const Me=[{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"}],J=new f.OlP("cdk-connected-overlay-scroll-strategy");let Ie=(()=>{class xe{constructor(te){this.elementRef=te}}return xe.\u0275fac=function(te){return new(te||xe)(f.Y36(f.SBq))},xe.\u0275dir=f.lG2({type:xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xe})(),ut=(()=>{class xe{constructor(te,Ce,fe,Q,pt){this._overlay=te,this._dir=pt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w0.EMPTY,this._attachSubscription=h.w0.EMPTY,this._detachSubscription=h.w0.EMPTY,this._positionSubscription=h.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new f.vpe,this.positionChange=new f.vpe,this.attach=new f.vpe,this.detach=new f.vpe,this.overlayKeydown=new f.vpe,this.overlayOutsideClick=new f.vpe,this._templatePortal=new d.UE(Ce,fe),this._scrollStrategyFactory=Q,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(te){this._offsetX=te,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(te){this._offsetY=te,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(te){this._hasBackdrop=(0,M.Ig)(te)}get lockPosition(){return this._lockPosition}set lockPosition(te){this._lockPosition=(0,M.Ig)(te)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(te){this._flexibleDimensions=(0,M.Ig)(te)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(te){this._growAfterOpen=(0,M.Ig)(te)}get push(){return this._push}set push(te){this._push=(0,M.Ig)(te)}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(te){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),te.origin&&this.open&&this._position.apply()),te.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Me);const te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=te.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=te.detachments().subscribe(()=>this.detach.emit()),te.keydownEvents().subscribe(Ce=>{this.overlayKeydown.next(Ce),Ce.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(Ce)&&(Ce.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ce=>{this.overlayOutsideClick.next(Ce)})}_buildConfig(){const te=this._position=this.positionStrategy||this._createPositionStrategy(),Ce=new _e({direction:this._dir,positionStrategy:te,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ce.width=this.width),(this.height||0===this.height)&&(Ce.height=this.height),(this.minWidth||0===this.minWidth)&&(Ce.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ce.minHeight=this.minHeight),this.backdropClass&&(Ce.backdropClass=this.backdropClass),this.panelClass&&(Ce.panelClass=this.panelClass),Ce}_updatePositionStrategy(te){const Ce=this.positions.map(fe=>({originX:fe.originX,originY:fe.originY,overlayX:fe.overlayX,overlayY:fe.overlayY,offsetX:fe.offsetX||this.offsetX,offsetY:fe.offsetY||this.offsetY,panelClass:fe.panelClass||void 0}));return te.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ce).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const te=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(te),te}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ie?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(te=>{this.backdropClick.emit(te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function S(xe,W=!1){return(0,w.e)((te,Ce)=>{let fe=0;te.subscribe((0,D.x)(Ce,Q=>{const pt=xe(Q,fe++);(pt||W)&&Ce.next(Q),!pt&&Ce.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(te=>{this.positionChange.emit(te),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xe.\u0275fac=function(te){return new(te||xe)(f.Y36(Ve),f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(J),f.Y36(C.Is,8))},xe.\u0275dir=f.lG2({type:xe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[f.TTD]}),xe})();const we={provide:J,deps:[Ve],useFactory:function Oe(xe){return()=>xe.scrollStrategies.reposition()}};let ce=(()=>{class xe{}return xe.\u0275fac=function(te){return new(te||xe)},xe.\u0275mod=f.oAB({type:xe}),xe.\u0275inj=f.cJS({providers:[Ve,we],imports:[[C.vT,d.eL,t.Cl],t.Cl]}),xe})()},925:(Be,K,p)=>{"use strict";p.d(K,{Mq:()=>k,Oy:()=>ue,_i:()=>E,ht:()=>ae,i$:()=>w,kV:()=>Y,qK:()=>R,sA:()=>ee,t4:()=>M});var t=p(5e3),e=p(9808);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ne){f=!1}let C,M=(()=>{class ne{constructor(ge){this._platformId=ge,this.isBrowser=this._platformId?(0,e.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&&!f)&&"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 ne.\u0275fac=function(ge){return new(ge||ne)(t.LFG(t.Lbi))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(d),C;let ne=document.createElement("input");return C=new Set(d.filter(re=>(ne.setAttribute("type",re),ne.type===re))),C}let h,D,S,B;function w(ne){return function L(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?ne:!!ne.capture}function k(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1,S;if("scrollBehavior"in document.documentElement.style)S=!0;else{const ne=Element.prototype.scrollTo;S=!!ne&&!/\{\s*\[native code\]\s*\}/.test(ne.toString())}}return S}function E(){if("object"!=typeof document||!document)return 0;if(null==D){const ne=document.createElement("div"),re=ne.style;ne.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const ge=document.createElement("div"),q=ge.style;q.width="2px",q.height="1px",ne.appendChild(ge),document.body.appendChild(ne),D=0,0===ne.scrollLeft&&(ne.scrollLeft=1,D=0===ne.scrollLeft?1:2),ne.remove()}return D}function Y(ne){if(function Z(){if(null==B){const ne="undefined"!=typeof document?document.head:null;B=!(!ne||!ne.createShadowRoot&&!ne.attachShadow)}return B}()){const re=ne.getRootNode?ne.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function ae(){let ne="undefined"!=typeof document&&document?document.activeElement:null;for(;ne&&ne.shadowRoot;){const re=ne.shadowRoot.activeElement;if(re===ne)break;ne=re}return ne}function ee(ne){return ne.composedPath?ne.composedPath()[0]:ne.target}function ue(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Be,K,p)=>{"use strict";p.d(K,{C5:()=>L,Pl:()=>ae,UE:()=>w,eL:()=>ue,en:()=>S,ig:()=>Z,u0:()=>E});var t=p(5e3),e=p(9808);class h{attach(ge){return this._attachedHost=ge,ge.attach(this)}detach(){let ge=this._attachedHost;null!=ge&&(this._attachedHost=null,ge.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ge){this._attachedHost=ge}}class L extends h{constructor(ge,q,_e,x){super(),this.component=ge,this.viewContainerRef=q,this.injector=_e,this.componentFactoryResolver=x}}class w extends h{constructor(ge,q,_e){super(),this.templateRef=ge,this.viewContainerRef=q,this.context=_e}get origin(){return this.templateRef.elementRef}attach(ge,q=this.context){return this.context=q,super.attach(ge)}detach(){return this.context=void 0,super.detach()}}class D extends h{constructor(ge){super(),this.element=ge instanceof t.SBq?ge.nativeElement:ge}}class S{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ge){return ge instanceof L?(this._attachedPortal=ge,this.attachComponentPortal(ge)):ge instanceof w?(this._attachedPortal=ge,this.attachTemplatePortal(ge)):this.attachDomPortal&&ge instanceof D?(this._attachedPortal=ge,this.attachDomPortal(ge)):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(ge){this._disposeFn=ge}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class E extends S{constructor(ge,q,_e,x,i){super(),this.outletElement=ge,this._componentFactoryResolver=q,this._appRef=_e,this._defaultInjector=x,this.attachDomPortal=r=>{const u=r.element,c=this._document.createComment("dom-portal");u.parentNode.insertBefore(c,u),this.outletElement.appendChild(u),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=i}attachComponentPortal(ge){const _e=(ge.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ge.component);let x;return ge.viewContainerRef?(x=ge.viewContainerRef.createComponent(_e,ge.viewContainerRef.length,ge.injector||ge.viewContainerRef.injector),this.setDisposeFn(()=>x.destroy())):(x=_e.create(ge.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(x.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(x.hostView),x.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(x)),this._attachedPortal=ge,x}attachTemplatePortal(ge){let q=ge.viewContainerRef,_e=q.createEmbeddedView(ge.templateRef,ge.context);return _e.rootNodes.forEach(x=>this.outletElement.appendChild(x)),_e.detectChanges(),this.setDisposeFn(()=>{let x=q.indexOf(_e);-1!==x&&q.remove(x)}),this._attachedPortal=ge,_e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ge){return ge.hostView.rootNodes[0]}}let Z=(()=>{class re extends w{constructor(q,_e){super(q,_e)}}return re.\u0275fac=function(q){return new(q||re)(t.Y36(t.Rgc),t.Y36(t.s_b))},re.\u0275dir=t.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),re})(),ae=(()=>{class re extends S{constructor(q,_e,x){super(),this._componentFactoryResolver=q,this._viewContainerRef=_e,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const r=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),r.parentNode.insertBefore(u,r),this._getRootNode().appendChild(r),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},this._document=x}get portal(){return this._attachedPortal}set portal(q){this.hasAttached()&&!q&&!this._isInitialized||(this.hasAttached()&&super.detach(),q&&super.attach(q),this._attachedPortal=q||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(q){q.setAttachedHost(this);const _e=null!=q.viewContainerRef?q.viewContainerRef:this._viewContainerRef,i=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component),r=_e.createComponent(i,_e.length,q.injector||_e.injector);return _e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=q,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(q){q.setAttachedHost(this);const _e=this._viewContainerRef.createEmbeddedView(q.templateRef,q.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=q,this._attachedRef=_e,this.attached.emit(_e),_e}_getRootNode(){const q=this._viewContainerRef.element.nativeElement;return q.nodeType===q.ELEMENT_NODE?q:q.parentNode}}return re.\u0275fac=function(q){return new(q||re)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},re.\u0275dir=t.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})()},5303:(Be,K,p)=>{"use strict";p.d(K,{PQ:()=>u,ZD:()=>V,mF:()=>r,Cl:()=>N,rL:()=>v});var t=p(3191),e=p(5e3),f=p(4408),M=p(727);const a={schedule(H){let X=requestAnimationFrame,he=cancelAnimationFrame;const{delegate:be}=a;be&&(X=be.requestAnimationFrame,he=be.cancelAnimationFrame);const Pe=X(Ee=>{he=void 0,H(Ee)});return new M.w0(()=>null==he?void 0:he(Pe))},requestAnimationFrame(...H){const{delegate:X}=a;return((null==X?void 0:X.requestAnimationFrame)||requestAnimationFrame)(...H)},cancelAnimationFrame(...H){const{delegate:X}=a;return((null==X?void 0:X.cancelAnimationFrame)||cancelAnimationFrame)(...H)},delegate:void 0};var d=p(7565);new class R extends d.v{flush(X){this._active=!0;const he=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let Pe;X=X||be.shift();do{if(Pe=X.execute(X.state,X.delay))break}while((X=be[0])&&X.id===he&&be.shift());if(this._active=!1,Pe){for(;(X=be[0])&&X.id===he&&be.shift();)X.unsubscribe();throw Pe}}}(class C extends f.o{constructor(X,he){super(X,he),this.scheduler=X,this.work=he}requestAsyncId(X,he,be=0){return null!==be&&be>0?super.requestAsyncId(X,he,be):(X.actions.push(this),X._scheduled||(X._scheduled=a.requestAnimationFrame(()=>X.flush(void 0))))}recycleAsyncId(X,he,be=0){var Pe;if(null!=be?be>0:this.delay>0)return super.recycleAsyncId(X,he,be);const{actions:Ee}=X;null!=he&&(null===(Pe=Ee[Ee.length-1])||void 0===Pe?void 0:Pe.id)!==he&&(a.cancelAnimationFrame(he),X._scheduled=void 0)}});var w=p(7579),D=p(9646),S=p(8306),k=p(4968),B=(p(3101),p(3601)),Z=p(9300),Y=p(2722),ae=p(9808),ee=p(925),ue=p(226);let r=(()=>{class H{constructor(he,be,Pe){this._ngZone=he,this._platform=be,this._scrolled=new w.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Pe}register(he){this.scrollContainers.has(he)||this.scrollContainers.set(he,he.elementScrolled().subscribe(()=>this._scrolled.next(he)))}deregister(he){const be=this.scrollContainers.get(he);be&&(be.unsubscribe(),this.scrollContainers.delete(he))}scrolled(he=20){return this._platform.isBrowser?new S.y(be=>{this._globalSubscription||this._addGlobalListener();const Pe=he>0?this._scrolled.pipe((0,B.e)(he)).subscribe(be):this._scrolled.subscribe(be);return this._scrolledCount++,()=>{Pe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,D.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((he,be)=>this.deregister(be)),this._scrolled.complete()}ancestorScrolled(he,be){const Pe=this.getAncestorScrollContainers(he);return this.scrolled(be).pipe((0,Z.h)(Ee=>!Ee||Pe.indexOf(Ee)>-1))}getAncestorScrollContainers(he){const be=[];return this.scrollContainers.forEach((Pe,Ee)=>{this._scrollableContainsElement(Ee,he)&&be.push(Ee)}),be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(he,be){let Pe=(0,t.fI)(be),Ee=he.getElementRef().nativeElement;do{if(Pe==Ee)return!0}while(Pe=Pe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const he=this._getWindow();return(0,k.R)(he.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return H.\u0275fac=function(he){return new(he||H)(e.LFG(e.R0b),e.LFG(ee.t4),e.LFG(ae.K0,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),u=(()=>{class H{constructor(he,be,Pe,Ee){this.elementRef=he,this.scrollDispatcher=be,this.ngZone=Pe,this.dir=Ee,this._destroyed=new w.x,this._elementScrolled=new S.y(j=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,Y.R)(this._destroyed)).subscribe(j)))}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(he){const be=this.elementRef.nativeElement,Pe=this.dir&&"rtl"==this.dir.value;null==he.left&&(he.left=Pe?he.end:he.start),null==he.right&&(he.right=Pe?he.start:he.end),null!=he.bottom&&(he.top=be.scrollHeight-be.clientHeight-he.bottom),Pe&&0!=(0,ee._i)()?(null!=he.left&&(he.right=be.scrollWidth-be.clientWidth-he.left),2==(0,ee._i)()?he.left=he.right:1==(0,ee._i)()&&(he.left=he.right?-he.right:he.right)):null!=he.right&&(he.left=be.scrollWidth-be.clientWidth-he.right),this._applyScrollToOptions(he)}_applyScrollToOptions(he){const be=this.elementRef.nativeElement;(0,ee.Mq)()?be.scrollTo(he):(null!=he.top&&(be.scrollTop=he.top),null!=he.left&&(be.scrollLeft=he.left))}measureScrollOffset(he){const be="left",Ee=this.elementRef.nativeElement;if("top"==he)return Ee.scrollTop;if("bottom"==he)return Ee.scrollHeight-Ee.clientHeight-Ee.scrollTop;const j=this.dir&&"rtl"==this.dir.value;return"start"==he?he=j?"right":be:"end"==he&&(he=j?be:"right"),j&&2==(0,ee._i)()?he==be?Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft:Ee.scrollLeft:j&&1==(0,ee._i)()?he==be?Ee.scrollLeft+Ee.scrollWidth-Ee.clientWidth:-Ee.scrollLeft:he==be?Ee.scrollLeft:Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft}}return H.\u0275fac=function(he){return new(he||H)(e.Y36(e.SBq),e.Y36(r),e.Y36(e.R0b),e.Y36(ue.Is,8))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),H})(),v=(()=>{class H{constructor(he,be,Pe){this._platform=he,this._change=new w.x,this._changeListener=Ee=>{this._change.next(Ee)},this._document=Pe,be.runOutsideAngular(()=>{if(he.isBrowser){const Ee=this._getWindow();Ee.addEventListener("resize",this._changeListener),Ee.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const he=this._getWindow();he.removeEventListener("resize",this._changeListener),he.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const he={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),he}getViewportRect(){const he=this.getViewportScrollPosition(),{width:be,height:Pe}=this.getViewportSize();return{top:he.top,left:he.left,bottom:he.top+Pe,right:he.left+be,height:Pe,width:be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const he=this._document,be=this._getWindow(),Pe=he.documentElement,Ee=Pe.getBoundingClientRect();return{top:-Ee.top||he.body.scrollTop||be.scrollY||Pe.scrollTop||0,left:-Ee.left||he.body.scrollLeft||be.scrollX||Pe.scrollLeft||0}}change(he=20){return he>0?this._change.pipe((0,B.e)(he)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const he=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:he.innerWidth,height:he.innerHeight}:{width:0,height:0}}}return H.\u0275fac=function(he){return new(he||H)(e.LFG(ee.t4),e.LFG(e.R0b),e.LFG(ae.K0,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),V=(()=>{class H{}return H.\u0275fac=function(he){return new(he||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})(),N=(()=>{class H{}return H.\u0275fac=function(he){return new(he||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[ue.vT,V],ue.vT,V]}),H})()},1555:(Be,K,p)=>{"use strict";p.d(K,{B8:()=>ue,KL:()=>k,U5:()=>ge,be:()=>ee,gx:()=>ae,po:()=>re,st:()=>ne,u6:()=>E});var t=p(5664),e=p(3191),f=p(1159),M=p(9808),a=p(5e3),C=p(925),d=p(7579),R=p(9646),h=p(8675),L=p(2722),w=p(226);function D(q,_e){1&q&&a.Hsn(0)}const S=["*"];let k=(()=>{class q{constructor(x){this._elementRef=x}focus(){this._elementRef.nativeElement.focus()}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(a.SBq))},q.\u0275dir=a.lG2({type:q,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),q})(),E=(()=>{class q{constructor(x){this.template=x}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(a.Rgc))},q.\u0275dir=a.lG2({type:q,selectors:[["","cdkStepLabel",""]]}),q})(),B=0;const ae=new a.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class q{constructor(x,i){this._stepper=x,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(x){this._editable=(0,e.Ig)(x)}get optional(){return this._optional}set optional(x){this._optional=(0,e.Ig)(x)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(x){this._completedOverride=(0,e.Ig)(x)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(x){this._customError=(0,e.Ig)(x)}_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))}_showError(){var x;return null!==(x=this._stepperOptions.showError)&&void 0!==x?x:null!=this._customError}}return q.\u0275fac=function(x){return new(x||q)(a.Y36((0,a.Gpc)(()=>ue)),a.Y36(ae,8))},q.\u0275cmp=a.Xpm({type:q,selectors:[["cdk-step"]],contentQueries:function(x,i,r){if(1&x&&a.Suo(r,E,5),2&x){let u;a.iGM(u=a.CRH())&&(i.stepLabel=u.first)}},viewQuery:function(x,i){if(1&x&&a.Gf(a.Rgc,7),2&x){let r;a.iGM(r=a.CRH())&&(i.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[a.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(x,i){1&x&&(a.F$t(),a.YNc(0,D,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),q})(),ue=(()=>{class q{constructor(x,i,r,u){this._dir=x,this._changeDetectorRef=i,this._elementRef=r,this._destroyed=new d.x,this.steps=new a.n_E,this._sortedHeaders=new a.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new a.vpe,this._orientation="horizontal",this._groupId=B++}get linear(){return this._linear}set linear(x){this._linear=(0,e.Ig)(x)}get selectedIndex(){return this._selectedIndex}set selectedIndex(x){var i;const r=(0,e.su)(x);this.steps&&this._steps?(this._isValidIndex(r),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(x){this.selectedIndex=x&&this.steps?this.steps.toArray().indexOf(x):-1}get orientation(){return this._orientation}set orientation(x){this._orientation=x,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===x)}ngAfterContentInit(){this._steps.changes.pipe((0,h.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(x=>{this.steps.reset(x.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,h.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(x=>{this._sortedHeaders.reset(x.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,h.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(x=>this._keyManager.withHorizontalOrientation(x)),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._sortedHeaders.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(x=>x.reset()),this._stateChanged()}_getStepLabelId(x){return`cdk-step-label-${this._groupId}-${x}`}_getStepContentId(x){return`cdk-step-content-${this._groupId}-${x}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(x){const i=x-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(x,i="number"){const r=this.steps.toArray()[x],u=this._isCurrentStep(x);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,u):this._getGuidelineLogic(r,u,i)}_getDefaultIndicatorLogic(x,i){return x._showError()&&x.hasError&&!i?"error":!x.completed||i?"number":x.editable?"edit":"done"}_getGuidelineLogic(x,i,r="number"){return x._showError()&&x.hasError&&!i?"error":x.completed&&!i?"done":x.completed&&i?r:x.editable&&i?"edit":r}_isCurrentStep(x){return this._selectedIndex===x}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(x){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:x,previouslySelectedIndex:this._selectedIndex,selectedStep:i[x],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(x):this._keyManager.updateActiveItem(x),this._selectedIndex=x,this._stateChanged()}_onKeydown(x){const i=(0,f.Vb)(x),r=x.keyCode,u=this._keyManager;null==u.activeItemIndex||i||r!==f.L_&&r!==f.K5?u.onKeydown(x):(this.selectedIndex=u.activeItemIndex,x.preventDefault())}_anyControlsInvalidOrPending(x){return!!(this._linear&&x>=0)&&this.steps.toArray().slice(0,x).some(i=>{const r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const x=this._elementRef.nativeElement,i=(0,C.ht)();return x===i||x.contains(i)}_isValidIndex(x){return x>-1&&(!this.steps||x{class q{constructor(x){this._stepper=x,this.type="submit"}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(ue))},q.\u0275dir=a.lG2({type:q,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(x,i){1&x&&a.NdJ("click",function(){return i._stepper.next()}),2&x&&a.Ikx("type",i.type)},inputs:{type:"type"}}),q})(),re=(()=>{class q{constructor(x){this._stepper=x,this.type="button"}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(ue))},q.\u0275dir=a.lG2({type:q,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(x,i){1&x&&a.NdJ("click",function(){return i._stepper.previous()}),2&x&&a.Ikx("type",i.type)},inputs:{type:"type"}}),q})(),ge=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275mod=a.oAB({type:q}),q.\u0275inj=a.cJS({imports:[[w.vT]]}),q})()},8258:(Be,K,p)=>{"use strict";p.d(K,{HI:()=>E,Hs:()=>q,Ud:()=>c,VY:()=>k,XJ:()=>u,Xx:()=>i,_0:()=>ge,cu:()=>B,nZ:()=>T,rO:()=>Y});var t=p(449),e=p(5191),f=p(7579),M=p(1135),a=p(9646),C=p(5698),d=p(9300),R=p(2722),h=p(5e3),L=p(3191),w=p(226);class k extends class D{constructor(){this.expansionModel=new t.Ov(!0)}toggle(y){this.expansionModel.toggle(this._trackByValue(y))}expand(y){this.expansionModel.select(this._trackByValue(y))}collapse(y){this.expansionModel.deselect(this._trackByValue(y))}isExpanded(y){return this.expansionModel.isSelected(this._trackByValue(y))}toggleDescendants(y){this.expansionModel.isSelected(this._trackByValue(y))?this.collapseDescendants(y):this.expandDescendants(y)}collapseAll(){this.expansionModel.clear()}expandDescendants(y){let n=[y];n.push(...this.getDescendants(y)),this.expansionModel.select(...n.map(_=>this._trackByValue(_)))}collapseDescendants(y){let n=[y];n.push(...this.getDescendants(y)),this.expansionModel.deselect(...n.map(_=>this._trackByValue(_)))}_trackByValue(y){return this.trackBy?this.trackBy(y):y}}{constructor(y,n){super(),this.getChildren=y,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const y=this.dataNodes.reduce((n,_)=>[...n,...this.getDescendants(_),_],[]);this.expansionModel.select(...y.map(n=>this._trackByValue(n)))}getDescendants(y){const n=[];return this._getDescendants(n,y),n.splice(1)}_getDescendants(y,n){y.push(n);const _=this.getChildren(n);Array.isArray(_)?_.forEach(V=>this._getDescendants(y,V)):(0,e.b)(_)&&_.pipe((0,C.q)(1),(0,d.h)(Boolean)).subscribe(V=>{for(const N of V)this._getDescendants(y,N)})}}const E=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let B=(()=>{class I{constructor(n,_){this.viewContainer=n,this._node=_}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.s_b),h.Y36(E,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class Z{constructor(y){this.$implicit=y}}let Y=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.Rgc))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),ge=(()=>{class I{constructor(n,_){this._differs=n,this._changeDetectorRef=_,this._onDestroy=new f.x,this._levels=new Map,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}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 n=this._nodeDefs.filter(_=>!_.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,R.R)(this._onDestroy)).subscribe(_=>this.renderNodeChanges(_)))}renderNodeChanges(n,_=this._dataDiffer,V=this._nodeOutlet.viewContainer,N){const H=_.diff(n);!H||(H.forEachOperation((X,he,be)=>{if(null==X.previousIndex)this.insertNode(n[be],be,V,N);else if(null==be)V.remove(he),this._levels.delete(X.item);else{const Pe=V.get(he);V.move(Pe,be)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,_){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(_,n))||this._defaultNodeDef}insertNode(n,_,V,N){const H=this._getNodeDef(n,_),X=new Z(n);X.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(n,X.level),(V||this._nodeOutlet.viewContainer).createEmbeddedView(H.template,X,_),q.mostRecentTreeNode&&(q.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.ZZ4),h.Y36(h.sBO))},I.\u0275cmp=h.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,_,V){if(1&n&&h.Suo(V,Y,5),2&n){let N;h.iGM(N=h.CRH())&&(_._nodeDefs=N)}},viewQuery:function(n,_){if(1&n&&h.Gf(B,7),2&n){let V;h.iGM(V=h.CRH())&&(_._nodeOutlet=V.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,_){1&n&&h.GkF(0,0)},directives:[B],encapsulation:2}),I})(),q=(()=>{class I{constructor(n,_){this._elementRef=n,this._tree=_,this._destroyed=new f.x,this._dataChanges=new f.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function _e(I){let y=I.parentElement;for(;y&&!x(y);)y=y.parentElement;return y?y.classList.contains("cdk-nested-tree-node")?(0,L.su)(y.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(ge))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,_){2&n&&h.uIk("aria-expanded",_.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function x(I){const y=I.classList;return!(!(null==y?void 0:y.contains("cdk-nested-tree-node"))&&!(null==y?void 0:y.contains("cdk-tree")))}let i=(()=>{class I extends q{constructor(n,_,V){super(n,_),this._differs=V}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,R.R)(this._destroyed)).subscribe(_=>this.updateChildrenNodes(_)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const _=this._getNodeOutlet();n&&(this._children=n),_&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,_.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(_=>!_._node||_._node===this)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(ge),h.Y36(h.ZZ4))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,_,V){if(1&n&&h.Suo(V,B,5),2&n){let N;h.iGM(N=h.CRH())&&(_.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:q,useExisting:I},{provide:E,useExisting:I}]),h.qOj]}),I})();const r=/([A-Za-z%]+)$/;let u=(()=>{class I{constructor(n,_,V,N){this._treeNode=n,this._tree=_,this._element=V,this._dir=N,this._destroyed=new f.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,_=null==this._level?n:this._level;return"number"==typeof _?`${_*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const _=this._paddingIndent();if(_!==this._currentPadding||n){const V=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",H="paddingLeft"===N?"paddingRight":"paddingLeft";V.style[N]=_||"",V.style[H]="",this._currentPadding=_}}_setLevelInput(n){this._level=(0,L.su)(n,null),this._setPadding()}_setIndentInput(n){let _=n,V="px";if("string"==typeof n){const N=n.split(r);_=N[0],V=N[1]||V}this.indentUnits=V,this._indent=(0,L.su)(_),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(q),h.Y36(ge),h.Y36(h.SBq),h.Y36(w.Is,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,_){this._tree=n,this._treeNode=_,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,L.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(ge),h.Y36(q))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,_){1&n&&h.NdJ("click",function(N){return _._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),T=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=h.oAB({type:I}),I.\u0275inj=h.cJS({}),I})()},9808:(Be,K,p)=>{"use strict";p.d(K,{Do:()=>ue,ED:()=>In,EM:()=>Yr,HT:()=>a,JF:()=>Xn,JJ:()=>Wa,K0:()=>d,Mx:()=>Xi,NF:()=>or,Nd:()=>Vr,O5:()=>Rt,OU:()=>ya,Ov:()=>fa,PC:()=>Si,PM:()=>aa,RF:()=>Ni,S$:()=>Z,Ts:()=>Pr,V_:()=>L,Ye:()=>ne,b0:()=>ee,bD:()=>ra,ez:()=>Dr,gd:()=>na,i8:()=>zr,lw:()=>R,mk:()=>Wi,mr:()=>ae,n9:()=>mn,q:()=>f,rS:()=>ia,sg:()=>ii,tP:()=>Ki,uU:()=>Jr,w_:()=>C});var t=p(5e3);let e=null;function f(){return e}function a($e){e||(e=$e)}class C{}const d=new t.OlP("DocumentToken");let R=(()=>{class $e{historyGo(Je){throw new Error("Not implemented")}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function h(){return(0,t.LFG)(w)}()},providedIn:"platform"}),$e})();const L=new t.OlP("Location Initialized");let w=(()=>{class $e extends R{constructor(Je){super(),this._doc=Je,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(Je){const kt=f().getGlobalEventTarget(this._doc,"window");return kt.addEventListener("popstate",Je,!1),()=>kt.removeEventListener("popstate",Je)}onHashChange(Je){const kt=f().getGlobalEventTarget(this._doc,"window");return kt.addEventListener("hashchange",Je,!1),()=>kt.removeEventListener("hashchange",Je)}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(Je){this.location.pathname=Je}pushState(Je,kt,Xt){D()?this._history.pushState(Je,kt,Xt):this.location.hash=Xt}replaceState(Je,kt,Xt){D()?this._history.replaceState(Je,kt,Xt):this.location.hash=Xt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Je=0){this._history.go(Je)}getState(){return this._history.state}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(d))},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function S(){return new w((0,t.LFG)(d))}()},providedIn:"platform"}),$e})();function D(){return!!window.history.pushState}function k($e,Et){if(0==$e.length)return Et;if(0==Et.length)return $e;let Je=0;return $e.endsWith("/")&&Je++,Et.startsWith("/")&&Je++,2==Je?$e+Et.substring(1):1==Je?$e+Et:$e+"/"+Et}function E($e){const Et=$e.match(/#|\?|$/),Je=Et&&Et.index||$e.length;return $e.slice(0,Je-("/"===$e[Je-1]?1:0))+$e.slice(Je)}function B($e){return $e&&"?"!==$e[0]?"?"+$e:$e}let Z=(()=>{class $e{historyGo(Je){throw new Error("Not implemented")}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function Y($e){const Et=(0,t.LFG)(d).location;return new ee((0,t.LFG)(R),Et&&Et.origin||"")}()},providedIn:"root"}),$e})();const ae=new t.OlP("appBaseHref");let ee=(()=>{class $e extends Z{constructor(Je,kt){if(super(),this._platformLocation=Je,this._removeListenerFns=[],null==kt&&(kt=this._platformLocation.getBaseHrefFromDOM()),null==kt)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=kt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}prepareExternalUrl(Je){return k(this._baseHref,Je)}path(Je=!1){const kt=this._platformLocation.pathname+B(this._platformLocation.search),Xt=this._platformLocation.hash;return Xt&&Je?`${kt}${Xt}`:kt}pushState(Je,kt,Xt,Mi){const Pi=this.prepareExternalUrl(Xt+B(Mi));this._platformLocation.pushState(Je,kt,Pi)}replaceState(Je,kt,Xt,Mi){const Pi=this.prepareExternalUrl(Xt+B(Mi));this._platformLocation.replaceState(Je,kt,Pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Je=0){var kt,Xt;null===(Xt=(kt=this._platformLocation).historyGo)||void 0===Xt||Xt.call(kt,Je)}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(R),t.LFG(ae,8))},$e.\u0275prov=t.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),ue=(()=>{class $e extends Z{constructor(Je,kt){super(),this._platformLocation=Je,this._baseHref="",this._removeListenerFns=[],null!=kt&&(this._baseHref=kt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}path(Je=!1){let kt=this._platformLocation.hash;return null==kt&&(kt="#"),kt.length>0?kt.substring(1):kt}prepareExternalUrl(Je){const kt=k(this._baseHref,Je);return kt.length>0?"#"+kt:kt}pushState(Je,kt,Xt,Mi){let Pi=this.prepareExternalUrl(Xt+B(Mi));0==Pi.length&&(Pi=this._platformLocation.pathname),this._platformLocation.pushState(Je,kt,Pi)}replaceState(Je,kt,Xt,Mi){let Pi=this.prepareExternalUrl(Xt+B(Mi));0==Pi.length&&(Pi=this._platformLocation.pathname),this._platformLocation.replaceState(Je,kt,Pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Je=0){var kt,Xt;null===(Xt=(kt=this._platformLocation).historyGo)||void 0===Xt||Xt.call(kt,Je)}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(R),t.LFG(ae,8))},$e.\u0275prov=t.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),ne=(()=>{class $e{constructor(Je,kt){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=Je;const Xt=this._platformStrategy.getBaseHref();this._platformLocation=kt,this._baseHref=E(q(Xt)),this._platformStrategy.onPopState(Mi=>{this._subject.emit({url:this.path(!0),pop:!0,state:Mi.state,type:Mi.type})})}path(Je=!1){return this.normalize(this._platformStrategy.path(Je))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Je,kt=""){return this.path()==this.normalize(Je+B(kt))}normalize(Je){return $e.stripTrailingSlash(function ge($e,Et){return $e&&Et.startsWith($e)?Et.substring($e.length):Et}(this._baseHref,q(Je)))}prepareExternalUrl(Je){return Je&&"/"!==Je[0]&&(Je="/"+Je),this._platformStrategy.prepareExternalUrl(Je)}go(Je,kt="",Xt=null){this._platformStrategy.pushState(Xt,"",Je,kt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+B(kt)),Xt)}replaceState(Je,kt="",Xt=null){this._platformStrategy.replaceState(Xt,"",Je,kt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+B(kt)),Xt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Je=0){var kt,Xt;null===(Xt=(kt=this._platformStrategy).historyGo)||void 0===Xt||Xt.call(kt,Je)}onUrlChange(Je){this._urlChangeListeners.push(Je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(kt=>{this._notifyUrlChangeListeners(kt.url,kt.state)}))}_notifyUrlChangeListeners(Je="",kt){this._urlChangeListeners.forEach(Xt=>Xt(Je,kt))}subscribe(Je,kt,Xt){return this._subject.subscribe({next:Je,error:kt,complete:Xt})}}return $e.normalizeQueryParams=B,$e.joinWithSlash=k,$e.stripTrailingSlash=E,$e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(Z),t.LFG(R))},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function re(){return new ne((0,t.LFG)(Z),(0,t.LFG)(R))}()},providedIn:"root"}),$e})();function q($e){return $e.replace(/\/index.html$/,"")}var x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Percent=1]="Percent",x[x.Currency=2]="Currency",x[x.Scientific=3]="Scientific",x))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),u=(()=>((u=u||{})[u.Narrow=0]="Narrow",u[u.Abbreviated=1]="Abbreviated",u[u.Wide=2]="Wide",u[u.Short=3]="Short",u))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),v=(()=>((v=v||{})[v.Decimal=0]="Decimal",v[v.Group=1]="Group",v[v.List=2]="List",v[v.PercentSign=3]="PercentSign",v[v.PlusSign=4]="PlusSign",v[v.MinusSign=5]="MinusSign",v[v.Exponential=6]="Exponential",v[v.SuperscriptingExponent=7]="SuperscriptingExponent",v[v.PerMille=8]="PerMille",v[v.Infinity=9]="Infinity",v[v.NaN=10]="NaN",v[v.TimeSeparator=11]="TimeSeparator",v[v.CurrencyDecimal=12]="CurrencyDecimal",v[v.CurrencyGroup=13]="CurrencyGroup",v))();function X($e,Et){return Te((0,t.cg1)($e)[t.wAp.DateFormat],Et)}function he($e,Et){return Te((0,t.cg1)($e)[t.wAp.TimeFormat],Et)}function be($e,Et){return Te((0,t.cg1)($e)[t.wAp.DateTimeFormat],Et)}function Pe($e,Et){const Je=(0,t.cg1)($e),kt=Je[t.wAp.NumberSymbols][Et];if(void 0===kt){if(Et===v.CurrencyDecimal)return Je[t.wAp.NumberSymbols][v.Decimal];if(Et===v.CurrencyGroup)return Je[t.wAp.NumberSymbols][v.Group]}return kt}function ut($e){if(!$e[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${$e[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te($e,Et){for(let Je=Et;Je>-1;Je--)if(void 0!==$e[Je])return $e[Je];throw new Error("Locale data API: locale data undefined")}function xe($e){const[Et,Je]=$e.split(":");return{hours:+Et,minutes:+Je}}const fe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Q={},pt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var tt=(()=>((tt=tt||{})[tt.Short=0]="Short",tt[tt.ShortGMT=1]="ShortGMT",tt[tt.Long=2]="Long",tt[tt.Extended=3]="Extended",tt))(),Dt=(()=>((Dt=Dt||{})[Dt.FullYear=0]="FullYear",Dt[Dt.Month=1]="Month",Dt[Dt.Date=2]="Date",Dt[Dt.Hours=3]="Hours",Dt[Dt.Minutes=4]="Minutes",Dt[Dt.Seconds=5]="Seconds",Dt[Dt.FractionalSeconds=6]="FractionalSeconds",Dt[Dt.Day=7]="Day",Dt))(),di=(()=>((di=di||{})[di.DayPeriods=0]="DayPeriods",di[di.Days=1]="Days",di[di.Months=2]="Months",di[di.Eras=3]="Eras",di))();function Yt($e,Et,Je,kt){let Xt=function Ge($e){if(lt($e))return $e;if("number"==typeof $e&&!isNaN($e))return new Date($e);if("string"==typeof $e){if($e=$e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($e)){const[Xt,Mi=1,Pi=1]=$e.split("-").map(en=>+en);return Zt(Xt,Mi-1,Pi)}const Je=parseFloat($e);if(!isNaN($e-Je))return new Date(Je);let kt;if(kt=$e.match(fe))return function ot($e){const Et=new Date(0);let Je=0,kt=0;const Xt=$e[8]?Et.setUTCFullYear:Et.setFullYear,Mi=$e[8]?Et.setUTCHours:Et.setHours;$e[9]&&(Je=Number($e[9]+$e[10]),kt=Number($e[9]+$e[11])),Xt.call(Et,Number($e[1]),Number($e[2])-1,Number($e[3]));const Pi=Number($e[4]||0)-Je,en=Number($e[5]||0)-kt,nr=Number($e[6]||0),Bn=Math.floor(1e3*parseFloat("0."+($e[7]||0)));return Mi.call(Et,Pi,en,nr,Bn),Et}(kt)}const Et=new Date($e);if(!lt(Et))throw new Error(`Unable to convert "${$e}" into a date`);return Et}($e);Et=ui(Je,Et)||Et;let en,Pi=[];for(;Et;){if(en=pt.exec(Et),!en){Pi.push(Et);break}{Pi=Pi.concat(en.slice(1));const It=Pi.pop();if(!It)break;Et=It}}let nr=Xt.getTimezoneOffset();kt&&(nr=rt(kt,nr),Xt=function Ae($e,Et,Je){const kt=Je?-1:1,Xt=$e.getTimezoneOffset();return function et($e,Et){return($e=new Date($e.getTime())).setMinutes($e.getMinutes()+Et),$e}($e,kt*(rt(Et,Xt)-Xt))}(Xt,kt,!0));let Bn="";return Pi.forEach(It=>{const ci=function He($e){if(nt[$e])return nt[$e];let Et;switch($e){case"G":case"GG":case"GGG":Et=ti(di.Eras,u.Abbreviated);break;case"GGGG":Et=ti(di.Eras,u.Wide);break;case"GGGGG":Et=ti(di.Eras,u.Narrow);break;case"y":Et=it(Dt.FullYear,1,0,!1,!0);break;case"yy":Et=it(Dt.FullYear,2,0,!0,!0);break;case"yyy":Et=it(Dt.FullYear,3,0,!1,!0);break;case"yyyy":Et=it(Dt.FullYear,4,0,!1,!0);break;case"Y":Et=Ft(1);break;case"YY":Et=Ft(2,!0);break;case"YYY":Et=Ft(3);break;case"YYYY":Et=Ft(4);break;case"M":case"L":Et=it(Dt.Month,1,1);break;case"MM":case"LL":Et=it(Dt.Month,2,1);break;case"MMM":Et=ti(di.Months,u.Abbreviated);break;case"MMMM":Et=ti(di.Months,u.Wide);break;case"MMMMM":Et=ti(di.Months,u.Narrow);break;case"LLL":Et=ti(di.Months,u.Abbreviated,r.Standalone);break;case"LLLL":Et=ti(di.Months,u.Wide,r.Standalone);break;case"LLLLL":Et=ti(di.Months,u.Narrow,r.Standalone);break;case"w":Et=mt(1);break;case"ww":Et=mt(2);break;case"W":Et=mt(1,!0);break;case"d":Et=it(Dt.Date,1);break;case"dd":Et=it(Dt.Date,2);break;case"c":case"cc":Et=it(Dt.Day,1);break;case"ccc":Et=ti(di.Days,u.Abbreviated,r.Standalone);break;case"cccc":Et=ti(di.Days,u.Wide,r.Standalone);break;case"ccccc":Et=ti(di.Days,u.Narrow,r.Standalone);break;case"cccccc":Et=ti(di.Days,u.Short,r.Standalone);break;case"E":case"EE":case"EEE":Et=ti(di.Days,u.Abbreviated);break;case"EEEE":Et=ti(di.Days,u.Wide);break;case"EEEEE":Et=ti(di.Days,u.Narrow);break;case"EEEEEE":Et=ti(di.Days,u.Short);break;case"a":case"aa":case"aaa":Et=ti(di.DayPeriods,u.Abbreviated);break;case"aaaa":Et=ti(di.DayPeriods,u.Wide);break;case"aaaaa":Et=ti(di.DayPeriods,u.Narrow);break;case"b":case"bb":case"bbb":Et=ti(di.DayPeriods,u.Abbreviated,r.Standalone,!0);break;case"bbbb":Et=ti(di.DayPeriods,u.Wide,r.Standalone,!0);break;case"bbbbb":Et=ti(di.DayPeriods,u.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":Et=ti(di.DayPeriods,u.Abbreviated,r.Format,!0);break;case"BBBB":Et=ti(di.DayPeriods,u.Wide,r.Format,!0);break;case"BBBBB":Et=ti(di.DayPeriods,u.Narrow,r.Format,!0);break;case"h":Et=it(Dt.Hours,1,-12);break;case"hh":Et=it(Dt.Hours,2,-12);break;case"H":Et=it(Dt.Hours,1);break;case"HH":Et=it(Dt.Hours,2);break;case"m":Et=it(Dt.Minutes,1);break;case"mm":Et=it(Dt.Minutes,2);break;case"s":Et=it(Dt.Seconds,1);break;case"ss":Et=it(Dt.Seconds,2);break;case"S":Et=it(Dt.FractionalSeconds,1);break;case"SS":Et=it(Dt.FractionalSeconds,2);break;case"SSS":Et=it(Dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Et=Re(tt.Short);break;case"ZZZZZ":Et=Re(tt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Et=Re(tt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Et=Re(tt.Long);break;default:return null}return nt[$e]=Et,Et}(It);Bn+=ci?ci(Xt,Je,nr):"''"===It?"'":It.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Bn}function Zt($e,Et,Je){const kt=new Date(0);return kt.setFullYear($e,Et,Je),kt.setHours(0,0,0),kt}function ui($e,Et){const Je=function I($e){return(0,t.cg1)($e)[t.wAp.LocaleId]}($e);if(Q[Je]=Q[Je]||{},Q[Je][Et])return Q[Je][Et];let kt="";switch(Et){case"shortDate":kt=X($e,c.Short);break;case"mediumDate":kt=X($e,c.Medium);break;case"longDate":kt=X($e,c.Long);break;case"fullDate":kt=X($e,c.Full);break;case"shortTime":kt=he($e,c.Short);break;case"mediumTime":kt=he($e,c.Medium);break;case"longTime":kt=he($e,c.Long);break;case"fullTime":kt=he($e,c.Full);break;case"short":const Xt=ui($e,"shortTime"),Mi=ui($e,"shortDate");kt=Ot(be($e,c.Short),[Xt,Mi]);break;case"medium":const Pi=ui($e,"mediumTime"),en=ui($e,"mediumDate");kt=Ot(be($e,c.Medium),[Pi,en]);break;case"long":const nr=ui($e,"longTime"),Bn=ui($e,"longDate");kt=Ot(be($e,c.Long),[nr,Bn]);break;case"full":const It=ui($e,"fullTime"),ci=ui($e,"fullDate");kt=Ot(be($e,c.Full),[It,ci])}return kt&&(Q[Je][Et]=kt),kt}function Ot($e,Et){return Et&&($e=$e.replace(/\{([^}]+)}/g,function(Je,kt){return null!=Et&&kt in Et?Et[kt]:Je})),$e}function Nt($e,Et,Je="-",kt,Xt){let Mi="";($e<0||Xt&&$e<=0)&&(Xt?$e=1-$e:($e=-$e,Mi=Je));let Pi=String($e);for(;Pi.length0||en>-Je)&&(en+=Je),$e===Dt.Hours)0===en&&-12===Je&&(en=12);else if($e===Dt.FractionalSeconds)return function gt($e,Et){return Nt($e,3).substr(0,Et)}(en,Et);const nr=Pe(Pi,v.MinusSign);return Nt(en,Et,nr,kt,Xt)}}function ti($e,Et,Je=r.Format,kt=!1){return function(Xt,Mi){return function Qt($e,Et,Je,kt,Xt,Mi){switch(Je){case di.Months:return function _($e,Et,Je){const kt=(0,t.cg1)($e),Mi=Te([kt[t.wAp.MonthsFormat],kt[t.wAp.MonthsStandalone]],Et);return Te(Mi,Je)}(Et,Xt,kt)[$e.getMonth()];case di.Days:return function n($e,Et,Je){const kt=(0,t.cg1)($e),Mi=Te([kt[t.wAp.DaysFormat],kt[t.wAp.DaysStandalone]],Et);return Te(Mi,Je)}(Et,Xt,kt)[$e.getDay()];case di.DayPeriods:const Pi=$e.getHours(),en=$e.getMinutes();if(Mi){const Bn=function Oe($e){const Et=(0,t.cg1)($e);return ut(Et),(Et[t.wAp.ExtraData][2]||[]).map(kt=>"string"==typeof kt?xe(kt):[xe(kt[0]),xe(kt[1])])}(Et),It=function we($e,Et,Je){const kt=(0,t.cg1)($e);ut(kt);const Mi=Te([kt[t.wAp.ExtraData][0],kt[t.wAp.ExtraData][1]],Et)||[];return Te(Mi,Je)||[]}(Et,Xt,kt),ci=Bn.findIndex(vt=>{if(Array.isArray(vt)){const[jt,Oi]=vt,je=Pi>=jt.hours&&en>=jt.minutes,Ye=Pi0?Math.floor(Xt/60):Math.ceil(Xt/60);switch($e){case tt.Short:return(Xt>=0?"+":"")+Nt(Pi,2,Mi)+Nt(Math.abs(Xt%60),2,Mi);case tt.ShortGMT:return"GMT"+(Xt>=0?"+":"")+Nt(Pi,1,Mi);case tt.Long:return"GMT"+(Xt>=0?"+":"")+Nt(Pi,2,Mi)+":"+Nt(Math.abs(Xt%60),2,Mi);case tt.Extended:return 0===kt?"Z":(Xt>=0?"+":"")+Nt(Pi,2,Mi)+":"+Nt(Math.abs(Xt%60),2,Mi);default:throw new Error(`Unknown zone width "${$e}"`)}}}function ht($e){return Zt($e.getFullYear(),$e.getMonth(),$e.getDate()+(4-$e.getDay()))}function mt($e,Et=!1){return function(Je,kt){let Xt;if(Et){const Mi=new Date(Je.getFullYear(),Je.getMonth(),1).getDay()-1,Pi=Je.getDate();Xt=1+Math.floor((Pi+Mi)/7)}else{const Mi=ht(Je),Pi=function ye($e){const Et=Zt($e,0,1).getDay();return Zt($e,0,1+(Et<=4?4:11)-Et)}(Mi.getFullYear()),en=Mi.getTime()-Pi.getTime();Xt=1+Math.round(en/6048e5)}return Nt(Xt,$e,Pe(kt,v.MinusSign))}}function Ft($e,Et=!1){return function(Je,kt){return Nt(ht(Je).getFullYear(),$e,Pe(kt,v.MinusSign),Et)}}const nt={};function rt($e,Et){$e=$e.replace(/:/g,"");const Je=Date.parse("Jan 01, 1970 00:00:00 "+$e)/6e4;return isNaN(Je)?Et:Je}function lt($e){return $e instanceof Date&&!isNaN($e.valueOf())}const Ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Xe($e){const Et=parseInt($e);if(isNaN(Et))throw new Error("Invalid integer literal when parsing "+$e);return Et}function Xi($e,Et){Et=encodeURIComponent(Et);for(const Je of $e.split(";")){const kt=Je.indexOf("="),[Xt,Mi]=-1==kt?[Je,""]:[Je.slice(0,kt),Je.slice(kt+1)];if(Xt.trim()===Et)return decodeURIComponent(Mi)}return null}let Wi=(()=>{class $e{constructor(Je,kt,Xt,Mi){this._iterableDiffers=Je,this._keyValueDiffers=kt,this._ngEl=Xt,this._renderer=Mi,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Je?Je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Je?Je.split(/\s+/):Je,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Je=this._iterableDiffer.diff(this._rawClass);Je&&this._applyIterableChanges(Je)}else if(this._keyValueDiffer){const Je=this._keyValueDiffer.diff(this._rawClass);Je&&this._applyKeyValueChanges(Je)}}_applyKeyValueChanges(Je){Je.forEachAddedItem(kt=>this._toggleClass(kt.key,kt.currentValue)),Je.forEachChangedItem(kt=>this._toggleClass(kt.key,kt.currentValue)),Je.forEachRemovedItem(kt=>{kt.previousValue&&this._toggleClass(kt.key,!1)})}_applyIterableChanges(Je){Je.forEachAddedItem(kt=>{if("string"!=typeof kt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(kt.item)}`);this._toggleClass(kt.item,!0)}),Je.forEachRemovedItem(kt=>this._toggleClass(kt.item,!1))}_applyClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(kt=>this._toggleClass(kt,!0)):Object.keys(Je).forEach(kt=>this._toggleClass(kt,!!Je[kt])))}_removeClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(kt=>this._toggleClass(kt,!1)):Object.keys(Je).forEach(kt=>this._toggleClass(kt,!1)))}_toggleClass(Je,kt){(Je=Je.trim())&&Je.split(/\s+/g).forEach(Xt=>{kt?this._renderer.addClass(this._ngEl.nativeElement,Xt):this._renderer.removeClass(this._ngEl.nativeElement,Xt)})}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),$e})();class pn{constructor(Et,Je,kt,Xt){this.$implicit=Et,this.ngForOf=Je,this.index=kt,this.count=Xt}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 ii=(()=>{class $e{constructor(Je,kt,Xt){this._viewContainer=Je,this._template=kt,this._differs=Xt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Je){this._ngForOf=Je,this._ngForOfDirty=!0}set ngForTrackBy(Je){this._trackByFn=Je}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Je){Je&&(this._template=Je)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Je=this._ngForOf;!this._differ&&Je&&(this._differ=this._differs.find(Je).create(this.ngForTrackBy))}if(this._differ){const Je=this._differ.diff(this._ngForOf);Je&&this._applyChanges(Je)}}_applyChanges(Je){const kt=this._viewContainer;Je.forEachOperation((Xt,Mi,Pi)=>{if(null==Xt.previousIndex)kt.createEmbeddedView(this._template,new pn(Xt.item,this._ngForOf,-1,-1),null===Pi?void 0:Pi);else if(null==Pi)kt.remove(null===Mi?void 0:Mi);else if(null!==Mi){const en=kt.get(Mi);kt.move(en,Pi),Ri(en,Xt)}});for(let Xt=0,Mi=kt.length;Xt{Ri(kt.get(Xt.currentIndex),Xt)})}static ngTemplateContextGuard(Je,kt){return!0}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),$e})();function Ri($e,Et){$e.context.$implicit=Et.item}let Rt=(()=>{class $e{constructor(Je,kt){this._viewContainer=Je,this._context=new Wt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=kt}set ngIf(Je){this._context.$implicit=this._context.ngIf=Je,this._updateView()}set ngIfThen(Je){fi("ngIfThen",Je),this._thenTemplateRef=Je,this._thenViewRef=null,this._updateView()}set ngIfElse(Je){fi("ngIfElse",Je),this._elseTemplateRef=Je,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(Je,kt){return!0}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),$e})();class Wt{constructor(){this.$implicit=null,this.ngIf=null}}function fi($e,Et){if(Et&&!Et.createEmbeddedView)throw new Error(`${$e} must be a TemplateRef, but received '${(0,t.AaK)(Et)}'.`)}class Ti{constructor(Et,Je){this._viewContainerRef=Et,this._templateRef=Je,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Et){Et&&!this._created?this.create():!Et&&this._created&&this.destroy()}}let Ni=(()=>{class $e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Je){this._ngSwitch=Je,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Je)}_matchCase(Je){const kt=Je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||kt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),kt}_updateDefaultCases(Je){if(this._defaultViews&&Je!==this._defaultUsed){this._defaultUsed=Je;for(let kt=0;kt{class $e{constructor(Je,kt,Xt){this.ngSwitch=Xt,Xt._addCase(),this._view=new Ti(Je,kt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Ni,9))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),$e})(),In=(()=>{class $e{constructor(Je,kt,Xt){Xt._addDefault(new Ti(Je,kt))}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Ni,9))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngSwitchDefault",""]]}),$e})(),Si=(()=>{class $e{constructor(Je,kt,Xt){this._ngEl=Je,this._differs=kt,this._renderer=Xt,this._ngStyle=null,this._differ=null}set ngStyle(Je){this._ngStyle=Je,!this._differ&&Je&&(this._differ=this._differs.find(Je).create())}ngDoCheck(){if(this._differ){const Je=this._differ.diff(this._ngStyle);Je&&this._applyChanges(Je)}}_setStyle(Je,kt){const[Xt,Mi]=Je.split(".");null!=(kt=null!=kt&&Mi?`${kt}${Mi}`:kt)?this._renderer.setStyle(this._ngEl.nativeElement,Xt,kt):this._renderer.removeStyle(this._ngEl.nativeElement,Xt)}_applyChanges(Je){Je.forEachRemovedItem(kt=>this._setStyle(kt.key,null)),Je.forEachAddedItem(kt=>this._setStyle(kt.key,kt.currentValue)),Je.forEachChangedItem(kt=>this._setStyle(kt.key,kt.currentValue))}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),$e})(),Ki=(()=>{class $e{constructor(Je){this._viewContainerRef=Je,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Je){if(Je.ngTemplateOutlet){const kt=this._viewContainerRef;this._viewRef&&kt.remove(kt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?kt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.TTD]}),$e})();function qn($e,Et){return new t.vHH(2100,"")}class sr{createSubscription(Et,Je){return Et.subscribe({next:Je,error:kt=>{throw kt}})}dispose(Et){Et.unsubscribe()}onDestroy(Et){Et.unsubscribe()}}class ha{createSubscription(Et,Je){return Et.then(Je,kt=>{throw kt})}dispose(Et){}onDestroy(Et){}}const _a=new ha,Sr=new sr;let fa=(()=>{class $e{constructor(Je){this._ref=Je,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Je){return this._obj?Je!==this._obj?(this._dispose(),this.transform(Je)):this._latestValue:(Je&&this._subscribe(Je),this._latestValue)}_subscribe(Je){this._obj=Je,this._strategy=this._selectStrategy(Je),this._subscription=this._strategy.createSubscription(Je,kt=>this._updateLatestValue(Je,kt))}_selectStrategy(Je){if((0,t.QGY)(Je))return _a;if((0,t.F4k)(Je))return Sr;throw qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Je,kt){Je===this._obj&&(this._latestValue=kt,this._ref.markForCheck())}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.sBO,16))},$e.\u0275pipe=t.Yjl({name:"async",type:$e,pure:!1}),$e})(),zr=(()=>{class $e{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw qn();return Je.toLowerCase()}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"lowercase",type:$e,pure:!0}),$e})();const ta=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let ia=(()=>{class $e{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw qn();return Je.replace(ta,kt=>kt[0].toUpperCase()+kt.substr(1).toLowerCase())}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"titlecase",type:$e,pure:!0}),$e})(),na=(()=>{class $e{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw qn();return Je.toUpperCase()}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"uppercase",type:$e,pure:!0}),$e})();const qr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Jr=(()=>{class $e{constructor(Je,kt){this.locale=Je,this.defaultTimezone=kt}transform(Je,kt="mediumDate",Xt,Mi){var Pi;if(null==Je||""===Je||Je!=Je)return null;try{return Yt(Je,kt,Mi||this.locale,null!==(Pi=null!=Xt?Xt:this.defaultTimezone)&&void 0!==Pi?Pi:void 0)}catch(en){throw qn()}}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.soG,16),t.Y36(qr,24))},$e.\u0275pipe=t.Yjl({name:"date",type:$e,pure:!0}),$e})(),Pr=(()=>{class $e{transform(Je){return JSON.stringify(Je,null,2)}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"json",type:$e,pure:!1}),$e})(),Vr=(()=>{class $e{constructor(Je){this.differs=Je,this.keyValues=[],this.compareFn=cr}transform(Je,kt=cr){if(!Je||!(Je instanceof Map)&&"object"!=typeof Je)return null;this.differ||(this.differ=this.differs.find(Je).create());const Xt=this.differ.diff(Je),Mi=kt!==this.compareFn;return Xt&&(this.keyValues=[],Xt.forEachItem(Pi=>{this.keyValues.push(function Yn($e,Et){return{key:$e,value:Et}}(Pi.key,Pi.currentValue))})),(Xt||Mi)&&(this.keyValues.sort(kt),this.compareFn=kt),this.keyValues}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.aQg,16))},$e.\u0275pipe=t.Yjl({name:"keyvalue",type:$e,pure:!1}),$e})();function cr($e,Et){const Je=$e.key,kt=Et.key;if(Je===kt)return 0;if(void 0===Je)return 1;if(void 0===kt)return-1;if(null===Je)return 1;if(null===kt)return-1;if("string"==typeof Je&&"string"==typeof kt)return Je{class $e{constructor(Je){this._locale=Je}transform(Je,kt,Xt){if(!function va($e){return!(null==$e||""===$e||$e!=$e)}(Je))return null;Xt=Xt||this._locale;try{return function Tt($e,Et,Je){return function Vi($e,Et,Je,kt,Xt,Mi,Pi=!1){let en="",nr=!1;if(isFinite($e)){let Bn=function _t($e){let kt,Xt,Mi,Pi,en,Et=Math.abs($e)+"",Je=0;for((Xt=Et.indexOf("."))>-1&&(Et=Et.replace(".","")),(Mi=Et.search(/e/i))>0?(Xt<0&&(Xt=Mi),Xt+=+Et.slice(Mi+1),Et=Et.substring(0,Mi)):Xt<0&&(Xt=Et.length),Mi=0;"0"===Et.charAt(Mi);Mi++);if(Mi===(en=Et.length))kt=[0],Xt=1;else{for(en--;"0"===Et.charAt(en);)en--;for(Xt-=Mi,kt=[],Pi=0;Mi<=en;Mi++,Pi++)kt[Pi]=Number(Et.charAt(Mi))}return Xt>22&&(kt=kt.splice(0,21),Je=Xt-1,Xt=1),{digits:kt,exponent:Je,integerLen:Xt}}($e);Pi&&(Bn=function Qe($e){if(0===$e.digits[0])return $e;const Et=$e.digits.length-$e.integerLen;return $e.exponent?$e.exponent+=2:(0===Et?$e.digits.push(0,0):1===Et&&$e.digits.push(0),$e.integerLen+=2),$e}(Bn));let It=Et.minInt,ci=Et.minFrac,vt=Et.maxFrac;if(Mi){const At=Mi.match(Ct);if(null===At)throw new Error(`${Mi} is not a valid digit info`);const wi=At[1],Gi=At[3],Un=At[5];null!=wi&&(It=Xe(wi)),null!=Gi&&(ci=Xe(Gi)),null!=Un?vt=Xe(Un):null!=Gi&&ci>vt&&(vt=ci)}!function se($e,Et,Je){if(Et>Je)throw new Error(`The minimum number of digits after fraction (${Et}) is higher than the maximum (${Je}).`);let kt=$e.digits,Xt=kt.length-$e.integerLen;const Mi=Math.min(Math.max(Et,Xt),Je);let Pi=Mi+$e.integerLen,en=kt[Pi];if(Pi>0){kt.splice(Math.max($e.integerLen,Pi));for(let ci=Pi;ci=5)if(Pi-1<0){for(let ci=0;ci>Pi;ci--)kt.unshift(0),$e.integerLen++;kt.unshift(1),$e.integerLen++}else kt[Pi-1]++;for(;Xt=Bn?Oi.pop():nr=!1),vt>=10?1:0},0);It&&(kt.unshift(It),$e.integerLen++)}(Bn,ci,vt);let jt=Bn.digits,Oi=Bn.integerLen;const je=Bn.exponent;let Ye=[];for(nr=jt.every(At=>!At);Oi0?Ye=jt.splice(Oi,jt.length):(Ye=jt,jt=[0]);const Fe=[];for(jt.length>=Et.lgSize&&Fe.unshift(jt.splice(-Et.lgSize,jt.length).join(""));jt.length>Et.gSize;)Fe.unshift(jt.splice(-Et.gSize,jt.length).join(""));jt.length&&Fe.unshift(jt.join("")),en=Fe.join(Pe(Je,kt)),Ye.length&&(en+=Pe(Je,Xt)+Ye.join("")),je&&(en+=Pe(Je,v.Exponential)+"+"+je)}else en=Pe(Je,v.Infinity);return en=$e<0&&!nr?Et.negPre+en+Et.negSuf:Et.posPre+en+Et.posSuf,en}($e,function ve($e,Et="-"){const Je={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},kt=$e.split(";"),Xt=kt[0],Mi=kt[1],Pi=-1!==Xt.indexOf(".")?Xt.split("."):[Xt.substring(0,Xt.lastIndexOf("0")+1),Xt.substring(Xt.lastIndexOf("0")+1)],en=Pi[0],nr=Pi[1]||"";Je.posPre=en.substr(0,en.indexOf("#"));for(let It=0;It{class $e{transform(Je,kt,Xt){if(null==Je)return null;if(!this.supports(Je))throw qn();return Je.slice(kt,Xt)}supports(Je){return"string"==typeof Je||Array.isArray(Je)}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"slice",type:$e,pure:!1}),$e})(),Dr=(()=>{class $e{}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275mod=t.oAB({type:$e}),$e.\u0275inj=t.cJS({}),$e})();const ra="browser";function or($e){return $e===ra}function aa($e){return"server"===$e}let Yr=(()=>{class $e{}return $e.\u0275prov=(0,t.Yz7)({token:$e,providedIn:"root",factory:()=>new Nr((0,t.LFG)(d),window)}),$e})();class Nr{constructor(Et,Je){this.document=Et,this.window=Je,this.offset=()=>[0,0]}setOffset(Et){this.offset=Array.isArray(Et)?()=>Et:Et}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Et){this.supportsScrolling()&&this.window.scrollTo(Et[0],Et[1])}scrollToAnchor(Et){if(!this.supportsScrolling())return;const Je=function Sa($e,Et){const Je=$e.getElementById(Et)||$e.getElementsByName(Et)[0];if(Je)return Je;if("function"==typeof $e.createTreeWalker&&$e.body&&($e.body.createShadowRoot||$e.body.attachShadow)){const kt=$e.createTreeWalker($e.body,NodeFilter.SHOW_ELEMENT);let Xt=kt.currentNode;for(;Xt;){const Mi=Xt.shadowRoot;if(Mi){const Pi=Mi.getElementById(Et)||Mi.querySelector(`[name="${Et}"]`);if(Pi)return Pi}Xt=kt.nextNode()}}return null}(this.document,Et);Je&&(this.scrollToElement(Je),Je.focus())}setHistoryScrollRestoration(Et){if(this.supportScrollRestoration()){const Je=this.window.history;Je&&Je.scrollRestoration&&(Je.scrollRestoration=Et)}}scrollToElement(Et){const Je=Et.getBoundingClientRect(),kt=Je.left+this.window.pageXOffset,Xt=Je.top+this.window.pageYOffset,Mi=this.offset();this.window.scrollTo(kt-Mi[0],Xt-Mi[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Et=Br(this.window.history)||Br(Object.getPrototypeOf(this.window.history));return!(!Et||!Et.writable&&!Et.set)}catch(Et){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Et){return!1}}}function Br($e){return Object.getOwnPropertyDescriptor($e,"scrollRestoration")}class Xn{}},8138:(Be,K,p)=>{"use strict";p.d(K,{JF:()=>xe,LE:()=>Z,TP:()=>I,eN:()=>v});var t=p(9808),e=p(5e3),f=p(9646),M=p(8306),a=p(4351),C=p(9300),d=p(4004);class R{}class h{}class L{constructor(fe){this.normalizedNames=new Map,this.lazyUpdate=null,fe?this.lazyInit="string"==typeof fe?()=>{this.headers=new Map,fe.split("\n").forEach(Q=>{const pt=Q.indexOf(":");if(pt>0){const tt=Q.slice(0,pt),Dt=tt.toLowerCase(),di=Q.slice(pt+1).trim();this.maybeSetNormalizedName(tt,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(di):this.headers.set(Dt,[di])}})}:()=>{this.headers=new Map,Object.keys(fe).forEach(Q=>{let pt=fe[Q];const tt=Q.toLowerCase();"string"==typeof pt&&(pt=[pt]),pt.length>0&&(this.headers.set(tt,pt),this.maybeSetNormalizedName(Q,tt))})}:this.headers=new Map}has(fe){return this.init(),this.headers.has(fe.toLowerCase())}get(fe){this.init();const Q=this.headers.get(fe.toLowerCase());return Q&&Q.length>0?Q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(fe){return this.init(),this.headers.get(fe.toLowerCase())||null}append(fe,Q){return this.clone({name:fe,value:Q,op:"a"})}set(fe,Q){return this.clone({name:fe,value:Q,op:"s"})}delete(fe,Q){return this.clone({name:fe,value:Q,op:"d"})}maybeSetNormalizedName(fe,Q){this.normalizedNames.has(Q)||this.normalizedNames.set(Q,fe)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(fe=>this.applyUpdate(fe)),this.lazyUpdate=null))}copyFrom(fe){fe.init(),Array.from(fe.headers.keys()).forEach(Q=>{this.headers.set(Q,fe.headers.get(Q)),this.normalizedNames.set(Q,fe.normalizedNames.get(Q))})}clone(fe){const Q=new L;return Q.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,Q.lazyUpdate=(this.lazyUpdate||[]).concat([fe]),Q}applyUpdate(fe){const Q=fe.name.toLowerCase();switch(fe.op){case"a":case"s":let pt=fe.value;if("string"==typeof pt&&(pt=[pt]),0===pt.length)return;this.maybeSetNormalizedName(fe.name,Q);const tt=("a"===fe.op?this.headers.get(Q):void 0)||[];tt.push(...pt),this.headers.set(Q,tt);break;case"d":const Dt=fe.value;if(Dt){let di=this.headers.get(Q);if(!di)return;di=di.filter(Yt=>-1===Dt.indexOf(Yt)),0===di.length?(this.headers.delete(Q),this.normalizedNames.delete(Q)):this.headers.set(Q,di)}else this.headers.delete(Q),this.normalizedNames.delete(Q)}}forEach(fe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Q=>fe(this.normalizedNames.get(Q),this.headers.get(Q)))}}class w{encodeKey(fe){return E(fe)}encodeValue(fe){return E(fe)}decodeKey(fe){return decodeURIComponent(fe)}decodeValue(fe){return decodeURIComponent(fe)}}const S=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function E(Ce){return encodeURIComponent(Ce).replace(S,(fe,Q)=>{var pt;return null!==(pt=k[Q])&&void 0!==pt?pt:fe})}function B(Ce){return`${Ce}`}class Z{constructor(fe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=fe.encoder||new w,fe.fromString){if(fe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(Ce,fe){const Q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(tt=>{const Dt=tt.indexOf("="),[di,Yt]=-1==Dt?[fe.decodeKey(tt),""]:[fe.decodeKey(tt.slice(0,Dt)),fe.decodeValue(tt.slice(Dt+1))],Zt=Q.get(di)||[];Zt.push(Yt),Q.set(di,Zt)}),Q}(fe.fromString,this.encoder)}else fe.fromObject?(this.map=new Map,Object.keys(fe.fromObject).forEach(Q=>{const pt=fe.fromObject[Q];this.map.set(Q,Array.isArray(pt)?pt:[pt])})):this.map=null}has(fe){return this.init(),this.map.has(fe)}get(fe){this.init();const Q=this.map.get(fe);return Q?Q[0]:null}getAll(fe){return this.init(),this.map.get(fe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(fe,Q){return this.clone({param:fe,value:Q,op:"a"})}appendAll(fe){const Q=[];return Object.keys(fe).forEach(pt=>{const tt=fe[pt];Array.isArray(tt)?tt.forEach(Dt=>{Q.push({param:pt,value:Dt,op:"a"})}):Q.push({param:pt,value:tt,op:"a"})}),this.clone(Q)}set(fe,Q){return this.clone({param:fe,value:Q,op:"s"})}delete(fe,Q){return this.clone({param:fe,value:Q,op:"d"})}toString(){return this.init(),this.keys().map(fe=>{const Q=this.encoder.encodeKey(fe);return this.map.get(fe).map(pt=>Q+"="+this.encoder.encodeValue(pt)).join("&")}).filter(fe=>""!==fe).join("&")}clone(fe){const Q=new Z({encoder:this.encoder});return Q.cloneFrom=this.cloneFrom||this,Q.updates=(this.updates||[]).concat(fe),Q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(fe=>this.map.set(fe,this.cloneFrom.map.get(fe))),this.updates.forEach(fe=>{switch(fe.op){case"a":case"s":const Q=("a"===fe.op?this.map.get(fe.param):void 0)||[];Q.push(B(fe.value)),this.map.set(fe.param,Q);break;case"d":if(void 0===fe.value){this.map.delete(fe.param);break}{let pt=this.map.get(fe.param)||[];const tt=pt.indexOf(B(fe.value));-1!==tt&&pt.splice(tt,1),pt.length>0?this.map.set(fe.param,pt):this.map.delete(fe.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(){this.map=new Map}set(fe,Q){return this.map.set(fe,Q),this}get(fe){return this.map.has(fe)||this.map.set(fe,fe.defaultValue()),this.map.get(fe)}delete(fe){return this.map.delete(fe),this}has(fe){return this.map.has(fe)}keys(){return this.map.keys()}}function ue(Ce){return"undefined"!=typeof ArrayBuffer&&Ce instanceof ArrayBuffer}function ne(Ce){return"undefined"!=typeof Blob&&Ce instanceof Blob}function re(Ce){return"undefined"!=typeof FormData&&Ce instanceof FormData}class q{constructor(fe,Q,pt,tt){let Dt;if(this.url=Q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=fe.toUpperCase(),function ee(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||tt?(this.body=void 0!==pt?pt:null,Dt=tt):Dt=pt,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new L),this.context||(this.context=new ae),this.params){const di=this.params.toString();if(0===di.length)this.urlWithParams=Q;else{const Yt=Q.indexOf("?");this.urlWithParams=Q+(-1===Yt?"?":Ytgt.set(it,fe.setHeaders[it]),ui)),fe.setParams&&(Ot=Object.keys(fe.setParams).reduce((gt,it)=>gt.set(it,fe.setParams[it]),Ot)),new q(pt,tt,di,{params:Ot,headers:ui,context:Nt,reportProgress:Zt,responseType:Dt,withCredentials:Yt})}}var _e=(()=>((_e=_e||{})[_e.Sent=0]="Sent",_e[_e.UploadProgress=1]="UploadProgress",_e[_e.ResponseHeader=2]="ResponseHeader",_e[_e.DownloadProgress=3]="DownloadProgress",_e[_e.Response=4]="Response",_e[_e.User=5]="User",_e))();class x{constructor(fe,Q=200,pt="OK"){this.headers=fe.headers||new L,this.status=void 0!==fe.status?fe.status:Q,this.statusText=fe.statusText||pt,this.url=fe.url||null,this.ok=this.status>=200&&this.status<300}}class i extends x{constructor(fe={}){super(fe),this.type=_e.ResponseHeader}clone(fe={}){return new i({headers:fe.headers||this.headers,status:void 0!==fe.status?fe.status:this.status,statusText:fe.statusText||this.statusText,url:fe.url||this.url||void 0})}}class r extends x{constructor(fe={}){super(fe),this.type=_e.Response,this.body=void 0!==fe.body?fe.body:null}clone(fe={}){return new r({body:void 0!==fe.body?fe.body:this.body,headers:fe.headers||this.headers,status:void 0!==fe.status?fe.status:this.status,statusText:fe.statusText||this.statusText,url:fe.url||this.url||void 0})}}class u extends x{constructor(fe){super(fe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${fe.url||"(unknown url)"}`:`Http failure response for ${fe.url||"(unknown url)"}: ${fe.status} ${fe.statusText}`,this.error=fe.error||null}}function c(Ce,fe){return{body:fe,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let v=(()=>{class Ce{constructor(Q){this.handler=Q}request(Q,pt,tt={}){let Dt;if(Q instanceof q)Dt=Q;else{let Zt,ui;Zt=tt.headers instanceof L?tt.headers:new L(tt.headers),tt.params&&(ui=tt.params instanceof Z?tt.params:new Z({fromObject:tt.params})),Dt=new q(Q,pt,void 0!==tt.body?tt.body:null,{headers:Zt,context:tt.context,params:ui,reportProgress:tt.reportProgress,responseType:tt.responseType||"json",withCredentials:tt.withCredentials})}const di=(0,f.of)(Dt).pipe((0,a.b)(Zt=>this.handler.handle(Zt)));if(Q instanceof q||"events"===tt.observe)return di;const Yt=di.pipe((0,C.h)(Zt=>Zt instanceof r));switch(tt.observe||"body"){case"body":switch(Dt.responseType){case"arraybuffer":return Yt.pipe((0,d.U)(Zt=>{if(null!==Zt.body&&!(Zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Zt.body}));case"blob":return Yt.pipe((0,d.U)(Zt=>{if(null!==Zt.body&&!(Zt.body instanceof Blob))throw new Error("Response is not a Blob.");return Zt.body}));case"text":return Yt.pipe((0,d.U)(Zt=>{if(null!==Zt.body&&"string"!=typeof Zt.body)throw new Error("Response is not a string.");return Zt.body}));default:return Yt.pipe((0,d.U)(Zt=>Zt.body))}case"response":return Yt;default:throw new Error(`Unreachable: unhandled observe type ${tt.observe}}`)}}delete(Q,pt={}){return this.request("DELETE",Q,pt)}get(Q,pt={}){return this.request("GET",Q,pt)}head(Q,pt={}){return this.request("HEAD",Q,pt)}jsonp(Q,pt){return this.request("JSONP",Q,{params:(new Z).append(pt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Q,pt={}){return this.request("OPTIONS",Q,pt)}patch(Q,pt,tt={}){return this.request("PATCH",Q,c(tt,pt))}post(Q,pt,tt={}){return this.request("POST",Q,c(tt,pt))}put(Q,pt,tt={}){return this.request("PUT",Q,c(tt,pt))}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(R))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class T{constructor(fe,Q){this.next=fe,this.interceptor=Q}handle(fe){return this.interceptor.intercept(fe,this.next)}}const I=new e.OlP("HTTP_INTERCEPTORS");let y=(()=>{class Ce{intercept(Q,pt){return pt.handle(Q)}}return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Pe=/^\)\]\}',?\n/;let j=(()=>{class Ce{constructor(Q){this.xhrFactory=Q}handle(Q){if("JSONP"===Q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(pt=>{const tt=this.xhrFactory.build();if(tt.open(Q.method,Q.urlWithParams),Q.withCredentials&&(tt.withCredentials=!0),Q.headers.forEach((it,bt)=>tt.setRequestHeader(it,bt.join(","))),Q.headers.has("Accept")||tt.setRequestHeader("Accept","application/json, text/plain, */*"),!Q.headers.has("Content-Type")){const it=Q.detectContentTypeHeader();null!==it&&tt.setRequestHeader("Content-Type",it)}if(Q.responseType){const it=Q.responseType.toLowerCase();tt.responseType="json"!==it?it:"text"}const Dt=Q.serializeBody();let di=null;const Yt=()=>{if(null!==di)return di;const it=tt.statusText||"OK",bt=new L(tt.getAllResponseHeaders()),ti=function Ee(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(tt)||Q.url;return di=new i({headers:bt,status:tt.status,statusText:it,url:ti}),di},Zt=()=>{let{headers:it,status:bt,statusText:ti,url:Qt}=Yt(),Re=null;204!==bt&&(Re=void 0===tt.response?tt.responseText:tt.response),0===bt&&(bt=Re?200:0);let ke=bt>=200&&bt<300;if("json"===Q.responseType&&"string"==typeof Re){const de=Re;Re=Re.replace(Pe,"");try{Re=""!==Re?JSON.parse(Re):null}catch(ye){Re=de,ke&&(ke=!1,Re={error:ye,text:Re})}}ke?(pt.next(new r({body:Re,headers:it,status:bt,statusText:ti,url:Qt||void 0})),pt.complete()):pt.error(new u({error:Re,headers:it,status:bt,statusText:ti,url:Qt||void 0}))},ui=it=>{const{url:bt}=Yt(),ti=new u({error:it,status:tt.status||0,statusText:tt.statusText||"Unknown Error",url:bt||void 0});pt.error(ti)};let Ot=!1;const Nt=it=>{Ot||(pt.next(Yt()),Ot=!0);let bt={type:_e.DownloadProgress,loaded:it.loaded};it.lengthComputable&&(bt.total=it.total),"text"===Q.responseType&&!!tt.responseText&&(bt.partialText=tt.responseText),pt.next(bt)},gt=it=>{let bt={type:_e.UploadProgress,loaded:it.loaded};it.lengthComputable&&(bt.total=it.total),pt.next(bt)};return tt.addEventListener("load",Zt),tt.addEventListener("error",ui),tt.addEventListener("timeout",ui),tt.addEventListener("abort",ui),Q.reportProgress&&(tt.addEventListener("progress",Nt),null!==Dt&&tt.upload&&tt.upload.addEventListener("progress",gt)),tt.send(Dt),pt.next({type:_e.Sent}),()=>{tt.removeEventListener("error",ui),tt.removeEventListener("abort",ui),tt.removeEventListener("load",Zt),tt.removeEventListener("timeout",ui),Q.reportProgress&&(tt.removeEventListener("progress",Nt),null!==Dt&&tt.upload&&tt.upload.removeEventListener("progress",gt)),tt.readyState!==tt.DONE&&tt.abort()}})}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(t.JF))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Ve=new e.OlP("XSRF_COOKIE_NAME"),Me=new e.OlP("XSRF_HEADER_NAME");class J{}let Ie=(()=>{class Ce{constructor(Q,pt,tt){this.doc=Q,this.platform=pt,this.cookieName=tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Q=this.doc.cookie||"";return Q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(Q,this.cookieName),this.lastCookieString=Q),this.lastToken}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Ve))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ut=(()=>{class Ce{constructor(Q,pt){this.tokenService=Q,this.headerName=pt}intercept(Q,pt){const tt=Q.url.toLowerCase();if("GET"===Q.method||"HEAD"===Q.method||tt.startsWith("http://")||tt.startsWith("https://"))return pt.handle(Q);const Dt=this.tokenService.getToken();return null!==Dt&&!Q.headers.has(this.headerName)&&(Q=Q.clone({headers:Q.headers.set(this.headerName,Dt)})),pt.handle(Q)}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(J),e.LFG(Me))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Oe=(()=>{class Ce{constructor(Q,pt){this.backend=Q,this.injector=pt,this.chain=null}handle(Q){if(null===this.chain){const pt=this.injector.get(I,[]);this.chain=pt.reduceRight((tt,Dt)=>new T(tt,Dt),this.backend)}return this.chain.handle(Q)}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(h),e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Te=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:ut,useClass:y}]}}static withOptions(Q={}){return{ngModule:Ce,providers:[Q.cookieName?{provide:Ve,useValue:Q.cookieName}:[],Q.headerName?{provide:Me,useValue:Q.headerName}:[]]}}}return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({providers:[ut,{provide:I,useExisting:ut,multi:!0},{provide:J,useClass:Ie},{provide:Ve,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),Ce})(),xe=(()=>{class Ce{}return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({providers:[v,{provide:R,useClass:Oe},j,{provide:h,useExisting:j}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ce})()},5e3:(Be,K,p)=>{"use strict";p.d(K,{$8M:()=>Wl,$Z:()=>Ud,AFp:()=>km,ALo:()=>xf,AaK:()=>R,AsE:()=>Z0,BQk:()=>P0,CHM:()=>Hs,CRH:()=>y4,CZH:()=>E4,CqO:()=>N0,DdM:()=>qp,Dn7:()=>lm,EJc:()=>W5,EiD:()=>Le,EpF:()=>Wd,F$t:()=>qd,F4k:()=>k0,FYo:()=>_f,FiY:()=>Sl,G48:()=>ug,Gf:()=>mm,GfV:()=>Gp,GkF:()=>Zd,Gpc:()=>w,Gre:()=>Xh,HOy:()=>a4,Hsn:()=>Ah,Ikx:()=>Nn,JOm:()=>Ks,JVY:()=>h3,Jf7:()=>b2,L6k:()=>f3,LAX:()=>m3,LFG:()=>Ba,LSH:()=>ji,Lbi:()=>B5,MAs:()=>xs,MGl:()=>Fc,NdJ:()=>z1,O4$:()=>xr,OlP:()=>Zr,Oqu:()=>U0,PXZ:()=>Um,PiD:()=>Us,Q6J:()=>D0,QGY:()=>hs,Qsj:()=>J8,R0b:()=>po,RDi:()=>Br,Rgc:()=>t3,SBq:()=>J0,Sil:()=>K5,Suo:()=>gm,TTD:()=>va,TgZ:()=>F1,Tol:()=>Vh,Udp:()=>F0,VKq:()=>Jp,VLi:()=>ag,W1O:()=>Of,WFA:()=>Yd,WLB:()=>bf,X6Q:()=>jm,XFs:()=>we,Xpm:()=>ht,Y36:()=>vl,YKP:()=>Yp,YNc:()=>C0,Yjl:()=>ot,Yz7:()=>X,ZZ4:()=>n6,_Bn:()=>Fp,_UZ:()=>Ul,_Vd:()=>c4,_c5:()=>Sg,_uU:()=>r4,aQg:()=>r6,c2e:()=>G5,cJS:()=>be,cg1:()=>Oa,d8E:()=>wn,dDg:()=>Fm,deG:()=>go,dqk:()=>ui,eBb:()=>p3,eFA:()=>jf,ekj:()=>i4,f3M:()=>ec,g9A:()=>Bf,h0i:()=>G1,hGG:()=>Eg,hYB:()=>R0,hij:()=>G0,iGM:()=>Df,ifc:()=>tt,ip1:()=>Pm,kEZ:()=>Xp,kL8:()=>Fr,kcU:()=>la,lG2:()=>Ge,lcZ:()=>sm,lnq:()=>W0,mCW:()=>Ro,n5z:()=>Zl,n_E:()=>p4,oAB:()=>rt,oJD:()=>Ht,oxw:()=>Qd,pB0:()=>g3,q3G:()=>We,qLn:()=>f1,qOj:()=>wd,qZA:()=>Hc,qzn:()=>vo,s9C:()=>Jd,sBO:()=>L4,sIi:()=>L1,s_b:()=>g4,soG:()=>Uf,tBr:()=>_o,tb:()=>Rm,tp0:()=>so,uIk:()=>Td,vHH:()=>E,vpe:()=>Ko,wAp:()=>sn,xi3:()=>om,xp6:()=>Z3,yhl:()=>o2,ynx:()=>O0,z2F:()=>Jf,z3N:()=>Ws,zSh:()=>gd,zs3:()=>Co});var t=p(7579),e=p(727),f=p(8306),M=p(6451),a=p(3099);function C(s){for(let l in s)if(s[l]===C)return l;throw Error("Could not find renamed property on target object.")}function d(s,l){for(const g in l)l.hasOwnProperty(g)&&!s.hasOwnProperty(g)&&(s[g]=l[g])}function R(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(R).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const l=s.toString();if(null==l)return""+l;const g=l.indexOf("\n");return-1===g?l:l.substring(0,g)}function h(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const L=C({__forward_ref__:C});function w(s){return s.__forward_ref__=w,s.toString=function(){return R(this())},s}function D(s){return S(s)?s():s}function S(s){return"function"==typeof s&&s.hasOwnProperty(L)&&s.__forward_ref__===w}class E extends Error{constructor(l,g){super(function B(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,g)),this.code=l}}function Z(s){return"string"==typeof s?s:null==s?"":String(s)}function Y(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Z(s)}function ne(s,l){const g=l?` in ${l}`:"";throw new E(-201,`No provider for ${Y(s)} found${g}`)}function n(s,l){null==s&&function _(s,l,g,A){throw new Error(`ASSERTION ERROR: ${s}`+(null==A?"":` [Expected=> ${g} ${A} ${l} <=Actual]`))}(l,s,null,"!=")}function X(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function be(s){return{providers:s.providers||[],imports:s.imports||[]}}function Pe(s){return Ee(s,J)||Ee(s,ut)}function Ee(s,l){return s.hasOwnProperty(l)?s[l]:null}function Me(s){return s&&(s.hasOwnProperty(Ie)||s.hasOwnProperty(Oe))?s[Ie]:null}const J=C({\u0275prov:C}),Ie=C({\u0275inj:C}),ut=C({ngInjectableDef:C}),Oe=C({ngInjectorDef:C});var we=(()=>((we=we||{})[we.Default=0]="Default",we[we.Host=1]="Host",we[we.Self=2]="Self",we[we.SkipSelf=4]="SkipSelf",we[we.Optional=8]="Optional",we))();let ce;function xe(s){const l=ce;return ce=s,l}function W(s,l,g){const A=Pe(s);return A&&"root"==A.providedIn?void 0===A.value?A.value=A.factory():A.value:g&we.Optional?null:void 0!==l?l:void ne(R(s),"Injector")}function Ce(s){return{toString:s}.toString()}var fe=(()=>((fe=fe||{})[fe.OnPush=0]="OnPush",fe[fe.Default=1]="Default",fe))(),tt=(()=>{return(s=tt||(tt={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",tt;var s})();const Dt="undefined"!=typeof globalThis&&globalThis,di="undefined"!=typeof window&&window,Yt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ui=Dt||"undefined"!=typeof global&&global||di||Yt,gt={},it=[],bt=C({\u0275cmp:C}),ti=C({\u0275dir:C}),Qt=C({\u0275pipe:C}),Re=C({\u0275mod:C}),ke=C({\u0275fac:C}),de=C({__NG_ELEMENT_ID__:C});let ye=0;function ht(s){return Ce(()=>{const g={},A={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===fe.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||it,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||tt.Emulated,id:"c",styles:s.styles||it,_:null,setInput:null,schemas:s.schemas||null,tView:null},F=s.directives,U=s.features,le=s.pipes;return A.id+=ye++,A.inputs=Ae(s.inputs,g),A.outputs=Ae(s.outputs),U&&U.forEach(De=>De(A)),A.directiveDefs=F?()=>("function"==typeof F?F():F).map(Ft):null,A.pipeDefs=le?()=>("function"==typeof le?le():le).map(nt):null,A})}function Ft(s){return lt(s)||function Ct(s){return s[ti]||null}(s)}function nt(s){return function mi(s){return s[Qt]||null}(s)}const He={};function rt(s){return Ce(()=>{const l={type:s.type,bootstrap:s.bootstrap||it,declarations:s.declarations||it,imports:s.imports||it,exports:s.exports||it,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(He[s.id]=s.type),l})}function Ae(s,l){if(null==s)return gt;const g={};for(const A in s)if(s.hasOwnProperty(A)){let F=s[A],U=F;Array.isArray(F)&&(U=F[1],F=F[0]),g[F]=A,l&&(l[F]=U)}return g}const Ge=ht;function ot(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,onDestroy:s.type.prototype.ngOnDestroy||null}}function lt(s){return s[bt]||null}function Jt(s,l){const g=s[Re]||null;if(!g&&!0===l)throw new Error(`Type ${R(s)} does not have '\u0275mod' property.`);return g}function Ni(s){return Array.isArray(s)&&"object"==typeof s[1]}function mn(s){return Array.isArray(s)&&!0===s[1]}function In(s){return 0!=(8&s.flags)}function Rn(s){return 2==(2&s.flags)}function tr(s){return 1==(1&s.flags)}function gn(s){return null!==s.template}function Si(s){return 0!=(512&s[2])}function Wr(s,l){return s.hasOwnProperty(ke)?s[ke]:null}class Ya{constructor(l,g,A){this.previousValue=l,this.currentValue=g,this.firstChange=A}isFirstChange(){return this.firstChange}}function va(){return dr}function dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=kr),ya}function ya(){const s=ra(this),l=null==s?void 0:s.current;if(l){const g=s.previous;if(g===gt)s.previous=l;else for(let A in l)g[A]=l[A];s.current=null,this.ngOnChanges(l)}}function kr(s,l,g,A){const F=ra(s)||function wa(s,l){return s[Dr]=l}(s,{previous:gt,current:null}),U=F.current||(F.current={}),le=F.previous,De=this.declaredInputs[g],Ze=le[De];U[De]=new Ya(Ze&&Ze.currentValue,l,le===gt),s[A]=l}va.ngInherit=!0;const Dr="__ngSimpleChanges__";function ra(s){return s[Dr]||null}let Nr;function Br(s){Nr=s}function Sa(){return void 0!==Nr?Nr:"undefined"!=typeof document?document:void 0}function Xn(s){return!!s.listen}const $e={createRenderer:(s,l)=>Sa()};function Je(s){for(;Array.isArray(s);)s=s[0];return s}function Mi(s,l){return Je(l[s])}function Pi(s,l){return Je(l[s.index])}function nr(s,l){return s.data[l]}function Bn(s,l){return s[l]}function It(s,l){const g=l[s];return Ni(g)?g:g[0]}function ci(s){return 4==(4&s[2])}function vt(s){return 128==(128&s[2])}function Oi(s,l){return null==l?null:s[l]}function je(s){s[18]=0}function Ye(s,l){s[5]+=l;let g=s,A=s[3];for(;null!==A&&(1===l&&1===g[5]||-1===l&&0===g[5]);)A[5]+=l,g=A,A=A[3]}const Fe={lFrame:kn(null),bindingsEnabled:!0};function Fa(){return Fe.bindingsEnabled}function Fi(){return Fe.lFrame.lView}function jn(){return Fe.lFrame.tView}function Hs(s){return Fe.lFrame.contextLView=s,s[8]}function Er(){let s=to();for(;null!==s&&64===s.type;)s=s.parent;return s}function to(){return Fe.lFrame.currentTNode}function Ta(s,l){const g=Fe.lFrame;g.currentTNode=s,g.isParent=l}function Ls(){return Fe.lFrame.isParent}function Ds(){Fe.lFrame.isParent=!1}function Ur(){const s=Fe.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function ka(){return Fe.lFrame.bindingIndex}function oe(){return Fe.lFrame.bindingIndex++}function pe(s){const l=Fe.lFrame,g=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,g}function Vt(s,l){const g=Fe.lFrame;g.bindingIndex=g.bindingRootIndex=s,ni(l)}function ni(s){Fe.lFrame.currentDirectiveIndex=s}function gi(s){const l=Fe.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function ki(){return Fe.lFrame.currentQueryIndex}function $i(s){Fe.lFrame.currentQueryIndex=s}function dn(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function An(s,l,g){if(g&we.SkipSelf){let F=l,U=s;for(;!(F=F.parent,null!==F||g&we.Host||(F=dn(U),null===F||(U=U[15],10&F.type))););if(null===F)return!1;l=F,s=U}const A=Fe.lFrame=En();return A.currentTNode=l,A.lView=s,!0}function Gn(s){const l=En(),g=s[1];Fe.lFrame=l,l.currentTNode=g.firstChild,l.lView=s,l.tView=g,l.contextLView=s,l.bindingIndex=g.bindingStartIndex,l.inI18n=!1}function En(){const s=Fe.lFrame,l=null===s?null:s.child;return null===l?kn(s):l}function kn(s){const l={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:s,child:null,inI18n:!1};return null!==s&&(s.child=l),l}function ar(){const s=Fe.lFrame;return Fe.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Rr=ar;function yr(){const s=ar();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function Mr(){return Fe.lFrame.selectedIndex}function jr(s){Fe.lFrame.selectedIndex=s}function Zn(){const s=Fe.lFrame;return nr(s.tView,s.selectedIndex)}function xr(){Fe.lFrame.currentNamespace="svg"}function la(){!function ws(){Fe.lFrame.currentNamespace=null}()}function _s(s,l){for(let g=l.directiveStart,A=l.directiveEnd;g=A)break}else l[Ze]<0&&(s[18]+=65536),(De>11>16&&(3&s[2])===l){s[2]+=2048;try{U.call(De)}finally{}}}else try{U.call(De)}finally{}}class La{constructor(l,g,A){this.factory=l,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=A}}function pi(s,l,g){const A=Xn(s);let F=0;for(;Fl){le=U-1;break}}}for(;U>16}(s),A=l;for(;g>0;)A=A[15],g--;return A}let ca=!0;function ze(s){const l=ca;return ca=s,l}let ct=0;function qt(s,l){const g=Di(s,l);if(-1!==g)return g;const A=l[1];A.firstCreatePass&&(s.injectorIndex=l.length,ai(A.data,s),ai(l,null),ai(A.blueprint,null));const F=an(s,l),U=s.injectorIndex;if(nn(F)){const le=un(F),De=rr(F,l),Ze=De[1].data;for(let ft=0;ft<8;ft++)l[U+ft]=De[le+ft]|Ze[le+ft]}return l[U+8]=F,U}function ai(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Di(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function an(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let g=0,A=null,F=l;for(;null!==F;){const U=F[1],le=U.type;if(A=2===le?U.declTNode:1===le?F[6]:null,null===A)return-1;if(g++,F=F[15],-1!==A.injectorIndex)return A.injectorIndex|g<<16}return-1}function Pn(s,l,g){!function Pt(s,l,g){let A;"string"==typeof g?A=g.charCodeAt(0)||0:g.hasOwnProperty(de)&&(A=g[de]),null==A&&(A=g[de]=ct++);const F=255&A;l.data[s+(F>>5)]|=1<=0?255&l:Qo:l}(g);if("function"==typeof U){if(!An(l,s,A))return A&we.Host?gr(F,g,A):hr(l,g,A,F);try{const le=U(A);if(null!=le||A&we.Optional)return le;ne(g)}finally{Rr()}}else if("number"==typeof U){let le=null,De=Di(s,l),Ze=-1,ft=A&we.Host?l[16][6]:null;for((-1===De||A&we.SkipSelf)&&(Ze=-1===De?an(s,l):l[De+8],-1!==Ze&&W1(A,!1)?(le=l[1],De=un(Ze),l=rr(Ze,l)):De=-1);-1!==De;){const Lt=l[1];if(io(U,De,Lt.data)){const Kt=qo(De,l,g,le,A,ft);if(Kt!==za)return Kt}Ze=l[De+8],-1!==Ze&&W1(A,l[1].data[De+8]===ft)&&io(U,De,l)?(le=Lt,De=un(Ze),l=rr(Ze,l)):De=-1}}}return hr(l,g,A,F)}const za={};function Qo(){return new Jo(Er(),Fi())}function qo(s,l,g,A,F,U){const le=l[1],De=le.data[s+8],Lt=Da(De,le,g,null==A?Rn(De)&&ca:A!=le&&0!=(3&De.type),F&we.Host&&U===De);return null!==Lt?Bs(l,le,Lt,De):za}function Da(s,l,g,A,F){const U=s.providerIndexes,le=l.data,De=1048575&U,Ze=s.directiveStart,Lt=U>>20,li=F?De+Lt:s.directiveEnd;for(let vi=A?De:De+Lt;vi=Ze&&Hi.type===g)return vi}if(F){const vi=le[Ze];if(vi&&gn(vi)&&vi.type===g)return Ze}return null}function Bs(s,l,g,A){let F=s[g];const U=l.data;if(function Gr(s){return s instanceof La}(F)){const le=F;le.resolving&&function ae(s,l){const g=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new E(-200,`Circular dependency in DI detected for ${s}${g}`)}(Y(U[g]));const De=ze(le.canSeeViewProviders);le.resolving=!0;const Ze=le.injectImpl?xe(le.injectImpl):null;An(s,A,we.Default);try{F=s[g]=le.factory(void 0,U,s,A),l.firstCreatePass&&g>=A.directiveStart&&function Aa(s,l,g){const{ngOnChanges:A,ngOnInit:F,ngDoCheck:U}=l.type.prototype;if(A){const le=dr(l);(g.preOrderHooks||(g.preOrderHooks=[])).push(s,le),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,le)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-s,F),U&&((g.preOrderHooks||(g.preOrderHooks=[])).push(s,U),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,U))}(g,U[g],l)}finally{null!==Ze&&xe(Ze),ze(De),le.resolving=!1,Rr()}}return F}function io(s,l,g){return!!(g[l+(s>>5)]&1<{const l=s.prototype.constructor,g=l[ke]||yl(l),A=Object.prototype;let F=Object.getPrototypeOf(s.prototype).constructor;for(;F&&F!==A;){const U=F[ke]||yl(F);if(U&&U!==g)return U;F=Object.getPrototypeOf(F)}return U=>new U})}function yl(s){return S(s)?()=>{const l=yl(D(s));return l&&l()}:Wr(s)}function Wl(s){return function Cn(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const g=s.attrs;if(g){const A=g.length;let F=0;for(;F{const A=function Yl(s){return function(...g){if(s){const A=s(...g);for(const F in A)this[F]=A[F]}}}(l);function F(...U){if(this instanceof F)return A.apply(this,U),this;const le=new F(...U);return De.annotation=le,De;function De(Ze,ft,Lt){const Kt=Ze.hasOwnProperty(Eo)?Ze[Eo]:Object.defineProperty(Ze,Eo,{value:[]})[Eo];for(;Kt.length<=Lt;)Kt.push(null);return(Kt[Lt]=Kt[Lt]||[]).push(le),Ze}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=s,F.annotationCls=F,F})}class Zr{constructor(l,g){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=X({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const go=new Zr("AnalyzeForEntryComponents");function os(s,l){void 0===l&&(l=s);for(let g=0;gArray.isArray(g)?es(g,l):l(g))}function Jc(s,l,g){l>=s.length?s.push(g):s.splice(l,0,g)}function xl(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function el(s,l){const g=[];for(let A=0;A=0?s[1|A]=g:(A=~A,function s3(s,l,g,A){let F=s.length;if(F==l)s.push(g,A);else if(1===F)s.push(A,s[0]),s[0]=g;else{for(F--,s.push(s[F-1],s[F]);F>l;)s[F]=s[F-2],F--;s[l]=g,s[l+1]=A}}(s,A,l,g)),A}function tl(s,l){const g=ro(s,l);if(g>=0)return s[1|g]}function ro(s,l){return function Ml(s,l,g){let A=0,F=s.length>>g;for(;F!==A;){const U=A+(F-A>>1),le=s[U<l?F=U:A=U+1}return~(F<({token:s})),-1),Sl=Po(To("Optional"),8),Us=Po(To("Self"),2),so=Po(To("SkipSelf"),4);let Os,Ll;function oo(s){var l;return(null===(l=function t1(){if(void 0===Os&&(Os=null,ui.trustedTypes))try{Os=ui.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Os}())||void 0===l?void 0:l.createHTML(s))||s}function sc(s){var l;return(null===(l=function r1(){if(void 0===Ll&&(Ll=null,ui.trustedTypes))try{Ll=ui.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ll}())||void 0===l?void 0:l.createHTML(s))||s}class is{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class oc extends is{getTypeName(){return"HTML"}}class Il extends is{getTypeName(){return"Style"}}class a1 extends is{getTypeName(){return"Script"}}class s2 extends is{getTypeName(){return"URL"}}class No extends is{getTypeName(){return"ResourceURL"}}function Ws(s){return s instanceof is?s.changingThisBreaksApplicationSecurity:s}function vo(s,l){const g=o2(s);if(null!=g&&g!==l){if("ResourceURL"===g&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===l}function o2(s){return s instanceof is&&s.getTypeName()||null}function h3(s){return new oc(s)}function f3(s){return new Il(s)}function p3(s){return new a1(s)}function m3(s){return new s2(s)}function g3(s){return new No(s)}class s1{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const g=(new window.DOMParser).parseFromString(oo(l),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(l):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class c2{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const A=this.inertDocument.createElement("body");g.appendChild(A)}}getInertBodyElement(l){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=oo(l),g;const A=this.inertDocument.createElement("body");return A.innerHTML=oo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(A),A}stripCustomNsAttrs(l){const g=l.attributes;for(let F=g.length-1;0Ro(l.trim())).join(", ")),this.buf.push(" ",le,'="',dc(Ze),'"')}var s;return this.buf.push(">"),!0}endElement(l){const g=l.nodeName.toLowerCase();da.hasOwnProperty(g)&&!lc.hasOwnProperty(g)&&(this.buf.push(""))}chars(l){this.buf.push(dc(l))}checkClobberedElement(l,g){if(g&&(l.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return g}}const d1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u1=/([^\#-~ |!])/g;function dc(s){return s.replace(/&/g,"&").replace(d1,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(u1,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let G;function Le(s,l){let g=null;try{G=G||function l2(s){const l=new c2(s);return function d2(){try{return!!(new window.DOMParser).parseFromString(oo(""),"text/html")}catch(s){return!1}}()?new s1(l):l}(s);let A=l?String(l):"";g=G.getInertBodyElement(A);let F=5,U=A;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,A=U,U=g.innerHTML,g=G.getInertBodyElement(A)}while(A!==U);return oo((new c1).sanitizeChildren(P(g)||g))}finally{if(g){const A=P(g)||g;for(;A.firstChild;)A.removeChild(A.firstChild)}}}function P(s){return"content"in s&&function ie(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var We=(()=>((We=We||{})[We.NONE=0]="NONE",We[We.HTML=1]="HTML",We[We.STYLE=2]="STYLE",We[We.SCRIPT=3]="SCRIPT",We[We.URL=4]="URL",We[We.RESOURCE_URL=5]="RESOURCE_URL",We))();function Ht(s){const l=Ln();return l?sc(l.sanitize(We.HTML,s)||""):vo(s,"HTML")?sc(Ws(s)):Le(Sa(),Z(s))}function ji(s){const l=Ln();return l?l.sanitize(We.URL,s)||"":vo(s,"URL")?Ws(s):Ro(Z(s))}function Ln(){const s=Fi();return s&&s[12]}const f2="__ngContext__";function ns(s,l){s[f2]=l}function p2(s){const l=function uc(s){return s[f2]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function h1(s){return s.ngOriginalError}function C3(s,...l){s.error(...l)}class f1{constructor(){this._console=console}handleError(l){const g=this._findOriginalError(l),A=function Y4(s){return s&&s.ngErrorLogger||C3}(l);A(this._console,"ERROR",l),g&&A(this._console,"ORIGINAL ERROR",g)}_findOriginalError(l){let g=l&&h1(l);for(;g&&h1(g);)g=h1(g);return g||null}}const X4=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ui))();function b2(s){return s.ownerDocument.defaultView}function js(s){return s instanceof Function?s():s}var Ks=(()=>((Ks=Ks||{})[Ks.Important=1]="Important",Ks[Ks.DashCase=2]="DashCase",Ks))();function M2(s,l){return undefined(s,l)}function dl(s){const l=s[3];return mn(l)?l[3]:l}function S2(s){return ru(s[13])}function A3(s){return ru(s[4])}function ru(s){for(;null!==s&&!mn(s);)s=s[4];return s}function Nl(s,l,g,A,F){if(null!=A){let U,le=!1;mn(A)?U=A:Ni(A)&&(le=!0,A=A[0]);const De=Je(A);0===s&&null!==g?null==F?hc(l,g,De):hl(l,g,De,F||null,!0):1===s&&null!==g?hl(l,g,De,F||null,!0):2===s?function F2(s,l,g){const A=fl(s,l);A&&function cu(s,l,g,A){Xn(s)?s.removeChild(l,g,A):l.removeChild(g)}(s,A,l,g)}(l,De,le):3===s&&l.destroyNode(De),null!=U&&function R3(s,l,g,A,F){const U=g[7];U!==Je(g)&&Nl(l,s,A,U,F);for(let De=10;De0&&(s[g-1][4]=A[4]);const U=xl(s,10+l);!function A2(s,l){gc(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(A[1],A);const le=U[19];null!==le&&le.detachView(U[1]),A[3]=null,A[4]=null,A[2]&=-129}return A}function O3(s,l){if(!(256&l[2])){const g=l[11];Xn(g)&&g.destroyNode&&gc(s,l,g,3,null,null),function D3(s){let l=s[13];if(!l)return I2(s[1],s);for(;l;){let g=null;if(Ni(l))g=l[13];else{const A=l[10];A&&(g=A)}if(!g){for(;l&&!l[4]&&l!==s;)Ni(l)&&I2(l[1],l),l=l[3];null===l&&(l=s),Ni(l)&&I2(l[1],l),g=l&&l[4]}l=g}}(l)}}function I2(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function P3(s,l){let g;if(null!=s&&null!=(g=s.destroyHooks))for(let A=0;A=0?A[F=ft]():A[F=-ft].unsubscribe(),U+=2}else{const le=A[F=g[U+1]];g[U].call(le)}if(null!==A){for(let U=F+1;UU?"":F[Kt+1].toLowerCase();const vi=8&A?li:null;if(vi&&-1!==F3(vi,ft,0)||2&A&&ft!==li){if(Ps(A))return!1;le=!0}}}}else{if(!le&&!Ps(A)&&!Ps(Ze))return!1;if(le&&Ps(Ze))continue;le=!1,A=Ze|1&A}}return Ps(A)||le}function Ps(s){return 0==(1&s)}function z3(s,l,g,A){if(null===l)return-1;let F=0;if(A||!g){let U=!1;for(;F-1)for(g++;g0?'="'+De+'"':"")+"]"}else 8&A?F+="."+le:4&A&&(F+=" "+le);else""!==F&&!Ps(le)&&(l+=B3(U,F),F=""),A=le,U=U||!Ps(A);g++}return""!==F&&(l+=B3(U,F)),l}const Kn={};function Z3(s){W3(jn(),Fi(),Mr()+s,!1)}function W3(s,l,g,A){if(!A)if(3==(3&l[2])){const U=s.preOrderCheckHooks;null!==U&&vs(l,U,g)}else{const U=s.preOrderHooks;null!==U&&cn(l,U,0,g)}jr(g)}function _c(s,l){return s<<17|l<<2}function Qs(s){return s>>17&32767}function Z2(s){return 2|s}function bo(s){return(131068&s)>>2}function W2(s,l){return-131069&s|l<<2}function Y2(s){return 1|s}function Tu(s,l){const g=s.contentQueries;if(null!==g)for(let A=0;A20&&W3(s,l,20,!1),g(A,F)}finally{jr(U)}}function Du(s,l,g){if(In(l)){const F=l.directiveEnd;for(let U=l.directiveStart;U0;){const g=s[--l];if("number"==typeof g&&g<0)return g}return 0})(De)!=Ze&&De.push(Ze),De.push(A,F,le)}}function zu(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function Vu(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function P6(s,l,g){if(g){if(l.exportAs)for(let A=0;A0&&c0(g)}}function c0(s){for(let A=S2(s);null!==A;A=A3(A))for(let F=10;F0&&c0(U)}const g=s[1].components;if(null!==g)for(let A=0;A0&&c0(F)}}function Zu(s,l){const g=It(l,s),A=g[1];(function Wu(s,l){for(let g=l.length;gPromise.resolve(null))();function Ku(s){return s[7]||(s[7]=[])}function h0(s){return s.cleanup||(s.cleanup=[])}function Qu(s,l,g){return(null===s||gn(s))&&(g=function kt(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(g[l.index])),g[11]}function pd(s,l){const g=s[9],A=g?g.get(f1,null):null;A&&A.handleError(l)}function qu(s,l,g,A,F){for(let U=0;Uthis.processProvider(De,l,g)),es([l],De=>this.processInjectorType(De,[],U)),this.records.set(md,xc(void 0,this));const le=this.records.get(gd);this.scope=null!=le?le.value:null,this.source=F||("object"==typeof l?null:R(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,g=Kr,A=we.Default){this.assertNotDestroyed();const F=Xl(this),U=xe(void 0);try{if(!(A&we.SkipSelf)){let De=this.records.get(l);if(void 0===De){const Ze=function G6(s){return"function"==typeof s||"object"==typeof s&&s instanceof Zr}(l)&&Pe(l);De=Ze&&this.injectableDefInScope(Ze)?xc(g0(l),T1):null,this.records.set(l,De)}if(null!=De)return this.hydrate(l,De)}return(A&we.Self?m0():this.parent).get(l,g=A&we.Optional&&g===Kr?null:g)}catch(le){if("NullInjectorError"===le.name){if((le[Oo]=le[Oo]||[]).unshift(R(l)),F)throw le;return function l3(s,l,g,A){const F=s[Oo];throw l[nl]&&F.unshift(l[nl]),s.message=function ic(s,l,g,A=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let F=R(l);if(Array.isArray(l))F=l.map(R).join(" -> ");else if("object"==typeof l){let U=[];for(let le in l)if(l.hasOwnProperty(le)){let De=l[le];U.push(le+":"+("string"==typeof De?JSON.stringify(De):R(De)))}F=`{${U.join(", ")}}`}return`${g}${A?"("+A+")":""}[${F}]: ${s.replace(Jl,"\n ")}`}("\n"+s.message,F,g,A),s.ngTokenPath=F,s[Oo]=null,s}(le,l,"R3InjectorError",this.source)}throw le}finally{xe(U),Xl(F)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((A,F)=>l.push(R(F))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processInjectorType(l,g,A){if(!(l=D(l)))return!1;let F=Me(l);const U=null==F&&l.ngModule||void 0,le=void 0===U?l:U,De=-1!==A.indexOf(le);if(void 0!==U&&(F=Me(U)),null==F)return!1;if(null!=F.imports&&!De){let Lt;A.push(le);try{es(F.imports,Kt=>{this.processInjectorType(Kt,g,A)&&(void 0===Lt&&(Lt=[]),Lt.push(Kt))})}finally{}if(void 0!==Lt)for(let Kt=0;Ktthis.processProvider(Hi,li,vi||it))}}this.injectorDefTypes.add(le);const Ze=Wr(le)||(()=>new le);this.records.set(le,xc(Ze,T1));const ft=F.providers;if(null!=ft&&!De){const Lt=l;es(ft,Kt=>this.processProvider(Kt,Lt,ft))}return void 0!==U&&void 0!==l.providers}processProvider(l,g,A){let F=Cc(l=D(l))?l:D(l&&l.provide);const U=function vd(s,l,g){return _0(s)?xc(void 0,s.useValue):xc(eh(s),T1)}(l);if(Cc(l)||!0!==l.multi)this.records.get(F);else{let le=this.records.get(F);le||(le=xc(void 0,T1,!0),le.factory=()=>$c(le.multi),this.records.set(F,le)),F=l,le.multi.push(l)}this.records.set(F,U)}hydrate(l,g){return g.value===T1&&(g.value=Xu,g.value=g.factory()),"object"==typeof g.value&&g.value&&function nh(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(l){if(!l.providedIn)return!1;const g=D(l.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function g0(s){const l=Pe(s),g=null!==l?l.factory:Wr(s);if(null!==g)return g;if(s instanceof Zr)throw new E(204,!1);if(s instanceof Function)return function V6(s){const l=s.length;if(l>0)throw el(l,"?"),new E(204,!1);const g=function j(s){const l=s&&(s[J]||s[ut]);if(l){const g=function Ve(s){if(s.hasOwnProperty("name"))return s.name;const l=(""+s).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),l}return null}(s);return null!==g?()=>g.factory(s):()=>new s}(s);throw new E(204,!1)}function eh(s,l,g){let A;if(Cc(s)){const F=D(s);return Wr(F)||g0(F)}if(_0(s))A=()=>D(s.useValue);else if(function th(s){return!(!s||!s.useFactory)}(s))A=()=>s.useFactory(...$c(s.deps||[]));else if(function B6(s){return!(!s||!s.useExisting)}(s))A=()=>Ba(D(s.useExisting));else{const F=D(s&&(s.useClass||s.provide));if(!function U6(s){return!!s.deps}(s))return Wr(F)||g0(F);A=()=>new F(...$c(s.deps))}return A}function xc(s,l,g=!1){return{factory:s,value:l,multi:g?[]:void 0}}function _0(s){return null!==s&&"object"==typeof s&&X1 in s}function Cc(s){return"function"==typeof s}let Co=(()=>{class s{static create(g,A){var F;if(Array.isArray(g))return $u({name:""},A,g,"");{const U=null!==(F=g.name)&&void 0!==F?F:"";return $u({name:U},g.parent,g.providers,U)}}}return s.THROW_IF_NOT_FOUND=Kr,s.NULL=new f0,s.\u0275prov=X({token:s,providedIn:"any",factory:()=>Ba(md)}),s.__NG_ELEMENT_ID__=-1,s})();function Q6(s,l){_s(p2(s)[1],Er())}function wd(s){let l=function ph(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),g=!0;const A=[s];for(;l;){let F;if(gn(s))F=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new E(903,"");F=l.\u0275dir}if(F){if(g){A.push(F);const le=s;le.inputs=Sd(s.inputs),le.declaredInputs=Sd(s.declaredInputs),le.outputs=Sd(s.outputs);const De=F.hostBindings;De&&J6(s,De);const Ze=F.viewQuery,ft=F.contentQueries;if(Ze&&q6(s,Ze),ft&&gh(s,ft),d(s.inputs,F.inputs),d(s.declaredInputs,F.declaredInputs),d(s.outputs,F.outputs),gn(F)&&F.data.animation){const Lt=s.data;Lt.animation=(Lt.animation||[]).concat(F.data.animation)}}const U=F.features;if(U)for(let le=0;le=0;A--){const F=s[A];F.hostVars=l+=F.hostVars,F.hostAttrs=zi(F.hostAttrs,g=zi(g,F.hostAttrs))}}(A)}function Sd(s){return s===gt?{}:s===it?[]:s}function q6(s,l){const g=s.viewQuery;s.viewQuery=g?(A,F)=>{l(A,F),g(A,F)}:l}function gh(s,l){const g=s.contentQueries;s.contentQueries=g?(A,F,U)=>{l(A,F,U),g(A,F,U)}:l}function J6(s,l){const g=s.hostBindings;s.hostBindings=g?(A,F)=>{l(A,F),g(A,F)}:l}let A1=null;function pl(){if(!A1){const s=ui.Symbol;if(s&&s.iterator)A1=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gDe(Je(pr[A.index])):A.index;if(Xn(g)){let pr=null;if(!De&&Ze&&(pr=function jd(s,l,g,A){const F=s.cleanup;if(null!=F)for(let U=0;UZe?De[Ze]:null}"string"==typeof le&&(U+=2)}return null}(s,l,F,A.index)),null!==pr)(pr.__ngLastListenerFn__||pr).__ngNextListenerFn__=U,pr.__ngLastListenerFn__=U,vi=!1;else{U=Kd(A,l,Kt,U,!1);const Or=g.listen(bn,F,U);li.push(U,Or),Lt&&Lt.push(F,On,Bi,Bi+1)}}else U=Kd(A,l,Kt,U,!0),bn.addEventListener(F,U,le),li.push(U),Lt&&Lt.push(F,On,Bi,le)}else U=Kd(A,l,Kt,U,!1);const Hi=A.outputs;let qi;if(vi&&null!==Hi&&(qi=Hi[F])){const rn=qi.length;if(rn)for(let bn=0;bn0;)l=l[15],s--;return l}(s,Fe.lFrame.contextLView))[8]}(s)}function ip(s,l){let g=null;const A=function fu(s){const l=s.attrs;if(null!=l){const g=l.indexOf(5);if(0==(1&g))return l[g+1]}return null}(s);for(let F=0;F=0}const Ga={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function H0(s){return s.substring(Ga.key,Ga.keyEnd)}function Ph(s,l){const g=Ga.textEnd;return g===l?-1:(l=Ga.keyEnd=function Rh(s,l,g){for(;l32;)l++;return l}(s,Ga.key=l,g),zc(s,l,g))}function zc(s,l,g){for(;l=0;g=Ph(l,g))_r(s,H0(l),!0)}function fo(s,l,g,A){const F=Fi(),U=jn(),le=pe(2);U.firstUpdatePass&&Uh(U,s,le,A),l!==Kn&&us(F,le,l)&&jh(U,U.data[Mr()],F,F[11],s,F[le+1]=function dp(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=R(Ws(s)))),s}(l,g),A,le)}function Xs(s,l,g,A){const F=jn(),U=pe(2);F.firstUpdatePass&&Uh(F,null,U,A);const le=Fi();if(g!==Kn&&us(le,U,g)){const De=F.data[Mr()];if(Kh(De,A)&&!Bh(F,U)){let Ze=A?De.classesWithoutHost:De.stylesWithoutHost;null!==Ze&&(g=h(Ze,g||"")),Rc(F,De,le,g,A)}else!function Yh(s,l,g,A,F,U,le,De){F===Kn&&(F=it);let Ze=0,ft=0,Lt=0=s.expandoStartIndex}function Uh(s,l,g,A){const F=s.data;if(null===F[g+1]){const U=F[Mr()],le=Bh(s,g);Kh(U,A)&&null===l&&!le&&(l=!1),l=function Gh(s,l,g,A){const F=gi(s);let U=A?l.residualClasses:l.residualStyles;if(null===F)0===(A?l.classBindings:l.styleBindings)&&(g=B1(g=V0(null,s,l,g,A),l.attrs,A),U=null);else{const le=l.directiveStylingLast;if(-1===le||s[le]!==F)if(g=V0(F,s,l,g,A),null===U){let Ze=function lp(s,l,g){const A=g?l.classBindings:l.styleBindings;if(0!==bo(A))return s[Qs(A)]}(s,l,A);void 0!==Ze&&Array.isArray(Ze)&&(Ze=V0(null,s,l,Ze[1],A),Ze=B1(Ze,l.attrs,A),function Zh(s,l,g,A){s[Qs(g?l.classBindings:l.styleBindings)]=A}(s,l,A,Ze))}else U=function Wh(s,l,g){let A;const F=l.directiveEnd;for(let U=1+l.directiveStylingLast;U0)&&(ft=!0)}else Lt=g;if(F)if(0!==Ze){const li=Qs(s[De+1]);s[A+1]=_c(li,De),0!==li&&(s[li+1]=W2(s[li+1],A)),s[De+1]=function _u(s,l){return 131071&s|l<<17}(s[De+1],A)}else s[A+1]=_c(De,0),0!==De&&(s[De+1]=W2(s[De+1],A)),De=A;else s[A+1]=_c(Ze,0),0===De?De=A:s[Ze+1]=W2(s[Ze+1],A),Ze=A;ft&&(s[A+1]=Z2(s[A+1])),e4(s,Lt,A,!0),e4(s,Lt,A,!1),function Oh(s,l,g,A,F){const U=F?s.residualClasses:s.residualStyles;null!=U&&"string"==typeof l&&ro(U,l)>=0&&(g[A+1]=Y2(g[A+1]))}(l,Lt,s,A,U),le=_c(De,Ze),U?l.classBindings=le:l.styleBindings=le}(F,U,l,g,le,A)}}function V0(s,l,g,A,F){let U=null;const le=g.directiveEnd;let De=g.directiveStylingLast;for(-1===De?De=g.directiveStart:De++;De0;){const Ze=s[F],ft=Array.isArray(Ze),Lt=ft?Ze[1]:Ze,Kt=null===Lt;let li=g[F+1];li===Kn&&(li=Kt?it:void 0);let vi=Kt?tl(li,A):Lt===A?li:void 0;if(ft&&!B0(vi)&&(vi=tl(Ze,A)),B0(vi)&&(De=vi,le))return De;const Hi=s[F+1];F=le?Qs(Hi):bo(Hi)}if(null!==l){let Ze=U?l.residualClasses:l.residualStyles;null!=Ze&&(De=tl(Ze,A))}return De}function B0(s){return void 0!==s}function Kh(s,l){return 0!=(s.flags&(l?16:32))}function r4(s,l=""){const g=Fi(),A=jn(),F=s+20,U=A.firstCreatePass?Hl(A,F,1,l,null):A.data[F],le=g[F]=function E2(s,l){return Xn(s)?s.createText(l):s.createTextNode(l)}(g[11],l);fc(A,g,le,U),Ta(U,!1)}function U0(s){return G0("",s,""),U0}function G0(s,l,g){const A=Fi(),F=wc(A,s,l,g);return F!==Kn&&xo(A,Mr(),F),G0}function Z0(s,l,g,A,F){const U=Fi(),le=Sc(U,s,l,g,A,F);return le!==Kn&&xo(U,Mr(),le),Z0}function W0(s,l,g,A,F,U,le){const De=Fi(),Ze=function Ec(s,l,g,A,F,U,le,De){const ft=D1(s,ka(),g,F,le);return pe(3),ft?l+Z(g)+A+Z(F)+U+Z(le)+De:Kn}(De,s,l,g,A,F,U,le);return Ze!==Kn&&xo(De,Mr(),Ze),W0}function a4(s,l,g,A,F,U,le,De,Ze){const ft=Fi(),Lt=Vl(ft,s,l,g,A,F,U,le,De,Ze);return Lt!==Kn&&xo(ft,Mr(),Lt),a4}function Xh(s,l,g){Xs(_r,ho,wc(Fi(),s,l,g),!0)}function Nn(s,l,g){const A=Fi();return us(A,oe(),l)&&bs(jn(),Zn(),A,s,l,A[11],g,!0),Nn}function wn(s,l,g){const A=Fi();if(us(A,oe(),l)){const U=jn(),le=Zn();bs(U,le,A,s,l,Qu(gi(U.data),le,A),g,!0)}return wn}const wr=void 0;var fs=["en",[["a","p"],["AM","PM"],wr],[["AM","PM"],wr,wr],[["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"]],wr,[["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"]],wr,[["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}",wr,"{1} 'at' {0}",wr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Tr(s){const g=Math.floor(Math.abs(s)),A=s.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===A?1:5}];let Hr={};function Oa(s){const l=function ps(s){return s.toLowerCase().replace(/_/g,"-")}(s);let g=Cs(l);if(g)return g;const A=l.split("-")[0];if(g=Cs(A),g)return g;if("en"===A)return fs;throw new Error(`Missing locale data for the locale "${s}".`)}function Fr(s){return Oa(s)[sn.PluralCase]}function Cs(s){return s in Hr||(Hr[s]=ui.ng&&ui.ng.common&&ui.ng.common.locales&&ui.ng.common.locales[s]),Hr[s]}var sn=(()=>((sn=sn||{})[sn.LocaleId=0]="LocaleId",sn[sn.DayPeriodsFormat=1]="DayPeriodsFormat",sn[sn.DayPeriodsStandalone=2]="DayPeriodsStandalone",sn[sn.DaysFormat=3]="DaysFormat",sn[sn.DaysStandalone=4]="DaysStandalone",sn[sn.MonthsFormat=5]="MonthsFormat",sn[sn.MonthsStandalone=6]="MonthsStandalone",sn[sn.Eras=7]="Eras",sn[sn.FirstDayOfWeek=8]="FirstDayOfWeek",sn[sn.WeekendRange=9]="WeekendRange",sn[sn.DateFormat=10]="DateFormat",sn[sn.TimeFormat=11]="TimeFormat",sn[sn.DateTimeFormat=12]="DateTimeFormat",sn[sn.NumberSymbols=13]="NumberSymbols",sn[sn.NumberFormats=14]="NumberFormats",sn[sn.CurrencyCode=15]="CurrencyCode",sn[sn.CurrencySymbol=16]="CurrencySymbol",sn[sn.CurrencyName=17]="CurrencyName",sn[sn.Currencies=18]="Currencies",sn[sn.Directionality=19]="Directionality",sn[sn.PluralCase=20]="PluralCase",sn[sn.ExtraData=21]="ExtraData",sn))();const $r="en-US";let Ja=$r;function uf(s,l,g,A,F){if(s=D(s),Array.isArray(s))for(let U=0;U>20;if(Cc(s)||!s.multi){const vi=new La(Ze,F,vl),Hi=pf(De,l,F?Lt:Lt+li,Kt);-1===Hi?(Pn(qt(ft,le),U,De),hf(U,s,l.length),l.push(De),ft.directiveStart++,ft.directiveEnd++,F&&(ft.providerIndexes+=1048576),g.push(vi),le.push(vi)):(g[Hi]=vi,le[Hi]=vi)}else{const vi=pf(De,l,Lt+li,Kt),Hi=pf(De,l,Lt,Lt+li),qi=vi>=0&&g[vi],rn=Hi>=0&&g[Hi];if(F&&!rn||!F&&!qi){Pn(qt(ft,le),U,De);const bn=function Hp(s,l,g,A,F){const U=new La(s,g,vl);return U.multi=[],U.index=l,U.componentProviders=0,ff(U,F,A&&!g),U}(F?j8:Rp,g.length,F,A,Ze);!F&&rn&&(g[Hi].providerFactory=bn),hf(U,s,l.length,0),l.push(De),ft.directiveStart++,ft.directiveEnd++,F&&(ft.providerIndexes+=1048576),g.push(bn),le.push(bn)}else hf(U,s,vi>-1?vi:Hi,ff(g[F?Hi:vi],Ze,!F&&A));!F&&A&&rn&&g[Hi].componentProviders++}}}function hf(s,l,g,A){const F=Cc(l),U=function ih(s){return!!s.useClass}(l);if(F||U){const Ze=(U?D(l.useClass):l).prototype.ngOnDestroy;if(Ze){const ft=s.destroyHooks||(s.destroyHooks=[]);if(!F&&l.multi){const Lt=ft.indexOf(g);-1===Lt?ft.push(g,[A,Ze]):ft[Lt+1].push(A,Ze)}else ft.push(g,Ze)}}}function ff(s,l,g){return g&&s.componentProviders++,s.multi.push(l)-1}function pf(s,l,g,A){for(let F=g;F{g.providersResolver=(A,F)=>function Y8(s,l,g){const A=jn();if(A.firstCreatePass){const F=gn(s);uf(g,A.data,A.blueprint,F,!0),uf(l,A.data,A.blueprint,F,!1)}}(A,F?F(s):s,l)}}class gf{}class Vp{resolveComponentFactory(l){throw function Q8(s){const l=Error(`No component factory found for ${R(s)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=s,l}(l)}}let c4=(()=>{class s{}return s.NULL=new Vp,s})();function q8(){return Zc(Er(),Fi())}function Zc(s,l){return new J0(Pi(s,l))}let J0=(()=>{class s{constructor(g){this.nativeElement=g}}return s.__NG_ELEMENT_ID__=q8,s})();function Bp(s){return s instanceof J0?s.nativeElement:s}class _f{}let J8=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function X8(){const s=Fi(),g=It(Er().index,s);return function Up(s){return s[11]}(Ni(g)?g:s)}(),s})(),$8=(()=>{class s{}return s.\u0275prov=X({token:s,providedIn:"root",factory:()=>null}),s})();class Gp{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const e5=new Gp("13.3.11"),vf={};function d4(s,l,g,A,F=!1){for(;null!==g;){const U=l[g.index];if(null!==U&&A.push(Je(U)),mn(U))for(let De=10;De-1&&(ul(l,A),xl(g,A))}this._attachedToViewContainer=!1}O3(this._lView[1],this._lView)}onDestroy(l){a0(this._lView[1],this._lView,null,l)}markForCheck(){yc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function bc(s,l,g){const A=l[10];A.begin&&A.begin();try{vc(s,l,s.template,g)}catch(F){throw pd(l,F),F}finally{A.end&&A.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ou(s,l){gc(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new E(902,"");this._appRef=l}}class t5 extends X0{constructor(l){super(l),this._view=l}detectChanges(){fd(this._view)}checkNoChanges(){}get context(){return null}}class Zp extends c4{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const g=lt(l);return new yf(g,this.ngModule)}}function u4(s){const l=[];for(let g in s)s.hasOwnProperty(g)&&l.push({propName:s[g],templateName:g});return l}class yf extends gf{constructor(l,g){super(),this.componentDef=l,this.ngModule=g,this.componentType=l.type,this.selector=function U3(s){return s.map(gu).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return u4(this.componentDef.inputs)}get outputs(){return u4(this.componentDef.outputs)}create(l,g,A,F){const U=(F=F||this.ngModule)?function n5(s,l){return{get:(g,A,F)=>{const U=s.get(g,vf,F);return U!==vf||A===vf?U:l.get(g,A,F)}}}(l,F.injector):l,le=U.get(_f,$e),De=U.get($8,null),Ze=le.createRenderer(null,this.componentDef),ft=this.componentDef.selectors[0][0]||"div",Lt=A?function Iu(s,l,g){if(Xn(s))return s.selectRootElement(l,g===tt.ShadowDom);let A="string"==typeof l?s.querySelector(l):l;return A.textContent="",A}(Ze,A,this.componentDef.encapsulation):yo(le.createRenderer(null,this.componentDef),ft,function i5(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(ft)),Kt=this.componentDef.onPush?576:528,li=function Md(s,l){return{components:[],scheduler:s||X4,clean:ju,playerHandler:l||null,flags:0}}(),vi=r0(0,null,null,1,0,null,null,null,null,null),Hi=C1(null,vi,li,Kt,null,null,le,Ze,De,U);let qi,rn;Gn(Hi);try{const bn=function xd(s,l,g,A,F,U){const le=g[1];g[20]=s;const Ze=Hl(le,20,2,"#host",null),ft=Ze.mergedAttrs=l.hostAttrs;null!==ft&&(E1(Ze,ft,!0),null!==s&&(pi(F,s,ft),null!==Ze.classes&&_1(F,s,Ze.classes),null!==Ze.styles&&H3(F,s,Ze.styles)));const Lt=A.createRenderer(s,l),Kt=C1(g,sd(l),null,l.onPush?64:16,g[20],Ze,A,Lt,U||null,null);return le.firstCreatePass&&(Pn(qt(Ze,g),le,l.type),Vu(le,Ze),w1(Ze,g.length,1)),S1(g,Kt),g[20]=Kt}(Lt,this.componentDef,Hi,le,Ze);if(Lt)if(A)pi(Ze,Lt,["ng-version",e5.full]);else{const{attrs:Bi,classes:On}=function G3(s){const l=[],g=[];let A=1,F=2;for(;A0&&_1(Ze,Lt,On.join(" "))}if(rn=nr(vi,20),void 0!==g){const Bi=rn.projection=[];for(let On=0;OnZe(le,l)),l.contentQueries){const Ze=Er();l.contentQueries(1,le,Ze.directiveStart)}const De=Er();return!U.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(jr(De.index),Hu(g[1],De,0,De.directiveStart,De.directiveEnd,l),zu(l,le)),le}(bn,this.componentDef,Hi,li,[Q6]),ks(vi,Hi,null)}finally{yr()}return new a5(this.componentType,qi,Zc(rn,Hi),Hi,rn)}}class a5 extends class K8{}{constructor(l,g,A,F,U){super(),this.location=A,this._rootLView=F,this._tNode=U,this.instance=g,this.hostView=this.changeDetectorRef=new t5(F),this.componentType=l}get injector(){return new Jo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class G1{}class Yp{}const Wc=new Map;class Qp extends G1{constructor(l,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Zp(this);const A=Jt(l);this._bootstrapComponents=js(A.bootstrap),this._r3Injector=_d(l,g,[{provide:G1,useValue:this},{provide:c4,useValue:this.componentFactoryResolver}],R(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,g=Co.THROW_IF_NOT_FOUND,A=we.Default){return l===Co||l===G1||l===md?this:this._r3Injector.get(l,g,A)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class h4 extends Yp{constructor(l){super(),this.moduleType=l,null!==Jt(l)&&function o5(s){const l=new Set;!function g(A){const F=Jt(A,!0),U=F.id;null!==U&&(function jp(s,l,g){if(l&&l!==g)throw new Error(`Duplicate module registered for ${s} - ${R(l)} vs ${R(l.name)}`)}(U,Wc.get(U),A),Wc.set(U,A));const le=js(F.imports);for(const De of le)l.has(De)||(l.add(De),g(De))}(s)}(l)}create(l){return new Qp(this.moduleType,l)}}function qp(s,l,g){const A=Ur()+s,F=Fi();return F[A]===Kn?Mo(F,A,g?l.call(g):l()):function Mc(s,l){return s[l]}(F,A)}function Jp(s,l,g,A){return im(Fi(),Ur(),s,l,g,A)}function bf(s,l,g,A,F){return nm(Fi(),Ur(),s,l,g,A,F)}function Xp(s,l,g,A,F,U){return f4(Fi(),Ur(),s,l,g,A,F,U)}function $0(s,l){const g=s[l];return g===Kn?void 0:g}function im(s,l,g,A,F,U){const le=l+g;return us(s,le,F)?Mo(s,le+1,U?A.call(U,F):A(F)):$0(s,le+1)}function nm(s,l,g,A,F,U,le){const De=l+g;return zl(s,De,F,U)?Mo(s,De+2,le?A.call(le,F,U):A(F,U)):$0(s,De+2)}function f4(s,l,g,A,F,U,le,De){const Ze=l+g;return D1(s,Ze,F,U,le)?Mo(s,Ze+3,De?A.call(De,F,U,le):A(F,U,le)):$0(s,Ze+3)}function xf(s,l){const g=jn();let A;const F=s+20;g.firstCreatePass?(A=function u5(s,l){if(l)for(let g=l.length-1;g>=0;g--){const A=l[g];if(s===A.name)return A}}(l,g.pipeRegistry),g.data[F]=A,A.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,A.onDestroy)):A=g.data[F];const U=A.factory||(A.factory=Wr(A.type)),le=xe(vl);try{const De=ze(!1),Ze=U();return ze(De),function M0(s,l,g,A){g>=s.data.length&&(s.data[g]=null,s.blueprint[g]=null),l[g]=A}(g,Fi(),F,Ze),Ze}finally{xe(le)}}function sm(s,l,g){const A=s+20,F=Fi(),U=Bn(F,A);return e3(F,A)?im(F,Ur(),l,U.transform,g,U):U.transform(g)}function om(s,l,g,A){const F=s+20,U=Fi(),le=Bn(U,F);return e3(U,F)?nm(U,Ur(),l,le.transform,g,A,le):le.transform(g,A)}function lm(s,l,g,A,F){const U=s+20,le=Fi(),De=Bn(le,U);return e3(le,U)?f4(le,Ur(),l,De.transform,g,A,F,De):De.transform(g,A,F)}function e3(s,l){return s[1].data[l].pure}function Cf(s){return l=>{setTimeout(s,void 0,l)}}const Ko=class f5 extends t.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,g,A){var F,U,le;let De=l,Ze=g||(()=>null),ft=A;if(l&&"object"==typeof l){const Kt=l;De=null===(F=Kt.next)||void 0===F?void 0:F.bind(Kt),Ze=null===(U=Kt.error)||void 0===U?void 0:U.bind(Kt),ft=null===(le=Kt.complete)||void 0===le?void 0:le.bind(Kt)}this.__isAsync&&(Ze=Cf(Ze),De&&(De=Cf(De)),ft&&(ft=Cf(ft)));const Lt=super.subscribe({next:De,error:Ze,complete:ft});return l instanceof e.w0&&l.add(Lt),Lt}};function p5(){return this._results[pl()]()}class p4{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=pl(),A=p4.prototype;A[g]||(A[g]=p5)}get changes(){return this._changes||(this._changes=new Ko)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,g){return this._results.reduce(l,g)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,g){const A=this;A.dirty=!1;const F=os(l);(this._changesDetected=!function Q1(s,l,g){if(s.length!==l.length)return!1;for(let A=0;A{class s{}return s.__NG_ELEMENT_ID__=g5,s})();const Mf=t3,m5=class extends Mf{constructor(l,g,A){super(),this._declarationLView=l,this._declarationTContainer=g,this.elementRef=A}createEmbeddedView(l){const g=this._declarationTContainer.tViews,A=C1(this._declarationLView,g,l,16,null,g.declTNode,null,null,null,null);A[17]=this._declarationLView[this._declarationTContainer.index];const U=this._declarationLView[19];return null!==U&&(A[19]=U.createEmbeddedView(g)),ks(g,A,l),new X0(A)}};function g5(){return m4(Er(),Fi())}function m4(s,l){return 4&s.type?new m5(l,s,Zc(s,l)):null}let g4=(()=>{class s{}return s.__NG_ELEMENT_ID__=i3,s})();function i3(){return Sf(Er(),Fi())}const _5=g4,dm=class extends _5{constructor(l,g,A){super(),this._lContainer=l,this._hostTNode=g,this._hostLView=A}get element(){return Zc(this._hostTNode,this._hostLView)}get injector(){return new Jo(this._hostTNode,this._hostLView)}get parentInjector(){const l=an(this._hostTNode,this._hostLView);if(nn(l)){const g=rr(l,this._hostLView),A=un(l);return new Jo(g[1].data[A+8],g)}return new Jo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const g=um(this._lContainer);return null!==g&&g[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,g,A){const F=l.createEmbeddedView(g||{});return this.insert(F,A),F}createComponent(l,g,A,F,U){const le=l&&!function Lo(s){return"function"==typeof s}(l);let De;if(le)De=g;else{const Kt=g||{};De=Kt.index,A=Kt.injector,F=Kt.projectableNodes,U=Kt.ngModuleRef}const Ze=le?l:new yf(lt(l)),ft=A||this.parentInjector;if(!U&&null==Ze.ngModule){const li=(le?ft:this.parentInjector).get(G1,null);li&&(U=li)}const Lt=Ze.create(ft,F,void 0,U);return this.insert(Lt.hostView,De),Lt}insert(l,g){const A=l._lView,F=A[1];if(function jt(s){return mn(s[3])}(A)){const Lt=this.indexOf(l);if(-1!==Lt)this.detach(Lt);else{const Kt=A[3],li=new dm(Kt,Kt[6],Kt[3]);li.detach(li.indexOf(l))}}const U=this._adjustIndex(g),le=this._lContainer;!function I3(s,l,g,A){const F=10+A,U=g.length;A>0&&(g[F-1][4]=l),A0)A.push(le[De/2]);else{const ft=U[De+1],Lt=l[-Ze];for(let Kt=10;Kt{class s{constructor(g){this.appInits=g,this.resolve=S4,this.reject=S4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((A,F)=>{this.resolve=A,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],A=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{U.subscribe({complete:De,error:Ze})});g.push(le)}}Promise.all(g).then(()=>{A()}).catch(F=>{this.reject(F)}),0===g.length&&A(),this.initialized=!0}}return s.\u0275fac=function(g){return new(g||s)(Ba(Pm,8))},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const km=new Zr("AppId",{providedIn:"root",factory:function Nm(){return`${Vf()}${Vf()}${Vf()}`}});function Vf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bf=new Zr("Platform Initializer"),B5=new Zr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rm=new Zr("appBootstrapListener");let G5=(()=>{class s{log(g){console.log(g)}warn(g){console.warn(g)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const Uf=new Zr("LocaleId",{providedIn:"root",factory:()=>ec(Uf,we.Optional|we.SkipSelf)||function Z5(){return"undefined"!=typeof $localize&&$localize.locale||$r}()}),W5=new Zr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class j5{constructor(l,g){this.ngModuleFactory=l,this.componentFactories=g}}let K5=(()=>{class s{compileModuleSync(g){return new h4(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const A=this.compileModuleSync(g),U=js(Jt(g).declarations).reduce((le,De)=>{const Ze=lt(De);return Ze&&le.push(new yf(Ze)),le},[]);return new j5(A,U)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const J5=(()=>Promise.resolve(0))();function Gf(s){"undefined"==typeof Zone?J5.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class po{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:A=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ko(!1),this.onMicrotaskEmpty=new Ko(!1),this.onStable=new Ko(!1),this.onError=new Ko(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!A&&g,F.shouldCoalesceRunChangeDetection=A,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function X5(){let s=ui.requestAnimationFrame,l=ui.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const g=s[Zone.__symbol__("OriginalDelegate")];g&&(s=g);const A=l[Zone.__symbol__("OriginalDelegate")];A&&(l=A)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function tg(s){const l=()=>{!function eg(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(ui,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Wf(s),s.isCheckStableRunning=!0,Zf(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Wf(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,A,F,U,le,De)=>{try{return Yf(s),g.invokeTask(F,U,le,De)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===U.type||s.shouldCoalesceRunChangeDetection)&&l(),Hm(s)}},onInvoke:(g,A,F,U,le,De,Ze)=>{try{return Yf(s),g.invoke(F,U,le,De,Ze)}finally{s.shouldCoalesceRunChangeDetection&&l(),Hm(s)}},onHasTask:(g,A,F,U)=>{g.hasTask(F,U),A===F&&("microTask"==U.change?(s._hasPendingMicrotasks=U.microTask,Wf(s),Zf(s)):"macroTask"==U.change&&(s.hasPendingMacrotasks=U.macroTask))},onHandleError:(g,A,F,U)=>(g.handleError(F,U),s.runOutsideAngular(()=>s.onError.emit(U)),!1)})}(F)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!po.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(po.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,g,A){return this._inner.run(l,g,A)}runTask(l,g,A,F){const U=this._inner,le=U.scheduleEventTask("NgZoneEvent: "+F,l,$5,S4,S4);try{return U.runTask(le,g,A)}finally{U.cancelTask(le)}}runGuarded(l,g,A){return this._inner.runGuarded(l,g,A)}runOutsideAngular(l){return this._outer.run(l)}}const $5={};function Zf(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Wf(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Yf(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Hm(s){s._nesting--,Zf(s)}class ig{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ko,this.onMicrotaskEmpty=new Ko,this.onStable=new Ko,this.onError=new Ko}run(l,g,A){return l.apply(g,A)}runGuarded(l,g,A){return l.apply(g,A)}runOutsideAngular(l){return l()}runTask(l,g,A,F){return l.apply(g,A)}}let Fm=(()=>{class s{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.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:()=>{po.assertNotInAngularZone(),Gf(()=>{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())Gf(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(A=>!A.updateCb||!A.updateCb(g)||(clearTimeout(A.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,A,F){let U=-1;A&&A>0&&(U=setTimeout(()=>{this._callbacks=this._callbacks.filter(le=>le.timeoutId!==U),g(this._didWork,this.getPendingTasks())},A)),this._callbacks.push({doneCb:g,timeoutId:U,updateCb:F})}whenStable(g,A,F){if(F&&!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(g,A,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,A,F){return[]}}return s.\u0275fac=function(g){return new(g||s)(Ba(po))},s.\u0275prov=X({token:s,factory:s.\u0275fac}),s})(),ng=(()=>{class s{constructor(){this._applications=new Map,T4.addToWindow(this)}registerApplication(g,A){this._applications.set(g,A)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,A=!0){return T4.findTestabilityInTree(this,g,A)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class rg{addToWindow(l){}findTestabilityInTree(l,g,A){return null}}function ag(s){T4=s}let T4=new rg,Yc=null;const zm=new Zr("AllowMultipleToken"),Vm=new Zr("PlatformOnDestroy");class Um{constructor(l,g){this.name=l,this.token=g}}function jf(s,l,g=[]){const A=`Platform: ${l}`,F=new Zr(A);return(U=[])=>{let le=Qf();if(!le||le.injector.get(zm,!1)){const De=[...g,...U,{provide:F,useValue:!0}];s?s(De):function og(s){if(Yc&&!Yc.get(zm,!1))throw new E(400,"");Yc=s;const l=s.get(Gm),g=s.get(Bf,null);g&&g.forEach(A=>A())}(function Kf(s=[],l){return Co.create({name:l,providers:[{provide:gd,useValue:"platform"},{provide:Vm,useValue:()=>Yc=null},...s]})}(De,A))}return function lg(s){const l=Qf();if(!l)throw new E(401,"");return l}()}}function Qf(){var s;return null!==(s=null==Yc?void 0:Yc.get(Gm))&&void 0!==s?s:null}let Gm=(()=>{class s{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,A){const De=function cg(s,l){let g;return g="noop"===s?new ig:("zone.js"===s?void 0:s)||new po({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),g}(A?A.ngZone:void 0,{ngZoneEventCoalescing:A&&A.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:A&&A.ngZoneRunCoalescing||!1}),Ze=[{provide:po,useValue:De}];return De.run(()=>{const ft=Co.create({providers:Ze,parent:this.injector,name:g.moduleType.name}),Lt=g.create(ft),Kt=Lt.injector.get(f1,null);if(!Kt)throw new E(402,"");return De.runOutsideAngular(()=>{const li=De.onError.subscribe({next:vi=>{Kt.handleError(vi)}});Lt.onDestroy(()=>{A4(this._modules,Lt),li.unsubscribe()})}),function qf(s,l,g){try{const A=g();return hs(A)?A.catch(F=>{throw l.runOutsideAngular(()=>s.handleError(F)),F}):A}catch(A){throw l.runOutsideAngular(()=>s.handleError(A)),A}}(Kt,De,()=>{const li=Lt.injector.get(E4);return li.runInitializers(),li.donePromise.then(()=>(function Uc(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Ja=s.toLowerCase().replace(/_/g,"-"))}(Lt.injector.get(Uf,$r)||$r),this._moduleDoBootstrap(Lt),Lt))})})}bootstrapModule(g,A=[]){const F=Zm({},A);return function sg(s,l,g){const A=new h4(g);return Promise.resolve(A)}(0,0,g).then(U=>this.bootstrapModuleFactory(U,F))}_moduleDoBootstrap(g){const A=g.injector.get(Jf);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>A.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new E(403,"");g.instance.ngDoBootstrap(A)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,"");this._modules.slice().forEach(A=>A.destroy()),this._destroyListeners.forEach(A=>A());const g=this._injector.get(Vm,null);null==g||g(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(g){return new(g||s)(Ba(Co))},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function Zm(s,l){return Array.isArray(l)?l.reduce(Zm,s):Object.assign(Object.assign({},s),l)}let Jf=(()=>{class s{constructor(g,A,F,U){this._zone=g,this._injector=A,this._exceptionHandler=F,this._initStatus=U,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 le=new f.y(Ze=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ze.next(this._stable),Ze.complete()})}),De=new f.y(Ze=>{let ft;this._zone.runOutsideAngular(()=>{ft=this._zone.onStable.subscribe(()=>{po.assertNotInAngularZone(),Gf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ze.next(!0))})})});const Lt=this._zone.onUnstable.subscribe(()=>{po.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ze.next(!1)}))});return()=>{ft.unsubscribe(),Lt.unsubscribe()}});this.isStable=(0,M.T)(le,De.pipe((0,a.B)()))}bootstrap(g,A){if(!this._initStatus.done)throw new E(405,"");let F;F=g instanceof gf?g:this._injector.get(c4).resolveComponentFactory(g),this.componentTypes.push(F.componentType);const U=function Bm(s){return s.isBoundToModule}(F)?void 0:this._injector.get(G1),De=F.create(Co.NULL,[],A||F.selector,U),Ze=De.location.nativeElement,ft=De.injector.get(Fm,null),Lt=ft&&De.injector.get(ng);return ft&&Lt&&Lt.registerApplication(Ze,ft),De.onDestroy(()=>{this.detachView(De.hostView),A4(this.components,De),Lt&&Lt.unregisterApplication(Ze)}),this._loadComponent(De),De}tick(){if(this._runningTick)throw new E(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const A=g;this._views.push(A),A.attachToAppRef(this)}detachView(g){const A=g;A4(this._views,A),A.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Rm,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(g){return new(g||s)(Ba(po),Ba(Co),Ba(f1),Ba(E4))},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function A4(s,l){const g=s.indexOf(l);g>-1&&s.splice(g,1)}let Xf=!0,Ym=!1;function jm(){return Ym=!0,Xf}function ug(){if(Ym)throw new Error("Cannot enable prod mode after platform setup.");Xf=!1}let L4=(()=>{class s{}return s.__NG_ELEMENT_ID__=fg,s})();function fg(s){return function pg(s,l,g){if(Rn(s)&&!g){const A=It(s.index,l);return new X0(A,A)}return 47&s.type?new X0(l[16],l):null}(Er(),Fi(),16==(16&s))}class i6{constructor(){}supports(l){return L1(l)}create(l){return new yg(l)}}const vg=(s,l)=>l;class yg{constructor(l){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=l||vg}forEachItem(l){let g;for(g=this._itHead;null!==g;g=g._next)l(g)}forEachOperation(l){let g=this._itHead,A=this._removalsHead,F=0,U=null;for(;g||A;){const le=!A||g&&g.currentIndex<$m(A,F,U)?g:A,De=$m(le,F,U),Ze=le.currentIndex;if(le===A)F--,A=A._nextRemoved;else if(g=g._next,null==le.previousIndex)F++;else{U||(U=[]);const ft=De-F,Lt=Ze-F;if(ft!=Lt){for(let li=0;li{le=this._trackByFn(F,De),null!==g&&Object.is(g.trackById,le)?(A&&(g=this._verifyReinsertion(g,De,le,F)),Object.is(g.item,De)||this._addIdentityChange(g,De)):(g=this._mismatch(g,De,le,F),A=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,g,A,F){let U;return null===l?U=this._itTail:(U=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._reinsertAfter(l,U,F)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(A,F))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._moveAfter(l,U,F)):l=this._addAfter(new bg(g,A),U,F),l}_verifyReinsertion(l,g,A,F){let U=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null);return null!==U?l=this._reinsertAfter(U,l._prev,F):l.currentIndex!=F&&(l.currentIndex=F,this._addToMoves(l,F)),l}_truncate(l){for(;null!==l;){const g=l._next;this._addToRemovals(this._unlink(l)),l=g}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(l,g,A){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const F=l._prevRemoved,U=l._nextRemoved;return null===F?this._removalsHead=U:F._nextRemoved=U,null===U?this._removalsTail=F:U._prevRemoved=F,this._insertAfter(l,g,A),this._addToMoves(l,A),l}_moveAfter(l,g,A){return this._unlink(l),this._insertAfter(l,g,A),this._addToMoves(l,A),l}_addAfter(l,g,A){return this._insertAfter(l,g,A),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,g,A){const F=null===g?this._itHead:g._next;return l._next=F,l._prev=g,null===F?this._itTail=l:F._prev=l,null===g?this._itHead=l:g._next=l,null===this._linkedRecords&&(this._linkedRecords=new Xm),this._linkedRecords.put(l),l.currentIndex=A,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const g=l._prev,A=l._next;return null===g?this._itHead=A:g._next=A,null===A?this._itTail=g:A._prev=g,l}_addToMoves(l,g){return l.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Xm),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,g){return l.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class bg{constructor(l,g){this.item=l,this.trackById=g,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 xg{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,g){let A;for(A=this._head;null!==A;A=A._nextDup)if((null===g||g<=A.currentIndex)&&Object.is(A.trackById,l))return A;return null}remove(l){const g=l._prevDup,A=l._nextDup;return null===g?this._head=A:g._nextDup=A,null===A?this._tail=g:A._prevDup=g,null===this._head}}class Xm{constructor(){this.map=new Map}put(l){const g=l.trackById;let A=this.map.get(g);A||(A=new xg,this.map.set(g,A)),A.add(l)}get(l,g){const F=this.map.get(l);return F?F.get(l,g):null}remove(l){const g=l.trackById;return this.map.get(g).remove(l)&&this.map.delete(g),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $m(s,l,g){const A=s.previousIndex;if(null===A)return A;let F=0;return g&&A{if(g&&g.key===F)this._maybeAddToChanges(g,A),this._appendAfter=g,g=g._next;else{const U=this._getOrCreateRecordForKey(F,A);g=this._insertBeforeOrAppend(g,U)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let A=g;null!==A;A=A._nextRemoved)A===this._mapHead&&(this._mapHead=null),this._records.delete(A.key),A._nextRemoved=A._next,A.previousValue=A.currentValue,A.currentValue=null,A._prev=null,A._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,g){if(l){const A=l._prev;return g._next=l,g._prev=A,l._prev=g,A&&(A._next=g),l===this._mapHead&&(this._mapHead=g),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(l,g){if(this._records.has(l)){const F=this._records.get(l);this._maybeAddToChanges(F,g);const U=F._prev,le=F._next;return U&&(U._next=le),le&&(le._prev=U),F._next=null,F._prev=null,F}const A=new t8(l);return this._records.set(l,A),A.currentValue=g,this._addToAdditions(A),A}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,g){Object.is(g,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=g,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,g){l instanceof Map?l.forEach(g):Object.keys(l).forEach(A=>g(l[A],A))}}class t8{constructor(l){this.key=l,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 n8(){return new n6([new i6])}let n6=(()=>{class s{constructor(g){this.factories=g}static create(g,A){if(null!=A){const F=A.factories.slice();g=g.concat(F)}return new s(g)}static extend(g){return{provide:s,useFactory:A=>s.create(g,A||n8()),deps:[[s,new so,new Sl]]}}find(g){const A=this.factories.find(F=>F.supports(g));if(null!=A)return A;throw new E(901,"")}}return s.\u0275prov=X({token:s,providedIn:"root",factory:n8}),s})();function k4(){return new r6([new e8])}let r6=(()=>{class s{constructor(g){this.factories=g}static create(g,A){if(A){const F=A.factories.slice();g=g.concat(F)}return new s(g)}static extend(g){return{provide:s,useFactory:A=>s.create(g,A||k4()),deps:[[s,new so,new Sl]]}}find(g){const A=this.factories.find(U=>U.supports(g));if(A)return A;throw new E(901,"")}}return s.\u0275prov=X({token:s,providedIn:"root",factory:k4}),s})();const Sg=jf(null,"core",[]);let Eg=(()=>{class s{constructor(g){}}return s.\u0275fac=function(g){return new(g||s)(Ba(Jf))},s.\u0275mod=rt({type:s}),s.\u0275inj=be({}),s})()},9042:(Be,K,p)=>{"use strict";function t(L){for(let w in L){let D=L[w]||"";switch(w){case"display":L.display="flex"===D?["-webkit-flex","flex"]:"inline-flex"===D?["-webkit-inline-flex","inline-flex"]:D;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":L["-webkit-"+w]=D;break;case"flex-direction":D=D||"row",L["-webkit-flex-direction"]=D,L["flex-direction"]=D;break;case"order":L.order=L["-webkit-"+w]=isNaN(+D)?"0":D}}return L}p.d(K,{Ar:()=>M,GK:()=>t,iQ:()=>f,kt:()=>h,tj:()=>C});const e="inline",f=["row","column","row-reverse","column-reverse"];function M(L){let[w,D,S]=a(L);return function R(L,w=null,D=!1){return{display:D?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":w||null}}(w,D,S)}function a(L){var w;L=null!==(w=null==L?void 0:L.toLowerCase())&&void 0!==w?w:"";let[D,S,k]=L.split(" ");return f.find(E=>E===D)||(D=f[0]),S===e&&(S=k!==e?k:"",k=e),[D,d(S),!!k]}function C(L){let[w]=a(L);return w.indexOf("row")>-1}function d(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function h(L,...w){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let D of w)if(null!=D)for(let S in D)D.hasOwnProperty(S)&&(L[S]=D[S]);return L}},3270:(Be,K,p)=>{"use strict";p.d(K,{Bs:()=>ae,FL:()=>ui,IR:()=>S,Ot:()=>di,QI:()=>ue,RK:()=>ne,WU:()=>Z,g5:()=>B,iR:()=>xe,wY:()=>Y,yB:()=>ce});var t=p(5e3),e=p(9808),f=p(1135),M=p(8306),a=p(6451),C=p(7579),d=p(9042),R=p(9300),h=p(8505);const w={provide:t.tb,useFactory:function L(Ot,Nt){return()=>{if((0,e.NF)(Nt)){const gt=Array.from(Ot.querySelectorAll(`[class*=${D}]`)),it=/\bflex-layout-.+?\b/g;gt.forEach(bt=>{bt.classList.contains(`${D}ssr`)&&bt.parentNode?bt.parentNode.removeChild(bt):bt.className.replace(it,"")})}}},deps:[e.K0,t.Lbi],multi:!0},D="flex-layout-";let S=(()=>{class Ot{}return Ot.\u0275fac=function(gt){return new(gt||Ot)},Ot.\u0275mod=t.oAB({type:Ot}),Ot.\u0275inj=t.cJS({providers:[w]}),Ot})();class k{constructor(Nt=!1,gt="all",it="",bt="",ti=0){this.matches=Nt,this.mediaQuery=gt,this.mqAlias=it,this.suffix=bt,this.priority=ti,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let E=(()=>{class Ot{constructor(){this.stylesheet=new Map}addStyleToElement(gt,it,bt){const ti=this.stylesheet.get(gt);ti?ti.set(it,bt):this.stylesheet.set(gt,new Map([[it,bt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,it){const bt=this.stylesheet.get(gt);let ti="";if(bt){const Qt=bt.get(it);("number"==typeof Qt||"string"==typeof Qt)&&(ti=Qt+"")}return ti}}return Ot.\u0275fac=function(gt){return new(gt||Ot)},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const B={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Z=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>B}),Y=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ae=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(Ot,Nt){return Ot=Ot?Ot.clone():new k,Nt&&(Ot.mqAlias=Nt.alias,Ot.mediaQuery=Nt.mediaQuery,Ot.suffix=Nt.suffix,Ot.priority=Nt.priority),Ot}class ue{constructor(){this.shouldCache=!0}sideEffect(Nt,gt,it){}}let ne=(()=>{class Ot{constructor(gt,it,bt,ti){this._serverStylesheet=gt,this._serverModuleLoaded=it,this._platformId=bt,this.layoutConfig=ti}applyStyleToElement(gt,it,bt=null){let ti={};"string"==typeof it&&(ti[it]=bt,it=ti),ti=this.layoutConfig.disableVendorPrefixes?it:(0,d.GK)(it),this._applyMultiValueStyleToElement(ti,gt)}applyStyleToElements(gt,it=[]){const bt=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);it.forEach(ti=>{this._applyMultiValueStyleToElement(bt,ti)})}getFlowDirection(gt){const it="flex-direction";let bt=this.lookupStyle(gt,it);return[bt||"row",this.lookupInlineStyle(gt,it)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?bt:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,it){var bt;return null!==(bt=gt.getAttribute(it))&&void 0!==bt?bt:""}lookupInlineStyle(gt,it){return(0,e.NF)(this._platformId)?gt.style.getPropertyValue(it):function re(Ot,Nt){var gt;return null!==(gt=_e(Ot)[Nt])&&void 0!==gt?gt:""}(gt,it)}lookupStyle(gt,it,bt=!1){let ti="";return gt&&((ti=this.lookupInlineStyle(gt,it))||((0,e.NF)(this._platformId)?bt||(ti=getComputedStyle(gt).getPropertyValue(it)):this._serverModuleLoaded&&(ti=this._serverStylesheet.getStyleForElement(gt,it)))),ti?ti.trim():""}_applyMultiValueStyleToElement(gt,it){Object.keys(gt).sort().forEach(bt=>{const ti=gt[bt],Qt=Array.isArray(ti)?ti:[ti];Qt.sort();for(let Re of Qt)Re=Re?Re+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?it.style.setProperty(bt,Re):ge(it,bt,Re):this._serverStylesheet.addStyleToElement(it,bt,Re)})}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(E),t.LFG(Y),t.LFG(t.Lbi),t.LFG(Z))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();function ge(Ot,Nt,gt){Nt=Nt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const it=_e(Ot);it[Nt]=null!=gt?gt:"",function q(Ot,Nt){let gt="";for(const it in Nt)Nt[it]&&(gt+=`${it}:${Nt[it]};`);Ot.setAttribute("style",gt)}(Ot,it)}function _e(Ot){const Nt={},gt=Ot.getAttribute("style");if(gt){const it=gt.split(/;+/g);for(let bt=0;bt0){const Qt=ti.indexOf(":");if(-1===Qt)throw new Error(`Invalid CSS style: ${ti}`);Nt[ti.substr(0,Qt).trim()]=ti.substr(Qt+1).trim()}}}return Nt}function x(Ot,Nt){return(Nt&&Nt.priority||0)-(Ot&&Ot.priority||0)}function i(Ot,Nt){return(Ot.priority||0)-(Nt.priority||0)}let r=(()=>{class Ot{constructor(gt,it,bt){this._zone=gt,this._platformId=it,this._document=bt,this.source=new f.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((it,bt)=>{it.matches&>.push(bt)}),gt}isActive(gt){var it;const bt=this.registry.get(gt);return null!==(it=null==bt?void 0:bt.matches)&&void 0!==it?it:this.registerQuery(gt).some(ti=>ti.matches)}observe(gt,it=!1){if(gt&>.length){const bt=this._observable$.pipe((0,R.h)(Qt=>!it||gt.indexOf(Qt.mediaQuery)>-1)),ti=new M.y(Qt=>{const Re=this.registerQuery(gt);if(Re.length){const ke=Re.pop();Re.forEach(de=>{Qt.next(de)}),this.source.next(ke)}Qt.complete()});return(0,a.T)(ti,bt)}return this._observable$}registerQuery(gt){const it=Array.isArray(gt)?gt:[gt],bt=[];return function c(Ot,Nt){const gt=Ot.filter(it=>!u[it]);if(gt.length>0){const it=gt.join(", ");try{const bt=Nt.createElement("style");bt.setAttribute("type","text/css"),bt.styleSheet||bt.appendChild(Nt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${it} {.fx-query-test{ }}\n`)),Nt.head.appendChild(bt),gt.forEach(ti=>u[ti]=bt)}catch(bt){console.error(bt)}}}(it,this._document),it.forEach(ti=>{const Qt=ke=>{this._zone.run(()=>this.source.next(new k(ke.matches,ti)))};let Re=this.registry.get(ti);Re||(Re=this.buildMQL(ti),Re.addListener(Qt),this.pendingRemoveListenerFns.push(()=>Re.removeListener(Qt)),this.registry.set(ti,Re)),Re.matches&&bt.push(new k(!0,ti))}),bt}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function v(Ot,Nt){return Nt&&window.matchMedia("all").addListener?window.matchMedia(Ot):{matches:"all"===Ot||""===Ot,media:Ot,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,e.NF)(this._platformId))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const u={},T=[{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}],I="(orientation: portrait) and (max-width: 599.98px)",y="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",V="(orientation: portrait) and (min-width: 840px)",N="(orientation: landscape) and (min-width: 1280px)",H={HANDSET:`${I}, ${y}`,TABLET:`${n} , ${_}`,WEB:`${V}, ${N} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${V}`,HANDSET_LANDSCAPE:`${y}`,TABLET_LANDSCAPE:`${_}`,WEB_LANDSCAPE:`${N}`},X=[{alias:"handset",priority:2e3,mediaQuery:H.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:H.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:H.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:H.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:H.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:H.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:H.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:H.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:H.WEB_PORTRAIT,overlapping:!0}],he=/(\.|-|_)/g;function be(Ot){let Nt=Ot.length>0?Ot.charAt(0):"",gt=Ot.length>1?Ot.slice(1):"";return Nt.toUpperCase()+gt}const Ve=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Ot=(0,t.f3M)(ae),Nt=(0,t.f3M)(Z),gt=[].concat.apply([],(Ot||[]).map(bt=>Array.isArray(bt)?bt:[bt]));return function j(Ot,Nt=[]){const gt={};return Ot.forEach(it=>{gt[it.alias]=it}),Nt.forEach(it=>{gt[it.alias]?(0,d.kt)(gt[it.alias],it):gt[it.alias]=it}),function Ee(Ot){return Ot.forEach(Nt=>{Nt.suffix||(Nt.suffix=function Pe(Ot){return Ot.replace(he,"|").split("|").map(be).join("")}(Nt.alias),Nt.overlapping=!!Nt.overlapping)}),Ot}(Object.keys(gt).map(it=>gt[it]))}((Nt.disableDefaultBps?[]:T).concat(Nt.addOrientationBps?X:[]),gt)}});let Me=(()=>{class Ot{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(i)}findByAlias(gt){return gt?this.findWithPredicate(gt,it=>it.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,it=>it.mediaQuery===gt)}get overlappings(){return this.items.filter(gt=>gt.overlapping)}get aliases(){return this.items.map(gt=>gt.alias)}get suffixes(){return this.items.map(gt=>{var it;return null!==(it=null==gt?void 0:gt.suffix)&&void 0!==it?it:""})}findWithPredicate(gt,it){var bt;let ti=this.findByMap.get(gt);return ti||(ti=null!==(bt=this.items.find(it))&&void 0!==bt?bt:null,this.findByMap.set(gt,ti)),null!=ti?ti:null}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(Ve))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const J="print",Ie={alias:J,mediaQuery:J,priority:1e3};let ut=(()=>{class Ot{constructor(gt,it,bt){this.breakpoints=gt,this.layoutConfig=it,this._document=bt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Oe,this.deactivations=[]}withPrintQuery(gt){return[...gt,J]}isPrintEvent(gt){return gt.mediaQuery.startsWith(J)}get printAlias(){var gt;return[...null!==(gt=this.layoutConfig.printWithBreakpoints)&&void 0!==gt?gt:[]]}get printBreakPoints(){return this.printAlias.map(gt=>this.breakpoints.findByAlias(gt)).filter(gt=>null!==gt)}getEventBreakpoints({mediaQuery:gt}){const it=this.breakpoints.findByQuery(gt);return(it?[...this.printBreakPoints,it]:this.printBreakPoints).sort(x)}updateEvent(gt){var it;let bt=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(bt=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(it=null==bt?void 0:bt.mediaQuery)&&void 0!==it?it:""),ee(gt,bt)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const it=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new k(!0,J))),gt.updateStyles())},bt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",it),this._document.defaultView.addEventListener("afterprint",bt),this.beforePrintEventListeners.push(it),this.afterPrintEventListeners.push(bt)}interceptEvents(gt){return it=>{this.isPrintEvent(it)?it.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(it)),gt.updateStyles()):!it.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,it)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,it){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(it)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!it.matches){const bt=this.breakpoints.findByQuery(it.mediaQuery);if(bt){const ti=this.formerActivations&&this.formerActivations.includes(bt),Qt=!this.formerActivations&>.activatedBreakpoints.includes(bt);(ti||Qt)&&(this.deactivations.push(bt),this.deactivations.sort(x))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("beforeprint",gt)),this.afterPrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("afterprint",gt)))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(Me),t.LFG(Z),t.LFG(e.K0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();class Oe{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Nt){return Nt.push(Ie),Nt.sort(x),Nt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(Nt){Nt&&void 0===this.printBreakpoints.find(it=>it.mediaQuery===Nt.mediaQuery)&&(this.printBreakpoints=function we(Ot){var Nt;return null!==(Nt=null==Ot?void 0:Ot.mediaQuery.startsWith(J))&&void 0!==Nt&&Nt}(Nt)?[Nt,...this.printBreakpoints]:[...this.printBreakpoints,Nt])}clear(){this.printBreakpoints=[]}}let ce=(()=>{class Ot{constructor(gt,it,bt){this.matchMedia=gt,this.breakpoints=it,this.hook=bt,this._useFallbacks=!0,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 C.x,this.observeActivations()}get activatedAlias(){var gt,it;return null!==(it=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==it?it:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const it=this.findByQuery(gt.mediaQuery);if(it){gt=ee(gt,it);const bt=this.activatedBreakpoints.indexOf(it);gt.matches&&-1===bt?(this._activatedBreakpoints.push(it),this._activatedBreakpoints.sort(x),this.updateStyles()):!gt.matches&&-1!==bt&&(this._activatedBreakpoints.splice(bt,1),this._activatedBreakpoints.sort(x),this.updateStyles())}}init(gt,it,bt,ti,Qt=[]){Te(this.updateMap,gt,it,bt),Te(this.clearMap,gt,it,ti),this.buildElementKeyMap(gt,it),this.watchExtraTriggers(gt,it,Qt)}getValue(gt,it,bt){const ti=this.elementMap.get(gt);if(ti){const Qt=void 0!==bt?ti.get(bt):this.getActivatedValues(ti,it);if(Qt)return Qt.get(it)}}hasValue(gt,it){const bt=this.elementMap.get(gt);if(bt){const ti=this.getActivatedValues(bt,it);if(ti)return void 0!==ti.get(it)||!1}return!1}setValue(gt,it,bt,ti){var Qt;let Re=this.elementMap.get(gt);if(Re){const de=(null!==(Qt=Re.get(ti))&&void 0!==Qt?Qt:new Map).set(it,bt);Re.set(ti,de),this.elementMap.set(gt,Re)}else Re=(new Map).set(ti,(new Map).set(it,bt)),this.elementMap.set(gt,Re);const ke=this.getValue(gt,it);void 0!==ke&&this.updateElement(gt,it,ke)}trackValue(gt,it){return this.subject.asObservable().pipe((0,R.h)(bt=>bt.element===gt&&bt.key===it))}updateStyles(){this.elementMap.forEach((gt,it)=>{const bt=new Set(this.elementKeyMap.get(it));let ti=this.getActivatedValues(gt);ti&&ti.forEach((Qt,Re)=>{this.updateElement(it,Re,Qt),bt.delete(Re)}),bt.forEach(Qt=>{if(ti=this.getActivatedValues(gt,Qt),ti){const Re=ti.get(Qt);this.updateElement(it,Qt,Re)}else this.clearElement(it,Qt)})})}clearElement(gt,it){const bt=this.clearMap.get(gt);if(bt){const ti=bt.get(it);ti&&(ti(),this.subject.next({element:gt,key:it,value:""}))}}updateElement(gt,it,bt){const ti=this.updateMap.get(gt);if(ti){const Qt=ti.get(it);Qt&&(Qt(bt),this.subject.next({element:gt,key:it,value:bt}))}}releaseElement(gt){const it=this.watcherMap.get(gt);it&&(it.forEach(ti=>ti.unsubscribe()),this.watcherMap.delete(gt));const bt=this.elementMap.get(gt);bt&&(bt.forEach((ti,Qt)=>bt.delete(Qt)),this.elementMap.delete(gt))}triggerUpdate(gt,it){const bt=this.elementMap.get(gt);if(bt){const ti=this.getActivatedValues(bt,it);ti&&(it?this.updateElement(gt,it,ti.get(it)):ti.forEach((Qt,Re)=>this.updateElement(gt,Re,Qt)))}}buildElementKeyMap(gt,it){let bt=this.elementKeyMap.get(gt);bt||(bt=new Set,this.elementKeyMap.set(gt,bt)),bt.add(it)}watchExtraTriggers(gt,it,bt){if(bt&&bt.length){let ti=this.watcherMap.get(gt);if(ti||(ti=new Map,this.watcherMap.set(gt,ti)),!ti.get(it)){const Re=(0,a.T)(...bt).subscribe(()=>{const ke=this.getValue(gt,it);this.updateElement(gt,it,ke)});ti.set(it,Re)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,it){for(let ti=0;tiit.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(r),t.LFG(Me),t.LFG(ut))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();function Te(Ot,Nt,gt,it){var bt;if(void 0!==it){const ti=null!==(bt=Ot.get(Nt))&&void 0!==bt?bt:new Map;ti.set(gt,it),Ot.set(Nt,ti)}}let xe=(()=>{class Ot{constructor(gt,it,bt,ti){this.elementRef=gt,this.styleBuilder=it,this.styler=bt,this.marshal=ti,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new C.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(gt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,this.marshal.activatedAlias)}ngOnChanges(gt){Object.keys(gt).forEach(it=>{if(-1!==this.inputs.indexOf(it)){const bt=it.split(".").slice(1).join(".");this.setValue(gt[it].currentValue,bt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(gt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),gt)}addStyles(gt,it){const bt=this.styleBuilder,ti=bt.shouldCache;let Qt=this.styleCache.get(gt);(!Qt||!ti)&&(Qt=bt.buildStyles(gt,it),ti&&this.styleCache.set(gt,Qt)),this.mru=Object.assign({},Qt),this.applyStyleToElement(Qt),bt.sideEffect(gt,Qt,it)}clearStyles(){Object.keys(this.mru).forEach(gt=>{this.mru[gt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(gt,it=!1){if(gt){const[bt,ti]=this.styler.getFlowDirection(gt);if(!ti&&it){const Qt=(0,d.Ar)(bt);this.styler.applyStyleToElements(Qt,[gt])}return bt.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,it,bt=this.nativeElement){this.styler.applyStyleToElement(bt,gt,it)}setValue(gt,it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,it)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.Y36(t.SBq),t.Y36(ue),t.Y36(ne),t.Y36(ce))},Ot.\u0275dir=t.lG2({type:Ot,features:[t.TTD]}),Ot})();function di(Ot,Nt="1",gt="1"){let it=[Nt,gt,Ot],bt=Ot.indexOf("calc");if(bt>0){it[2]=Yt(Ot.substring(bt).trim());let ti=Ot.substr(0,bt).trim().split(" ");2==ti.length&&(it[0]=ti[0],it[1]=ti[1])}else if(0==bt)it[2]=Yt(Ot.trim());else{let ti=Ot.split(" ");it=3===ti.length?ti:[Nt,gt,Ot]}return it}function Yt(Ot){return Ot.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function ui(Ot,Nt){if(void 0===Nt)return Ot;const gt=it=>{const bt=+it.slice(0,-"x".length);return Ot.endsWith("x")&&!isNaN(bt)?`${bt*Nt.value}${Nt.unit}`:Ot};return Ot.includes(" ")?Ot.split(" ").map(gt).join(" "):gt(Ot)}},3322:(Be,K,p)=>{"use strict";p.d(K,{Zl:()=>T,aT:()=>n,oO:()=>B});var t=p(5e3),e=p(3270),f=p(9808),C=(p(3191),p(2722),p(2313));let S=(()=>{class _ extends e.iR{constructor(N,H,X,he,be,Pe,Ee){super(N,null,H,X),this.ngClassInstance=Ee,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new f.mk(he,be,N,Pe)),this.init(),this.setValue("","")}set klass(N){this.ngClassInstance.klass=N,this.setValue(N,"")}updateWithValue(N){this.ngClassInstance.ngClass=N,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return _.\u0275fac=function(N){return new(N||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.mk,10))},_.\u0275dir=t.lG2({type:_,inputs:{klass:["class","klass"]},features:[t.qOj]}),_})();const k=["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 B=(()=>{class _ extends S{constructor(){super(...arguments),this.inputs=k}}return _.\u0275fac=function(){let V;return function(H){return(V||(V=t.n5z(_)))(H||_)}}(),_.\u0275dir=t.lG2({type:_,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:[t.qOj]}),_})();class re{constructor(V,N,H=!0){this.key=V,this.value=N,this.key=H?V.replace(/['"]/g,"").trim():V.trim(),this.value=H?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function ge(_){let V=typeof _;return"object"===V?_.constructor===Array?"array":_.constructor===Set?"set":"object":V}function i(_){const[V,...N]=_.split(":");return new re(V,N.join(":"))}function r(_,V){return V.key&&(_[V.key]=V.value),_}let u=(()=>{class _ extends e.iR{constructor(N,H,X,he,be,Pe,Ee,j,Ve){var Me;super(N,null,H,X),this.sanitizer=he,this.ngStyleInstance=Ee,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new f.PC(N,be,Pe)),this.init();const J=null!==(Me=this.nativeElement.getAttribute("style"))&&void 0!==Me?Me:"";this.fallbackStyles=this.buildStyleMap(J),this.isServer=j&&(0,f.PM)(Ve)}updateWithValue(N){const H=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),H),this.isServer&&this.applyStyleToElement(H),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const H=X=>{var he;return null!==(he=this.sanitizer.sanitize(t.q3G.STYLE,X))&&void 0!==he?he:""};if(N)switch(ge(N)){case"string":return I(function q(_,V=";"){return String(_).trim().split(V).map(N=>N.trim()).filter(N=>""!==N)}(N),H);case"array":return I(N,H);default:return function x(_,V){let N=[];return"set"===ge(_)?_.forEach(H=>N.push(H)):Object.keys(_).forEach(H=>{N.push(`${H}:${_[H]}`)}),function _e(_,V){return _.map(i).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}(N,V)}(N,H)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return _.\u0275fac=function(N){return new(N||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(C.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},_.\u0275dir=t.lG2({type:_,features:[t.qOj]}),_})();const c=["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 T=(()=>{class _ extends u{constructor(){super(...arguments),this.inputs=c}}return _.\u0275fac=function(){let V;return function(H){return(V||(V=t.n5z(_)))(H||_)}}(),_.\u0275dir=t.lG2({type:_,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:[t.qOj]}),_})();function I(_,V){return _.map(i).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}let n=(()=>{class _{}return _.\u0275fac=function(N){return new(N||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[e.IR]]}),_})()},7093:(Be,K,p)=>{"use strict";p.d(K,{Wh:()=>Yt,ae:()=>Re,xw:()=>w,yH:()=>v});var t=p(5e3),e=p(226),f=p(3270),M=p(9042),C=(p(7579),p(2722));let d=(()=>{class ke extends f.QI{buildStyles(ye,{display:ht}){const mt=(0,M.Ar)(ye);return Object.assign(Object.assign({},mt),{display:"none"===ht?ht:mt.display})}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const R=["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 L=(()=>{class ke extends f.iR{constructor(ye,ht,mt,Ft,nt){super(ye,mt,ht,Ft),this._config=nt,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ye){var ht;const Ft=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ht=D.get(Ft))&&void 0!==ht?ht:new Map,D.set(Ft,this.styleCache),this.currentValue!==ye&&(this.addStyles(ye,{display:Ft}),this.currentValue=ye)}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(d),t.Y36(f.yB),t.Y36(f.WU))},ke.\u0275dir=t.lG2({type:ke,features:[t.qOj]}),ke})(),w=(()=>{class ke extends L{constructor(){super(...arguments),this.inputs=R}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275dir=t.lG2({type:ke,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:[t.qOj]}),ke})();const D=new Map;let i=(()=>{class ke extends f.QI{constructor(ye){super(),this.layoutConfig=ye}buildStyles(ye,ht){let[mt,Ft,...nt]=ye.split(" "),He=nt.join(" ");const rt=ht.direction.indexOf("column")>-1?"column":"row",et=(0,M.tj)(rt)?"max-width":"max-height",Ae=(0,M.tj)(rt)?"min-width":"min-height",Ge=String(He).indexOf("calc")>-1,ot=Ge||"auto"===He,lt=String(He).indexOf("%")>-1&&!Ge,Ct=String(He).indexOf("px")>-1||String(He).indexOf("rem")>-1||String(He).indexOf("em")>-1||String(He).indexOf("vw")>-1||String(He).indexOf("vh")>-1;let mi=Ge||Ct;mt="0"==mt?0:mt,Ft="0"==Ft?0:Ft;const Jt=!mt&&!Ft;let ei={};const Qi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(He||""){case"":const hi=!1!==this.layoutConfig.useColumnBasisZero;He="row"===rt?"0%":hi?"0.000000001px":"auto";break;case"initial":case"nogrow":mt=0,He="auto";break;case"grow":He="100%";break;case"noshrink":Ft=0,He="auto";break;case"auto":break;case"none":mt=0,Ft=0,He="auto";break;default:!mi&&!lt&&!isNaN(He)&&(He+="%"),"0%"===He&&(mi=!0),"0px"===He&&(He="0%"),ei=(0,M.kt)(Qi,Ge?{"flex-grow":mt,"flex-shrink":Ft,"flex-basis":mi?He:"100%"}:{flex:`${mt} ${Ft} ${mi?He:"100%"}`})}return ei.flex||ei["flex-grow"]||(ei=(0,M.kt)(Qi,Ge?{"flex-grow":mt,"flex-shrink":Ft,"flex-basis":He}:{flex:`${mt} ${Ft} ${He}`})),"0%"!==He&&"0px"!==He&&"0.000000001px"!==He&&"auto"!==He&&(ei[Ae]=Jt||mi&&mt?He:null,ei[et]=Jt||!ot&&Ft?He:null),ei[Ae]||ei[et]?ht.hasWrap&&(ei[Ge?"flex-basis":"flex"]=ei[et]?Ge?ei[et]:`${mt} ${Ft} ${ei[et]}`:Ge?ei[Ae]:`${mt} ${Ft} ${ei[Ae]}`):ei=(0,M.kt)(Qi,Ge?{"flex-grow":mt,"flex-shrink":Ft,"flex-basis":He}:{flex:`${mt} ${Ft} ${He}`}),(0,M.kt)(ei,{"box-sizing":"border-box"})}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.LFG(f.WU))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const r=["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 c=(()=>{class ke extends f.iR{constructor(ye,ht,mt,Ft,nt){super(ye,Ft,ht,nt),this.layoutConfig=mt,this.marshal=nt,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(ye){this.flexShrink=ye||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ye){this.flexGrow=ye||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,C.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ye){const mt=ye.value.split(" ");this.direction=mt[0],this.wrap=void 0!==mt[1]&&"wrap"===mt[1],this.triggerUpdate()}updateWithValue(ye){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 mt=this.direction,Ft=mt.startsWith("row"),nt=this.wrap;Ft&&nt?this.styleCache=y:Ft&&!nt?this.styleCache=T:!Ft&&nt?this.styleCache=n:!Ft&&!nt&&(this.styleCache=I);const He=String(ye).replace(";",""),rt=(0,f.Ot)(He,this.flexGrow,this.flexShrink);this.addStyles(rt.join(" "),{direction:mt,hasWrap:nt})}triggerReflow(){const ye=this.activatedValue;if(void 0!==ye){const ht=(0,f.Ot)(ye+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ht.join(" "))}}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(f.WU),t.Y36(i),t.Y36(f.yB))},ke.\u0275dir=t.lG2({type:ke,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),ke})(),v=(()=>{class ke extends c{constructor(){super(...arguments),this.inputs=r}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275dir=t.lG2({type:ke,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:[t.qOj]}),ke})();const T=new Map,I=new Map,y=new Map,n=new Map;let pt=(()=>{class ke extends f.QI{buildStyles(ye,ht){const mt={},[Ft,nt]=ye.split(" ");switch(Ft){case"center":mt["justify-content"]="center";break;case"space-around":mt["justify-content"]="space-around";break;case"space-between":mt["justify-content"]="space-between";break;case"space-evenly":mt["justify-content"]="space-evenly";break;case"end":case"flex-end":mt["justify-content"]="flex-end";break;default:mt["justify-content"]="flex-start"}switch(nt){case"start":case"flex-start":mt["align-items"]=mt["align-content"]="flex-start";break;case"center":mt["align-items"]=mt["align-content"]="center";break;case"end":case"flex-end":mt["align-items"]=mt["align-content"]="flex-end";break;case"space-between":mt["align-content"]="space-between",mt["align-items"]="stretch";break;case"space-around":mt["align-content"]="space-around",mt["align-items"]="stretch";break;case"baseline":mt["align-content"]="stretch",mt["align-items"]="baseline";break;default:mt["align-items"]=mt["align-content"]="stretch"}return(0,M.kt)(mt,{display:ht.inline?"inline-flex":"flex","flex-direction":ht.layout,"box-sizing":"border-box","max-width":"stretch"===nt?(0,M.tj)(ht.layout)?null:"100%":null,"max-height":"stretch"===nt&&(0,M.tj)(ht.layout)?"100%":null})}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const tt=["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 di=(()=>{class ke extends f.iR{constructor(ye,ht,mt,Ft){super(ye,mt,ht,Ft),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ye){const ht=this.layout||"row",mt=this.inline;"row"===ht&&mt?this.styleCache=gt:"row"!==ht||mt?"row-reverse"===ht&&mt?this.styleCache=bt:"row-reverse"!==ht||mt?"column"===ht&&mt?this.styleCache=it:"column"!==ht||mt?"column-reverse"===ht&&mt?this.styleCache=ti:"column-reverse"===ht&&!mt&&(this.styleCache=Nt):this.styleCache=ui:this.styleCache=Ot:this.styleCache=Zt,this.addStyles(ye,{layout:ht,inline:mt})}onLayoutChange(ye){const ht=ye.value.split(" ");this.layout=ht[0],this.inline=ye.value.includes("inline"),M.iQ.find(mt=>mt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(pt),t.Y36(f.yB))},ke.\u0275dir=t.lG2({type:ke,features:[t.qOj]}),ke})(),Yt=(()=>{class ke extends di{constructor(){super(...arguments),this.inputs=tt}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275dir=t.lG2({type:ke,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:[t.qOj]}),ke})();const Zt=new Map,ui=new Map,Ot=new Map,Nt=new Map,gt=new Map,it=new Map,bt=new Map,ti=new Map;let Re=(()=>{class ke{}return ke.\u0275fac=function(ye){return new(ye||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[[f.IR,e.vT]]}),ke})()},3075:(Be,K,p)=>{"use strict";p.d(K,{Cf:()=>Z,F:()=>ii,Fd:()=>Ha,Fj:()=>k,JJ:()=>we,JL:()=>ce,JU:()=>R,NI:()=>Ei,On:()=>Rn,Q7:()=>Br,UX:()=>ci,Zs:()=>Sa,_Y:()=>tr,a5:()=>Me,kI:()=>ee,oH:()=>ta,qQ:()=>sa,qu:()=>jt,sg:()=>na,u:()=>Yn,u5:()=>It,wV:()=>Si});var t=p(5e3),e=p(9808),f=p(457),M=p(4128),a=p(4004);let C=(()=>{class je{constructor(Fe,At){this._renderer=Fe,this._elementRef=At,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Fe,At){this._renderer.setProperty(this._elementRef.nativeElement,Fe,At)}registerOnTouched(Fe){this.onTouched=Fe}registerOnChange(Fe){this.onChange=Fe}setDisabledState(Fe){this.setProperty("disabled",Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(t.Qsj),t.Y36(t.SBq))},je.\u0275dir=t.lG2({type:je}),je})(),d=(()=>{class je extends C{}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,features:[t.qOj]}),je})();const R=new t.OlP("NgValueAccessor"),w={provide:R,useExisting:(0,t.Gpc)(()=>k),multi:!0},S=new t.OlP("CompositionEventMode");let k=(()=>{class je extends C{constructor(Fe,At,wi){super(Fe,At),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D(){const je=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(je.toLowerCase())}())}writeValue(Fe){this.setProperty("value",null==Fe?"":Fe)}_handleInput(Fe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Fe)}_compositionStart(){this._composing=!0}_compositionEnd(Fe){this._composing=!1,this._compositionMode&&this.onChange(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(S,8))},je.\u0275dir=t.lG2({type:je,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("input",function(Gi){return At._handleInput(Gi.target.value)})("blur",function(){return At.onTouched()})("compositionstart",function(){return At._compositionStart()})("compositionend",function(Gi){return At._compositionEnd(Gi.target.value)})},features:[t._Bn([w]),t.qOj]}),je})();function E(je){return null==je||0===je.length}function B(je){return null!=je&&"number"==typeof je.length}const Z=new t.OlP("NgValidators"),Y=new t.OlP("NgAsyncValidators"),ae=/^(?=.{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 ee{static min(Ye){return ue(Ye)}static max(Ye){return ne(Ye)}static required(Ye){return re(Ye)}static requiredTrue(Ye){return ge(Ye)}static email(Ye){return function q(je){return E(je.value)||ae.test(je.value)?null:{email:!0}}(Ye)}static minLength(Ye){return function _e(je){return Ye=>E(Ye.value)||!B(Ye.value)?null:Ye.value.lengthB(Ye.value)&&Ye.value.length>je?{maxlength:{requiredLength:je,actualLength:Ye.value.length}}:null}(Ye)}static pattern(Ye){return function i(je){if(!je)return r;let Ye,Fe;return"string"==typeof je?(Fe="","^"!==je.charAt(0)&&(Fe+="^"),Fe+=je,"$"!==je.charAt(je.length-1)&&(Fe+="$"),Ye=new RegExp(Fe)):(Fe=je.toString(),Ye=je),At=>{if(E(At.value))return null;const wi=At.value;return Ye.test(wi)?null:{pattern:{requiredPattern:Fe,actualValue:wi}}}}(Ye)}static nullValidator(Ye){return null}static compose(Ye){return n(Ye)}static composeAsync(Ye){return V(Ye)}}function ue(je){return Ye=>{if(E(Ye.value)||E(je))return null;const Fe=parseFloat(Ye.value);return!isNaN(Fe)&&Fe{if(E(Ye.value)||E(je))return null;const Fe=parseFloat(Ye.value);return!isNaN(Fe)&&Fe>je?{max:{max:je,actual:Ye.value}}:null}}function re(je){return E(je.value)?{required:!0}:null}function ge(je){return!0===je.value?null:{required:!0}}function r(je){return null}function u(je){return null!=je}function c(je){const Ye=(0,t.QGY)(je)?(0,f.D)(je):je;return(0,t.CqO)(Ye),Ye}function v(je){let Ye={};return je.forEach(Fe=>{Ye=null!=Fe?Object.assign(Object.assign({},Ye),Fe):Ye}),0===Object.keys(Ye).length?null:Ye}function T(je,Ye){return Ye.map(Fe=>Fe(je))}function y(je){return je.map(Ye=>function I(je){return!je.validate}(Ye)?Ye:Fe=>Ye.validate(Fe))}function n(je){if(!je)return null;const Ye=je.filter(u);return 0==Ye.length?null:function(Fe){return v(T(Fe,Ye))}}function _(je){return null!=je?n(y(je)):null}function V(je){if(!je)return null;const Ye=je.filter(u);return 0==Ye.length?null:function(Fe){const At=T(Fe,Ye).map(c);return(0,M.D)(At).pipe((0,a.U)(v))}}function N(je){return null!=je?V(y(je)):null}function H(je,Ye){return null===je?[Ye]:Array.isArray(je)?[...je,Ye]:[je,Ye]}function X(je){return je._rawValidators}function he(je){return je._rawAsyncValidators}function be(je){return je?Array.isArray(je)?je:[je]:[]}function Pe(je,Ye){return Array.isArray(je)?je.includes(Ye):je===Ye}function Ee(je,Ye){const Fe=be(Ye);return be(je).forEach(wi=>{Pe(Fe,wi)||Fe.push(wi)}),Fe}function j(je,Ye){return be(Ye).filter(Fe=>!Pe(je,Fe))}class Ve{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(Ye){this._rawValidators=Ye||[],this._composedValidatorFn=_(this._rawValidators)}_setAsyncValidators(Ye){this._rawAsyncValidators=Ye||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ye){this._onDestroyCallbacks.push(Ye)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ye=>Ye()),this._onDestroyCallbacks=[]}reset(Ye){this.control&&this.control.reset(Ye)}hasError(Ye,Fe){return!!this.control&&this.control.hasError(Ye,Fe)}getError(Ye,Fe){return this.control?this.control.getError(Ye,Fe):null}}class Me extends Ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class J extends Ve{get formDirective(){return null}get path(){return null}}class Ie{constructor(Ye){this._cd=Ye}is(Ye){var Fe,At,wi;return"submitted"===Ye?!!(null===(Fe=this._cd)||void 0===Fe?void 0:Fe.submitted):!!(null===(wi=null===(At=this._cd)||void 0===At?void 0:At.control)||void 0===wi?void 0:wi[Ye])}}let we=(()=>{class je extends Ie{constructor(Fe){super(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Me,2))},je.\u0275dir=t.lG2({type:je,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Fe,At){2&Fe&&t.ekj("ng-untouched",At.is("untouched"))("ng-touched",At.is("touched"))("ng-pristine",At.is("pristine"))("ng-dirty",At.is("dirty"))("ng-valid",At.is("valid"))("ng-invalid",At.is("invalid"))("ng-pending",At.is("pending"))},features:[t.qOj]}),je})(),ce=(()=>{class je extends Ie{constructor(Fe){super(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(J,10))},je.\u0275dir=t.lG2({type:je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Fe,At){2&Fe&&t.ekj("ng-untouched",At.is("untouched"))("ng-touched",At.is("touched"))("ng-pristine",At.is("pristine"))("ng-dirty",At.is("dirty"))("ng-valid",At.is("valid"))("ng-invalid",At.is("invalid"))("ng-pending",At.is("pending"))("ng-submitted",At.is("submitted"))},features:[t.qOj]}),je})();function gt(je,Ye){return[...Ye.path,je]}function it(je,Ye){Re(je,Ye),Ye.valueAccessor.writeValue(je.value),function de(je,Ye){Ye.valueAccessor.registerOnChange(Fe=>{je._pendingValue=Fe,je._pendingChange=!0,je._pendingDirty=!0,"change"===je.updateOn&&ht(je,Ye)})}(je,Ye),function mt(je,Ye){const Fe=(At,wi)=>{Ye.valueAccessor.writeValue(At),wi&&Ye.viewToModelUpdate(At)};je.registerOnChange(Fe),Ye._registerOnDestroy(()=>{je._unregisterOnChange(Fe)})}(je,Ye),function ye(je,Ye){Ye.valueAccessor.registerOnTouched(()=>{je._pendingTouched=!0,"blur"===je.updateOn&&je._pendingChange&&ht(je,Ye),"submit"!==je.updateOn&&je.markAsTouched()})}(je,Ye),function Qt(je,Ye){if(Ye.valueAccessor.setDisabledState){const Fe=At=>{Ye.valueAccessor.setDisabledState(At)};je.registerOnDisabledChange(Fe),Ye._registerOnDestroy(()=>{je._unregisterOnDisabledChange(Fe)})}}(je,Ye)}function bt(je,Ye,Fe=!0){const At=()=>{};Ye.valueAccessor&&(Ye.valueAccessor.registerOnChange(At),Ye.valueAccessor.registerOnTouched(At)),ke(je,Ye),je&&(Ye._invokeOnDestroyCallbacks(),je._registerOnCollectionChange(()=>{}))}function ti(je,Ye){je.forEach(Fe=>{Fe.registerOnValidatorChange&&Fe.registerOnValidatorChange(Ye)})}function Re(je,Ye){const Fe=X(je);null!==Ye.validator?je.setValidators(H(Fe,Ye.validator)):"function"==typeof Fe&&je.setValidators([Fe]);const At=he(je);null!==Ye.asyncValidator?je.setAsyncValidators(H(At,Ye.asyncValidator)):"function"==typeof At&&je.setAsyncValidators([At]);const wi=()=>je.updateValueAndValidity();ti(Ye._rawValidators,wi),ti(Ye._rawAsyncValidators,wi)}function ke(je,Ye){let Fe=!1;if(null!==je){if(null!==Ye.validator){const wi=X(je);if(Array.isArray(wi)&&wi.length>0){const Gi=wi.filter(Un=>Un!==Ye.validator);Gi.length!==wi.length&&(Fe=!0,je.setValidators(Gi))}}if(null!==Ye.asyncValidator){const wi=he(je);if(Array.isArray(wi)&&wi.length>0){const Gi=wi.filter(Un=>Un!==Ye.asyncValidator);Gi.length!==wi.length&&(Fe=!0,je.setAsyncValidators(Gi))}}}const At=()=>{};return ti(Ye._rawValidators,At),ti(Ye._rawAsyncValidators,At),Fe}function ht(je,Ye){je._pendingDirty&&je.markAsDirty(),je.setValue(je._pendingValue,{emitModelToViewChange:!1}),Ye.viewToModelUpdate(je._pendingValue),je._pendingChange=!1}function Ft(je,Ye){Re(je,Ye)}function Ge(je,Ye){if(!je.hasOwnProperty("model"))return!1;const Fe=je.model;return!!Fe.isFirstChange()||!Object.is(Ye,Fe.currentValue)}function lt(je,Ye){je._syncPendingControls(),Ye.forEach(Fe=>{const At=Fe.control;"submit"===At.updateOn&&At._pendingChange&&(Fe.viewToModelUpdate(At._pendingValue),At._pendingChange=!1)})}function Ct(je,Ye){if(!Ye)return null;let Fe,At,wi;return Array.isArray(Ye),Ye.forEach(Gi=>{Gi.constructor===k?Fe=Gi:function ot(je){return Object.getPrototypeOf(je.constructor)===d}(Gi)?At=Gi:wi=Gi}),wi||At||Fe||null}function mi(je,Ye){const Fe=je.indexOf(Ye);Fe>-1&&je.splice(Fe,1)}const Qi="VALID",hi="INVALID",si="PENDING",Ji="DISABLED";function Vi(je){return(ve(je)?je.validators:je)||null}function Ui(je){return Array.isArray(je)?_(je):je||null}function Ue(je,Ye){return(ve(Ye)?Ye.asyncValidators:je)||null}function Tt(je){return Array.isArray(je)?N(je):je||null}function ve(je){return null!=je&&!Array.isArray(je)&&"object"==typeof je}const Qe=je=>je instanceof Ei,_t=je=>je instanceof Xi,se=je=>je instanceof Wi;function Xe(je){return Qe(je)?je.value:je.getRawValue()}function xt(je,Ye){const Fe=_t(je),At=je.controls;if(!(Fe?Object.keys(At):At).length)throw new t.vHH(1e3,"");if(!At[Ye])throw new t.vHH(1001,"")}function Bt(je,Ye){_t(je),je._forEachChild((At,wi)=>{if(void 0===Ye[wi])throw new t.vHH(1002,"")})}class bi{constructor(Ye,Fe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Ye,this._rawAsyncValidators=Fe,this._composedValidatorFn=Ui(this._rawValidators),this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Ye){this._rawValidators=this._composedValidatorFn=Ye}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ye){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ye}get parent(){return this._parent}get valid(){return this.status===Qi}get invalid(){return this.status===hi}get pending(){return this.status==si}get disabled(){return this.status===Ji}get enabled(){return this.status!==Ji}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ye){this._rawValidators=Ye,this._composedValidatorFn=Ui(Ye)}setAsyncValidators(Ye){this._rawAsyncValidators=Ye,this._composedAsyncValidatorFn=Tt(Ye)}addValidators(Ye){this.setValidators(Ee(Ye,this._rawValidators))}addAsyncValidators(Ye){this.setAsyncValidators(Ee(Ye,this._rawAsyncValidators))}removeValidators(Ye){this.setValidators(j(Ye,this._rawValidators))}removeAsyncValidators(Ye){this.setAsyncValidators(j(Ye,this._rawAsyncValidators))}hasValidator(Ye){return Pe(this._rawValidators,Ye)}hasAsyncValidator(Ye){return Pe(this._rawAsyncValidators,Ye)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ye={}){this.touched=!0,this._parent&&!Ye.onlySelf&&this._parent.markAsTouched(Ye)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ye=>Ye.markAllAsTouched())}markAsUntouched(Ye={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Fe=>{Fe.markAsUntouched({onlySelf:!0})}),this._parent&&!Ye.onlySelf&&this._parent._updateTouched(Ye)}markAsDirty(Ye={}){this.pristine=!1,this._parent&&!Ye.onlySelf&&this._parent.markAsDirty(Ye)}markAsPristine(Ye={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Fe=>{Fe.markAsPristine({onlySelf:!0})}),this._parent&&!Ye.onlySelf&&this._parent._updatePristine(Ye)}markAsPending(Ye={}){this.status=si,!1!==Ye.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ye.onlySelf&&this._parent.markAsPending(Ye)}disable(Ye={}){const Fe=this._parentMarkedDirty(Ye.onlySelf);this.status=Ji,this.errors=null,this._forEachChild(At=>{At.disable(Object.assign(Object.assign({},Ye),{onlySelf:!0}))}),this._updateValue(),!1!==Ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Ye),{skipPristineCheck:Fe})),this._onDisabledChange.forEach(At=>At(!0))}enable(Ye={}){const Fe=this._parentMarkedDirty(Ye.onlySelf);this.status=Qi,this._forEachChild(At=>{At.enable(Object.assign(Object.assign({},Ye),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ye.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Ye),{skipPristineCheck:Fe})),this._onDisabledChange.forEach(At=>At(!1))}_updateAncestors(Ye){this._parent&&!Ye.onlySelf&&(this._parent.updateValueAndValidity(Ye),Ye.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ye){this._parent=Ye}updateValueAndValidity(Ye={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qi||this.status===si)&&this._runAsyncValidator(Ye.emitEvent)),!1!==Ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ye.onlySelf&&this._parent.updateValueAndValidity(Ye)}_updateTreeValidity(Ye={emitEvent:!0}){this._forEachChild(Fe=>Fe._updateTreeValidity(Ye)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ye.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ji:Qi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ye){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const Fe=c(this.asyncValidator(this));this._asyncValidationSubscription=Fe.subscribe(At=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(At,{emitEvent:Ye})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ye,Fe={}){this.errors=Ye,this._updateControlsErrors(!1!==Fe.emitEvent)}get(Ye){return function Zi(je,Ye,Fe){if(null==Ye||(Array.isArray(Ye)||(Ye=Ye.split(Fe)),Array.isArray(Ye)&&0===Ye.length))return null;let At=je;return Ye.forEach(wi=>{At=_t(At)?At.controls.hasOwnProperty(wi)?At.controls[wi]:null:se(At)&&At.at(wi)||null}),At}(this,Ye,".")}getError(Ye,Fe){const At=Fe?this.get(Fe):this;return At&&At.errors?At.errors[Ye]:null}hasError(Ye,Fe){return!!this.getError(Ye,Fe)}get root(){let Ye=this;for(;Ye._parent;)Ye=Ye._parent;return Ye}_updateControlsErrors(Ye){this.status=this._calculateStatus(),Ye&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ye)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Ji:this.errors?hi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(hi)?hi:Qi}_anyControlsHaveStatus(Ye){return this._anyControls(Fe=>Fe.status===Ye)}_anyControlsDirty(){return this._anyControls(Ye=>Ye.dirty)}_anyControlsTouched(){return this._anyControls(Ye=>Ye.touched)}_updatePristine(Ye={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ye.onlySelf&&this._parent._updatePristine(Ye)}_updateTouched(Ye={}){this.touched=this._anyControlsTouched(),this._parent&&!Ye.onlySelf&&this._parent._updateTouched(Ye)}_isBoxedValue(Ye){return"object"==typeof Ye&&null!==Ye&&2===Object.keys(Ye).length&&"value"in Ye&&"disabled"in Ye}_registerOnCollectionChange(Ye){this._onCollectionChange=Ye}_setUpdateStrategy(Ye){ve(Ye)&&null!=Ye.updateOn&&(this._updateOn=Ye.updateOn)}_parentMarkedDirty(Ye){return!Ye&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Ei extends bi{constructor(Ye=null,Fe,At){super(Vi(Fe),Ue(At,Fe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ye),this._setUpdateStrategy(Fe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ve(Fe)&&Fe.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Ye)?Ye.value:Ye)}setValue(Ye,Fe={}){this.value=this._pendingValue=Ye,this._onChange.length&&!1!==Fe.emitModelToViewChange&&this._onChange.forEach(At=>At(this.value,!1!==Fe.emitViewToModelChange)),this.updateValueAndValidity(Fe)}patchValue(Ye,Fe={}){this.setValue(Ye,Fe)}reset(Ye=this.defaultValue,Fe={}){this._applyFormState(Ye),this.markAsPristine(Fe),this.markAsUntouched(Fe),this.setValue(this.value,Fe),this._pendingChange=!1}_updateValue(){}_anyControls(Ye){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ye){this._onChange.push(Ye)}_unregisterOnChange(Ye){mi(this._onChange,Ye)}registerOnDisabledChange(Ye){this._onDisabledChange.push(Ye)}_unregisterOnDisabledChange(Ye){mi(this._onDisabledChange,Ye)}_forEachChild(Ye){}_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(Ye){this._isBoxedValue(Ye)?(this.value=this._pendingValue=Ye.value,Ye.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ye}}class Xi extends bi{constructor(Ye,Fe,At){super(Vi(Fe),Ue(At,Fe)),this.controls=Ye,this._initObservables(),this._setUpdateStrategy(Fe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ye,Fe){return this.controls[Ye]?this.controls[Ye]:(this.controls[Ye]=Fe,Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange),Fe)}addControl(Ye,Fe,At={}){this.registerControl(Ye,Fe),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}removeControl(Ye,Fe={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),delete this.controls[Ye],this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}setControl(Ye,Fe,At={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),delete this.controls[Ye],Fe&&this.registerControl(Ye,Fe),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}contains(Ye){return this.controls.hasOwnProperty(Ye)&&this.controls[Ye].enabled}setValue(Ye,Fe={}){Bt(this,Ye),Object.keys(Ye).forEach(At=>{xt(this,At),this.controls[At].setValue(Ye[At],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe)}patchValue(Ye,Fe={}){null!=Ye&&(Object.keys(Ye).forEach(At=>{this.controls[At]&&this.controls[At].patchValue(Ye[At],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe))}reset(Ye={},Fe={}){this._forEachChild((At,wi)=>{At.reset(Ye[wi],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this._updatePristine(Fe),this._updateTouched(Fe),this.updateValueAndValidity(Fe)}getRawValue(){return this._reduceChildren({},(Ye,Fe,At)=>(Ye[At]=Xe(Fe),Ye))}_syncPendingControls(){let Ye=this._reduceChildren(!1,(Fe,At)=>!!At._syncPendingControls()||Fe);return Ye&&this.updateValueAndValidity({onlySelf:!0}),Ye}_forEachChild(Ye){Object.keys(this.controls).forEach(Fe=>{const At=this.controls[Fe];At&&Ye(At,Fe)})}_setUpControls(){this._forEachChild(Ye=>{Ye.setParent(this),Ye._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ye){for(const Fe of Object.keys(this.controls)){const At=this.controls[Fe];if(this.contains(Fe)&&Ye(At))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Ye,Fe,At)=>((Fe.enabled||this.disabled)&&(Ye[At]=Fe.value),Ye))}_reduceChildren(Ye,Fe){let At=Ye;return this._forEachChild((wi,Gi)=>{At=Fe(At,wi,Gi)}),At}_allControlsDisabled(){for(const Ye of Object.keys(this.controls))if(this.controls[Ye].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Wi extends bi{constructor(Ye,Fe,At){super(Vi(Fe),Ue(At,Fe)),this.controls=Ye,this._initObservables(),this._setUpdateStrategy(Fe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ye){return this.controls[Ye]}push(Ye,Fe={}){this.controls.push(Ye),this._registerControl(Ye),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}insert(Ye,Fe,At={}){this.controls.splice(Ye,0,Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:At.emitEvent})}removeAt(Ye,Fe={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),this.controls.splice(Ye,1),this.updateValueAndValidity({emitEvent:Fe.emitEvent})}setControl(Ye,Fe,At={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),this.controls.splice(Ye,1),Fe&&(this.controls.splice(Ye,0,Fe),this._registerControl(Fe)),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ye,Fe={}){Bt(this,Ye),Ye.forEach((At,wi)=>{xt(this,wi),this.at(wi).setValue(At,{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe)}patchValue(Ye,Fe={}){null!=Ye&&(Ye.forEach((At,wi)=>{this.at(wi)&&this.at(wi).patchValue(At,{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe))}reset(Ye=[],Fe={}){this._forEachChild((At,wi)=>{At.reset(Ye[wi],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this._updatePristine(Fe),this._updateTouched(Fe),this.updateValueAndValidity(Fe)}getRawValue(){return this.controls.map(Ye=>Xe(Ye))}clear(Ye={}){this.controls.length<1||(this._forEachChild(Fe=>Fe._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ye.emitEvent}))}_syncPendingControls(){let Ye=this.controls.reduce((Fe,At)=>!!At._syncPendingControls()||Fe,!1);return Ye&&this.updateValueAndValidity({onlySelf:!0}),Ye}_forEachChild(Ye){this.controls.forEach((Fe,At)=>{Ye(Fe,At)})}_updateValue(){this.value=this.controls.filter(Ye=>Ye.enabled||this.disabled).map(Ye=>Ye.value)}_anyControls(Ye){return this.controls.some(Fe=>Fe.enabled&&Ye(Fe))}_setUpControls(){this._forEachChild(Ye=>this._registerControl(Ye))}_allControlsDisabled(){for(const Ye of this.controls)if(Ye.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ye){Ye.setParent(this),Ye._registerOnCollectionChange(this._onCollectionChange)}}const on={provide:J,useExisting:(0,t.Gpc)(()=>ii)},pn=(()=>Promise.resolve(null))();let ii=(()=>{class je extends J{constructor(Fe,At){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Xi({},_(Fe),N(At))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Fe){pn.then(()=>{const At=this._findContainer(Fe.path);Fe.control=At.registerControl(Fe.name,Fe.control),it(Fe.control,Fe),Fe.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Fe)})}getControl(Fe){return this.form.get(Fe.path)}removeControl(Fe){pn.then(()=>{const At=this._findContainer(Fe.path);At&&At.removeControl(Fe.name),this._directives.delete(Fe)})}addFormGroup(Fe){pn.then(()=>{const At=this._findContainer(Fe.path),wi=new Xi({});Ft(wi,Fe),At.registerControl(Fe.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Fe){pn.then(()=>{const At=this._findContainer(Fe.path);At&&At.removeControl(Fe.name)})}getFormGroup(Fe){return this.form.get(Fe.path)}updateModel(Fe,At){pn.then(()=>{this.form.get(Fe.path).setValue(At)})}setValue(Fe){this.control.setValue(Fe)}onSubmit(Fe){return this.submitted=!0,lt(this.form,this._directives),this.ngSubmit.emit(Fe),!1}onReset(){this.resetForm()}resetForm(Fe){this.form.reset(Fe),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Fe){return Fe.pop(),Fe.length?this.form.get(Fe):this.form}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Z,10),t.Y36(Y,10))},je.\u0275dir=t.lG2({type:je,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("submit",function(Gi){return At.onSubmit(Gi)})("reset",function(){return At.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([on]),t.qOj]}),je})();const mn={provide:Me,useExisting:(0,t.Gpc)(()=>Rn)},In=(()=>Promise.resolve(null))();let Rn=(()=>{class je extends Me{constructor(Fe,At,wi,Gi,Un){super(),this._changeDetectorRef=Un,this.control=new Ei,this._registered=!1,this.update=new t.vpe,this._parent=Fe,this._setValidators(At),this._setAsyncValidators(wi),this.valueAccessor=Ct(0,Gi)}ngOnChanges(Fe){if(this._checkForErrors(),!this._registered||"name"in Fe){if(this._registered&&(this._checkName(),this.formDirective)){const At=Fe.name.previousValue;this.formDirective.removeControl({name:At,path:this._getPath(At)})}this._setUpControl()}"isDisabled"in Fe&&this._updateDisabled(Fe),Ge(Fe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}_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(){it(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(Fe){In.then(()=>{var At;this.control.setValue(Fe,{emitViewToModelChange:!1}),null===(At=this._changeDetectorRef)||void 0===At||At.markForCheck()})}_updateDisabled(Fe){const At=Fe.isDisabled.currentValue,wi=""===At||At&&"false"!==At;In.then(()=>{var Gi;wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),null===(Gi=this._changeDetectorRef)||void 0===Gi||Gi.markForCheck()})}_getPath(Fe){return this._parent?gt(Fe,this._parent):[Fe]}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(J,9),t.Y36(Z,10),t.Y36(Y,10),t.Y36(R,10),t.Y36(t.sBO,8))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([mn]),t.qOj,t.TTD]}),je})(),tr=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275dir=t.lG2({type:je,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),je})();const gn={provide:R,useExisting:(0,t.Gpc)(()=>Si),multi:!0};let Si=(()=>{class je extends d{writeValue(Fe){this.setProperty("value",null==Fe?"":Fe)}registerOnChange(Fe){this.onChange=At=>{Fe(""==At?null:parseFloat(At))}}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("input",function(Gi){return At.onChange(Gi.target.value)})("blur",function(){return At.onTouched()})},features:[t._Bn([gn]),t.qOj]}),je})(),qn=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({}),je})();const fa=new t.OlP("NgModelWithFormControlWarning"),zr={provide:Me,useExisting:(0,t.Gpc)(()=>ta)};let ta=(()=>{class je extends Me{constructor(Fe,At,wi,Gi){super(),this._ngModelWarningConfig=Gi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Fe),this._setAsyncValidators(At),this.valueAccessor=Ct(0,wi)}set isDisabled(Fe){}ngOnChanges(Fe){if(this._isControlChanged(Fe)){const At=Fe.form.previousValue;At&&bt(At,this,!1),it(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ge(Fe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}_isControlChanged(Fe){return Fe.hasOwnProperty("form")}}return je._ngModelWarningSentOnce=!1,je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Z,10),t.Y36(Y,10),t.Y36(R,10),t.Y36(fa,8))},je.\u0275dir=t.lG2({type:je,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([zr]),t.qOj,t.TTD]}),je})();const ia={provide:J,useExisting:(0,t.Gpc)(()=>na)};let na=(()=>{class je extends J{constructor(Fe,At){super(),this.validators=Fe,this.asyncValidators=At,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Fe),this._setAsyncValidators(At)}ngOnChanges(Fe){this._checkFormPresent(),Fe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ke(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Fe){const At=this.form.get(Fe.path);return it(At,Fe),At.updateValueAndValidity({emitEvent:!1}),this.directives.push(Fe),At}getControl(Fe){return this.form.get(Fe.path)}removeControl(Fe){bt(Fe.control||null,Fe,!1),mi(this.directives,Fe)}addFormGroup(Fe){this._setUpFormContainer(Fe)}removeFormGroup(Fe){this._cleanUpFormContainer(Fe)}getFormGroup(Fe){return this.form.get(Fe.path)}addFormArray(Fe){this._setUpFormContainer(Fe)}removeFormArray(Fe){this._cleanUpFormContainer(Fe)}getFormArray(Fe){return this.form.get(Fe.path)}updateModel(Fe,At){this.form.get(Fe.path).setValue(At)}onSubmit(Fe){return this.submitted=!0,lt(this.form,this.directives),this.ngSubmit.emit(Fe),!1}onReset(){this.resetForm()}resetForm(Fe){this.form.reset(Fe),this.submitted=!1}_updateDomValue(){this.directives.forEach(Fe=>{const At=Fe.control,wi=this.form.get(Fe.path);At!==wi&&(bt(At||null,Fe),Qe(wi)&&(it(wi,Fe),Fe.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Fe){const At=this.form.get(Fe.path);Ft(At,Fe),At.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Fe){if(this.form){const At=this.form.get(Fe.path);At&&function nt(je,Ye){return ke(je,Ye)}(At,Fe)&&At.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Re(this.form,this),this._oldForm&&ke(this._oldForm,this)}_checkFormPresent(){}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Z,10),t.Y36(Y,10))},je.\u0275dir=t.lG2({type:je,selectors:[["","formGroup",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("submit",function(Gi){return At.onSubmit(Gi)})("reset",function(){return At.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ia]),t.qOj,t.TTD]}),je})();const Pr={provide:Me,useExisting:(0,t.Gpc)(()=>Yn)};let Yn=(()=>{class je extends Me{constructor(Fe,At,wi,Gi,Un){super(),this._ngModelWarningConfig=Un,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Fe,this._setValidators(At),this._setAsyncValidators(wi),this.valueAccessor=Ct(0,Gi)}set isDisabled(Fe){}ngOnChanges(Fe){this._added||this._setUpControl(),Ge(Fe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}get path(){return gt(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 je._ngModelWarningSentOnce=!1,je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(J,13),t.Y36(Z,10),t.Y36(Y,10),t.Y36(R,10),t.Y36(fa,8))},je.\u0275dir=t.lG2({type:je,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Pr]),t.qOj,t.TTD]}),je})();function ba(je){return"number"==typeof je?je:parseFloat(je)}let or=(()=>{class je{constructor(){this._validator=r}ngOnChanges(Fe){if(this.inputName in Fe){const At=this.normalizeInput(Fe[this.inputName].currentValue);this._enabled=this.enabled(At),this._validator=this._enabled?this.createValidator(At):r,this._onChange&&this._onChange()}}validate(Fe){return this._validator(Fe)}registerOnValidatorChange(Fe){this._onChange=Fe}enabled(Fe){return null!=Fe}}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275dir=t.lG2({type:je,features:[t.TTD]}),je})();const aa={provide:Z,useExisting:(0,t.Gpc)(()=>Ha),multi:!0};let Ha=(()=>{class je extends or{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Fe=>ba(Fe),this.createValidator=Fe=>ne(Fe)}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("max",At._enabled?At.max:null)},inputs:{max:"max"},features:[t._Bn([aa]),t.qOj]}),je})();const ir={provide:Z,useExisting:(0,t.Gpc)(()=>sa),multi:!0};let sa=(()=>{class je extends or{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Fe=>ba(Fe),this.createValidator=Fe=>ue(Fe)}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("min",At._enabled?At.min:null)},inputs:{min:"min"},features:[t._Bn([ir]),t.qOj]}),je})();const Yr={provide:Z,useExisting:(0,t.Gpc)(()=>Br),multi:!0},Nr={provide:Z,useExisting:(0,t.Gpc)(()=>Sa),multi:!0};let Br=(()=>{class je extends or{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Fe=>function Pa(je){return null!=je&&!1!==je&&"false"!=`${je}`}(Fe),this.createValidator=Fe=>re}enabled(Fe){return Fe}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("required",At._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Yr]),t.qOj]}),je})(),Sa=(()=>{class je extends Br{constructor(){super(...arguments),this.createValidator=Fe=>ge}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("required",At._enabled?"":null)},features:[t._Bn([Nr]),t.qOj]}),je})(),Bn=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({imports:[[qn]]}),je})(),It=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({imports:[Bn]}),je})(),ci=(()=>{class je{static withConfig(Fe){return{ngModule:je,providers:[{provide:fa,useValue:Fe.warnOnNgModelWithFormControl}]}}}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({imports:[Bn]}),je})(),jt=(()=>{class je{group(Fe,At=null){const wi=this._reduceControls(Fe);let br,Gi=null,Un=null;return null!=At&&(function vt(je){return void 0!==je.asyncValidators||void 0!==je.validators||void 0!==je.updateOn}(At)?(Gi=null!=At.validators?At.validators:null,Un=null!=At.asyncValidators?At.asyncValidators:null,br=null!=At.updateOn?At.updateOn:void 0):(Gi=null!=At.validator?At.validator:null,Un=null!=At.asyncValidator?At.asyncValidator:null)),new Xi(wi,{asyncValidators:Un,updateOn:br,validators:Gi})}control(Fe,At,wi){return new Ei(Fe,At,wi)}array(Fe,At,wi){const Gi=Fe.map(Un=>this._createControl(Un));return new Wi(Gi,At,wi)}_reduceControls(Fe){const At={};return Object.keys(Fe).forEach(wi=>{At[wi]=this._createControl(Fe[wi])}),At}_createControl(Fe){return Qe(Fe)||_t(Fe)||se(Fe)?Fe:Array.isArray(Fe)?this.control(Fe[0],Fe.length>1?Fe[1]:null,Fe.length>2?Fe[2]:null):this.control(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac,providedIn:ci}),je})()},1079:(Be,K,p)=>{"use strict";p.d(K,{Bb:()=>j,XC:()=>n,ZL:()=>be});var t=p(5664),e=p(3191),f=p(5e3),M=p(508),a=p(727),C=p(7579),d=p(9770),R=p(6451),h=p(9646),L=p(4968),w=p(925),D=p(9808),S=p(9776),k=p(5303),E=p(1159),B=p(7429),Z=p(3075),Y=p(7322),ae=p(8675),ee=p(3900),ue=p(5698),ne=p(9300),re=p(4004),ge=p(8505),q=p(4086),_e=p(226);const x=["panel"];function i(Ve,Me){if(1&Ve&&(f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA()),2&Ve){const J=Me.id,Ie=f.oxw();f.Q6J("id",Ie.id)("ngClass",Ie._classList),f.uIk("aria-label",Ie.ariaLabel||null)("aria-labelledby",Ie._getPanelAriaLabelledby(J))}}const r=["*"];let u=0;class c{constructor(Me,J){this.source=Me,this.option=J}}const v=(0,M.Kr)(class{}),T=new f.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let y=(()=>{class Ve extends v{constructor(J,Ie,ut,Oe){super(),this._changeDetectorRef=J,this._elementRef=Ie,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new f.vpe,this.opened=new f.vpe,this.closed=new f.vpe,this.optionActivated=new f.vpe,this._classList={},this.id="mat-autocomplete-"+u++,this.inertGroups=(null==Oe?void 0:Oe.SAFARI)||!1,this._autoActiveFirstOption=!!ut.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(J){this._autoActiveFirstOption=(0,e.Ig)(J)}set classList(J){this._classList=J&&J.length?(0,e.du)(J).reduce((Ie,ut)=>(Ie[ut]=!0,Ie),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(J=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[J]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(J){this.panel&&(this.panel.nativeElement.scrollTop=J)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(J){const Ie=new c(this,J);this.optionSelected.emit(Ie)}_getPanelAriaLabelledby(J){return this.ariaLabel?null:this.ariaLabelledby?(J?J+" ":"")+this.ariaLabelledby:J}_setVisibilityClasses(J){J[this._visibleClass]=this.showPanel,J[this._hiddenClass]=!this.showPanel}}return Ve.\u0275fac=function(J){return new(J||Ve)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(T),f.Y36(w.t4))},Ve.\u0275dir=f.lG2({type:Ve,viewQuery:function(J,Ie){if(1&J&&(f.Gf(f.Rgc,7),f.Gf(x,5)),2&J){let ut;f.iGM(ut=f.CRH())&&(Ie.template=ut.first),f.iGM(ut=f.CRH())&&(Ie.panel=ut.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[f.qOj]}),Ve})(),n=(()=>{class Ve extends y{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ve.\u0275fac=function(){let Me;return function(Ie){return(Me||(Me=f.n5z(Ve)))(Ie||Ve)}}(),Ve.\u0275cmp=f.Xpm({type:Ve,selectors:[["mat-autocomplete"]],contentQueries:function(J,Ie,ut){if(1&J&&(f.Suo(ut,M.K7,5),f.Suo(ut,M.ey,5)),2&J){let Oe;f.iGM(Oe=f.CRH())&&(Ie.optionGroups=Oe),f.iGM(Oe=f.CRH())&&(Ie.options=Oe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[f._Bn([{provide:M.HF,useExisting:Ve}]),f.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(J,Ie){1&J&&(f.F$t(),f.YNc(0,i,3,4,"ng-template"))},directives:[D.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}),Ve})();const _=new f.OlP("mat-autocomplete-scroll-strategy"),N={provide:_,deps:[S.aV],useFactory:function V(Ve){return()=>Ve.scrollStrategies.reposition()}},H={provide:Z.JU,useExisting:(0,f.Gpc)(()=>be),multi:!0};let he=(()=>{class Ve{constructor(J,Ie,ut,Oe,we,ce,Te,xe,W,te,Ce){this._element=J,this._overlay=Ie,this._viewContainerRef=ut,this._zone=Oe,this._changeDetectorRef=we,this._dir=Te,this._formField=xe,this._document=W,this._viewportRuler=te,this._defaults=Ce,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.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,d.P)(()=>{const fe=this.autocomplete?this.autocomplete.options:null;return fe?fe.changes.pipe((0,ae.O)(fe),(0,ee.w)(()=>(0,R.T)(...fe.map(Q=>Q.onSelectionChange)))):this._zone.onStable.pipe((0,ue.q)(1),(0,ee.w)(()=>this.optionSelections))}),this._scrollStrategy=ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(J){this._autocompleteDisabled=(0,e.Ig)(J)}ngAfterViewInit(){const J=this._getWindow();void 0!==J&&this._zone.runOutsideAngular(()=>J.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(J){J.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const J=this._getWindow();void 0!==J&&J.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._zone.run(()=>{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,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ne.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ne.h)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,re.U)(J=>J instanceof M.rN?J:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,ne.h)(J=>{const Ie=(0,w.sA)(J),ut=this._formField?this._formField._elementRef.nativeElement:null,Oe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ie!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ut||!ut.contains(Ie))&&(!Oe||!Oe.contains(Ie))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ie)}))}writeValue(J){Promise.resolve().then(()=>this._setTriggerValue(J))}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this._element.nativeElement.disabled=J}_handleKeydown(J){const Ie=J.keyCode,ut=(0,E.Vb)(J);if(Ie===E.hY&&!ut&&J.preventDefault(),this.activeOption&&Ie===E.K5&&this.panelOpen&&!ut)this.activeOption._selectViaInteraction(),this._resetActiveItem(),J.preventDefault();else if(this.autocomplete){const Oe=this.autocomplete._keyManager.activeItem,we=Ie===E.LH||Ie===E.JH;Ie===E.Mf||we&&!ut&&this.panelOpen?this.autocomplete._keyManager.onKeydown(J):we&&this._canOpen()&&this.openPanel(),(we||this.autocomplete._keyManager.activeItem!==Oe)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(J){let Ie=J.target,ut=Ie.value;"number"===Ie.type&&(ut=""==ut?null:parseFloat(ut)),this._previousValue!==ut&&(this._previousValue=ut,this._onChange(ut),this._canOpen()&&this._document.activeElement===J.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(J=!1){this._formField&&"auto"===this._formField.floatLabel&&(J?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const J=this._zone.onStable.pipe((0,ue.q)(1)),Ie=this.autocomplete.options.changes.pipe((0,ge.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,q.g)(0));return(0,R.T)(J,Ie).pipe((0,ee.w)(()=>(this._zone.run(()=>{const ut=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),ut!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,ue.q)(1)).subscribe(ut=>this._setValueAndClose(ut))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(J){const Ie=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(J):J,ut=null!=Ie?Ie:"";this._formField?this._formField._control.value=ut:this._element.nativeElement.value=ut,this._previousValue=ut}_setValueAndClose(J){const Ie=J&&J.source;Ie&&(this._clearPreviousSelectedOption(Ie),this._setTriggerValue(Ie.value),this._onChange(Ie.value),this.autocomplete._emitSelectEvent(Ie),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(J){this.autocomplete.options.forEach(Ie=>{Ie!==J&&Ie.selected&&Ie.deselect()})}_attachOverlay(){var J;let Ie=this._overlayRef;Ie?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ie.updateSize({width:this._getPanelWidth()})):(this._portal=new B.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(J=this._formField)||void 0===J?void 0:J.getLabelId()}),Ie=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ie,Ie.keydownEvents().subscribe(Oe=>{(Oe.keyCode===E.hY&&!(0,E.Vb)(Oe)||Oe.keyCode===E.LH&&(0,E.Vb)(Oe,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Oe.stopPropagation(),Oe.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ie&&Ie.updateSize({width:this._getPanelWidth()})})),Ie&&!Ie.hasAttached()&&(Ie.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ut=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ut!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var J;return new S.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(J=this._defaults)||void 0===J?void 0:J.overlayPanelClass})}_getOverlayPosition(){const J=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(J),this._positionStrategy=J,J}_setStrategyPositions(J){const Ie=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ut=this._aboveClass,Oe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ut},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ut}];let we;we="above"===this.position?Oe:"below"===this.position?Ie:[...Ie,...Oe],J.withPositions(we)}_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 J=this.autocomplete;J.autoActiveFirstOption?J._keyManager.setFirstItemActive():J._keyManager.setActiveItem(-1)}_canOpen(){const J=this._element.nativeElement;return!J.readOnly&&!J.disabled&&!this._autocompleteDisabled}_getWindow(){var J;return(null===(J=this._document)||void 0===J?void 0:J.defaultView)||window}_scrollToOption(J){const Ie=this.autocomplete,ut=(0,M.CB)(J,Ie.options,Ie.optionGroups);if(0===J&&1===ut)Ie._setScrollTop(0);else if(Ie.panel){const Oe=Ie.options.toArray()[J];if(Oe){const we=Oe._getHostElement(),ce=(0,M.jH)(we.offsetTop,we.offsetHeight,Ie._getScrollTop(),Ie.panel.nativeElement.offsetHeight);Ie._setScrollTop(ce)}}}}return Ve.\u0275fac=function(J){return new(J||Ve)(f.Y36(f.SBq),f.Y36(S.aV),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(_),f.Y36(_e.Is,8),f.Y36(Y.G_,9),f.Y36(D.K0,8),f.Y36(k.rL),f.Y36(T,8))},Ve.\u0275dir=f.lG2({type:Ve,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[f.TTD]}),Ve})(),be=(()=>{class Ve extends he{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ve.\u0275fac=function(){let Me;return function(Ie){return(Me||(Me=f.n5z(Ve)))(Ie||Ve)}}(),Ve.\u0275dir=f.lG2({type:Ve,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(J,Ie){1&J&&f.NdJ("focusin",function(){return Ie._handleFocus()})("blur",function(){return Ie._onTouched()})("input",function(Oe){return Ie._handleInput(Oe)})("keydown",function(Oe){return Ie._handleKeydown(Oe)})("click",function(){return Ie._handleClick()}),2&J&&f.uIk("autocomplete",Ie.autocompleteAttribute)("role",Ie.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ie.autocompleteDisabled?null:"list")("aria-activedescendant",Ie.panelOpen&&Ie.activeOption?Ie.activeOption.id:null)("aria-expanded",Ie.autocompleteDisabled?null:Ie.panelOpen.toString())("aria-owns",Ie.autocompleteDisabled||!Ie.panelOpen||null==Ie.autocomplete?null:Ie.autocomplete.id)("aria-haspopup",Ie.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[f._Bn([H]),f.qOj]}),Ve})(),j=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275mod=f.oAB({type:Ve}),Ve.\u0275inj=f.cJS({providers:[N],imports:[[S.U8,M.Ng,M.BQ,D.ez],k.ZD,M.Ng,M.BQ]}),Ve})()},7544:(Be,K,p)=>{"use strict";p.d(K,{g:()=>L,k:()=>h});var t=p(5e3),e=p(508),f=p(5664),M=p(3191),a=p(6360);let C=0;const d=(0,e.Id)(class{}),R="mat-badge-content";let h=(()=>{class w extends d{constructor(S,k,E,B,Z){super(),this._ngZone=S,this._elementRef=k,this._ariaDescriber=E,this._renderer=B,this._animationMode=Z,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=C++,this._isInitialized=!1}get color(){return this._color}set color(S){this._setColor(S),this._color=S}get overlap(){return this._overlap}set overlap(S){this._overlap=(0,M.Ig)(S)}get content(){return this._content}set content(S){this._updateRenderedContent(S)}get description(){return this._description}set description(S){this._updateHostAriaDescription(S)}get hidden(){return this._hidden}set hidden(S){this._hidden=(0,M.Ig)(S)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const S=this._renderer.createElement("span"),k="mat-badge-active";return S.setAttribute("id",`mat-badge-content-${this._id}`),S.setAttribute("aria-hidden","true"),S.classList.add(R),"NoopAnimations"===this._animationMode&&S.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(S),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{S.classList.add(k)})}):S.classList.add(k),S}_updateRenderedContent(S){const k=`${null!=S?S:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(S){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),S&&this._ariaDescriber.describe(this._elementRef.nativeElement,S),this._description=S}_setColor(S){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),S&&k.add(`mat-badge-${S}`)}_clearExistingBadges(){const S=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const k of Array.from(S))k!==this._badgeElement&&k.remove()}}return w.\u0275fac=function(S){return new(S||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(f.$s),t.Y36(t.Qsj),t.Y36(a.Qb,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(S,k){2&S&&t.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[t.qOj]}),w})(),L=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[f.rt,e.BQ],e.BQ]}),w})()},7423:(Be,K,p)=>{"use strict";p.d(K,{lW:()=>w,ot:()=>S});var t=p(5e3),e=p(508),f=p(6360),M=p(5664);const a=["mat-button",""],C=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(k){this._elementRef=k}})));let w=(()=>{class k extends L{constructor(B,Z,Y){super(B),this._focusMonitor=Z,this._animationMode=Y,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ae of h)this._hasHostAttributes(ae)&&this._getHostElement().classList.add(ae);B.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(B,Z){B?this._focusMonitor.focusVia(this._getHostElement(),B,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...B){return B.some(Z=>this._getHostElement().hasAttribute(Z))}}return k.\u0275fac=function(B){return new(B||k)(t.Y36(t.SBq),t.Y36(M.tE),t.Y36(f.Qb,8))},k.\u0275cmp=t.Xpm({type:k,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(B,Z){if(1&B&&t.Gf(e.wG,5),2&B){let Y;t.iGM(Y=t.CRH())&&(Z.ripple=Y.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(B,Z){2&B&&(t.uIk("disabled",Z.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:a,ngContentSelectors:C,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(B,Z){1&B&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&B&&(t.xp6(2),t.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),t.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[e.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;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;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;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;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}),k})(),S=(()=>{class k{}return k.\u0275fac=function(B){return new(B||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),k})()},9224:(Be,K,p)=>{"use strict";p.d(K,{$j:()=>D,QW:()=>ge,a8:()=>ue,dk:()=>ne,dn:()=>L,n5:()=>w});var t=p(5e3),e=p(6360),f=p(508);const M=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],C=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275dir=t.lG2({type:q,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),q})(),w=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275dir=t.lG2({type:q,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),q})(),D=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275dir=t.lG2({type:q,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),q})(),ue=(()=>{class q{constructor(x){this._animationMode=x}}return q.\u0275fac=function(x){return new(x||q)(t.Y36(e.Qb,8))},q.\u0275cmp=t.Xpm({type:q,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(x,i){2&x&&t.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(x,i){1&x&&(t.F$t(M),t.Hsn(0),t.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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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}),q})(),ne=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275cmp=t.Xpm({type:q,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(x,i){1&x&&(t.F$t(C),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),q})(),ge=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275mod=t.oAB({type:q}),q.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),q})()},7446:(Be,K,p)=>{"use strict";p.d(K,{oG:()=>Y,p9:()=>ne});var t=p(3191),e=p(5e3),f=p(3075),M=p(508),a=p(6360),C=p(5664),d=p(7144);const R=["input"],h=function(re){return{enterDuration:re}},L=["*"],w=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:D});function D(){return{color:"accent",clickAction:"check-indeterminate"}}let S=0;const k=D(),E={provide:f.JU,useExisting:(0,e.Gpc)(()=>Y),multi:!0};class B{}const Z=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(re){this._elementRef=re}}))));let Y=(()=>{class re extends Z{constructor(q,_e,x,i,r,u,c){super(q),this._changeDetectorRef=_e,this._focusMonitor=x,this._ngZone=i,this._animationMode=u,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++S,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(q){this._required=(0,t.Ig)(q)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{q||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(q){const _e=(0,t.Ig)(q);_e!=this.checked&&(this._checked=_e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(q){const _e=(0,t.Ig)(q);_e!==this.disabled&&(this._disabled=_e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(q){const _e=q!=this._indeterminate;this._indeterminate=(0,t.Ig)(q),_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(q){this.checked=!!q}registerOnChange(q){this._controlValueAccessorChangeFn=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(q){let _e=this._currentCheckState,x=this._elementRef.nativeElement;if(_e!==q&&(this._currentAnimationClass.length>0&&x.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(_e,q),this._currentCheckState=q,this._currentAnimationClass.length>0)){x.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{x.classList.remove(i)},1e3)})}}_emitChangeEvent(){const q=new B;q.source=this,q.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(q),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(q){var _e;const x=null===(_e=this._options)||void 0===_e?void 0:_e.clickAction;q.stopPropagation(),this.disabled||"noop"===x?!this.disabled&&"noop"===x&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==x&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(q,_e){q?this._focusMonitor.focusVia(this._inputElement,q,_e):this._inputElement.nativeElement.focus(_e)}_onInteractionEvent(q){q.stopPropagation()}_getAnimationClassForCheckStateTransition(q,_e){if("NoopAnimations"===this._animationMode)return"";let x="";switch(q){case 0:if(1===_e)x="unchecked-checked";else{if(3!=_e)return"";x="unchecked-indeterminate"}break;case 2:x=1===_e?"unchecked-checked":"unchecked-indeterminate";break;case 1:x=2===_e?"checked-unchecked":"checked-indeterminate";break;case 3:x=1===_e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${x}`}_syncIndeterminate(q){const _e=this._inputElement;_e&&(_e.nativeElement.indeterminate=q)}}return re.\u0275fac=function(q){return new(q||re)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(a.Qb,8),e.Y36(w,8))},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(q,_e){if(1&q&&(e.Gf(R,5),e.Gf(M.wG,5)),2&q){let x;e.iGM(x=e.CRH())&&(_e._inputElement=x.first),e.iGM(x=e.CRH())&&(_e.ripple=x.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(q,_e){2&q&&(e.Ikx("id",_e.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.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"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[e._Bn([E]),e.qOj],ngContentSelectors:L,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","aria-hidden","true",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(q,_e){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(i){return _e._onInteractionEvent(i)})("click",function(i){return _e._onInputClick(i)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return _e._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&q){const x=e.MAs(1),i=e.MAs(13);e.uIk("for",_e.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(1),e.Q6J("id",_e.inputId)("required",_e.required)("checked",_e.checked)("disabled",_e.disabled)("tabIndex",_e.tabIndex),e.uIk("value",_e.value)("name",_e.name)("aria-label",_e.ariaLabel||null)("aria-labelledby",_e.ariaLabelledby)("aria-checked",_e._getAriaChecked())("aria-describedby",_e.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",x)("matRippleDisabled",_e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,h,"NoopAnimations"===_e._animationMode?0:150))}},directives:[M.wG,d.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;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-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}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})(),ne=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[M.si,M.BQ,d.Q8,ue],M.BQ,ue]}),re})()},6688:(Be,K,p)=>{"use strict";p.d(K,{HS:()=>x,Hi:()=>_,qn:()=>y});var t=p(1159),e=p(5e3),f=p(508),M=p(3191),a=p(9808),C=p(6360),d=p(7579),R=p(6451),h=p(5698),L=p(2722),w=p(8675),D=p(925),S=p(5664),k=p(449),E=p(3075),B=p(7322),Z=p(226);const Y=["*"],ee=new e.OlP("MatChipRemove"),ue=new e.OlP("MatChipAvatar"),ne=new e.OlP("MatChipTrailingIcon");class re{constructor(N){this._elementRef=N}}const ge=(0,f.sb)((0,f.pj)((0,f.Kr)(re),"primary"),-1);let x=(()=>{class V extends ge{constructor(H,X,he,be,Pe,Ee,j,Ve){super(H),this._ngZone=X,this._changeDetectorRef=Pe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new e.vpe,this.destroyed=new e.vpe,this.removed=new e.vpe,this._addHostClassName(),this._chipRippleTarget=Ee.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f.IR(this,X,this._chipRippleTarget,he),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=be||{},this._animationsDisabled="NoopAnimations"===j,this.tabIndex=null!=Ve&&parseInt(Ve)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const X=(0,M.Ig)(H);X!==this._selected&&(this._selected=X,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,M.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,M.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,M.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const H="mat-basic-chip",X=this._elementRef.nativeElement;X.hasAttribute(H)||X.tagName.toLowerCase()===H?X.classList.add(H):X.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case t.yY:case t.ZH:this.remove(),H.preventDefault();break;case t.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}}return V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(D.t4),e.Y36(f.Y2,8),e.Y36(e.sBO),e.Y36(a.K0),e.Y36(C.Qb,8),e.$8M("tabindex"))},V.\u0275dir=e.lG2({type:V,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(H,X,he){if(1&H&&(e.Suo(he,ue,5),e.Suo(he,ne,5),e.Suo(he,ee,5)),2&H){let be;e.iGM(be=e.CRH())&&(X.avatar=be.first),e.iGM(be=e.CRH())&&(X.trailingIcon=be.first),e.iGM(be=e.CRH())&&(X.removeIcon=be.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(H,X){1&H&&e.NdJ("click",function(be){return X._handleClick(be)})("keydown",function(be){return X._handleKeydown(be)})("focus",function(){return X.focus()})("blur",function(){return X._blur()}),2&H&&(e.uIk("tabindex",X.disabled?null:X.tabIndex)("disabled",X.disabled||null)("aria-disabled",X.disabled.toString())("aria-selected",X.ariaSelected),e.ekj("mat-chip-selected",X.selected)("mat-chip-with-avatar",X.avatar)("mat-chip-with-trailing-icon",X.trailingIcon||X.removeIcon)("mat-chip-disabled",X.disabled)("_mat-animation-noopable",X._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),V})();const r=new e.OlP("mat-chips-default-options"),v=(0,f.FD)(class{constructor(V,N,H,X){this._defaultErrorStateMatcher=V,this._parentForm=N,this._parentFormGroup=H,this.ngControl=X}});let T=0;class I{constructor(N,H){this.source=N,this.value=H}}let y=(()=>{class V extends v{constructor(H,X,he,be,Pe,Ee,j){super(Ee,be,Pe,j),this._elementRef=H,this._changeDetectorRef=X,this._dir=he,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+T++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ve,Me)=>Ve===Me,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new e.vpe,this.valueChange=new e.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var H,X;return this.multiple?(null===(H=this._selectionModel)||void 0===H?void 0:H.selected)||[]:null===(X=this._selectionModel)||void 0===X?void 0:X.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,M.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var H,X,he,be;return null!==(be=null!==(H=this._required)&&void 0!==H?H:null===(he=null===(X=this.ngControl)||void 0===X?void 0:X.control)||void 0===he?void 0:he.hasValidator(E.kI.required))&&void 0!==be&&be}set required(H){this._required=(0,M.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,M.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,M.Ig)(H),this.chips&&this.chips.forEach(X=>X.chipListSelectable=this._selectable)}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,R.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,R.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,R.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,R.T)(...this.chips.map(H=>H.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,w.O)(null),(0,L.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){this._ariaDescribedby=H.join(" ")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const X=H.target;X&&X.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&Hhe.deselect()),Array.isArray(H))H.forEach(he=>this._selectValue(he,X)),this._sortValues();else{const he=this._selectValue(H,X);he&&X&&this._keyManager.setActiveItem(he)}}_selectValue(H,X=!0){const he=this.chips.find(be=>null!=be.value&&this._compareWith(be.value,H));return he&&(X?he.selectViaInteraction():he.select(),this._selectionModel.select(he)),he}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach(X=>{X!==H&&X.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let X=null;X=Array.isArray(this.selected)?this.selected.map(he=>he.value):this.selected?this.selected.value:H,this._value=X,this.change.emit(new I(this,X)),this.valueChange.emit(X),this._onChange(X),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach(X=>{!this._selectionModel.isSelected(X)&&X.selected&&X.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let X=this.chips.toArray().indexOf(H.chip);this._isValidIndex(X)&&this._keyManager.updateActiveItem(X),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const X=H.chip,he=this.chips.toArray().indexOf(H.chip);this._isValidIndex(he)&&X._hasFocus&&(this._lastDestroyedChipIndex=he)})}_originatesFromChip(H){let X=H.target;for(;X&&X!==this._elementRef.nativeElement;){if(X.classList.contains("mat-chip"))return!0;X=X.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple})}}return V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Z.Is,8),e.Y36(E.F,8),e.Y36(E.sg,8),e.Y36(f.rD),e.Y36(E.a5,10))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-chip-list"]],contentQueries:function(H,X,he){if(1&H&&e.Suo(he,x,5),2&H){let be;e.iGM(be=e.CRH())&&(X.chips=be)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(H,X){1&H&&e.NdJ("focus",function(){return X.focus()})("blur",function(){return X._blur()})("keydown",function(be){return X._keydown(be)}),2&H&&(e.Ikx("id",X._uid),e.uIk("tabindex",X.disabled?null:X._tabIndex)("aria-describedby",X._ariaDescribedby||null)("aria-required",X.role?X.required:null)("aria-disabled",X.disabled.toString())("aria-invalid",X.errorState)("aria-multiselectable",X.multiple)("role",X.role)("aria-orientation",X.ariaOrientation),e.ekj("mat-chip-list-disabled",X.disabled)("mat-chip-list-invalid",X.errorState)("mat-chip-list-required",X.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:B.Eo,useExisting:V}]),e.qOj],ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(H,X){1&H&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),V})(),_=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({providers:[f.rD,{provide:r,useValue:{separatorKeyCodes:[t.K5]}}],imports:[[f.BQ]]}),V})()},508:(Be,K,p)=>{"use strict";p.d(K,{yN:()=>ae,mZ:()=>ee,_A:()=>y,rD:()=>Pe,sG:()=>n,K7:()=>Zt,HF:()=>tt,Y2:()=>te,BQ:()=>re,X2:()=>Ee,uc:()=>Me,XK:()=>he,ey:()=>it,Ng:()=>Qt,rN:()=>Nt,nP:()=>Q,us:()=>pt,wG:()=>Ce,si:()=>fe,LF:()=>N,IR:()=>Te,CB:()=>bt,jH:()=>ti,pj:()=>i,Kr:()=>r,Id:()=>x,FD:()=>c,dB:()=>v,sb:()=>u,E0:()=>j});var t=p(5e3),e=p(226),M=p(9808),a=p(925),C=p(5664),d=p(3191),R=p(7579),h=p(8306),L=p(8675),w=p(6360),D=p(1159);function E(Re,ke){if(1&Re&&t._UZ(0,"mat-pseudo-checkbox",4),2&Re){const de=t.oxw();t.Q6J("state",de.selected?"checked":"unchecked")("disabled",de.disabled)}}function B(Re,ke){if(1&Re&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&Re){const de=t.oxw();t.xp6(1),t.hij("(",de.group.label,")")}}const Z=["*"];let ae=(()=>{class Re{}return Re.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Re.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Re.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Re.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Re})(),ee=(()=>{class Re{}return Re.COMPLEX="375ms",Re.ENTERING="225ms",Re.EXITING="195ms",Re})();const ne=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function ue(){return!0}});let re=(()=>{class Re{constructor(de,ye,ht){this._sanityChecks=ye,this._document=ht,this._hasDoneGlobalChecks=!1,de._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(de){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[de])}}return Re.\u0275fac=function(de){return new(de||Re)(t.LFG(C.qm),t.LFG(ne,8),t.LFG(M.K0))},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[e.vT],e.vT]}),Re})();function x(Re){return class extends Re{constructor(...ke){super(...ke),this._disabled=!1}get disabled(){return this._disabled}set disabled(ke){this._disabled=(0,d.Ig)(ke)}}}function i(Re,ke){return class extends Re{constructor(...de){super(...de),this.defaultColor=ke,this.color=ke}get color(){return this._color}set color(de){const ye=de||this.defaultColor;ye!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ye&&this._elementRef.nativeElement.classList.add(`mat-${ye}`),this._color=ye)}}}function r(Re){return class extends Re{constructor(...ke){super(...ke),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ke){this._disableRipple=(0,d.Ig)(ke)}}}function u(Re,ke=0){return class extends Re{constructor(...de){super(...de),this._tabIndex=ke,this.defaultTabIndex=ke}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?(0,d.su)(de):this.defaultTabIndex}}}function c(Re){return class extends Re{constructor(...ke){super(...ke),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const ke=this.errorState,mt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);mt!==ke&&(this.errorState=mt,this.stateChanges.next())}}}function v(Re){return class extends Re{constructor(...ke){super(...ke),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(de=>{this._isInitialized?this._notifySubscriber(de):this._pendingSubscribers.push(de)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ke){ke.next(),ke.complete()}}}const T=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,t.f3M)(t.soG)}});class y{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ke){return this.isDateInstance(ke)&&this.isValid(ke)?ke:null}deserialize(ke){return null==ke||this.isDateInstance(ke)&&this.isValid(ke)?ke:this.invalid()}setLocale(ke){this.locale=ke,this._localeChanges.next()}compareDate(ke,de){return this.getYear(ke)-this.getYear(de)||this.getMonth(ke)-this.getMonth(de)||this.getDate(ke)-this.getDate(de)}sameDate(ke,de){if(ke&&de){let ye=this.isValid(ke),ht=this.isValid(de);return ye&&ht?!this.compareDate(ke,de):ye==ht}return ke==de}clampDate(ke,de,ye){return de&&this.compareDate(ke,de)<0?de:ye&&this.compareDate(ke,ye)>0?ye:ke}}const n=new t.OlP("mat-date-formats"),_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function V(Re,ke){const de=Array(Re);for(let ye=0;ye{class Re extends y{constructor(de,ye){super(),this.useUtcForDisplay=!1,super.setLocale(de)}getYear(de){return de.getFullYear()}getMonth(de){return de.getMonth()}getDate(de){return de.getDate()}getDayOfWeek(de){return de.getDay()}getMonthNames(de){const ye=new Intl.DateTimeFormat(this.locale,{month:de,timeZone:"utc"});return V(12,ht=>this._format(ye,new Date(2017,ht,1)))}getDateNames(){const de=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return V(31,ye=>this._format(de,new Date(2017,0,ye+1)))}getDayOfWeekNames(de){const ye=new Intl.DateTimeFormat(this.locale,{weekday:de,timeZone:"utc"});return V(7,ht=>this._format(ye,new Date(2017,0,ht+1)))}getYearName(de){const ye=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ye,de)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(de){return this.getDate(this._createDateWithOverflow(this.getYear(de),this.getMonth(de)+1,0))}clone(de){return new Date(de.getTime())}createDate(de,ye,ht){let mt=this._createDateWithOverflow(de,ye,ht);return mt.getMonth(),mt}today(){return new Date}parse(de){return"number"==typeof de?new Date(de):de?new Date(Date.parse(de)):null}format(de,ye){if(!this.isValid(de))throw Error("NativeDateAdapter: Cannot format invalid date.");const ht=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ye),{timeZone:"utc"}));return this._format(ht,de)}addCalendarYears(de,ye){return this.addCalendarMonths(de,12*ye)}addCalendarMonths(de,ye){let ht=this._createDateWithOverflow(this.getYear(de),this.getMonth(de)+ye,this.getDate(de));return this.getMonth(ht)!=((this.getMonth(de)+ye)%12+12)%12&&(ht=this._createDateWithOverflow(this.getYear(ht),this.getMonth(ht),0)),ht}addCalendarDays(de,ye){return this._createDateWithOverflow(this.getYear(de),this.getMonth(de),this.getDate(de)+ye)}toIso8601(de){return[de.getUTCFullYear(),this._2digit(de.getUTCMonth()+1),this._2digit(de.getUTCDate())].join("-")}deserialize(de){if("string"==typeof de){if(!de)return null;if(_.test(de)){let ye=new Date(de);if(this.isValid(ye))return ye}}return super.deserialize(de)}isDateInstance(de){return de instanceof Date}isValid(de){return!isNaN(de.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(de,ye,ht){const mt=new Date;return mt.setFullYear(de,ye,ht),mt.setHours(0,0,0,0),mt}_2digit(de){return("00"+de).slice(-2)}_format(de,ye){const ht=new Date;return ht.setUTCFullYear(ye.getFullYear(),ye.getMonth(),ye.getDate()),ht.setUTCHours(ye.getHours(),ye.getMinutes(),ye.getSeconds(),ye.getMilliseconds()),de.format(ht)}}return Re.\u0275fac=function(de){return new(de||Re)(t.LFG(T,8),t.LFG(a.t4))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const H={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 X=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:y,useClass:N}]}),Re})(),he=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:n,useValue:H}],imports:[[X]]}),Re})(),Pe=(()=>{class Re{isErrorState(de,ye){return!!(de&&de.invalid&&(de.touched||ye&&ye.submitted))}}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Ee=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275dir=t.lG2({type:Re,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Re})();function j(Re,ke,de="mat"){Re.changes.pipe((0,L.O)(Re)).subscribe(({length:ye})=>{Ve(ke,`${de}-2-line`,!1),Ve(ke,`${de}-3-line`,!1),Ve(ke,`${de}-multi-line`,!1),2===ye||3===ye?Ve(ke,`${de}-${ye}-line`,!0):ye>3&&Ve(ke,`${de}-multi-line`,!0)})}function Ve(Re,ke,de){Re.nativeElement.classList.toggle(ke,de)}let Me=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[re],re]}),Re})();class J{constructor(ke,de,ye){this._renderer=ke,this.element=de,this.config=ye,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ie={enterDuration:225,exitDuration:150},Oe=(0,a.i$)({passive:!0}),we=["mousedown","touchstart"],ce=["mouseup","mouseleave","touchend","touchcancel"];class Te{constructor(ke,de,ye,ht){this._target=ke,this._ngZone=de,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ht.isBrowser&&(this._containerElement=(0,d.fI)(ye))}fadeInRipple(ke,de,ye={}){const ht=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),mt=Object.assign(Object.assign({},Ie),ye.animation);ye.centered&&(ke=ht.left+ht.width/2,de=ht.top+ht.height/2);const Ft=ye.radius||function W(Re,ke,de){const ye=Math.max(Math.abs(Re-de.left),Math.abs(Re-de.right)),ht=Math.max(Math.abs(ke-de.top),Math.abs(ke-de.bottom));return Math.sqrt(ye*ye+ht*ht)}(ke,de,ht),nt=ke-ht.left,He=de-ht.top,rt=mt.enterDuration,et=document.createElement("div");et.classList.add("mat-ripple-element"),et.style.left=nt-Ft+"px",et.style.top=He-Ft+"px",et.style.height=2*Ft+"px",et.style.width=2*Ft+"px",null!=ye.color&&(et.style.backgroundColor=ye.color),et.style.transitionDuration=`${rt}ms`,this._containerElement.appendChild(et),function xe(Re){window.getComputedStyle(Re).getPropertyValue("opacity")}(et),et.style.transform="scale(1)";const Ae=new J(this,et,ye);return Ae.state=0,this._activeRipples.add(Ae),ye.persistent||(this._mostRecentTransientRipple=Ae),this._runTimeoutOutsideZone(()=>{const Ge=Ae===this._mostRecentTransientRipple;Ae.state=1,!ye.persistent&&(!Ge||!this._isPointerDown)&&Ae.fadeOut()},rt),Ae}fadeOutRipple(ke){const de=this._activeRipples.delete(ke);if(ke===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!de)return;const ye=ke.element,ht=Object.assign(Object.assign({},Ie),ke.config.animation);ye.style.transitionDuration=`${ht.exitDuration}ms`,ye.style.opacity="0",ke.state=2,this._runTimeoutOutsideZone(()=>{ke.state=3,ye.remove()},ht.exitDuration)}fadeOutAll(){this._activeRipples.forEach(ke=>ke.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(ke=>{ke.config.persistent||ke.fadeOut()})}setupTriggerEvents(ke){const de=(0,d.fI)(ke);!de||de===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=de,this._registerEvents(we))}handleEvent(ke){"mousedown"===ke.type?this._onMousedown(ke):"touchstart"===ke.type?this._onTouchStart(ke):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ce),this._pointerUpEventsRegistered=!0)}_onMousedown(ke){const de=(0,C.X6)(ke),ye=this._lastTouchStartEvent&&Date.now(){!ke.config.persistent&&(1===ke.state||ke.config.terminateOnPointerUp&&0===ke.state)&&ke.fadeOut()}))}_runTimeoutOutsideZone(ke,de=0){this._ngZone.runOutsideAngular(()=>setTimeout(ke,de))}_registerEvents(ke){this._ngZone.runOutsideAngular(()=>{ke.forEach(de=>{this._triggerElement.addEventListener(de,this,Oe)})})}_removeTriggerEvents(){this._triggerElement&&(we.forEach(ke=>{this._triggerElement.removeEventListener(ke,this,Oe)}),this._pointerUpEventsRegistered&&ce.forEach(ke=>{this._triggerElement.removeEventListener(ke,this,Oe)}))}}const te=new t.OlP("mat-ripple-global-options");let Ce=(()=>{class Re{constructor(de,ye,ht,mt,Ft){this._elementRef=de,this._animationMode=Ft,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=mt||{},this._rippleRenderer=new Te(this,ye,de,ht)}get disabled(){return this._disabled}set disabled(de){de&&this.fadeOutAllNonPersistent(),this._disabled=de,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(de){this._trigger=de,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(de,ye=0,ht){return"number"==typeof de?this._rippleRenderer.fadeInRipple(de,ye,Object.assign(Object.assign({},this.rippleConfig),ht)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),de))}}return Re.\u0275fac=function(de){return new(de||Re)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.t4),t.Y36(te,8),t.Y36(w.Qb,8))},Re.\u0275dir=t.lG2({type:Re,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(de,ye){2&de&&t.ekj("mat-ripple-unbounded",ye.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Re})(),fe=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[re],re]}),Re})(),Q=(()=>{class Re{constructor(de){this._animationMode=de,this.state="unchecked",this.disabled=!1}}return Re.\u0275fac=function(de){return new(de||Re)(t.Y36(w.Qb,8))},Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(de,ye){2&de&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ye.state)("mat-pseudo-checkbox-checked","checked"===ye.state)("mat-pseudo-checkbox-disabled",ye.disabled)("_mat-animation-noopable","NoopAnimations"===ye._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(de,ye){},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}),Re})(),pt=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[re]]}),Re})();const tt=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new t.OlP("MatOptgroup");let Ot=0;class Nt{constructor(ke,de=!1){this.source=ke,this.isUserInput=de}}let gt=(()=>{class Re{constructor(de,ye,ht,mt){this._element=de,this._changeDetectorRef=ye,this._parent=ht,this.group=mt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ot++,this.onSelectionChange=new t.vpe,this._stateChanges=new R.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(de){this._disabled=(0,d.Ig)(de)}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(de,ye){const ht=this._getHostElement();"function"==typeof ht.focus&&ht.focus(ye)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(de){(de.keyCode===D.K5||de.keyCode===D.L_)&&!(0,D.Vb)(de)&&(this._selectViaInteraction(),de.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 de=this.viewValue;de!==this._mostRecentViewValue&&(this._mostRecentViewValue=de,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(de=!1){this.onSelectionChange.emit(new Nt(this,de))}}return Re.\u0275fac=function(de){t.$Z()},Re.\u0275dir=t.lG2({type:Re,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Re})(),it=(()=>{class Re extends gt{constructor(de,ye,ht,mt){super(de,ye,ht,mt)}}return Re.\u0275fac=function(de){return new(de||Re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(tt,8),t.Y36(Zt,8))},Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(de,ye){1&de&&t.NdJ("click",function(){return ye._selectViaInteraction()})("keydown",function(mt){return ye._handleKeydown(mt)}),2&de&&(t.Ikx("id",ye.id),t.uIk("tabindex",ye._getTabIndex())("aria-selected",ye._getAriaSelected())("aria-disabled",ye.disabled.toString()),t.ekj("mat-selected",ye.selected)("mat-option-multiple",ye.multiple)("mat-active",ye.active)("mat-option-disabled",ye.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Z,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(de,ye){1&de&&(t.F$t(),t.YNc(0,E,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,B,2,1,"span",2),t._UZ(4,"div",3)),2&de&&(t.Q6J("ngIf",ye.multiple),t.xp6(3),t.Q6J("ngIf",ye.group&&ye.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",ye._getHostElement())("matRippleDisabled",ye.disabled||ye.disableRipple))},directives:[Q,M.O5,Ce],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;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}),Re})();function bt(Re,ke,de){if(de.length){let ye=ke.toArray(),ht=de.toArray(),mt=0;for(let Ft=0;Ftde+ye?Math.max(0,Re-ye+ke):de}let Qt=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[fe,M.ez,re,pt]]}),Re})()},6856:(Be,K,p)=>{"use strict";p.d(K,{FA:()=>ve,Mq:()=>He,hl:()=>lt,nW:()=>mi});var t=p(5664),e=p(9776),f=p(7429),M=p(9808),a=p(5e3),C=p(7423),d=p(5303),R=p(508),h=p(7579),L=p(727),w=p(6451),D=p(9646),S=p(1159),k=p(5698),E=p(8675),B=p(9300),Z=p(226),Y=p(3191),ae=p(925),ee=p(1777),ue=p(3075),ne=p(7322),re=p(7531);const ge=["mat-calendar-body",""];function q(Qe,_t){if(1&Qe&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&Qe){const se=a.oxw();a.xp6(1),a.Udp("padding-top",se._cellPadding)("padding-bottom",se._cellPadding),a.uIk("colspan",se.numCols),a.xp6(1),a.hij(" ",se.label," ")}}function _e(Qe,_t){if(1&Qe&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&Qe){const se=a.oxw(2);a.Udp("padding-top",se._cellPadding)("padding-bottom",se._cellPadding),a.uIk("colspan",se._firstRowOffset),a.xp6(1),a.hij(" ",se._firstRowOffset>=se.labelMinRequiredCells?se.label:""," ")}}function x(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(xt){const bi=a.CHM(se).$implicit;return a.oxw(2)._cellClicked(bi,xt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&Qe){const se=_t.$implicit,Xe=_t.index,xt=a.oxw().index,Bt=a.oxw();a.Udp("width",Bt._cellWidth)("padding-top",Bt._cellPadding)("padding-bottom",Bt._cellPadding),a.uIk("data-mat-row",xt)("data-mat-col",Xe),a.xp6(1),a.ekj("mat-calendar-body-disabled",!se.enabled)("mat-calendar-body-active",Bt._isActiveCell(xt,Xe))("mat-calendar-body-range-start",Bt._isRangeStart(se.compareValue))("mat-calendar-body-range-end",Bt._isRangeEnd(se.compareValue))("mat-calendar-body-in-range",Bt._isInRange(se.compareValue))("mat-calendar-body-comparison-bridge-start",Bt._isComparisonBridgeStart(se.compareValue,xt,Xe))("mat-calendar-body-comparison-bridge-end",Bt._isComparisonBridgeEnd(se.compareValue,xt,Xe))("mat-calendar-body-comparison-start",Bt._isComparisonStart(se.compareValue))("mat-calendar-body-comparison-end",Bt._isComparisonEnd(se.compareValue))("mat-calendar-body-in-comparison-range",Bt._isInComparisonRange(se.compareValue))("mat-calendar-body-preview-start",Bt._isPreviewStart(se.compareValue))("mat-calendar-body-preview-end",Bt._isPreviewEnd(se.compareValue))("mat-calendar-body-in-preview",Bt._isInPreview(se.compareValue)),a.Q6J("ngClass",se.cssClasses)("tabindex",Bt._isActiveCell(xt,Xe)?0:-1),a.uIk("aria-label",se.ariaLabel)("aria-disabled",!se.enabled||null)("aria-pressed",Bt._isSelected(se.compareValue))("aria-current",Bt.todayValue===se.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Bt._isSelected(se.compareValue))("mat-calendar-body-comparison-identical",Bt._isComparisonIdentical(se.compareValue))("mat-calendar-body-today",Bt.todayValue===se.compareValue),a.xp6(1),a.hij(" ",se.displayValue," ")}}function i(Qe,_t){if(1&Qe&&(a.TgZ(0,"tr",4),a.YNc(1,_e,2,6,"td",5),a.YNc(2,x,5,47,"td",6),a.qZA()),2&Qe){const se=_t.$implicit,Xe=_t.index,xt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===Xe&&xt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",se)}}function r(Qe,_t){if(1&Qe&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&Qe){const se=_t.$implicit;a.xp6(2),a.Oqu(se.long),a.xp6(2),a.Oqu(se.narrow)}}const u=["*"];function c(Qe,_t){}function v(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(xt){return a.CHM(se),a.oxw().activeDate=xt})("_userSelection",function(xt){return a.CHM(se),a.oxw()._dateSelected(xt)}),a.qZA()}if(2&Qe){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)("comparisonStart",se.comparisonStart)("comparisonEnd",se.comparisonEnd)}}function T(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(xt){return a.CHM(se),a.oxw().activeDate=xt})("monthSelected",function(xt){return a.CHM(se),a.oxw()._monthSelectedInYearView(xt)})("selectedChange",function(xt){return a.CHM(se),a.oxw()._goToDateInView(xt,"month")}),a.qZA()}if(2&Qe){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)}}function I(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(xt){return a.CHM(se),a.oxw().activeDate=xt})("yearSelected",function(xt){return a.CHM(se),a.oxw()._yearSelectedInMultiYearView(xt)})("selectedChange",function(xt){return a.CHM(se),a.oxw()._goToDateInView(xt,"year")}),a.qZA()}if(2&Qe){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)}}function y(Qe,_t){}const n=["button"];function _(Qe,_t){1&Qe&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const V=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class Pe{constructor(_t,se,Xe,xt,Bt={},bi=_t,Ei){this.value=_t,this.displayValue=se,this.ariaLabel=Xe,this.enabled=xt,this.cssClasses=Bt,this.compareValue=bi,this.rawValue=Ei}}let Ee=(()=>{class Qe{constructor(se,Xe){this._elementRef=se,this._ngZone=Xe,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=xt=>{if(this._skipNextFocus&&"focus"===xt.type)this._skipNextFocus=!1;else if(xt.target&&this.isRange){const Bt=this._getCellFromElement(xt.target);Bt&&this._ngZone.run(()=>this.previewChange.emit({value:Bt.enabled?Bt:null,event:xt}))}},this._leaveHandler=xt=>{null!==this.previewEnd&&this.isRange&&xt.target&&this._getCellFromElement(xt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:xt}))},Xe.runOutsideAngular(()=>{const xt=se.nativeElement;xt.addEventListener("mouseenter",this._enterHandler,!0),xt.addEventListener("focus",this._enterHandler,!0),xt.addEventListener("mouseleave",this._leaveHandler,!0),xt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(se,Xe){se.enabled&&this.selectedValueChange.emit({value:se.value,event:Xe})}_isSelected(se){return this.startValue===se||this.endValue===se}ngOnChanges(se){const Xe=se.numCols,{rows:xt,numCols:Bt}=this;(se.rows||Xe)&&(this._firstRowOffset=xt&&xt.length&&xt[0].length?Bt-xt[0].length:0),(se.cellAspectRatio||Xe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Bt+"%"),(Xe||!this._cellWidth)&&(this._cellWidth=100/Bt+"%")}ngOnDestroy(){const se=this._elementRef.nativeElement;se.removeEventListener("mouseenter",this._enterHandler,!0),se.removeEventListener("focus",this._enterHandler,!0),se.removeEventListener("mouseleave",this._leaveHandler,!0),se.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(se,Xe){let xt=se*this.numCols+Xe;return se&&(xt-=this._firstRowOffset),xt==this.activeCell}_focusActiveCell(se=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const Xe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Xe&&(se||(this._skipNextFocus=!0),Xe.focus())})})})}_isRangeStart(se){return Ve(se,this.startValue,this.endValue)}_isRangeEnd(se){return Me(se,this.startValue,this.endValue)}_isInRange(se){return J(se,this.startValue,this.endValue,this.isRange)}_isComparisonStart(se){return Ve(se,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(se,Xe,xt){if(!this._isComparisonStart(se)||this._isRangeStart(se)||!this._isInRange(se))return!1;let Bt=this.rows[Xe][xt-1];if(!Bt){const bi=this.rows[Xe-1];Bt=bi&&bi[bi.length-1]}return Bt&&!this._isRangeEnd(Bt.compareValue)}_isComparisonBridgeEnd(se,Xe,xt){if(!this._isComparisonEnd(se)||this._isRangeEnd(se)||!this._isInRange(se))return!1;let Bt=this.rows[Xe][xt+1];if(!Bt){const bi=this.rows[Xe+1];Bt=bi&&bi[0]}return Bt&&!this._isRangeStart(Bt.compareValue)}_isComparisonEnd(se){return Me(se,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(se){return J(se,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(se){return this.comparisonStart===this.comparisonEnd&&se===this.comparisonStart}_isPreviewStart(se){return Ve(se,this.previewStart,this.previewEnd)}_isPreviewEnd(se){return Me(se,this.previewStart,this.previewEnd)}_isInPreview(se){return J(se,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(se){let Xe;if(j(se)?Xe=se:j(se.parentNode)&&(Xe=se.parentNode),Xe){const xt=Xe.getAttribute("data-mat-row"),Bt=Xe.getAttribute("data-mat-col");if(xt&&Bt)return this.rows[parseInt(xt)][parseInt(Bt)]}return null}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(a.R0b))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:ge,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(se,Xe){1&se&&(a.YNc(0,q,3,6,"tr",0),a.YNc(1,i,3,2,"tr",1)),2&se&&(a.Q6J("ngIf",Xe._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),Qe})();function j(Qe){return"TD"===Qe.nodeName}function Ve(Qe,_t,se){return null!==se&&_t!==se&&Qe=_t&&Qe===se}function J(Qe,_t,se,Xe){return Xe&&null!==_t&&null!==se&&_t!==se&&Qe>=_t&&Qe<=se}class Ie{constructor(_t,se){this.start=_t,this.end=se}}let ut=(()=>{class Qe{constructor(se,Xe){this.selection=se,this._adapter=Xe,this._selectionChanged=new h.x,this.selectionChanged=this._selectionChanged,this.selection=se}updateSelection(se,Xe){const xt=this.selection;this.selection=se,this._selectionChanged.next({selection:se,source:Xe,oldValue:xt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(se){return this._adapter.isDateInstance(se)&&this._adapter.isValid(se)}}return Qe.\u0275fac=function(se){a.$Z()},Qe.\u0275prov=a.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),Oe=(()=>{class Qe extends ut{constructor(se){super(null,se)}add(se){super.updateSelection(se,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const se=new Qe(this._adapter);return se.updateSelection(this.selection,this),se}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.LFG(R._A))},Qe.\u0275prov=a.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();const Te={provide:ut,deps:[[new a.FiY,new a.tp0,ut],R._A],useFactory:function ce(Qe,_t){return Qe||new Oe(_t)}},te=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class Qe{constructor(se,Xe,xt,Bt,bi){this._changeDetectorRef=se,this._dateFormats=Xe,this._dateAdapter=xt,this._dir=Bt,this._rangeStrategy=bi,this._rerenderSubscription=L.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(se){const Xe=this._activeDate,xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(xt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Xe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnChanges(se){const Xe=se.comparisonStart||se.comparisonEnd;Xe&&!Xe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(se){const Xe=se.value,xt=this._dateAdapter.getYear(this.activeDate),Bt=this._dateAdapter.getMonth(this.activeDate),bi=this._dateAdapter.createDate(xt,Bt,Xe);let Ei,Xi;this._selected instanceof Ie?(Ei=this._getDateInCurrentMonth(this._selected.start),Xi=this._getDateInCurrentMonth(this._selected.end)):Ei=Xi=this._getDateInCurrentMonth(this._selected),(Ei!==Xe||Xi!==Xe)&&this.selectedChange.emit(bi),this._userSelection.emit({value:bi,event:se.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,xt=this._isRtl();switch(se.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,xt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,xt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case S.Ku:this.activeDate=se.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case S.VM:this.activeDate=se.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case S.K5:case S.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&se.preventDefault());case S.hY:return void(null!=this._previewEnd&&!(0,S.Vb)(se)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:se}),se.preventDefault(),se.stopPropagation()));default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===S.L_||se.keyCode===S.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_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 se=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(se)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(se){this._matCalendarBody._focusActiveCell(se)}_previewChanged({event:se,value:Xe}){if(this._rangeStrategy){const Bt=this._rangeStrategy.createPreview(Xe?Xe.rawValue:null,this.selected,se);this._previewStart=this._getCellCompareValue(Bt.start),this._previewEnd=this._getCellCompareValue(Bt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const se=this._dateAdapter.getFirstDayOfWeek(),Xe=this._dateAdapter.getDayOfWeekNames("narrow");let Bt=this._dateAdapter.getDayOfWeekNames("long").map((bi,Ei)=>({long:bi,narrow:Xe[Ei]}));this._weekdays=Bt.slice(se).concat(Bt.slice(0,se))}_createWeekCells(){const se=this._dateAdapter.getNumDaysInMonth(this.activeDate),Xe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let xt=0,Bt=this._firstWeekOffset;xt=0)&&(!this.maxDate||this._dateAdapter.compareDate(se,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(se))}_getDateInCurrentMonth(se){return se&&this._hasSameMonthAndYear(se,this.activeDate)?this._dateAdapter.getDate(se):null}_hasSameMonthAndYear(se,Xe){return!(!se||!Xe||this._dateAdapter.getMonth(se)!=this._dateAdapter.getMonth(Xe)||this._dateAdapter.getYear(se)!=this._dateAdapter.getYear(Xe))}_getCellCompareValue(se){if(se){const Xe=this._dateAdapter.getYear(se),xt=this._dateAdapter.getMonth(se),Bt=this._dateAdapter.getDate(se);return new Date(Xe,xt,Bt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(se){se instanceof Ie?(this._rangeStart=this._getCellCompareValue(se.start),this._rangeEnd=this._getCellCompareValue(se.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(se),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(se){return!this.dateFilter||this.dateFilter(se)}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.sBO),a.Y36(R.sG,8),a.Y36(R._A,8),a.Y36(Z.Is,8),a.Y36(te,8))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-month-view"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(Ee,5),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe._matCalendarBody=xt.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","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(se,Xe){1&se&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a.YNc(3,r,5,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA()(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(Bt){return Xe._dateSelected(Bt)})("previewChange",function(Bt){return Xe._previewChanged(Bt)})("keyup",function(Bt){return Xe._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return Xe._handleCalendarBodyKeydown(Bt)}),a.qZA()()),2&se&&(a.xp6(3),a.Q6J("ngForOf",Xe._weekdays),a.xp6(3),a.Q6J("label",Xe._monthLabel)("rows",Xe._weeks)("todayValue",Xe._todayDate)("startValue",Xe._rangeStart)("endValue",Xe._rangeEnd)("comparisonStart",Xe._comparisonRangeStart)("comparisonEnd",Xe._comparisonRangeEnd)("previewStart",Xe._previewStart)("previewEnd",Xe._previewEnd)("isRange",Xe._isRange)("labelMinRequiredCells",3)("activeCell",Xe._dateAdapter.getDate(Xe.activeDate)-1))},directives:[Ee,M.sg],encapsulation:2,changeDetection:0}),Qe})(),Yt=(()=>{class Qe{constructor(se,Xe,xt){this._changeDetectorRef=se,this._dateAdapter=Xe,this._dir=xt,this._rerenderSubscription=L.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(se){let Xe=this._activeDate;const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(xt,this.minDate,this.maxDate),Zt(this._dateAdapter,Xe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setSelectedYear(se)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Xe=this._dateAdapter.getYear(this._activeDate)-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let xt=0,Bt=[];xt<24;xt++)Bt.push(Xe+xt),4==Bt.length&&(this._years.push(Bt.map(bi=>this._createCellForYear(bi))),Bt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(se){const Xe=se.value;this.yearSelected.emit(this._dateAdapter.createDate(Xe,0,1));let xt=this._dateAdapter.getMonth(this.activeDate),Bt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Xe,xt,1));this.selectedChange.emit(this._dateAdapter.createDate(Xe,xt,Math.min(this._dateAdapter.getDate(this.activeDate),Bt)))}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,xt=this._isRtl();switch(se.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,xt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,xt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?-240:-24);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?240:24);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===S.L_||se.keyCode===S.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_getActiveCell(){return ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(se){const Xe=this._dateAdapter.createDate(se,0,1),xt=this._dateAdapter.getYearName(Xe),Bt=this.dateClass?this.dateClass(Xe,"multi-year"):void 0;return new Pe(se,xt,xt,this._shouldEnableYear(se),Bt)}_shouldEnableYear(se){if(null==se||this.maxDate&&se>this._dateAdapter.getYear(this.maxDate)||this.minDate&&se{class Qe{constructor(se,Xe,xt,Bt){this._changeDetectorRef=se,this._dateFormats=Xe,this._dateAdapter=xt,this._dir=Bt,this._rerenderSubscription=L.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(se){let Xe=this._activeDate;const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(xt,this.minDate,this.maxDate),this._dateAdapter.getYear(Xe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setSelectedMonth(se)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(se){const Xe=se.value,xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Xe,1);this.monthSelected.emit(xt);const Bt=this._dateAdapter.getNumDaysInMonth(xt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Xe,Math.min(this._dateAdapter.getDate(this.activeDate),Bt)))}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,xt=this._isRtl();switch(se.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,xt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,xt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?-10:-1);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?10:1);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===S.L_||se.keyCode===S.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let se=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Xe=>Xe.map(xt=>this._createCellForMonth(xt,se[xt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(se){return se&&this._dateAdapter.getYear(se)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(se):null}_createCellForMonth(se,Xe){const xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),se,1),Bt=this._dateAdapter.format(xt,this._dateFormats.display.monthYearA11yLabel),bi=this.dateClass?this.dateClass(xt,"year"):void 0;return new Pe(se,Xe.toLocaleUpperCase(),Bt,this._shouldEnableMonth(se),bi)}_shouldEnableMonth(se){const Xe=this._dateAdapter.getYear(this.activeDate);if(null==se||this._isYearAndMonthAfterMaxDate(Xe,se)||this._isYearAndMonthBeforeMinDate(Xe,se))return!1;if(!this.dateFilter)return!0;for(let Bt=this._dateAdapter.createDate(Xe,se,1);this._dateAdapter.getMonth(Bt)==se;Bt=this._dateAdapter.addCalendarDays(Bt,1))if(this.dateFilter(Bt))return!0;return!1}_isYearAndMonthAfterMaxDate(se,Xe){if(this.maxDate){const xt=this._dateAdapter.getYear(this.maxDate),Bt=this._dateAdapter.getMonth(this.maxDate);return se>xt||se===xt&&Xe>Bt}return!1}_isYearAndMonthBeforeMinDate(se,Xe){if(this.minDate){const xt=this._dateAdapter.getYear(this.minDate),Bt=this._dateAdapter.getMonth(this.minDate);return se{class Qe{constructor(){this.changes=new h.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(se,Xe){return`${se} \u2013 ${Xe}`}}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275prov=a.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),bt=0,ti=(()=>{class Qe{constructor(se,Xe,xt,Bt,bi){this._intl=se,this.calendar=Xe,this._dateAdapter=xt,this._dateFormats=Bt,this._buttonDescriptionId="mat-calendar-button-"+bt++,this.calendar.stateChanges.subscribe(()=>bi.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 Xe=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),xt=Xe+24-1,Bt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Xe,0,1)),bi=this._dateAdapter.getYearName(this._dateAdapter.createDate(xt,0,1));return this._intl.formatYearRange(Bt,bi)}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:24)}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(se,Xe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(se)==this._dateAdapter.getYear(Xe)&&this._dateAdapter.getMonth(se)==this._dateAdapter.getMonth(Xe):"year"==this.calendar.currentView?this._dateAdapter.getYear(se)==this._dateAdapter.getYear(Xe):Zt(this._dateAdapter,se,Xe,this.calendar.minDate,this.calendar.maxDate)}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(it),a.Y36((0,a.Gpc)(()=>Qt)),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(a.sBO))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[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(se,Xe){1&se&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return Xe.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a.O4$(),a.TgZ(5,"svg",3),a._UZ(6,"polygon",4),a.qZA()(),a.kcU(),a._UZ(7,"div",5),a.Hsn(8),a.TgZ(9,"button",6),a.NdJ("click",function(){return Xe.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return Xe.nextClicked()}),a.qZA()()()),2&se&&(a.xp6(2),a.uIk("aria-label",Xe.periodButtonLabel)("aria-describedby",Xe._buttonDescriptionId),a.xp6(1),a.uIk("id",Xe._buttonDescriptionId),a.xp6(1),a.Oqu(Xe.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==Xe.calendar.currentView),a.xp6(4),a.Q6J("disabled",!Xe.previousEnabled()),a.uIk("aria-label",Xe.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!Xe.nextEnabled()),a.uIk("aria-label",Xe.nextButtonLabel))},directives:[C.lW],encapsulation:2,changeDetection:0}),Qe})(),Qt=(()=>{class Qe{constructor(se,Xe,xt,Bt){this._dateAdapter=Xe,this._dateFormats=xt,this._changeDetectorRef=Bt,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 h.x,this._intlChanges=se.changes.subscribe(()=>{Bt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(se){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get activeDate(){return this._clampedActiveDate}set activeDate(se){this._clampedActiveDate=this._dateAdapter.clampDate(se,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(se){const Xe=this._currentView!==se?se:null;this._currentView=se,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Xe&&this.viewChanged.emit(Xe)}ngAfterContentInit(){this._calendarHeaderPortal=new f.C5(this.headerComponent||ti),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(se){const Xe=se.minDate&&!this._dateAdapter.sameDate(se.minDate.previousValue,se.minDate.currentValue)?se.minDate:void 0,xt=se.maxDate&&!this._dateAdapter.sameDate(se.maxDate.previousValue,se.maxDate.currentValue)?se.maxDate:void 0,Bt=Xe||xt||se.dateFilter;if(Bt&&!Bt.firstChange){const bi=this._getCurrentViewComponent();bi&&(this._changeDetectorRef.detectChanges(),bi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(se){const Xe=se.value;(this.selected instanceof Ie||Xe&&!this._dateAdapter.sameDate(Xe,this.selected))&&this.selectedChange.emit(Xe),this._userSelection.emit(se)}_yearSelectedInMultiYearView(se){this.yearSelected.emit(se)}_monthSelectedInYearView(se){this.monthSelected.emit(se)}_goToDateInView(se,Xe){this.activeDate=se,this.currentView=Xe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(it),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(a.sBO))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-calendar"]],viewQuery:function(se,Xe){if(1&se&&(a.Gf(tt,5),a.Gf(gt,5),a.Gf(Yt,5)),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe.monthView=xt.first),a.iGM(xt=a.CRH())&&(Xe.yearView=xt.first),a.iGM(xt=a.CRH())&&(Xe.multiYearView=xt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([Te]),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(se,Xe){1&se&&(a.YNc(0,c,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,v,1,8,"mat-month-view",2),a.YNc(3,T,1,6,"mat-year-view",3),a.YNc(4,I,1,6,"mat-multi-year-view",4),a.qZA()),2&se&&(a.Q6J("cdkPortalOutlet",Xe._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",Xe.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[tt,gt,Yt,f.Pl,t.kH,M.RF,M.n9],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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}),Qe})();const Re={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ke=0;const de=new a.OlP("mat-datepicker-scroll-strategy"),ht={provide:de,deps:[e.aV],useFactory:function ye(Qe){return()=>Qe.scrollStrategies.reposition()}},mt=(0,R.pj)(class{constructor(Qe){this._elementRef=Qe}});let Ft=(()=>{class Qe extends mt{constructor(se,Xe,xt,Bt,bi,Ei){super(se),this._changeDetectorRef=Xe,this._globalModel=xt,this._dateAdapter=Bt,this._rangeSelectionStrategy=bi,this._subscriptions=new L.w0,this._animationDone=new h.x,this._actionsPortal=null,this._closeButtonText=Ei.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(se){const Xe=this._model.selection,xt=se.value,Bt=Xe instanceof Ie;if(Bt&&this._rangeSelectionStrategy){const bi=this._rangeSelectionStrategy.selectionFinished(xt,Xe,se.event);this._model.updateSelection(bi,this)}else xt&&(Bt||!this._dateAdapter.sameDate(xt,Xe))&&this._model.add(xt);(!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 Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ut),a.Y36(R._A),a.Y36(te,8),a.Y36(it))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-datepicker-content"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(Qt,5),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe._calendar=xt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(se,Xe){1&se&&a.WFA("@transformPanel.done",function(){return Xe._animationDone.next()}),2&se&&(a.d8E("@transformPanel",Xe._animationState),a.ekj("mat-datepicker-content-touch",Xe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",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(se,Xe){if(1&se&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Bt){return Xe.datepicker._selectYear(Bt)})("monthSelected",function(Bt){return Xe.datepicker._selectMonth(Bt)})("viewChanged",function(Bt){return Xe.datepicker._viewChanged(Bt)})("_userSelection",function(Bt){return Xe._handleUserSelection(Bt)}),a.qZA(),a.YNc(2,y,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return Xe._closeButtonFocused=!0})("blur",function(){return Xe._closeButtonFocused=!1})("click",function(){return Xe.datepicker.close()}),a._uU(4),a.qZA()()),2&se){let xt;a.ekj("mat-datepicker-content-container-with-custom-header",Xe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Xe._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(xt=Xe._dialogLabelId)&&void 0!==xt?xt:void 0),a.xp6(1),a.Q6J("id",Xe.datepicker.id)("ngClass",Xe.datepicker.panelClass)("startAt",Xe.datepicker.startAt)("startView",Xe.datepicker.startView)("minDate",Xe.datepicker._getMinDate())("maxDate",Xe.datepicker._getMaxDate())("dateFilter",Xe.datepicker._getDateFilter())("headerComponent",Xe.datepicker.calendarHeaderComponent)("selected",Xe._getSelected())("dateClass",Xe.datepicker.dateClass)("comparisonStart",Xe.comparisonStart)("comparisonEnd",Xe.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",Xe._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!Xe._closeButtonFocused),a.Q6J("color",Xe.color||"primary"),a.xp6(1),a.Oqu(Xe._closeButtonText)}},directives:[Qt,C.lW,t.mK,M.mk,f.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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:[Re.transformPanel,Re.fadeInCalendar]},changeDetection:0}),Qe})(),nt=(()=>{class Qe{constructor(se,Xe,xt,Bt,bi,Ei,Xi){this._overlay=se,this._ngZone=Xe,this._viewContainerRef=xt,this._dateAdapter=bi,this._dir=Ei,this._model=Xi,this._inputStateChanges=L.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-"+ke++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.x,this._scrollStrategy=Bt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(se){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(se){this._color=se}get touchUi(){return this._touchUi}set touchUi(se){this._touchUi=(0,Y.Ig)(se)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(se){const Xe=(0,Y.Ig)(se);Xe!==this._disabled&&(this._disabled=Xe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(se){this._restoreFocus=(0,Y.Ig)(se)}get panelClass(){return this._panelClass}set panelClass(se){this._panelClass=(0,Y.du)(se)}get opened(){return this._opened}set opened(se){(0,Y.Ig)(se)?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(se){const Xe=se.xPosition||se.yPosition;if(Xe&&!Xe.firstChange&&this._overlayRef){const xt=this._overlayRef.getConfig().positionStrategy;xt instanceof e._G&&(this._setConnectedPositions(xt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(se){this._model.add(se)}_selectYear(se){this.yearSelected.emit(se)}_selectMonth(se){this.monthSelected.emit(se)}_viewChanged(se){this.viewChanged.emit(se)}registerInput(se){return this._inputStateChanges.unsubscribe(),this.datepickerInput=se,this._inputStateChanges=se.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(se){this._actionsPortal=se}removeActions(se){se===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ae.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Xe=this._componentRef.instance;Xe._startExitAnimation(),Xe._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const se=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(se)):se()}_applyPendingSelection(){var se,Xe;null===(Xe=null===(se=this._componentRef)||void 0===se?void 0:se.instance)||void 0===Xe||Xe._applyPendingSelection()}_forwardContentValues(se){se.datepicker=this,se.color=this.color,se._actionsPortal=this._actionsPortal,se._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const se=this.touchUi,Xe=new f.C5(Ft,this._viewContainerRef),xt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:se?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[se?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:se?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(se?"dialog":"popup")}));this._getCloseStream(xt).subscribe(Bt=>{Bt&&Bt.preventDefault(),this.close()}),xt.keydownEvents().subscribe(Bt=>{const bi=Bt.keyCode;(bi===S.LH||bi===S.JH||bi===S.oh||bi===S.SV||bi===S.Ku||bi===S.VM)&&Bt.preventDefault()}),this._componentRef=xt.attach(Xe),this._forwardContentValues(this._componentRef.instance),se||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>xt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const se=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(se)}_setConnectedPositions(se){const Xe="end"===this.xPosition?"end":"start",xt="start"===Xe?"end":"start",Bt="above"===this.yPosition?"bottom":"top",bi="top"===Bt?"bottom":"top";return se.withPositions([{originX:Xe,originY:bi,overlayX:Xe,overlayY:Bt},{originX:Xe,originY:Bt,overlayX:Xe,overlayY:bi},{originX:xt,originY:bi,overlayX:xt,overlayY:Bt},{originX:xt,originY:Bt,overlayX:xt,overlayY:bi}])}_getCloseStream(se){return(0,w.T)(se.backdropClick(),se.detachments(),se.keydownEvents().pipe((0,B.h)(Xe=>Xe.keyCode===S.hY&&!(0,S.Vb)(Xe)||this.datepickerInput&&(0,S.Vb)(Xe,"altKey")&&Xe.keyCode===S.LH)))}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(e.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(de),a.Y36(R._A,8),a.Y36(Z.Is,8),a.Y36(ut))},Qe.\u0275dir=a.lG2({type:Qe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),Qe})(),He=(()=>{class Qe extends nt{}return Qe.\u0275fac=function(){let _t;return function(Xe){return(_t||(_t=a.n5z(Qe)))(Xe||Qe)}}(),Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Te,{provide:nt,useExisting:Qe}]),a.qOj],decls:0,vars:0,template:function(se,Xe){},encapsulation:2,changeDetection:0}),Qe})();class rt{constructor(_t,se){this.target=_t,this.targetElement=se,this.value=this.target.value}}let et=(()=>{class Qe{constructor(se,Xe,xt){this._elementRef=se,this._dateAdapter=Xe,this._dateFormats=xt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Bt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value));return!bi||this._matchesFilter(bi)?null:{matDatepickerFilter:!0}},this._minValidator=Bt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),Ei=this._getMinDate();return!Ei||!bi||this._dateAdapter.compareDate(Ei,bi)<=0?null:{matDatepickerMin:{min:Ei,actual:bi}}},this._maxValidator=Bt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),Ei=this._getMaxDate();return!Ei||!bi||this._dateAdapter.compareDate(Ei,bi)>=0?null:{matDatepickerMax:{max:Ei,actual:bi}}},this._lastValueValid=!1,this._localeSubscription=Xe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(se){this._assignValueProgrammatically(se)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(se){const Xe=(0,Y.Ig)(se),xt=this._elementRef.nativeElement;this._disabled!==Xe&&(this._disabled=Xe,this.stateChanges.next(void 0)),Xe&&this._isInitialized&&xt.blur&&xt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(se){this._model=se,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Xe=>{if(this._shouldHandleChangeEvent(Xe)){const xt=this._getValueFromModel(Xe.selection);this._lastValueValid=this._isValidValue(xt),this._cvaOnChange(xt),this._onTouched(),this._formatValue(xt),this.dateInput.emit(new rt(this,this._elementRef.nativeElement)),this.dateChange.emit(new rt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(se){(function Ae(Qe,_t){const se=Object.keys(Qe);for(let Xe of se){const{previousValue:xt,currentValue:Bt}=Qe[Xe];if(!_t.isDateInstance(xt)||!_t.isDateInstance(Bt))return!0;if(!_t.sameDate(xt,Bt))return!0}return!1})(se,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(se){this._validatorOnChange=se}validate(se){return this._validator?this._validator(se):null}writeValue(se){this._assignValueProgrammatically(se)}registerOnChange(se){this._cvaOnChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}_onKeydown(se){se.altKey&&se.keyCode===S.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),se.preventDefault())}_onInput(se){const Xe=this._lastValueValid;let xt=this._dateAdapter.parse(se,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(xt),xt=this._dateAdapter.getValidDateOrNull(xt);const Bt=!this._dateAdapter.sameDate(xt,this.value);!xt||Bt?this._cvaOnChange(xt):(se&&!this.value&&this._cvaOnChange(xt),Xe!==this._lastValueValid&&this._validatorOnChange()),Bt&&(this._assignValue(xt),this.dateInput.emit(new rt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new rt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(se){this._elementRef.nativeElement.value=null!=se?this._dateAdapter.format(se,this._dateFormats.display.dateInput):""}_assignValue(se){this._model?(this._assignValueToModel(se),this._pendingValue=null):this._pendingValue=se}_isValidValue(se){return!se||this._dateAdapter.isValid(se)}_parentDisabled(){return!1}_assignValueProgrammatically(se){se=this._dateAdapter.deserialize(se),this._lastValueValid=this._isValidValue(se),se=this._dateAdapter.getValidDateOrNull(se),this._assignValue(se),this._formatValue(se)}_matchesFilter(se){const Xe=this._getDateFilter();return!Xe||Xe(se)}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(R._A,8),a.Y36(R.sG,8))},Qe.\u0275dir=a.lG2({type:Qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),Qe})();const Ge={provide:ue.JU,useExisting:(0,a.Gpc)(()=>lt),multi:!0},ot={provide:ue.Cf,useExisting:(0,a.Gpc)(()=>lt),multi:!0};let lt=(()=>{class Qe extends et{constructor(se,Xe,xt,Bt){super(se,Xe,xt),this._formField=Bt,this._closedSubscription=L.w0.EMPTY,this._validator=ue.kI.compose(super._getValidators())}set matDatepicker(se){se&&(this._datepicker=se,this._closedSubscription=se.closedStream.subscribe(()=>this._onTouched()),this._registerModel(se.registerInput(this)))}get min(){return this._min}set min(se){const Xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se));this._dateAdapter.sameDate(Xe,this._min)||(this._min=Xe,this._validatorOnChange())}get max(){return this._max}set max(se){const Xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se));this._dateAdapter.sameDate(Xe,this._max)||(this._max=Xe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(se){const Xe=this._matchesFilter(this.value);this._dateFilter=se,this._matchesFilter(this.value)!==Xe&&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(se){return se}_assignValueToModel(se){this._model&&this._model.updateSelection(se,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(se){return se.source!==this}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(ne.G_,8))},Qe.\u0275dir=a.lG2({type:Qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(se,Xe){1&se&&a.NdJ("input",function(Bt){return Xe._onInput(Bt.target.value)})("change",function(){return Xe._onChange()})("blur",function(){return Xe._onBlur()})("keydown",function(Bt){return Xe._onKeydown(Bt)}),2&se&&(a.Ikx("disabled",Xe.disabled),a.uIk("aria-haspopup",Xe._datepicker?"dialog":null)("aria-owns",(null==Xe._datepicker?null:Xe._datepicker.opened)&&Xe._datepicker.id||null)("min",Xe.min?Xe._dateAdapter.toIso8601(Xe.min):null)("max",Xe.max?Xe._dateAdapter.toIso8601(Xe.max):null)("data-mat-calendar",Xe._datepicker?Xe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Ge,ot,{provide:re.Jk,useExisting:Qe}]),a.qOj]}),Qe})(),Ct=(()=>{class Qe{}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275dir=a.lG2({type:Qe,selectors:[["","matDatepickerToggleIcon",""]]}),Qe})(),mi=(()=>{class Qe{constructor(se,Xe,xt){this._intl=se,this._changeDetectorRef=Xe,this._stateChanges=L.w0.EMPTY;const Bt=Number(xt);this.tabIndex=Bt||0===Bt?Bt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(se){this._disabled=(0,Y.Ig)(se)}ngOnChanges(se){se.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(se){this.datepicker&&!this.disabled&&(this.datepicker.open(),se.stopPropagation())}_watchStateChanges(){const se=this.datepicker?this.datepicker.stateChanges:(0,D.of)(),Xe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,D.of)(),xt=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,D.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,se,Xe,xt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(it),a.Y36(a.sBO),a.$8M("tabindex"))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(se,Xe,xt){if(1&se&&a.Suo(xt,Ct,5),2&se){let Bt;a.iGM(Bt=a.CRH())&&(Xe._customIcon=Bt.first)}},viewQuery:function(se,Xe){if(1&se&&a.Gf(n,5),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe._button=xt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(se,Xe){1&se&&a.NdJ("click",function(Bt){return Xe._open(Bt)}),2&se&&(a.uIk("tabindex",null)("data-mat-calendar",Xe.datepicker?Xe.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",Xe.datepicker&&Xe.datepicker.opened)("mat-accent",Xe.datepicker&&"accent"===Xe.datepicker.color)("mat-warn",Xe.datepicker&&"warn"===Xe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:N,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(se,Xe){1&se&&(a.F$t(V),a.TgZ(0,"button",0,1),a.YNc(2,_,2,0,"svg",2),a.Hsn(3),a.qZA()),2&se&&(a.Q6J("disabled",Xe.disabled)("disableRipple",Xe.disableRipple),a.uIk("aria-haspopup",Xe.datepicker?"dialog":null)("aria-label",Xe.ariaLabel||Xe._intl.openCalendarLabel)("tabindex",Xe.disabled?-1:Xe.tabIndex),a.xp6(2),a.Q6J("ngIf",!Xe._customIcon))},directives:[C.lW,M.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}),Qe})(),ve=(()=>{class Qe{}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275mod=a.oAB({type:Qe}),Qe.\u0275inj=a.cJS({providers:[it,ht],imports:[[M.ez,C.ot,e.U8,t.rt,f.eL,R.BQ],d.ZD]}),Qe})()},8966:(Be,K,p)=>{"use strict";p.d(K,{Bq:()=>i,Is:()=>he,WI:()=>x,ZT:()=>_,so:()=>q,uw:()=>I});var t=p(9776),e=p(7429),f=p(5e3),M=p(508),a=p(226),C=p(7579),d=p(9770),R=p(9646),h=p(9300),L=p(5698),w=p(8675),D=p(925),S=p(9808),k=p(1777),E=p(5664),B=p(1159),Z=p(6360);function Y(be,Pe){}class ae{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const ee={dialogContainer:(0,k.X$)("dialogContainer",[(0,k.SB)("void, exit",(0,k.oB)({opacity:0,transform:"scale(0.7)"})),(0,k.SB)("enter",(0,k.oB)({transform:"none"})),(0,k.eR)("* => enter",(0,k.ru)([(0,k.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.oB)({transform:"none",opacity:1})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])),(0,k.eR)("* => void, * => exit",(0,k.ru)([(0,k.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,k.oB)({opacity:0})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})]))])};let ne=(()=>{class be extends e.en{constructor(Ee,j,Ve,Me,J,Ie,ut,Oe){super(),this._elementRef=Ee,this._focusTrapFactory=j,this._changeDetectorRef=Ve,this._config=J,this._interactivityChecker=Ie,this._ngZone=ut,this._focusMonitor=Oe,this._animationStateChanged=new f.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=we=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(we)),this._ariaLabelledBy=J.ariaLabelledBy||null,this._document=Me}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,D.ht)())}attachComponentPortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ee)}attachTemplatePortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ee)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ee,j){this._interactivityChecker.isFocusable(Ee)||(Ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ve=()=>{Ee.removeEventListener("blur",Ve),Ee.removeEventListener("mousedown",Ve),Ee.removeAttribute("tabindex")};Ee.addEventListener("blur",Ve),Ee.addEventListener("mousedown",Ve)})),Ee.focus(j)}_focusByCssSelector(Ee,j){let Ve=this._elementRef.nativeElement.querySelector(Ee);Ve&&this._forceFocus(Ve,j)}_trapFocus(){const Ee=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ee.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(j=>{j||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Ee=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const j=(0,D.ht)(),Ve=this._elementRef.nativeElement;(!j||j===this._document.body||j===Ve||Ve.contains(j))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ee=this._elementRef.nativeElement,j=(0,D.ht)();return Ee===j||Ee.contains(j)}}return be.\u0275fac=function(Ee){return new(Ee||be)(f.Y36(f.SBq),f.Y36(E.qV),f.Y36(f.sBO),f.Y36(S.K0,8),f.Y36(ae),f.Y36(E.ic),f.Y36(f.R0b),f.Y36(E.tE))},be.\u0275dir=f.lG2({type:be,viewQuery:function(Ee,j){if(1&Ee&&f.Gf(e.Pl,7),2&Ee){let Ve;f.iGM(Ve=f.CRH())&&(j._portalOutlet=Ve.first)}},features:[f.qOj]}),be})(),re=(()=>{class be extends ne{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ee,totalTime:j}){"enter"===Ee?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:j})):"exit"===Ee&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:j}))}_onAnimationStart({toState:Ee,totalTime:j}){"enter"===Ee?this._animationStateChanged.next({state:"opening",totalTime:j}):("exit"===Ee||"void"===Ee)&&this._animationStateChanged.next({state:"closing",totalTime:j})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return be.\u0275fac=function(){let Pe;return function(j){return(Pe||(Pe=f.n5z(be)))(j||be)}}(),be.\u0275cmp=f.Xpm({type:be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ee,j){1&Ee&&f.WFA("@dialogContainer.start",function(Me){return j._onAnimationStart(Me)})("@dialogContainer.done",function(Me){return j._onAnimationDone(Me)}),2&Ee&&(f.Ikx("id",j._id),f.uIk("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),f.d8E("@dialogContainer",j._state))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,j){1&Ee&&f.YNc(0,Y,0,0,"ng-template",0)},directives:[e.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:[ee.dialogContainer]}}),be})(),ge=0;class q{constructor(Pe,Ee,j="mat-dialog-"+ge++){this._overlayRef=Pe,this._containerInstance=Ee,this.id=j,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new C.x,this._afterClosed=new C.x,this._beforeClosed=new C.x,this._state=0,Ee._id=j,Ee._animationStateChanged.pipe((0,h.h)(Ve=>"opened"===Ve.state),(0,L.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ee._animationStateChanged.pipe((0,h.h)(Ve=>"closed"===Ve.state),(0,L.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Pe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Pe.keydownEvents().pipe((0,h.h)(Ve=>Ve.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(Ve))).subscribe(Ve=>{Ve.preventDefault(),_e(this,"keyboard")}),Pe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():_e(this,"mouse")})}close(Pe){this._result=Pe,this._containerInstance._animationStateChanged.pipe((0,h.h)(Ee=>"closing"===Ee.state),(0,L.q)(1)).subscribe(Ee=>{this._beforeClosed.next(Pe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ee.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(Pe){let Ee=this._getPositionStrategy();return Pe&&(Pe.left||Pe.right)?Pe.left?Ee.left(Pe.left):Ee.right(Pe.right):Ee.centerHorizontally(),Pe&&(Pe.top||Pe.bottom)?Pe.top?Ee.top(Pe.top):Ee.bottom(Pe.bottom):Ee.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Pe="",Ee=""){return this._overlayRef.updateSize({width:Pe,height:Ee}),this._overlayRef.updatePosition(),this}addPanelClass(Pe){return this._overlayRef.addPanelClass(Pe),this}removePanelClass(Pe){return this._overlayRef.removePanelClass(Pe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function _e(be,Pe,Ee){return void 0!==be._containerInstance&&(be._containerInstance._closeInteractionType=Pe),be.close(Ee)}const x=new f.OlP("MatDialogData"),i=new f.OlP("mat-dialog-default-options"),r=new f.OlP("mat-dialog-scroll-strategy"),v={provide:r,deps:[t.aV],useFactory:function c(be){return()=>be.scrollStrategies.block()}};let T=(()=>{class be{constructor(Ee,j,Ve,Me,J,Ie,ut,Oe,we,ce){this._overlay=Ee,this._injector=j,this._defaultOptions=Ve,this._parentDialog=Me,this._overlayContainer=J,this._dialogRefConstructor=ut,this._dialogContainerType=Oe,this._dialogDataToken=we,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new C.x,this._afterOpenedAtThisLevel=new C.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,w.O)(void 0))),this._scrollStrategy=Ie}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ee=this._parentDialog;return Ee?Ee._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ee,j){j=function y(be,Pe){return Object.assign(Object.assign({},Pe),be)}(j,this._defaultOptions||new ae),j.id&&this.getDialogById(j.id);const Ve=this._createOverlay(j),Me=this._attachDialogContainer(Ve,j),J=this._attachDialogContent(Ee,Me,Ve,j);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(J),J.afterClosed().subscribe(()=>this._removeOpenDialog(J)),this.afterOpened.next(J),Me._initializeWithAttachedContent(),J}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ee){return this.openDialogs.find(j=>j.id===Ee)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Ee){const j=this._getOverlayConfig(Ee);return this._overlay.create(j)}_getOverlayConfig(Ee){const j=new t.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ee.scrollStrategy||this._scrollStrategy(),panelClass:Ee.panelClass,hasBackdrop:Ee.hasBackdrop,direction:Ee.direction,minWidth:Ee.minWidth,minHeight:Ee.minHeight,maxWidth:Ee.maxWidth,maxHeight:Ee.maxHeight,disposeOnNavigation:Ee.closeOnNavigation});return Ee.backdropClass&&(j.backdropClass=Ee.backdropClass),j}_attachDialogContainer(Ee,j){const Me=f.zs3.create({parent:j&&j.viewContainerRef&&j.viewContainerRef.injector||this._injector,providers:[{provide:ae,useValue:j}]}),J=new e.C5(this._dialogContainerType,j.viewContainerRef,Me,j.componentFactoryResolver);return Ee.attach(J).instance}_attachDialogContent(Ee,j,Ve,Me){const J=new this._dialogRefConstructor(Ve,j,Me.id);if(Ee instanceof f.Rgc)j.attachTemplatePortal(new e.UE(Ee,null,{$implicit:Me.data,dialogRef:J}));else{const Ie=this._createInjector(Me,J,j),ut=j.attachComponentPortal(new e.C5(Ee,Me.viewContainerRef,Ie,Me.componentFactoryResolver));J.componentInstance=ut.instance}return J.updateSize(Me.width,Me.height).updatePosition(Me.position),J}_createInjector(Ee,j,Ve){const Me=Ee&&Ee.viewContainerRef&&Ee.viewContainerRef.injector,J=[{provide:this._dialogContainerType,useValue:Ve},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:j}];return Ee.direction&&(!Me||!Me.get(a.Is,null,f.XFs.Optional))&&J.push({provide:a.Is,useValue:{value:Ee.direction,change:(0,R.of)()}}),f.zs3.create({parent:Me||this._injector,providers:J})}_removeOpenDialog(Ee){const j=this.openDialogs.indexOf(Ee);j>-1&&(this.openDialogs.splice(j,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ve,Me)=>{Ve?Me.setAttribute("aria-hidden",Ve):Me.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ee=this._overlayContainer.getContainerElement();if(Ee.parentElement){const j=Ee.parentElement.children;for(let Ve=j.length-1;Ve>-1;Ve--){let Me=j[Ve];Me!==Ee&&"SCRIPT"!==Me.nodeName&&"STYLE"!==Me.nodeName&&!Me.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Me,Me.getAttribute("aria-hidden")),Me.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ee){let j=Ee.length;for(;j--;)Ee[j].close()}}return be.\u0275fac=function(Ee){f.$Z()},be.\u0275dir=f.lG2({type:be}),be})(),I=(()=>{class be extends T{constructor(Ee,j,Ve,Me,J,Ie,ut,Oe){super(Ee,j,Me,Ie,ut,J,q,re,x,Oe)}}return be.\u0275fac=function(Ee){return new(Ee||be)(f.LFG(t.aV),f.LFG(f.zs3),f.LFG(S.Ye,8),f.LFG(i,8),f.LFG(r),f.LFG(be,12),f.LFG(t.Xj),f.LFG(Z.Qb,8))},be.\u0275prov=f.Yz7({token:be,factory:be.\u0275fac}),be})(),_=(()=>{class be{constructor(Ee,j,Ve){this.dialogRef=Ee,this._elementRef=j,this._dialog=Ve,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function X(be,Pe){let Ee=be.nativeElement.parentElement;for(;Ee&&!Ee.classList.contains("mat-dialog-container");)Ee=Ee.parentElement;return Ee?Pe.find(j=>j.id===Ee.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ee){const j=Ee._matDialogClose||Ee._matDialogCloseResult;j&&(this.dialogResult=j.currentValue)}_onButtonClick(Ee){_e(this.dialogRef,0===Ee.screenX&&0===Ee.screenY?"keyboard":"mouse",this.dialogResult)}}return be.\u0275fac=function(Ee){return new(Ee||be)(f.Y36(q,8),f.Y36(f.SBq),f.Y36(I))},be.\u0275dir=f.lG2({type:be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ee,j){1&Ee&&f.NdJ("click",function(Me){return j._onButtonClick(Me)}),2&Ee&&f.uIk("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.TTD]}),be})(),he=(()=>{class be{}return be.\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=f.oAB({type:be}),be.\u0275inj=f.cJS({providers:[I,v],imports:[[t.U8,e.eL,M.BQ],M.BQ]}),be})()},4834:(Be,K,p)=>{"use strict";p.d(K,{d:()=>M,t:()=>a});var t=p(5e3),e=p(3191),f=p(508);let M=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,e.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,e.Ig)(R)}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275cmp=t.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,h){2&R&&(t.uIk("aria-orientation",h.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",h.vertical)("mat-divider-horizontal",!h.vertical)("mat-divider-inset",h.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,h){},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}),C})(),a=(()=>{class C{}return C.\u0275fac=function(R){return new(R||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),C})()},1125:(Be,K,p)=>{"use strict";p.d(K,{pp:()=>Ee,To:()=>j,ib:()=>V,u4:()=>be,yz:()=>he,yK:()=>Pe});var t=p(5e3),e=p(3191),f=p(7579),M=p(727),a=p(449);let C=0;const d=new t.OlP("CdkAccordion");let R=(()=>{class Ve{constructor(){this._stateChanges=new f.x,this._openCloseAllActions=new f.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(J){this._multi=(0,e.Ig)(J)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(J){this._stateChanges.next(J)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:d,useExisting:Ve}]),t.TTD]}),Ve})(),h=0,L=(()=>{class Ve{constructor(J,Ie,ut){this.accordion=J,this._changeDetectorRef=Ie,this._expansionDispatcher=ut,this._openCloseAllSubscription=M.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ut.listen((Oe,we)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===we&&this.id!==Oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(J){J=(0,e.Ig)(J),this._expanded!==J&&(this._expanded=J,this.expandedChange.emit(J),J?(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(J){this._disabled=(0,e.Ig)(J)}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(J=>{this.disabled||(this.expanded=J)})}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(d,12),t.Y36(t.sBO),t.Y36(a.A8))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:d,useValue:void 0}])]}),Ve})(),w=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({}),Ve})();var D=p(7429),S=p(9808),k=p(508),E=p(5664),B=p(1884),Z=p(8675),Y=p(9300),ae=p(5698),ee=p(1159),ue=p(6360),ne=p(515),re=p(6451),ge=p(1777);const q=["body"];function _e(Ve,Me){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function r(Ve,Me){if(1&Ve&&t._UZ(0,"span",2),2&Ve){const J=t.oxw();t.Q6J("@indicatorRotate",J._getExpandedState())}}const u=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],v=new t.OlP("MAT_ACCORDION"),T="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,ge.X$)("indicatorRotate",[(0,ge.SB)("collapsed, void",(0,ge.oB)({transform:"rotate(0deg)"})),(0,ge.SB)("expanded",(0,ge.oB)({transform:"rotate(180deg)"})),(0,ge.eR)("expanded <=> collapsed, void => collapsed",(0,ge.jt)(T))]),bodyExpansion:(0,ge.X$)("bodyExpansion",[(0,ge.SB)("collapsed, void",(0,ge.oB)({height:"0px",visibility:"hidden"})),(0,ge.SB)("expanded",(0,ge.oB)({height:"*",visibility:"visible"})),(0,ge.eR)("expanded <=> collapsed, void => collapsed",(0,ge.jt)(T))])};let y=(()=>{class Ve{constructor(J){this._template=J}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(t.Rgc))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ve})(),n=0;const _=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let V=(()=>{class Ve extends L{constructor(J,Ie,ut,Oe,we,ce,Te){super(J,Ie,ut),this._viewContainerRef=Oe,this._animationMode=ce,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new f.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new f.x,this.accordion=J,this._document=we,this._bodyAnimationDone.pipe((0,B.x)((xe,W)=>xe.fromState===W.fromState&&xe.toState===W.toState)).subscribe(xe=>{"void"!==xe.fromState&&("expanded"===xe.toState?this.afterExpand.emit():"collapsed"===xe.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(J){this._hideToggle=(0,e.Ig)(J)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(J){this._togglePosition=J}_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,Z.O)(null),(0,Y.h)(()=>this.expanded&&!this._portal),(0,ae.q)(1)).subscribe(()=>{this._portal=new D.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(J){this._inputChanges.next(J)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const J=this._document.activeElement,Ie=this._body.nativeElement;return J===Ie||Ie.contains(J)}return!1}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(v,12),t.Y36(t.sBO),t.Y36(a.A8),t.Y36(t.s_b),t.Y36(S.K0),t.Y36(ue.Qb,8),t.Y36(_,8))},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["mat-expansion-panel"]],contentQueries:function(J,Ie,ut){if(1&J&&t.Suo(ut,y,5),2&J){let Oe;t.iGM(Oe=t.CRH())&&(Ie._lazyContent=Oe.first)}},viewQuery:function(J,Ie){if(1&J&&t.Gf(q,5),2&J){let ut;t.iGM(ut=t.CRH())&&(Ie._body=ut.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(J,Ie){2&J&&t.ekj("mat-expanded",Ie.expanded)("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)("mat-expansion-panel-spacing",Ie._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:v,useValue:void 0}]),t.qOj,t.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(J,Ie){1&J&&(t.F$t(x),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Oe){return Ie._bodyAnimationDone.next(Oe)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,_e,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&J&&(t.xp6(1),t.Q6J("@bodyExpansion",Ie._getExpandedState())("id",Ie.id),t.uIk("aria-labelledby",Ie._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Ie._portal))},directives:[D.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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),Ve})();class H{}const X=(0,k.sb)(H);let he=(()=>{class Ve extends X{constructor(J,Ie,ut,Oe,we,ce,Te){super(),this.panel=J,this._element=Ie,this._focusMonitor=ut,this._changeDetectorRef=Oe,this._animationMode=ce,this._parentChangeSubscription=M.w0.EMPTY;const xe=J.accordion?J.accordion._stateChanges.pipe((0,Y.h)(W=>!(!W.hideToggle&&!W.togglePosition))):ne.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,re.T)(J.opened,J.closed,xe,J._inputChanges.pipe((0,Y.h)(W=>!!(W.hideToggle||W.disabled||W.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),J.closed.pipe((0,Y.h)(()=>J._containsFocus())).subscribe(()=>ut.focusVia(Ie,"program")),we&&(this.expandedHeight=we.expandedHeight,this.collapsedHeight=we.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 J=this._isExpanded();return J&&this.expandedHeight?this.expandedHeight:!J&&this.collapsedHeight?this.collapsedHeight:null}_keydown(J){switch(J.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(J)||(J.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(J))}}focus(J,Ie){J?this._focusMonitor.focusVia(this._element,J,Ie):this._element.nativeElement.focus(Ie)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(J=>{J&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(V,1),t.Y36(t.SBq),t.Y36(E.tE),t.Y36(t.sBO),t.Y36(_,8),t.Y36(ue.Qb,8),t.$8M("tabindex"))},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(J,Ie){1&J&&t.NdJ("click",function(){return Ie._toggle()})("keydown",function(Oe){return Ie._keydown(Oe)}),2&J&&(t.uIk("id",Ie.panel._headerId)("tabindex",Ie.tabIndex)("aria-controls",Ie._getPanelId())("aria-expanded",Ie._isExpanded())("aria-disabled",Ie.panel.disabled),t.Udp("height",Ie._getHeaderHeight()),t.ekj("mat-expanded",Ie._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ie._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ie._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ie._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(J,Ie){1&J&&(t.F$t(u),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,r,1,1,"span",1)),2&J&&(t.xp6(4),t.Q6J("ngIf",Ie._showToggle()))},directives:[S.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;align-items:center}[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:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),Ve})(),be=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ve})(),Pe=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ve})(),Ee=(()=>{class Ve extends R{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(J){this._hideToggle=(0,e.Ig)(J)}ngAfterContentInit(){this._headers.changes.pipe((0,Z.O)(this._headers)).subscribe(J=>{this._ownHeaders.reset(J.filter(Ie=>Ie.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new E.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(J){this._keyManager.onKeydown(J)}_handleHeaderFocus(J){this._keyManager.updateActiveItem(J)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ve.\u0275fac=function(){let Me;return function(Ie){return(Me||(Me=t.n5z(Ve)))(Ie||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["mat-accordion"]],contentQueries:function(J,Ie,ut){if(1&J&&t.Suo(ut,he,5),2&J){let Oe;t.iGM(Oe=t.CRH())&&(Ie._headers=Oe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(J,Ie){2&J&&t.ekj("mat-accordion-multi",Ie.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:v,useExisting:Ve}]),t.qOj]}),Ve})(),j=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({imports:[[S.ez,k.BQ,w,D.eL]]}),Ve})()},7322:(Be,K,p)=>{"use strict";p.d(K,{Eo:()=>n,G_:()=>ce,KE:()=>Te,R9:()=>Me,TO:()=>I,bx:()=>he,lN:()=>xe});var t=p(7144),e=p(9808),f=p(5e3),M=p(508),a=p(3191),C=p(7579),d=p(6451),R=p(4968),h=p(8675),L=p(2722),w=p(5698),D=p(1777),S=p(6360),k=p(226),E=p(925);const B=["connectionContainer"],Z=["inputContainer"],Y=["label"];function ae(W,te){1&W&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function ee(W,te){if(1&W){const Ce=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){return f.CHM(Ce),f.oxw().updateOutlineGap()}),f.Hsn(1,1),f.qZA()}if(2&W){const Ce=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)}}function ue(W,te){if(1&W&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&W){const Ce=f.oxw(2);f.xp6(3),f.Oqu(Ce._control.placeholder)}}function ne(W,te){1&W&&f.Hsn(0,3,["*ngSwitchCase","true"])}function re(W,te){1&W&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function ge(W,te){if(1&W){const Ce=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){return f.CHM(Ce),f.oxw().updateOutlineGap()}),f.YNc(2,ue,4,1,"ng-container",12),f.YNc(3,ne,1,0,"ng-content",12),f.YNc(4,re,2,0,"span",22),f.qZA()}if(2&W){const Ce=f.oxw();f.ekj("mat-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-form-field-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color),f.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)("id",Ce._labelId)("ngSwitch",Ce._hasLabel()),f.uIk("for",Ce._control.id)("aria-owns",Ce._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!Ce.hideRequiredMarker&&Ce._control.required&&!Ce._control.disabled)}}function q(W,te){1&W&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function _e(W,te){if(1&W&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&W){const Ce=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color)}}function x(W,te){if(1&W&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&W){const Ce=f.oxw();f.Q6J("@transitionMessages",Ce._subscriptAnimationState)}}function i(W,te){if(1&W&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&W){const Ce=f.oxw(2);f.Q6J("id",Ce._hintLabelId),f.xp6(1),f.Oqu(Ce.hintLabel)}}function r(W,te){if(1&W&&(f.TgZ(0,"div",27),f.YNc(1,i,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&W){const Ce=f.oxw();f.Q6J("@transitionMessages",Ce._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",Ce.hintLabel)}}const u=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let v=0;const T=new f.OlP("MatError");let I=(()=>{class W{constructor(Ce,fe){this.id="mat-error-"+v++,Ce||fe.nativeElement.setAttribute("aria-live","polite")}}return W.\u0275fac=function(Ce){return new(Ce||W)(f.$8M("aria-live"),f.Y36(f.SBq))},W.\u0275dir=f.lG2({type:W,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Ce,fe){2&Ce&&f.uIk("id",fe.id)},inputs:{id:"id"},features:[f._Bn([{provide:T,useExisting:W}])]}),W})();const y={transitionMessages:(0,D.X$)("transitionMessages",[(0,D.SB)("enter",(0,D.oB)({opacity:1,transform:"translateY(0%)"})),(0,D.eR)("void => enter",[(0,D.oB)({opacity:0,transform:"translateY(-5px)"}),(0,D.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W}),W})(),H=0;const X=new f.OlP("MatHint");let he=(()=>{class W{constructor(){this.align="start",this.id="mat-hint-"+H++}}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Ce,fe){2&Ce&&(f.uIk("id",fe.id)("align",null),f.ekj("mat-form-field-hint-end","end"===fe.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:X,useExisting:W}])]}),W})(),be=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-label"]]}),W})(),Pe=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-placeholder"]]}),W})();const Ee=new f.OlP("MatPrefix"),Ve=new f.OlP("MatSuffix");let Me=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:Ve,useExisting:W}])]}),W})(),J=0;const Oe=(0,M.pj)(class{constructor(W){this._elementRef=W}},"primary"),we=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ce=new f.OlP("MatFormField");let Te=(()=>{class W extends Oe{constructor(Ce,fe,Q,pt,tt,Dt,di){super(Ce),this._changeDetectorRef=fe,this._dir=Q,this._defaults=pt,this._platform=tt,this._ngZone=Dt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+J++,this._labelId="mat-form-field-label-"+J++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==di,this.appearance=pt&&pt.appearance?pt.appearance:"legacy",this._hideRequiredMarker=!(!pt||null==pt.hideRequiredMarker)&&pt.hideRequiredMarker}get appearance(){return this._appearance}set appearance(Ce){const fe=this._appearance;this._appearance=Ce||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&fe!==Ce&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ce){this._hideRequiredMarker=(0,a.Ig)(Ce)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Ce){this._hintLabel=Ce,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Ce){Ce!==this._floatLabel&&(this._floatLabel=Ce||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Ce){this._explicitFormFieldControl=Ce}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Ce=this._control;Ce.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Ce.controlType}`),Ce.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Ce.ngControl&&Ce.ngControl.valueChanges&&Ce.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,d.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.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(Ce){const fe=this._control?this._control.ngControl:null;return fe&&fe[Ce]}_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,R.R)(this._label.nativeElement,"transitionend").pipe((0,w.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 Ce=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ce.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const fe=this._hintChildren?this._hintChildren.find(pt=>"start"===pt.align):null,Q=this._hintChildren?this._hintChildren.find(pt=>"end"===pt.align):null;fe?Ce.push(fe.id):this._hintLabel&&Ce.push(this._hintLabelId),Q&&Ce.push(Q.id)}else this._errorChildren&&Ce.push(...this._errorChildren.map(fe=>fe.id));this._control.setDescribedByIds(Ce)}}_validateControlChild(){}updateOutlineGap(){const Ce=this._label?this._label.nativeElement:null,fe=this._connectionContainerRef.nativeElement,Q=".mat-form-field-outline-start",pt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Ce||!Ce.children.length||!Ce.textContent.trim()){const Zt=fe.querySelectorAll(`${Q}, ${pt}`);for(let ui=0;ui0?.75*gt+10:0}for(let Zt=0;Zt{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275mod=f.oAB({type:W}),W.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.Q8],M.BQ]}),W})()},3954:(Be,K,p)=>{"use strict";p.d(K,{DX:()=>D,Il:()=>q,N6:()=>_e});var t=p(5e3),e=p(508),f=p(3191),M=p(226);const a=["*"];class h{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(c=>this._trackTile(c))}_trackTile(r){const u=this._findMatchingGap(r.colspan);return this._markTilePosition(u,r),this.columnIndex=u+r.colspan,new L(this.rowIndex,u)}_findMatchingGap(r){let u=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(c=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)))}while(c-u{class i{constructor(u,c){this._element=u,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,f.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,f.su)(u))}_setStyle(u,c){this._element.nativeElement.style[u]=c}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(w,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,c){2&u&&t.uIk("rowspan",c.rowspan)("colspan",c.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".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"],encapsulation:2,changeDetection:0}),i})();const Z=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Y{constructor(){this._rows=0,this._rowspan=0}init(r,u,c,v){this._gutterSize=re(r),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=c,this._direction=v}getBaseTileSize(r,u){return`(${r}% - (${this._gutterSize} * ${u}))`}getTilePosition(r,u){return 0===u?"0":ne(`(${r} + ${this._gutterSize}) * ${u}`)}getTileSize(r,u){return`(${r} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(r,u,c){let v=100/this._cols,T=(this._cols-1)/this._cols;this.setColStyles(r,c,v,T),this.setRowStyles(r,u,v,T)}setColStyles(r,u,c,v){let T=this.getBaseTileSize(c,v);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(T,u)),r._setStyle("width",ne(this.getTileSize(T,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ae extends Y{constructor(r){super(),this.fixedRowHeight=r}init(r,u,c,v){super.init(r,u,c,v),this.fixedRowHeight=re(this.fixedRowHeight),Z.test(this.fixedRowHeight)}setRowStyles(r,u){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),r._setStyle("height",ne(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",ne(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class ee extends Y{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,u,c,v){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,v),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),r._setStyle("paddingTop",ne(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",ne(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(r){const u=r.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class ue extends Y{setRowStyles(r,u){let T=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(T,u)),r._setStyle("height",ne(this.getTileSize(T,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function ne(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let q=(()=>{class i{constructor(u,c){this._element=u,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,f.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${null==u?"":u}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const c=`${null==u?"":u}`;c!==this._rowHeight&&(this._rowHeight=c,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new ue:u&&u.indexOf(":")>-1?new ee(u):new ae(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new h);const u=this._tileCoordinator,c=this._tiles.filter(T=>!T._gridList||T._gridList===this),v=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,u,this.cols,v),c.forEach((T,I)=>{const y=u.positions[I];this._tileStyler.setStyle(T,y.row,y.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(M.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,c,v){if(1&u&&t.Suo(v,D,5),2&u){let T;t.iGM(T=t.CRH())&&(c._tiles=T)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,c){2&u&&t.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:w,useExisting:i}])],ngContentSelectors:a,decls:2,vars:0,template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".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"],encapsulation:2,changeDetection:0}),i})(),_e=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[e.uc,e.BQ],e.uc,e.BQ]}),i})()},5245:(Be,K,p)=>{"use strict";p.d(K,{Hw:()=>V,Ps:()=>N});var t=p(5e3),e=p(508),f=p(3191),M=p(9808),a=p(9646),C=p(2843),d=p(4128),R=p(727),h=p(8505),L=p(4004),w=p(262),D=p(8746),S=p(3099),k=p(5698),E=p(8138),B=p(2313);const Z=["*"];let Y;function ee(H){var X;return(null===(X=function ae(){if(void 0===Y&&(Y=null,"undefined"!=typeof window)){const H=window;void 0!==H.trustedTypes&&(Y=H.trustedTypes.createPolicy("angular#components",{createHTML:X=>X}))}return Y}())||void 0===X?void 0:X.createHTML(H))||H}function ue(H){return Error(`Unable to find icon with the name "${H}"`)}function re(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function ge(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class q{constructor(X,he,be){this.url=X,this.svgText=he,this.options=be}}let _e=(()=>{class H{constructor(he,be,Pe,Ee){this._httpClient=he,this._sanitizer=be,this._errorHandler=Ee,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=Pe}addSvgIcon(he,be,Pe){return this.addSvgIconInNamespace("",he,be,Pe)}addSvgIconLiteral(he,be,Pe){return this.addSvgIconLiteralInNamespace("",he,be,Pe)}addSvgIconInNamespace(he,be,Pe,Ee){return this._addSvgIconConfig(he,be,new q(Pe,null,Ee))}addSvgIconResolver(he){return this._resolvers.push(he),this}addSvgIconLiteralInNamespace(he,be,Pe,Ee){const j=this._sanitizer.sanitize(t.q3G.HTML,Pe);if(!j)throw ge(Pe);const Ve=ee(j);return this._addSvgIconConfig(he,be,new q("",Ve,Ee))}addSvgIconSet(he,be){return this.addSvgIconSetInNamespace("",he,be)}addSvgIconSetLiteral(he,be){return this.addSvgIconSetLiteralInNamespace("",he,be)}addSvgIconSetInNamespace(he,be,Pe){return this._addSvgIconSetConfig(he,new q(be,null,Pe))}addSvgIconSetLiteralInNamespace(he,be,Pe){const Ee=this._sanitizer.sanitize(t.q3G.HTML,be);if(!Ee)throw ge(be);const j=ee(Ee);return this._addSvgIconSetConfig(he,new q("",j,Pe))}registerFontClassAlias(he,be=he){return this._fontCssClassesByAlias.set(he,be),this}classNameForFontAlias(he){return this._fontCssClassesByAlias.get(he)||he}setDefaultFontSetClass(he){return this._defaultFontSetClass=he,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(he){const be=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,he);if(!be)throw re(he);const Pe=this._cachedIconsByUrl.get(be);return Pe?(0,a.of)(r(Pe)):this._loadSvgIconFromConfig(new q(he,null)).pipe((0,h.b)(Ee=>this._cachedIconsByUrl.set(be,Ee)),(0,L.U)(Ee=>r(Ee)))}getNamedSvgIcon(he,be=""){const Pe=u(be,he);let Ee=this._svgIconConfigs.get(Pe);if(Ee)return this._getSvgFromConfig(Ee);if(Ee=this._getIconConfigFromResolvers(be,he),Ee)return this._svgIconConfigs.set(Pe,Ee),this._getSvgFromConfig(Ee);const j=this._iconSetConfigs.get(be);return j?this._getSvgFromIconSetConfigs(he,j):(0,C._)(ue(Pe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(he){return he.svgText?(0,a.of)(r(this._svgElementFromConfig(he))):this._loadSvgIconFromConfig(he).pipe((0,L.U)(be=>r(be)))}_getSvgFromIconSetConfigs(he,be){const Pe=this._extractIconWithNameFromAnySet(he,be);if(Pe)return(0,a.of)(Pe);const Ee=be.filter(j=>!j.svgText).map(j=>this._loadSvgIconSetFromConfig(j).pipe((0,w.K)(Ve=>{const J=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,j.url)} failed: ${Ve.message}`;return this._errorHandler.handleError(new Error(J)),(0,a.of)(null)})));return(0,d.D)(Ee).pipe((0,L.U)(()=>{const j=this._extractIconWithNameFromAnySet(he,be);if(!j)throw ue(he);return j}))}_extractIconWithNameFromAnySet(he,be){for(let Pe=be.length-1;Pe>=0;Pe--){const Ee=be[Pe];if(Ee.svgText&&Ee.svgText.toString().indexOf(he)>-1){const j=this._svgElementFromConfig(Ee),Ve=this._extractSvgIconFromSet(j,he,Ee.options);if(Ve)return Ve}}return null}_loadSvgIconFromConfig(he){return this._fetchIcon(he).pipe((0,h.b)(be=>he.svgText=be),(0,L.U)(()=>this._svgElementFromConfig(he)))}_loadSvgIconSetFromConfig(he){return he.svgText?(0,a.of)(null):this._fetchIcon(he).pipe((0,h.b)(be=>he.svgText=be))}_extractSvgIconFromSet(he,be,Pe){const Ee=he.querySelector(`[id="${be}"]`);if(!Ee)return null;const j=Ee.cloneNode(!0);if(j.removeAttribute("id"),"svg"===j.nodeName.toLowerCase())return this._setSvgAttributes(j,Pe);if("symbol"===j.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(j),Pe);const Ve=this._svgElementFromString(ee(""));return Ve.appendChild(j),this._setSvgAttributes(Ve,Pe)}_svgElementFromString(he){const be=this._document.createElement("DIV");be.innerHTML=he;const Pe=be.querySelector("svg");if(!Pe)throw Error(" tag not found");return Pe}_toSvgElement(he){const be=this._svgElementFromString(ee("")),Pe=he.attributes;for(let Ee=0;Eeee(Ie)),(0,D.x)(()=>this._inProgressUrlFetches.delete(Ve)),(0,S.B)());return this._inProgressUrlFetches.set(Ve,J),J}_addSvgIconConfig(he,be,Pe){return this._svgIconConfigs.set(u(he,be),Pe),this}_addSvgIconSetConfig(he,be){const Pe=this._iconSetConfigs.get(he);return Pe?Pe.push(be):this._iconSetConfigs.set(he,[be]),this}_svgElementFromConfig(he){if(!he.svgElement){const be=this._svgElementFromString(he.svgText);this._setSvgAttributes(be,he.options),he.svgElement=be}return he.svgElement}_getIconConfigFromResolvers(he,be){for(let Pe=0;PeX?X.pathname+X.search:""}}}),y=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=y.map(H=>`[${H}]`).join(", "),_=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class H extends v{constructor(he,be,Pe,Ee,j){super(he),this._iconRegistry=be,this._location=Ee,this._errorHandler=j,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,Pe||he.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(he){this._inline=(0,f.Ig)(he)}get svgIcon(){return this._svgIcon}set svgIcon(he){he!==this._svgIcon&&(he?this._updateSvgIcon(he):this._svgIcon&&this._clearSvgElement(),this._svgIcon=he)}get fontSet(){return this._fontSet}set fontSet(he){const be=this._cleanupFontValue(he);be!==this._fontSet&&(this._fontSet=be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(he){const be=this._cleanupFontValue(he);be!==this._fontIcon&&(this._fontIcon=be,this._updateFontIconClasses())}_splitIconName(he){if(!he)return["",""];const be=he.split(":");switch(be.length){case 1:return["",be[0]];case 2:return be;default:throw Error(`Invalid icon name: "${he}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const he=this._elementsWithExternalReferences;if(he&&he.size){const be=this._location.getPathname();be!==this._previousPath&&(this._previousPath=be,this._prependPathToReferences(be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(he){this._clearSvgElement();const be=this._location.getPathname();this._previousPath=be,this._cacheChildrenWithExternalReferences(he),this._prependPathToReferences(be),this._elementRef.nativeElement.appendChild(he)}_clearSvgElement(){const he=this._elementRef.nativeElement;let be=he.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();be--;){const Pe=he.childNodes[be];(1!==Pe.nodeType||"svg"===Pe.nodeName.toLowerCase())&&Pe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const he=this._elementRef.nativeElement,be=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();be!=this._previousFontSetClass&&(this._previousFontSetClass&&he.classList.remove(this._previousFontSetClass),be&&he.classList.add(be),this._previousFontSetClass=be),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&he.classList.remove(this._previousFontIconClass),this.fontIcon&&he.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(he){return"string"==typeof he?he.trim().split(" ")[0]:he}_prependPathToReferences(he){const be=this._elementsWithExternalReferences;be&&be.forEach((Pe,Ee)=>{Pe.forEach(j=>{Ee.setAttribute(j.name,`url('${he}#${j.value}')`)})})}_cacheChildrenWithExternalReferences(he){const be=he.querySelectorAll(n),Pe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ee=0;Ee{const Ve=be[Ee],Me=Ve.getAttribute(j),J=Me?Me.match(_):null;if(J){let Ie=Pe.get(Ve);Ie||(Ie=[],Pe.set(Ve,Ie)),Ie.push({name:j,value:J[1]})}})}_updateSvgIcon(he){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),he){const[be,Pe]=this._splitIconName(he);be&&(this._svgNamespace=be),Pe&&(this._svgName=Pe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Pe,be).pipe((0,k.q)(1)).subscribe(Ee=>this._setSvgElement(Ee),Ee=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${be}:${Pe}! ${Ee.message}`))})}}}return H.\u0275fac=function(he){return new(he||H)(t.Y36(t.SBq),t.Y36(_e),t.$8M("aria-hidden"),t.Y36(T),t.Y36(t.qLn))},H.\u0275cmp=t.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(he,be){2&he&&(t.uIk("data-mat-icon-type",be._usingFontIcon()?"font":"svg")("data-mat-icon-name",be._svgName||be.fontIcon)("data-mat-icon-namespace",be._svgNamespace||be.fontSet),t.ekj("mat-icon-inline",be.inline)("mat-icon-no-color","primary"!==be.color&&"accent"!==be.color&&"warn"!==be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:Z,decls:1,vars:0,template:function(he,be){1&he&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;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}),H})(),N=(()=>{class H{}return H.\u0275fac=function(he){return new(he||H)},H.\u0275mod=t.oAB({type:H}),H.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),H})()},7531:(Be,K,p)=>{"use strict";p.d(K,{Jk:()=>E,Nt:()=>ae,c:()=>ee});var t=p(3191),e=p(925),f=p(5e3),M=p(3075),a=p(508),C=p(7322),d=p(7579),R=p(515);const h=(0,e.i$)({passive:!0});let L=(()=>{class ue{constructor(re,ge){this._platform=re,this._ngZone=ge,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return R.E;const ge=(0,t.fI)(re),q=this._monitoredElements.get(ge);if(q)return q.subject;const _e=new d.x,x="cdk-text-field-autofilled",i=r=>{"cdk-text-field-autofill-start"!==r.animationName||ge.classList.contains(x)?"cdk-text-field-autofill-end"===r.animationName&&ge.classList.contains(x)&&(ge.classList.remove(x),this._ngZone.run(()=>_e.next({target:r.target,isAutofilled:!1}))):(ge.classList.add(x),this._ngZone.run(()=>_e.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ge.addEventListener("animationstart",i,h),ge.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ge,{subject:_e,unlisten:()=>{ge.removeEventListener("animationstart",i,h)}}),_e}stopMonitoring(re){const ge=(0,t.fI)(re),q=this._monitoredElements.get(ge);q&&(q.unlisten(),q.subject.complete(),ge.classList.remove("cdk-text-field-autofill-monitored"),ge.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ge))}ngOnDestroy(){this._monitoredElements.forEach((re,ge)=>this.stopMonitoring(ge))}}return ue.\u0275fac=function(re){return new(re||ue)(f.LFG(e.t4),f.LFG(f.R0b))},ue.\u0275prov=f.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),S=(()=>{class ue{}return ue.\u0275fac=function(re){return new(re||ue)},ue.\u0275mod=f.oAB({type:ue}),ue.\u0275inj=f.cJS({}),ue})();const E=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),B=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const Y=(0,a.FD)(class{constructor(ue,ne,re,ge){this._defaultErrorStateMatcher=ue,this._parentForm=ne,this._parentFormGroup=re,this.ngControl=ge}});let ae=(()=>{class ue extends Y{constructor(re,ge,q,_e,x,i,r,u,c,v){super(i,_e,x,q),this._elementRef=re,this._platform=ge,this._autofillMonitor=u,this._formField=v,this._uid="mat-input-"+Z++,this.focused=!1,this.stateChanges=new d.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(y=>(0,e.qK)().has(y)),this._iOSKeyupListener=y=>{const n=y.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const T=this._elementRef.nativeElement,I=T.nodeName.toLowerCase();this._inputValueAccessor=r||T,this._previousNativeValue=this.value,this.id=this.id,ge.IOS&&c.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=T.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,t.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,ge,q,_e;return null!==(_e=null!==(re=this._required)&&void 0!==re?re:null===(q=null===(ge=this.ngControl)||void 0===ge?void 0:ge.control)||void 0===q?void 0:q.hasValidator(M.kI.required))&&void 0!==_e&&_e}set required(re){this._required=(0,t.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,t.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,ge;const q=(null===(ge=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===ge?void 0:ge.call(re))?null:this.placeholder;if(q!==this._previousPlaceholder){const _e=this._elementRef.nativeElement;this._previousPlaceholder=q,q?_e.setAttribute("placeholder",q):_e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){B.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,ge=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&ge&&ge.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return ue.\u0275fac=function(re){return new(re||ue)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(M.a5,10),f.Y36(M.F,8),f.Y36(M.sg,8),f.Y36(a.rD),f.Y36(E,10),f.Y36(L),f.Y36(f.R0b),f.Y36(C.G_,8))},ue.\u0275dir=f.lG2({type:ue,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(re,ge){1&re&&f.NdJ("focus",function(){return ge._focusChanged(!0)})("blur",function(){return ge._focusChanged(!1)})("input",function(){return ge._onInput()}),2&re&&(f.Ikx("disabled",ge.disabled)("required",ge.required),f.uIk("id",ge.id)("data-placeholder",ge.placeholder)("name",ge.name||null)("readonly",ge.readonly&&!ge._isNativeSelect||null)("aria-invalid",ge.empty&&ge.required?null:ge.errorState)("aria-required",ge.required),f.ekj("mat-input-server",ge._isServer)("mat-native-select-inline",ge._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:C.Eo,useExisting:ue}]),f.qOj,f.TTD]}),ue})(),ee=(()=>{class ue{}return ue.\u0275fac=function(re){return new(re||ue)},ue.\u0275mod=f.oAB({type:ue}),ue.\u0275inj=f.cJS({providers:[a.rD],imports:[[S,C.lN,a.BQ],S,C.lN]}),ue})()},4623:(Be,K,p)=>{"use strict";p.d(K,{Tg:()=>u,i$:()=>_e,ie:()=>_});var t=p(9808),e=p(5e3),f=p(508),M=p(3191),a=p(7579),C=p(2722),D=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const S=["*"],E=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],B=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ue=(0,f.Id)((0,f.Kr)(class{})),ne=(0,f.Kr)(class{}),re=new e.OlP("MatList"),ge=new e.OlP("MatNavList");let _e=(()=>{class V extends ue{constructor(H){super(),this._elementRef=H,this._stateChanges=new a.x,"action-list"===this._getListType()&&H.nativeElement.classList.add("mat-action-list")}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:re,useExisting:V}]),e.qOj,e.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(H,X){1&H&&(e.F$t(),e.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border: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{display:block;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{display:block;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 .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;z-index:1}.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}),V})(),x=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),V})(),i=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),V})(),u=(()=>{class V extends ne{constructor(H,X,he,be){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(he||be&&"action-list"===be._getListType()),this._list=he||be;const Pe=this._getHostElement();"button"===Pe.nodeName.toLowerCase()&&!Pe.hasAttribute("type")&&Pe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>{X.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,M.Ig)(H)}ngAfterContentInit(){(0,f.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 V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ge,8),e.Y36(re,8))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(H,X,he){if(1&H&&(e.Suo(he,x,5),e.Suo(he,i,5),e.Suo(he,f.X2,5)),2&H){let be;e.iGM(be=e.CRH())&&(X._avatar=be.first),e.iGM(be=e.CRH())&&(X._icon=be.first),e.iGM(be=e.CRH())&&(X._lines=be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(H,X){2&H&&e.ekj("mat-list-item-disabled",X.disabled)("mat-list-item-avatar",X._avatar||X._icon)("mat-list-item-with-avatar",X._avatar||X._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:B,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(H,X){1&H&&(e.F$t(E),e.TgZ(0,"span",0),e._UZ(1,"span",1),e.Hsn(2),e.TgZ(3,"span",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&H&&(e.xp6(1),e.Q6J("matRippleTrigger",X._getHostElement())("matRippleDisabled",X._isRippleDisabled()))},directives:[f.wG],encapsulation:2,changeDetection:0}),V})(),_=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[[f.uc,f.si,f.BQ,f.us,t.ez],f.uc,f.BQ,f.us,D.t]}),V})()},2181:(Be,K,p)=>{"use strict";p.d(K,{OP:()=>H,Tx:()=>we,VK:()=>Ee,p6:()=>Oe});var t=p(5664),e=p(3191),f=p(1159),M=p(5e3),a=p(7579),C=p(727),d=p(6451),R=p(9646),h=p(3101),L=p(8675),w=p(3900),D=p(5698),S=p(2722),k=p(9300),E=p(4086),B=p(1777),Z=p(7429),Y=p(9808),ae=p(508),ee=p(9776),ue=p(925),ne=p(226),re=p(5303);const ge=["mat-menu-item",""];function q(ce,Te){1&ce&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const _e=["*"];function x(ce,Te){if(1&ce){const xe=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(te){return M.CHM(xe),M.oxw()._handleKeydown(te)})("click",function(){return M.CHM(xe),M.oxw().closed.emit("click")})("@transformMenu.start",function(te){return M.CHM(xe),M.oxw()._onAnimationStart(te)})("@transformMenu.done",function(te){return M.CHM(xe),M.oxw()._onAnimationDone(te)}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&ce){const xe=M.oxw();M.Q6J("id",xe.panelId)("ngClass",xe._classList)("@transformMenu",xe._panelAnimationState),M.uIk("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const i={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)")])])},c=new M.OlP("MatMenuContent"),V=new M.OlP("MAT_MENU_PANEL"),N=(0,ae.Kr)((0,ae.Id)(class{}));let H=(()=>{class ce extends N{constructor(xe,W,te,Ce,fe){var Q;super(),this._elementRef=xe,this._document=W,this._focusMonitor=te,this._parentMenu=Ce,this._changeDetectorRef=fe,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Q=null==Ce?void 0:Ce.addItem)||void 0===Q||Q.call(Ce,this)}focus(xe,W){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,W):this._getHostElement().focus(W),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(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var xe;const W=this._elementRef.nativeElement.cloneNode(!0),te=W.querySelectorAll("mat-icon, .material-icons");for(let Ce=0;Ce{class ce{constructor(xe,W,te,Ce){this._elementRef=xe,this._ngZone=W,this._defaultOptions=te,this._changeDetectorRef=Ce,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=C.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 M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+be++}get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(xe){this._overlapTrigger=(0,e.Ig)(xe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xe){this._hasBackdrop=(0,e.Ig)(xe)}set panelClass(xe){const W=this._previousPanelClass;W&&W.length&&W.split(" ").forEach(te=>{this._classList[te]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(te=>{this._classList[te]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new t.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,w.w)(xe=>(0,d.T)(...xe.map(W=>W._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{var W;const te=this._keyManager;if("enter"===this._panelAnimationState&&(null===(W=te.activeItem)||void 0===W?void 0:W._hasFocus())){const Ce=xe.toArray(),fe=Math.max(0,Math.min(Ce.length-1,te.activeItemIndex||0));Ce[fe]&&!Ce[fe].disabled?te.setActiveItem(fe):te.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,w.w)(W=>(0,d.T)(...W.map(te=>te._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const W=xe.keyCode,te=this._keyManager;switch(W){case f.hY:(0,f.Vb)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(W===f.LH||W===f.JH)&&te.setFocusOrigin("keyboard"),void te.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{let W=null;if(this._directDescendantItems.length&&(W=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!W||!W.contains(document.activeElement)){const te=this._keyManager;te.setFocusOrigin(xe).setFirstItemActive(),!te.activeItem&&W&&W.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){const W=Math.min(this._baseElevation+xe,24),te=`${this._elevationPrefix}${W}`,Ce=Object.keys(this._classList).find(fe=>fe.startsWith(this._elevationPrefix));(!Ce||Ce===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[te]=!0,this._previousElevation=te)}setPositionClasses(xe=this.xPosition,W=this.yPosition){var te;const Ce=this._classList;Ce["mat-menu-before"]="before"===xe,Ce["mat-menu-after"]="after"===xe,Ce["mat-menu-above"]="above"===W,Ce["mat-menu-below"]="below"===W,null===(te=this._changeDetectorRef)||void 0===te||te.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(W=>W._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ce.\u0275fac=function(xe){return new(xe||ce)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(X),M.Y36(M.sBO))},ce.\u0275dir=M.lG2({type:ce,contentQueries:function(xe,W,te){if(1&xe&&(M.Suo(te,c,5),M.Suo(te,H,5),M.Suo(te,H,4)),2&xe){let Ce;M.iGM(Ce=M.CRH())&&(W.lazyContent=Ce.first),M.iGM(Ce=M.CRH())&&(W._allItems=Ce),M.iGM(Ce=M.CRH())&&(W.items=Ce)}},viewQuery:function(xe,W){if(1&xe&&M.Gf(M.Rgc,5),2&xe){let te;M.iGM(te=M.CRH())&&(W.templateRef=te.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ce})(),Ee=(()=>{class ce extends Pe{constructor(xe,W,te,Ce){super(xe,W,te,Ce),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ce.\u0275fac=function(xe){return new(xe||ce)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(X),M.Y36(M.sBO))},ce.\u0275cmp=M.Xpm({type:ce,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(xe,W){2&xe&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:V,useExisting:ce}]),M.qOj],ngContentSelectors:_e,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(xe,W){1&xe&&(M.F$t(),M.YNc(0,x,3,6,"ng-template"))},directives:[Y.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;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.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}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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:[i.transformMenu,i.fadeInItems]},changeDetection:0}),ce})();const j=new M.OlP("mat-menu-scroll-strategy"),Me={provide:j,deps:[ee.aV],useFactory:function Ve(ce){return()=>ce.scrollStrategies.reposition()}},Ie=(0,ue.i$)({passive:!0});let ut=(()=>{class ce{constructor(xe,W,te,Ce,fe,Q,pt,tt,Dt){this._overlay=xe,this._element=W,this._viewContainerRef=te,this._menuItemInstance=Q,this._dir=pt,this._focusMonitor=tt,this._ngZone=Dt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w0.EMPTY,this._hoverSubscription=C.w0.EMPTY,this._menuCloseSubscription=C.w0.EMPTY,this._handleTouchStart=di=>{(0,t.yG)(di)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Ce,this._parentMaterialMenu=fe instanceof Pe?fe:void 0,W.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ie),Q&&(Q._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(W=>{this._destroyMenu(W),("click"===W||"tab"===W)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(W)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ie),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const xe=this._createOverlay(),W=xe.getConfig(),te=W.positionStrategy;this._setPosition(te),W.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,xe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Pe&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,S.R)(this.menu.close)).subscribe(()=>{te.withLockedPosition(!1).reapplyLastPosition(),te.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(xe,W){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,W):this._element.nativeElement.focus(W)}updatePosition(){var xe;null===(xe=this._overlayRef)||void 0===xe||xe.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const W=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,W instanceof Pe?(W._resetAnimation(),W.lazyContent?W._animationDone.pipe((0,k.h)(te=>"void"===te.toState),(0,D.q)(1),(0,S.R)(W.lazyContent._attached)).subscribe({next:()=>W.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),W.lazyContent&&W.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 xe=0,W=this.menu.parentMenu;for(;W;)xe++,W=W.parentMenu;this.menu.setElevation(xe)}}_setIsMenuOpen(xe){this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const xe=this._getOverlayConfig();this._subscribeToPositions(xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.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(xe){this.menu.setPositionClasses&&xe.positionChanges.subscribe(W=>{const te="start"===W.connectionPair.overlayX?"after":"before",Ce="top"===W.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(te,Ce)):this.menu.setPositionClasses(te,Ce)})}_setPosition(xe){let[W,te]="before"===this.menu.xPosition?["end","start"]:["start","end"],[Ce,fe]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Q,pt]=[Ce,fe],[tt,Dt]=[W,te],di=0;this.triggersSubmenu()?(Dt=W="before"===this.menu.xPosition?"start":"end",te=tt="end"===W?"start":"end",di="bottom"===Ce?8:-8):this.menu.overlapTrigger||(Q="top"===Ce?"bottom":"top",pt="top"===fe?"bottom":"top"),xe.withPositions([{originX:W,originY:Q,overlayX:tt,overlayY:Ce,offsetY:di},{originX:te,originY:Q,overlayX:Dt,overlayY:Ce,offsetY:di},{originX:W,originY:pt,overlayX:tt,overlayY:fe,offsetY:-di},{originX:te,originY:pt,overlayX:Dt,overlayY:fe,offsetY:-di}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),W=this._overlayRef.detachments(),te=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),Ce=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(fe=>fe!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,R.of)();return(0,d.T)(xe,te,Ce,W)}_handleMousedown(xe){(0,t.X6)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const W=xe.keyCode;(W===f.K5||W===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(W===f.SV&&"ltr"===this.dir||W===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,E.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,D.q)(1),(0,E.g)(0,h.E),(0,S.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ce.\u0275fac=function(xe){return new(xe||ce)(M.Y36(ee.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(j),M.Y36(V,8),M.Y36(H,10),M.Y36(ne.Is,8),M.Y36(t.tE),M.Y36(M.R0b))},ce.\u0275dir=M.lG2({type:ce,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(xe,W){1&xe&&M.NdJ("click",function(Ce){return W._handleClick(Ce)})("mousedown",function(Ce){return W._handleMousedown(Ce)})("keydown",function(Ce){return W._handleKeydown(Ce)}),2&xe&&M.uIk("aria-expanded",W.menuOpen||null)("aria-controls",W.menuOpen?W.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ce})(),Oe=(()=>{class ce extends ut{}return ce.\u0275fac=function(){let Te;return function(W){return(Te||(Te=M.n5z(ce)))(W||ce)}}(),ce.\u0275dir=M.lG2({type:ce,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),ce})(),we=(()=>{class ce{}return ce.\u0275fac=function(xe){return new(xe||ce)},ce.\u0275mod=M.oAB({type:ce}),ce.\u0275inj=M.cJS({providers:[Me],imports:[[Y.ez,ae.BQ,ae.si,ee.U8],re.ZD,ae.BQ]}),ce})()},6087:(Be,K,p)=>{"use strict";p.d(K,{NW:()=>ge,TU:()=>q,ye:()=>B});var t=p(9808),e=p(5e3),f=p(508),M=p(7423),a=p(4107),C=p(7238),d=p(3191),R=p(7579),h=p(7322);function L(_e,x){if(1&_e&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&_e){const i=x.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}function w(_e,x){if(1&_e){const i=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(u){return e.CHM(i),e.oxw(2)._changePageSize(u.value)}),e.YNc(2,L,2,2,"mat-option",18),e.qZA()()}if(2&_e){const i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function D(_e,x){if(1&_e&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&_e){const i=e.oxw(2);e.xp6(1),e.Oqu(i.pageSize)}}function S(_e,x){if(1&_e&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,w,3,6,"mat-form-field",14),e.YNc(4,D,2,1,"div",15),e.qZA()),2&_e){const i=e.oxw();e.xp6(2),e.hij(" ",i._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function k(_e,x){if(1&_e){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(i),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&_e){const i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function E(_e,x){if(1&_e){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(i),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&_e){const i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}let B=(()=>{class _e{constructor(){this.changes=new R.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,r,u)=>{if(0==u||0==r)return`0 of ${u}`;const c=i*r;return`${c+1} \u2013 ${c<(u=Math.max(u,0))?Math.min(c+r,u):c+r} of ${u}`}}}return _e.\u0275fac=function(i){return new(i||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Y={provide:B,deps:[[new e.FiY,new e.tp0,B]],useFactory:function Z(_e){return _e||new B}},ue=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ne=(0,f.Id)((0,f.dB)(class{}));let re=(()=>{class _e extends ne{constructor(i,r,u){if(super(),this._intl=i,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new e.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:c,pageSizeOptions:v,hidePageSize:T,showFirstLastButtons:I}=u;null!=c&&(this._pageSize=c),null!=v&&(this._pageSizeOptions=v),null!=T&&(this._hidePageSize=T),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,d.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,d.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,d.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,d.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,d.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndexi-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return _e.\u0275fac=function(i){e.$Z()},_e.\u0275dir=e.lG2({type:_e,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[e.qOj]}),_e})(),ge=(()=>{class _e extends re{constructor(i,r,u){super(i,r,u),u&&null!=u.formFieldAppearance&&(this._formFieldAppearance=u.formFieldAppearance)}}return _e.\u0275fac=function(i){return new(i||_e)(e.Y36(B),e.Y36(e.sBO),e.Y36(ue,8))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.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(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,S,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,k,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return r.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return r.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,E,3,5,"button",11),e.qZA()()()),2&i&&(e.xp6(2),e.Q6J("ngIf",!r.hidePageSize),e.xp6(3),e.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),e.xp6(1),e.Q6J("ngIf",r.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),e.uIk("aria-label",r._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),e.uIk("aria-label",r._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",r.showFirstLastButtons))},directives:[h.KE,a.gD,f.ey,M.lW,t.O5,t.sg,C.gM],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)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),_e})(),q=(()=>{class _e{}return _e.\u0275fac=function(i){return new(i||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({providers:[Y],imports:[[t.ez,M.ot,a.LD,C.AV,f.BQ]]}),_e})()},5899:(Be,K,p)=>{"use strict";p.d(K,{Cv:()=>Z,pW:()=>E});var t=p(5e3),e=p(9808),f=p(508),M=p(3191),a=p(6360),C=p(727),d=p(4968),R=p(9300);const h=["primaryValueBar"],L=(0,f.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),w=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function D(){const Y=(0,t.f3M)(e.K0),ae=Y?Y.location:null;return{getPathname:()=>ae?ae.pathname+ae.search:""}}}),S=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,E=(()=>{class Y extends L{constructor(ee,ue,ne,re,ge,q){super(ee),this._ngZone=ue,this._animationMode=ne,this._changeDetectorRef=q,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=C.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const _e=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${_e}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ne,ge&&(ge.color&&(this.color=this.defaultColor=ge.color),this.mode=ge.mode||this.mode)}get value(){return this._value}set value(ee){var ue;this._value=B((0,M.su)(ee)||0),null===(ue=this._changeDetectorRef)||void 0===ue||ue.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(ee){var ue;this._bufferValue=B(ee||0),null===(ue=this._changeDetectorRef)||void 0===ue||ue.markForCheck()}_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 ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,d.R)(ee,"transitionend").pipe((0,R.h)(ue=>ue.target===ee)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return Y.\u0275fac=function(ee){return new(ee||Y)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.Qb,8),t.Y36(w,8),t.Y36(S,8),t.Y36(t.sBO))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["mat-progress-bar"]],viewQuery:function(ee,ue){if(1&ee&&t.Gf(h,5),2&ee){let ne;t.iGM(ne=t.CRH())&&(ue._primaryValueBar=ne.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,ue){2&ee&&(t.uIk("aria-valuenow","indeterminate"===ue.mode||"query"===ue.mode?null:ue.value)("mode",ue.mode),t.ekj("_mat-animation-noopable",ue._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.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(ee,ue){1&ee&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&ee&&(t.xp6(3),t.Q6J("id",ue.progressbarId),t.xp6(2),t.uIk("fill",ue._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",ue._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",ue._primaryTransform()))},directives:[e.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}),Y})();function B(Y,ae=0,ee=100){return Math.max(ae,Math.min(ee,Y))}let Z=(()=>{class Y{}return Y.\u0275fac=function(ee){return new(ee||Y)},Y.\u0275mod=t.oAB({type:Y}),Y.\u0275inj=t.cJS({imports:[[e.ez,f.BQ],f.BQ]}),Y})()},773:(Be,K,p)=>{"use strict";p.d(K,{Cq:()=>Y,Ou:()=>Z});var t=p(3191),e=p(925),f=p(9808),M=p(5e3),a=p(508),C=p(6360),d=p(727),R=p(5303);function h(ee,ue){if(1&ee&&(M.O4$(),M._UZ(0,"circle",4)),2&ee){const ne=M.oxw(),re=M.MAs(1);M.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ne._spinnerAnimationLabel)("stroke-dashoffset",ne._getStrokeDashOffset(),"px")("stroke-dasharray",ne._getStrokeCircumference(),"px")("stroke-width",ne._getCircleStrokeWidth(),"%")("transform-origin",ne._getCircleTransformOrigin(re)),M.uIk("r",ne._getCircleRadius())}}function L(ee,ue){if(1&ee&&(M.O4$(),M._UZ(0,"circle",4)),2&ee){const ne=M.oxw(),re=M.MAs(1);M.Udp("stroke-dashoffset",ne._getStrokeDashOffset(),"px")("stroke-dasharray",ne._getStrokeCircumference(),"px")("stroke-width",ne._getCircleStrokeWidth(),"%")("transform-origin",ne._getCircleTransformOrigin(re)),M.uIk("r",ne._getCircleRadius())}}const S=(0,a.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),k=new M.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function E(){return{diameter:100}}});class Z extends S{constructor(ue,ne,re,ge,q,_e,x,i){super(ue),this._document=re,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=Z._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(re.head)||r.set(re.head,new Set([100])),this._noopAnimations="NoopAnimations"===ge&&!!q&&!q._forceAnimations,"mat-spinner"===ue.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),q&&(q.diameter&&(this.diameter=q.diameter),q.strokeWidth&&(this.strokeWidth=q.strokeWidth)),ne.isBrowser&&ne.SAFARI&&x&&_e&&i&&(this._resizeSubscription=x.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>_e.markForCheck())}))}get diameter(){return this._diameter}set diameter(ue){this._diameter=(0,t.su)(ue),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ue){this._strokeWidth=(0,t.su)(ue)}get value(){return"determinate"===this.mode?this._value:0}set value(ue){this._value=Math.max(0,Math.min(100,(0,t.su)(ue)))}ngOnInit(){const ue=this._elementRef.nativeElement;this._styleRoot=(0,e.kV)(ue)||this._document.head,this._attachStyleNode(),ue.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ue=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ue} ${ue}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(ue){var ne;const re=50*(null!==(ne=ue.currentScale)&&void 0!==ne?ne:1);return`${re}% ${re}%`}_attachStyleNode(){const ue=this._styleRoot,ne=this._diameter,re=Z._diameters;let ge=re.get(ue);if(!ge||!ge.has(ne)){const q=this._document.createElement("style");q.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),q.textContent=this._getAnimationText(),ue.appendChild(q),ge||(ge=new Set,re.set(ue,ge)),ge.add(ne)}}_getAnimationText(){const ue=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*ue).replace(/END_VALUE/g,""+.2*ue).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Z._diameters=new WeakMap,Z.\u0275fac=function(ue){return new(ue||Z)(M.Y36(M.SBq),M.Y36(e.t4),M.Y36(f.K0,8),M.Y36(C.Qb,8),M.Y36(k),M.Y36(M.sBO),M.Y36(R.rL),M.Y36(M.R0b))},Z.\u0275cmp=M.Xpm({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ue,ne){2&ue&&(M.uIk("aria-valuemin","determinate"===ne.mode?0:null)("aria-valuemax","determinate"===ne.mode?100:null)("aria-valuenow","determinate"===ne.mode?ne.value:null)("mode",ne.mode),M.Udp("width",ne.diameter,"px")("height",ne.diameter,"px"),M.ekj("_mat-animation-noopable",ne._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[M.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ue,ne){1&ue&&(M.O4$(),M.TgZ(0,"svg",0,1),M.YNc(2,h,1,11,"circle",2),M.YNc(3,L,1,9,"circle",3),M.qZA()),2&ue&&(M.Udp("width",ne.diameter,"px")("height",ne.diameter,"px"),M.Q6J("ngSwitch","indeterminate"===ne.mode),M.uIk("viewBox",ne._getViewBox()),M.xp6(2),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1))},directives:[f.RF,f.n9],styles:[".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;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: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}@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)}}\n"],encapsulation:2,changeDetection:0});let Y=(()=>{class ee{}return ee.\u0275fac=function(ne){return new(ne||ee)},ee.\u0275mod=M.oAB({type:ee}),ee.\u0275inj=M.cJS({imports:[[a.BQ,f.ez],a.BQ]}),ee})()},9814:(Be,K,p)=>{"use strict";p.d(K,{Fk:()=>re,U0:()=>ne,VQ:()=>Y});var t=p(5e3),e=p(508),f=p(3191),M=p(3075),a=p(6360),C=p(5664),d=p(449);const R=["input"],h=function(ge){return{enterDuration:ge}},L=["*"],w=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function D(){return{color:"accent"}}});let S=0;const k={provide:M.JU,useExisting:(0,t.Gpc)(()=>Y),multi:!0};class E{constructor(q,_e){this.source=q,this.value=_e}}const B=new t.OlP("MatRadioGroup");let Z=(()=>{class ge{constructor(_e){this._changeDetector=_e,this._value=null,this._name="mat-radio-group-"+S++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}get name(){return this._name}set name(_e){this._name=_e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(_e){this._labelPosition="before"===_e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(_e){this._value!==_e&&(this._value=_e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(_e){this._selected=_e,this.value=_e?_e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(_e){this._disabled=(0,f.Ig)(_e),this._markRadiosForCheck()}get required(){return this._required}set required(_e){this._required=(0,f.Ig)(_e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(_e=>{_e.name=this.name,_e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(x=>{x.checked=this.value===x.value,x.checked&&(this._selected=x)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new E(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(_e=>_e._markForCheck())}writeValue(_e){this.value=_e,this._changeDetector.markForCheck()}registerOnChange(_e){this._controlValueAccessorChangeFn=_e}registerOnTouched(_e){this.onTouched=_e}setDisabledState(_e){this.disabled=_e,this._changeDetector.markForCheck()}}return ge.\u0275fac=function(_e){return new(_e||ge)(t.Y36(t.sBO))},ge.\u0275dir=t.lG2({type:ge,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ge})(),Y=(()=>{class ge extends Z{}return ge.\u0275fac=function(){let q;return function(x){return(q||(q=t.n5z(ge)))(x||ge)}}(),ge.\u0275dir=t.lG2({type:ge,selectors:[["mat-radio-group"]],contentQueries:function(_e,x,i){if(1&_e&&t.Suo(i,ne,5),2&_e){let r;t.iGM(r=t.CRH())&&(x._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([k,{provide:B,useExisting:ge}]),t.qOj]}),ge})();class ae{constructor(q){this._elementRef=q}}const ee=(0,e.Kr)((0,e.sb)(ae));let ue=(()=>{class ge extends ee{constructor(_e,x,i,r,u,c,v,T){super(x),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=u,this._providerOverride=v,this._uniqueId="mat-radio-"+ ++S,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=_e,this._noopAnimations="NoopAnimations"===c,T&&(this.tabIndex=(0,f.su)(T,0)),this._removeUniqueSelectionListener=u.listen((I,y)=>{I!==this.id&&y===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(_e){const x=(0,f.Ig)(_e);this._checked!==x&&(this._checked=x,x&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!x&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),x&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(_e){this._value!==_e&&(this._value=_e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===_e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(_e){this._labelPosition=_e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(_e){this._setDisabled((0,f.Ig)(_e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(_e){this._required=(0,f.Ig)(_e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(_e){this._color=_e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(_e,x){x?this._focusMonitor.focusVia(this._inputElement,x,_e):this._inputElement.nativeElement.focus(_e)}_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)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(_e=>{!_e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new E(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(_e){_e.stopPropagation()}_onInputInteraction(_e){if(_e.stopPropagation(),!this.checked&&!this.disabled){const x=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),x&&this.radioGroup._emitChangeEvent())}}_setDisabled(_e){this._disabled!==_e&&(this._disabled=_e,this._changeDetector.markForCheck())}_updateTabIndex(){var _e;const x=this.radioGroup;let i;if(i=x&&x.selected&&!this.disabled?x.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=null===(_e=this._inputElement)||void 0===_e?void 0:_e.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}}return ge.\u0275fac=function(_e){t.$Z()},ge.\u0275dir=t.lG2({type:ge,viewQuery:function(_e,x){if(1&_e&&t.Gf(R,5),2&_e){let i;t.iGM(i=t.CRH())&&(x._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]}),ge})(),ne=(()=>{class ge extends ue{constructor(_e,x,i,r,u,c,v,T){super(_e,x,i,r,u,c,v,T)}}return ge.\u0275fac=function(_e){return new(_e||ge)(t.Y36(B,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(C.tE),t.Y36(d.A8),t.Y36(a.Qb,8),t.Y36(w,8),t.$8M("tabindex"))},ge.\u0275cmp=t.Xpm({type:ge,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(_e,x){1&_e&&t.NdJ("focus",function(){return x._inputElement.nativeElement.focus()}),2&_e&&(t.uIk("tabindex",null)("id",x.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",x.checked)("mat-radio-disabled",x.disabled)("_mat-animation-noopable",x._noopAnimations)("mat-primary","primary"===x.color)("mat-accent","accent"===x.color)("mat-warn","warn"===x.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:L,decls:13,vars:19,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",3,"id","checked","disabled","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(_e,x){if(1&_e&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(r){return x._onInputInteraction(r)})("click",function(r){return x._onInputClick(r)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&_e){const i=t.MAs(1);t.uIk("for",x.inputId),t.xp6(5),t.Q6J("id",x.inputId)("checked",x.checked)("disabled",x.disabled)("required",x.required),t.uIk("name",x.name)("value",x.value)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledby)("aria-describedby",x.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",x._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,h,x._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==x.labelPosition)}},directives:[e.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-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;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-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{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.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}),ge})(),re=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275mod=t.oAB({type:ge}),ge.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),ge})()},4107:(Be,K,p)=>{"use strict";p.d(K,{$L:()=>ut,LD:()=>ce,gD:()=>we});var t=p(9776),e=p(9808),f=p(5e3),M=p(508),a=p(7322),C=p(5303),d=p(5664),R=p(3191),h=p(449),L=p(1159),w=p(3075),D=p(7579),S=p(9770),k=p(6451),E=p(8675),B=p(3900),Z=p(5698),Y=p(9300),ae=p(4004),ee=p(1884),ue=p(2722),ne=p(1777),re=p(226);const ge=["trigger"],q=["panel"];function _e(Te,xe){if(1&Te&&(f.TgZ(0,"span",8),f._uU(1),f.qZA()),2&Te){const W=f.oxw();f.xp6(1),f.Oqu(W.placeholder)}}function x(Te,xe){if(1&Te&&(f.TgZ(0,"span",12),f._uU(1),f.qZA()),2&Te){const W=f.oxw(2);f.xp6(1),f.Oqu(W.triggerValue)}}function i(Te,xe){1&Te&&f.Hsn(0,0,["*ngSwitchCase","true"])}function r(Te,xe){if(1&Te&&(f.TgZ(0,"span",9),f.YNc(1,x,2,1,"span",10),f.YNc(2,i,1,0,"ng-content",11),f.qZA()),2&Te){const W=f.oxw();f.Q6J("ngSwitch",!!W.customTrigger),f.xp6(2),f.Q6J("ngSwitchCase",!0)}}function u(Te,xe){if(1&Te){const W=f.EpF();f.TgZ(0,"div",13)(1,"div",14,15),f.NdJ("@transformPanel.done",function(Ce){return f.CHM(W),f.oxw()._panelDoneAnimatingStream.next(Ce.toState)})("keydown",function(Ce){return f.CHM(W),f.oxw()._handleKeydown(Ce)}),f.Hsn(3,1),f.qZA()()}if(2&Te){const W=f.oxw();f.Q6J("@transformPanelWrap",void 0),f.xp6(1),f.Gre("mat-select-panel ",W._getPanelTheme(),""),f.Udp("transform-origin",W._transformOrigin)("font-size",W._triggerFontSize,"px"),f.Q6J("ngClass",W.panelClass)("@transformPanel",W.multiple?"showing-multiple":"showing"),f.uIk("id",W.id+"-panel")("aria-multiselectable",W.multiple)("aria-label",W.ariaLabel||null)("aria-labelledby",W._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],v=["mat-select-trigger","*"],T={transformPanelWrap:(0,ne.X$)("transformPanelWrap",[(0,ne.eR)("* => void",(0,ne.IO)("@transformPanel",[(0,ne.pV)()],{optional:!0}))]),transformPanel:(0,ne.X$)("transformPanel",[(0,ne.SB)("void",(0,ne.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ne.SB)("showing",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ne.SB)("showing-multiple",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ne.eR)("void => *",(0,ne.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ne.eR)("* => void",(0,ne.jt)("100ms 25ms linear",(0,ne.oB)({opacity:0})))])};let _=0;const V=256,Pe=new f.OlP("mat-select-scroll-strategy"),j=new f.OlP("MAT_SELECT_CONFIG"),Ve={provide:Pe,deps:[t.aV],useFactory:function Ee(Te){return()=>Te.scrollStrategies.reposition()}};class Me{constructor(xe,W){this.source=xe,this.value=W}}const J=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Te,xe,W,te,Ce){this._elementRef=Te,this._defaultErrorStateMatcher=xe,this._parentForm=W,this._parentFormGroup=te,this.ngControl=Ce}})))),Ie=new f.OlP("MatSelectTrigger");let ut=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275dir=f.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[f._Bn([{provide:Ie,useExisting:Te}])]}),Te})(),Oe=(()=>{class Te extends J{constructor(W,te,Ce,fe,Q,pt,tt,Dt,di,Yt,Zt,ui,Ot,Nt){var gt,it,bt;super(Q,fe,tt,Dt,Yt),this._viewportRuler=W,this._changeDetectorRef=te,this._ngZone=Ce,this._dir=pt,this._parentFormField=di,this._liveAnnouncer=Ot,this._defaultOptions=Nt,this._panelOpen=!1,this._compareWith=(ti,Qt)=>ti===Qt,this._uid="mat-select-"+_++,this._triggerAriaLabelledBy=null,this._destroy=new D.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_++,this._panelDoneAnimatingStream=new D.x,this._overlayPanelClass=(null===(gt=this._defaultOptions)||void 0===gt?void 0:gt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(bt=null===(it=this._defaultOptions)||void 0===it?void 0:it.disableOptionCentering)&&void 0!==bt&&bt,this.ariaLabel="",this.optionSelectionChanges=(0,S.P)(()=>{const ti=this.options;return ti?ti.changes.pipe((0,E.O)(ti),(0,B.w)(()=>(0,k.T)(...ti.map(Qt=>Qt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,B.w)(()=>this.optionSelectionChanges))}),this.openedChange=new f.vpe,this._openedStream=this.openedChange.pipe((0,Y.h)(ti=>ti),(0,ae.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Y.h)(ti=>!ti),(0,ae.U)(()=>{})),this.selectionChange=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Nt?void 0:Nt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Nt.typeaheadDebounceInterval),this._scrollStrategyFactory=ui,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Zt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(W){this._placeholder=W,this.stateChanges.next()}get required(){var W,te,Ce,fe;return null!==(fe=null!==(W=this._required)&&void 0!==W?W:null===(Ce=null===(te=this.ngControl)||void 0===te?void 0:te.control)||void 0===Ce?void 0:Ce.hasValidator(w.kI.required))&&void 0!==fe&&fe}set required(W){this._required=(0,R.Ig)(W),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,R.Ig)(W)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(W){this._disableOptionCentering=(0,R.Ig)(W)}get compareWith(){return this._compareWith}set compareWith(W){this._compareWith=W,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(W){this._assignValue(W)&&this._onChange(W)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(W){this._typeaheadDebounceInterval=(0,R.su)(W)}get id(){return this._id}set id(W){this._id=W||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,ue.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ue.R)(this._destroy)).subscribe(W=>{W.added.forEach(te=>te.select()),W.removed.forEach(te=>te.deselect())}),this.options.changes.pipe((0,E.O)(null),(0,ue.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const W=this._getTriggerAriaLabelledby(),te=this.ngControl;if(W!==this._triggerAriaLabelledBy){const Ce=this._elementRef.nativeElement;this._triggerAriaLabelledBy=W,W?Ce.setAttribute("aria-labelledby",W):Ce.removeAttribute("aria-labelledby")}te&&(this._previousControl!==te.control&&(void 0!==this._previousControl&&null!==te.disabled&&te.disabled!==this.disabled&&(this.disabled=te.disabled),this._previousControl=te.control),this.updateErrorState())}ngOnChanges(W){W.disabled&&this.stateChanges.next(),W.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(W){this._assignValue(W)}registerOnChange(W){this._onChange=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var W,te;return this.multiple?(null===(W=this._selectionModel)||void 0===W?void 0:W.selected)||[]:null===(te=this._selectionModel)||void 0===te?void 0:te.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const W=this._selectionModel.selected.map(te=>te.viewValue);return this._isRtl()&&W.reverse(),W.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(W){this.disabled||(this.panelOpen?this._handleOpenKeydown(W):this._handleClosedKeydown(W))}_handleClosedKeydown(W){const te=W.keyCode,Ce=te===L.JH||te===L.LH||te===L.oh||te===L.SV,fe=te===L.K5||te===L.L_,Q=this._keyManager;if(!Q.isTyping()&&fe&&!(0,L.Vb)(W)||(this.multiple||W.altKey)&&Ce)W.preventDefault(),this.open();else if(!this.multiple){const pt=this.selected;Q.onKeydown(W);const tt=this.selected;tt&&pt!==tt&&this._liveAnnouncer.announce(tt.viewValue,1e4)}}_handleOpenKeydown(W){const te=this._keyManager,Ce=W.keyCode,fe=Ce===L.JH||Ce===L.LH,Q=te.isTyping();if(fe&&W.altKey)W.preventDefault(),this.close();else if(Q||Ce!==L.K5&&Ce!==L.L_||!te.activeItem||(0,L.Vb)(W))if(!Q&&this._multiple&&Ce===L.A&&W.ctrlKey){W.preventDefault();const pt=this.options.some(tt=>!tt.disabled&&!tt.selected);this.options.forEach(tt=>{tt.disabled||(pt?tt.select():tt.deselect())})}else{const pt=te.activeItemIndex;te.onKeydown(W),this._multiple&&fe&&W.shiftKey&&te.activeItem&&te.activeItemIndex!==pt&&te.activeItem._selectViaInteraction()}else W.preventDefault(),te.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,Z.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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(W){if(this._selectionModel.selected.forEach(te=>te.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&W)Array.isArray(W),W.forEach(te=>this._selectOptionByValue(te)),this._sortValues();else{const te=this._selectOptionByValue(W);te?this._keyManager.updateActiveItem(te):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(W){const te=this.options.find(Ce=>{if(this._selectionModel.isSelected(Ce))return!1;try{return null!=Ce.value&&this._compareWith(Ce.value,W)}catch(fe){return!1}});return te&&this._selectionModel.select(te),te}_assignValue(W){return!!(W!==this._value||this._multiple&&Array.isArray(W))&&(this.options&&this._setSelectionByValue(W),this._value=W,!0)}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ue.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ue.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 W=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ue.R)(W)).subscribe(te=>{this._onSelect(te.source,te.isUserInput),te.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(te=>te._stateChanges)).pipe((0,ue.R)(W)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(W,te){const Ce=this._selectionModel.isSelected(W);null!=W.value||this._multiple?(Ce!==W.selected&&(W.selected?this._selectionModel.select(W):this._selectionModel.deselect(W)),te&&this._keyManager.setActiveItem(W),this.multiple&&(this._sortValues(),te&&this.focus())):(W.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(W.value)),Ce!==this._selectionModel.isSelected(W)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const W=this.options.toArray();this._selectionModel.sort((te,Ce)=>this.sortComparator?this.sortComparator(te,Ce,W):W.indexOf(te)-W.indexOf(Ce)),this.stateChanges.next()}}_propagateChanges(W){let te=null;te=this.multiple?this.selected.map(Ce=>Ce.value):this.selected?this.selected.value:W,this._value=te,this.valueChange.emit(te),this._onChange(te),this.selectionChange.emit(this._getChangeEvent(te)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var W;return!this._panelOpen&&!this.disabled&&(null===(W=this.options)||void 0===W?void 0:W.length)>0}focus(W){this._elementRef.nativeElement.focus(W)}_getPanelAriaLabelledby(){var W;if(this.ariaLabel)return null;const te=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();return this.ariaLabelledby?(te?te+" ":"")+this.ariaLabelledby:te}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var W;if(this.ariaLabel)return null;const te=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();let Ce=(te?te+" ":"")+this._valueId;return this.ariaLabelledby&&(Ce+=" "+this.ariaLabelledby),Ce}_panelDoneAnimating(W){this.openedChange.emit(W)}setDescribedByIds(W){this._ariaDescribedby=W.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(W){return new(W||Te)(f.Y36(C.rL),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(M.rD),f.Y36(f.SBq),f.Y36(re.Is,8),f.Y36(w.F,8),f.Y36(w.sg,8),f.Y36(a.G_,8),f.Y36(w.a5,10),f.$8M("tabindex"),f.Y36(Pe),f.Y36(d.Kd),f.Y36(j,8))},Te.\u0275dir=f.lG2({type:Te,viewQuery:function(W,te){if(1&W&&(f.Gf(ge,5),f.Gf(q,5),f.Gf(t.pI,5)),2&W){let Ce;f.iGM(Ce=f.CRH())&&(te.trigger=Ce.first),f.iGM(Ce=f.CRH())&&(te.panel=Ce.first),f.iGM(Ce=f.CRH())&&(te._overlayDir=Ce.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[f.qOj,f.TTD]}),Te})(),we=(()=>{class Te extends Oe{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(W,te,Ce){const fe=this._getItemHeight();return Math.min(Math.max(0,fe*W-te+fe/2),Ce)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ue.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,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(W){const te=(0,M.CB)(W,this.options,this.optionGroups),Ce=this._getItemHeight();this.panel.nativeElement.scrollTop=0===W&&1===te?0:(0,M.jH)((W+te)*Ce,Ce,this.panel.nativeElement.scrollTop,V)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(W){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(W)}_getChangeEvent(W){return new Me(this,W)}_calculateOverlayOffsetX(){const W=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),te=this._viewportRuler.getViewportSize(),Ce=this._isRtl(),fe=this.multiple?56:32;let Q;if(this.multiple)Q=40;else if(this.disableOptionCentering)Q=16;else{let Dt=this._selectionModel.selected[0]||this.options.first;Q=Dt&&Dt.group?32:16}Ce||(Q*=-1);const pt=0-(W.left+Q-(Ce?fe:0)),tt=W.right+Q-te.width+(Ce?0:fe);pt>0?Q+=pt+8:tt>0&&(Q-=tt+8),this._overlayDir.offsetX=Math.round(Q),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(W,te,Ce){const fe=this._getItemHeight(),Q=(fe-this._triggerRect.height)/2,pt=Math.floor(V/fe);let tt;return this.disableOptionCentering?0:(tt=0===this._scrollTop?W*fe:this._scrollTop===Ce?(W-(this._getItemCount()-pt))*fe+(fe-(this._getItemCount()*fe-V)%fe):te-fe/2,Math.round(-1*tt-Q))}_checkOverlayWithinViewport(W){const te=this._getItemHeight(),Ce=this._viewportRuler.getViewportSize(),fe=this._triggerRect.top-8,Q=Ce.height-this._triggerRect.bottom-8,pt=Math.abs(this._offsetY),Dt=Math.min(this._getItemCount()*te,V)-pt-this._triggerRect.height;Dt>Q?this._adjustPanelUp(Dt,Q):pt>fe?this._adjustPanelDown(pt,fe,W):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(W,te){const Ce=Math.round(W-te);this._scrollTop-=Ce,this._offsetY-=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(W,te,Ce){const fe=Math.round(W-te);if(this._scrollTop+=fe,this._offsetY+=fe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ce)return this._scrollTop=Ce,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const W=this._getItemHeight(),te=this._getItemCount(),Ce=Math.min(te*W,V),Q=te*W-Ce;let pt;pt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),pt+=(0,M.CB)(pt,this.options,this.optionGroups);const tt=Ce/2;this._scrollTop=this._calculateOverlayScroll(pt,tt,Q),this._offsetY=this._calculateOverlayOffsetY(pt,tt,Q),this._checkOverlayWithinViewport(Q)}_getOriginBasedOnOption(){const W=this._getItemHeight(),te=(W-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-te+W/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let xe;return function(te){return(xe||(xe=f.n5z(Te)))(te||Te)}}(),Te.\u0275cmp=f.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(W,te,Ce){if(1&W&&(f.Suo(Ce,Ie,5),f.Suo(Ce,M.ey,5),f.Suo(Ce,M.K7,5)),2&W){let fe;f.iGM(fe=f.CRH())&&(te.customTrigger=fe.first),f.iGM(fe=f.CRH())&&(te.options=fe),f.iGM(fe=f.CRH())&&(te.optionGroups=fe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(W,te){1&W&&f.NdJ("keydown",function(fe){return te._handleKeydown(fe)})("focus",function(){return te._onFocus()})("blur",function(){return te._onBlur()}),2&W&&(f.uIk("id",te.id)("tabindex",te.tabIndex)("aria-controls",te.panelOpen?te.id+"-panel":null)("aria-expanded",te.panelOpen)("aria-label",te.ariaLabel||null)("aria-required",te.required.toString())("aria-disabled",te.disabled.toString())("aria-invalid",te.errorState)("aria-describedby",te._ariaDescribedby||null)("aria-activedescendant",te._getAriaActiveDescendant()),f.ekj("mat-select-disabled",te.disabled)("mat-select-invalid",te.errorState)("mat-select-required",te.required)("mat-select-empty",te.empty)("mat-select-multiple",te.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[f._Bn([{provide:a.Eo,useExisting:Te},{provide:M.HF,useExisting:Te}]),f.qOj],ngContentSelectors:v,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(W,te){if(1&W&&(f.F$t(c),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return te.toggle()}),f.TgZ(3,"div",2),f.YNc(4,_e,2,1,"span",3),f.YNc(5,r,3,2,"span",4),f.qZA(),f.TgZ(6,"div",5),f._UZ(7,"div",6),f.qZA()(),f.YNc(8,u,4,14,"ng-template",7),f.NdJ("backdropClick",function(){return te.close()})("attach",function(){return te._onAttached()})("detach",function(){return te.close()})),2&W){const Ce=f.MAs(1);f.uIk("aria-owns",te.panelOpen?te.id+"-panel":null),f.xp6(3),f.Q6J("ngSwitch",te.empty),f.uIk("id",te._valueId),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(3),f.Q6J("cdkConnectedOverlayPanelClass",te._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",te._scrollStrategy)("cdkConnectedOverlayOrigin",Ce)("cdkConnectedOverlayOpen",te.panelOpen)("cdkConnectedOverlayPositions",te._positions)("cdkConnectedOverlayMinWidth",null==te._triggerRect?null:te._triggerRect.width)("cdkConnectedOverlayOffsetY",te._offsetY)}},directives:[t.xu,e.RF,e.n9,e.ED,t.pI,e.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[T.transformPanelWrap,T.transformPanel]},changeDetection:0}),Te})(),ce=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275mod=f.oAB({type:Te}),Te.\u0275inj=f.cJS({providers:[Ve],imports:[[e.ez,t.U8,M.Ng,M.BQ],C.ZD,a.lN,M.Ng,M.BQ]}),Te})()},2638:(Be,K,p)=>{"use strict";p.d(K,{JX:()=>be,Rh:()=>he,SJ:()=>Ee,TM:()=>Pe});var t=p(5303),e=p(9808),f=p(5e3),M=p(508),a=p(3191),C=p(1159),d=p(7579),R=p(4968),h=p(6451),L=p(9300),w=p(4004),D=p(9718),S=p(2722),k=p(1884),E=p(5698),B=p(8675),Z=p(8372),Y=p(1777),ae=p(6360),ee=p(5664),ue=p(925),ne=p(226);const re=["*"],ge=["content"];function q(j,Ve){if(1&j){const Me=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(Me),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&j){const Me=f.oxw();f.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function _e(j,Ve){1&j&&(f.TgZ(0,"mat-drawer-content"),f.Hsn(1,2),f.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],i=["mat-drawer","mat-drawer-content","*"];function r(j,Ve){if(1&j){const Me=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(Me),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&j){const Me=f.oxw();f.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function u(j,Ve){1&j&&(f.TgZ(0,"mat-sidenav-content"),f.Hsn(1,2),f.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],v=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,Y.X$)("transform",[(0,Y.SB)("open, open-instant",(0,Y.oB)({transform:"none",visibility:"visible"})),(0,Y.SB)("void",(0,Y.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Y.eR)("void => open-instant",(0,Y.jt)("0ms")),(0,Y.eR)("void <=> open, open-instant => void",(0,Y.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new f.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function V(){return!1}}),_=new f.OlP("MAT_DRAWER_CONTAINER");let N=(()=>{class j extends t.PQ{constructor(Me,J,Ie,ut,Oe){super(Ie,ut,Oe),this._changeDetectorRef=Me,this._container=J}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>X)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,J){2&Me&&f.Udp("margin-left",J._container._contentMargins.left,"px")("margin-right",J._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:j}]),f.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,J){1&Me&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),j})(),H=(()=>{class j{constructor(Me,J,Ie,ut,Oe,we,ce,Te){this._elementRef=Me,this._focusTrapFactory=J,this._focusMonitor=Ie,this._platform=ut,this._ngZone=Oe,this._interactivityChecker=we,this._doc=ce,this._container=Te,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.x,this._animationEnd=new d.x,this._animationState="void",this.openedChange=new f.vpe(!0),this._openedStream=this.openedChange.pipe((0,L.h)(xe=>xe),(0,w.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,L.h)(xe=>xe.fromState!==xe.toState&&0===xe.toState.indexOf("open")),(0,D.h)(void 0)),this._closedStream=this.openedChange.pipe((0,L.h)(xe=>!xe),(0,w.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,L.h)(xe=>xe.fromState!==xe.toState&&"void"===xe.toState),(0,D.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new f.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(xe=>{xe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,L.h)(xe=>xe.keyCode===C.hY&&!this.disableClose&&!(0,C.Vb)(xe)),(0,S.R)(this._destroyed)).subscribe(xe=>this._ngZone.run(()=>{this.close(),xe.stopPropagation(),xe.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((xe,W)=>xe.fromState===W.fromState&&xe.toState===W.toState)).subscribe(xe=>{const{fromState:W,toState:te}=xe;(0===te.indexOf("open")&&"void"===W||"void"===te&&0===W.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Me),this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,a.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me||null==Me)&&(Me=(0,a.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,a.Ig)(Me))}_forceFocus(Me,J){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ie=()=>{Me.removeEventListener("blur",Ie),Me.removeEventListener("mousedown",Ie),Me.removeAttribute("tabindex")};Me.addEventListener("blur",Ie),Me.addEventListener("mousedown",Ie)})),Me.focus(J)}_focusByCssSelector(Me,J){let Ie=this._elementRef.nativeElement.querySelector(Me);Ie&&this._forceFocus(Ie,J)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(J=>{!J&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Me=this._doc.activeElement;return!!Me&&this._elementRef.nativeElement.contains(Me)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var Me;this._focusTrap&&this._focusTrap.destroy(),null===(Me=this._anchor)||void 0===Me||Me.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,J){Me&&J&&(this._openedVia=J);const Ie=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),Ie}_setOpen(Me,J,Ie){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",J&&this._restoreFocus(Ie)),this._updateFocusTrapState(),new Promise(ut=>{this.openedChange.pipe((0,E.q)(1)).subscribe(Oe=>ut(Oe?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Me){const J=this._elementRef.nativeElement,Ie=J.parentNode;"end"===Me?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ie.insertBefore(this._anchor,J)),Ie.appendChild(J)):this._anchor&&this._anchor.parentNode.insertBefore(J,this._anchor)}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(f.SBq),f.Y36(ee.qV),f.Y36(ee.tE),f.Y36(ue.t4),f.Y36(f.R0b),f.Y36(ee.ic),f.Y36(e.K0,8),f.Y36(_,8))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-drawer"]],viewQuery:function(Me,J){if(1&Me&&f.Gf(ge,5),2&Me){let Ie;f.iGM(Ie=f.CRH())&&(J._content=Ie.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,J){1&Me&&f.WFA("@transform.start",function(ut){return J._animationStarted.next(ut)})("@transform.done",function(ut){return J._animationEnd.next(ut)}),2&Me&&(f.uIk("align",null),f.d8E("@transform",J._animationState),f.ekj("mat-drawer-end","end"===J.position)("mat-drawer-over","over"===J.mode)("mat-drawer-push","push"===J.mode)("mat-drawer-side","side"===J.mode)("mat-drawer-opened",J.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:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Me,J){1&Me&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),j})(),X=(()=>{class j{constructor(Me,J,Ie,ut,Oe,we=!1,ce){this._dir=Me,this._element=J,this._ngZone=Ie,this._changeDetectorRef=ut,this._animationMode=ce,this._drawers=new f.n_E,this.backdropClick=new f.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,Me&&Me.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Oe.change().pipe((0,S.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=we}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,a.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,a.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,B.O)(this._allDrawers),(0,S.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(J=>!J._container||J._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,B.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Z.b)(10),(0,S.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,J=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const Ie=this._left._getWidth();Me+=Ie,J-=Ie}if(this._right&&this._right.opened)if("side"==this._right.mode)J+=this._right._getWidth();else if("push"==this._right.mode){const Ie=this._right._getWidth();J+=Ie,Me-=Ie}Me=Me||null,J=J||null,(Me!==this._contentMargins.left||J!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:J},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,L.h)(J=>J.fromState!==J.toState),(0,S.R)(this._drawers.changes)).subscribe(J=>{"open-instant"!==J.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,S.R)((0,h.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const J=this._element.nativeElement.classList,Ie="mat-drawer-container-has-open";Me?J.add(Ie):J.remove(Ie)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(ne.Is,8),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(t.rL),f.Y36(n),f.Y36(ae.Qb,8))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-drawer-container"]],contentQueries:function(Me,J,Ie){if(1&Me&&(f.Suo(Ie,N,5),f.Suo(Ie,H,5)),2&Me){let ut;f.iGM(ut=f.CRH())&&(J._content=ut.first),f.iGM(ut=f.CRH())&&(J._allDrawers=ut)}},viewQuery:function(Me,J){if(1&Me&&f.Gf(N,5),2&Me){let Ie;f.iGM(Ie=f.CRH())&&(J._userContent=Ie.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,J){2&Me&&f.ekj("mat-drawer-container-explicit-backdrop",J._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f._Bn([{provide:_,useExisting:j}])],ngContentSelectors:i,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(Me,J){1&Me&&(f.F$t(x),f.YNc(0,q,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,_e,2,0,"mat-drawer-content",1)),2&Me&&(f.Q6J("ngIf",J.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!J._content))},directives:[N,e.O5],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),j})(),he=(()=>{class j extends N{constructor(Me,J,Ie,ut,Oe){super(Me,J,Ie,ut,Oe)}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>Pe)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,J){2&Me&&f.Udp("margin-left",J._container._contentMargins.left,"px")("margin-right",J._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:j}]),f.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,J){1&Me&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),j})(),be=(()=>{class j extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,a.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,a.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,a.su)(Me)}}return j.\u0275fac=function(){let Ve;return function(J){return(Ve||(Ve=f.n5z(j)))(J||j)}}(),j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,J){2&Me&&(f.uIk("align",null),f.Udp("top",J.fixedInViewport?J.fixedTopGap:null,"px")("bottom",J.fixedInViewport?J.fixedBottomGap:null,"px"),f.ekj("mat-drawer-end","end"===J.position)("mat-drawer-over","over"===J.mode)("mat-drawer-push","push"===J.mode)("mat-drawer-side","side"===J.mode)("mat-drawer-opened",J.opened)("mat-sidenav-fixed",J.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.qOj],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Me,J){1&Me&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),j})(),Pe=(()=>{class j extends X{}return j.\u0275fac=function(){let Ve;return function(J){return(Ve||(Ve=f.n5z(j)))(J||j)}}(),j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,J,Ie){if(1&Me&&(f.Suo(Ie,he,5),f.Suo(Ie,be,5)),2&Me){let ut;f.iGM(ut=f.CRH())&&(J._content=ut.first),f.iGM(ut=f.CRH())&&(J._allDrawers=ut)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,J){2&Me&&f.ekj("mat-drawer-container-explicit-backdrop",J._backdropOverride)},exportAs:["matSidenavContainer"],features:[f._Bn([{provide:_,useExisting:j}]),f.qOj],ngContentSelectors:v,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(Me,J){1&Me&&(f.F$t(c),f.YNc(0,r,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,u,2,0,"mat-sidenav-content",1)),2&Me&&(f.Q6J("ngIf",J.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!J._content))},directives:[he,e.O5],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),j})(),Ee=(()=>{class j{}return j.\u0275fac=function(Me){return new(Me||j)},j.\u0275mod=f.oAB({type:j}),j.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.ZD],t.ZD,M.BQ]}),j})()},2368:(Be,K,p)=>{"use strict";p.d(K,{Rr:()=>Y,rP:()=>ne});var t=p(7144),e=p(5e3),f=p(508),M=p(3191),a=p(3075),C=p(6360),d=p(5664);const R=["thumbContainer"],h=["toggleBar"],L=["input"],w=function(re){return{enterDuration:re}},D=["*"],S=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const E={provide:a.JU,useExisting:(0,e.Gpc)(()=>Y),multi:!0};class B{constructor(ge,q){this.source=ge,this.checked=q}}const Z=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(re){this._elementRef=re}}))));let Y=(()=>{class re extends Z{constructor(q,_e,x,i,r,u){super(q),this._focusMonitor=_e,this._changeDetectorRef=x,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,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 e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===u}get required(){return this._required}set required(q){this._required=(0,M.Ig)(q)}get checked(){return this._checked}set checked(q){this._checked=(0,M.Ig)(q),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{q||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(q){q.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(q){q.stopPropagation()}writeValue(q){this.checked=!!q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck()}focus(q,_e){_e?this._focusMonitor.focusVia(this._inputElement,_e,q):this._inputElement.nativeElement.focus(q)}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 re.\u0275fac=function(q){return new(q||re)(e.Y36(e.SBq),e.Y36(d.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(S),e.Y36(C.Qb,8))},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(q,_e){if(1&q&&(e.Gf(R,5),e.Gf(h,5),e.Gf(L,5)),2&q){let x;e.iGM(x=e.CRH())&&(_e._thumbEl=x.first),e.iGM(x=e.CRH())&&(_e._thumbBarEl=x.first),e.iGM(x=e.CRH())&&(_e._inputElement=x.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(q,_e){2&q&&(e.Ikx("id",_e.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.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"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[e._Bn([E]),e.qOj],ngContentSelectors:D,decls:16,vars:20,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(q,_e){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),e.NdJ("change",function(i){return _e._onChangeEvent(i)})("click",function(i){return _e._onInputClick(i)}),e.qZA(),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.TgZ(9,"span",9),e._UZ(10,"span",10),e.qZA()()(),e.TgZ(11,"span",11,12),e.NdJ("cdkObserveContent",function(){return _e._onLabelTextChange()}),e.TgZ(13,"span",13),e._uU(14,"\xa0"),e.qZA(),e.Hsn(15),e.qZA()()),2&q){const x=e.MAs(1),i=e.MAs(12);e.uIk("for",_e.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(2),e.Q6J("id",_e.inputId)("required",_e.required)("tabIndex",_e.tabIndex)("checked",_e.checked)("disabled",_e.disabled),e.uIk("name",_e.name)("aria-checked",_e.checked)("aria-label",_e.ariaLabel)("aria-labelledby",_e.ariaLabelledby)("aria-describedby",_e.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",x)("matRippleDisabled",_e.disableRipple||_e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,w,_e._noopAnimations?0:150))}},directives:[f.wG,t.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{-webkit-user-select:none;user-select:none;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%;display:block}.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}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})(),ne=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[ue,f.si,f.BQ,t.Q8],ue,f.BQ]}),re})()},7261:(Be,K,p)=>{"use strict";p.d(K,{Ve:()=>ge,ZX:()=>re,ux:()=>x});var t=p(9776),e=p(7429),f=p(9808),M=p(5e3),a=p(508),C=p(7423),d=p(7579),R=p(5698),h=p(2722),L=p(1777),w=p(925),D=p(5113),S=p(5664);function k(i,r){if(1&i){const u=M.EpF();M.TgZ(0,"div",2)(1,"button",3),M.NdJ("click",function(){return M.CHM(u),M.oxw().action()}),M._uU(2),M.qZA()()}if(2&i){const u=M.oxw();M.xp6(2),M.Oqu(u.data.action)}}function E(i,r){}const B=new M.OlP("MatSnackBarData");class Z{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Y=Math.pow(2,31)-1;class ae{constructor(r,u){this._overlayRef=u,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=r,r._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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,Y))}_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 ee=(()=>{class i{constructor(u,c){this.snackBarRef=u,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(ae),M.Y36(B))},i.\u0275cmp=M.Xpm({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(u,c){1&u&&(M.TgZ(0,"span",0),M._uU(1),M.qZA(),M.YNc(2,k,3,1,"div",1)),2&u&&(M.xp6(1),M.Oqu(c.data.message),M.xp6(1),M.Q6J("ngIf",c.hasAction))},directives:[C.lW,f.O5],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}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),i})();const ue={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let ne=(()=>{class i extends e.en{constructor(u,c,v,T,I){super(),this._ngZone=u,this._elementRef=c,this._changeDetectorRef=v,this._platform=T,this.snackBarConfig=I,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this.attachDomPortal=y=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(y)),this._live="assertive"!==I.politeness||I.announcementMessage?"off"===I.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(u)}attachTemplatePortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(u)}onAnimationEnd(u){const{fromState:c,toState:v}=u;if(("void"===v&&"void"!==c||"hidden"===v)&&this._completeExit(),"visible"===v){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._ngZone.run(()=>{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,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const u=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(v=>u.classList.add(v)):u.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&u.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&u.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&c){let v=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(v=document.activeElement),u.removeAttribute("aria-hidden"),c.appendChild(u),null==v||v.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(M.R0b),M.Y36(M.SBq),M.Y36(M.sBO),M.Y36(w.t4),M.Y36(Z))},i.\u0275cmp=M.Xpm({type:i,selectors:[["snack-bar-container"]],viewQuery:function(u,c){if(1&u&&M.Gf(e.Pl,7),2&u){let v;M.iGM(v=M.CRH())&&(c._portalOutlet=v.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(u,c){1&u&&M.WFA("@state.done",function(T){return c.onAnimationEnd(T)}),2&u&&M.d8E("@state",c._animationState)},features:[M.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(u,c){1&u&&(M.TgZ(0,"div",0),M.YNc(1,E,0,0,"ng-template",1),M.qZA(),M._UZ(2,"div")),2&u&&(M.xp6(2),M.uIk("aria-live",c._live)("role",c._role))},directives:[e.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:[ue.snackBarState]}}),i})(),re=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=M.oAB({type:i}),i.\u0275inj=M.cJS({imports:[[t.U8,e.eL,f.ez,C.ot,a.BQ],a.BQ]}),i})();const ge=new M.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function q(){return new Z}});let _e=(()=>{class i{constructor(u,c,v,T,I,y){this._overlay=u,this._live=c,this._injector=v,this._breakpointObserver=T,this._parentSnackBar=I,this._defaultConfig=y,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}openFromComponent(u,c){return this._attach(u,c)}openFromTemplate(u,c){return this._attach(u,c)}open(u,c="",v){const T=Object.assign(Object.assign({},this._defaultConfig),v);return T.data={message:u,action:c},T.announcementMessage===u&&(T.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,T)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,c){const T=M.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:Z,useValue:c}]}),I=new e.C5(this.snackBarContainerComponent,c.viewContainerRef,T),y=u.attach(I);return y.instance.snackBarConfig=c,y.instance}_attach(u,c){const v=Object.assign(Object.assign(Object.assign({},new Z),this._defaultConfig),c),T=this._createOverlay(v),I=this._attachSnackBarContainer(T,v),y=new ae(I,T);if(u instanceof M.Rgc){const n=new e.UE(u,null,{$implicit:v.data,snackBarRef:y});y.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(v,y),_=new e.C5(u,void 0,n),V=I.attachComponentPortal(_);y.instance=V.instance}return this._breakpointObserver.observe(D.u3.HandsetPortrait).pipe((0,h.R)(T.detachments())).subscribe(n=>{T.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),v.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(v.announcementMessage,v.politeness)}),this._animateSnackBar(y,v),this._openedSnackBarRef=y,this._openedSnackBarRef}_animateSnackBar(u,c){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),c.duration&&c.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(c.duration))}_createOverlay(u){const c=new t.X_;c.direction=u.direction;let v=this._overlay.position().global();const T="rtl"===u.direction,I="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!T||"end"===u.horizontalPosition&&T,y=!I&&"center"!==u.horizontalPosition;return I?v.left("0"):y?v.right("0"):v.centerHorizontally(),"top"===u.verticalPosition?v.top("0"):v.bottom("0"),c.positionStrategy=v,this._overlay.create(c)}_createInjector(u,c){return M.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ae,useValue:c},{provide:B,useValue:u.data}]})}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(ge))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac}),i})(),x=(()=>{class i extends _e{constructor(u,c,v,T,I,y){super(u,c,v,T,I,y),this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=ne,this.handsetCssClass="mat-snack-bar-handset"}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(ge))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac,providedIn:re}),i})()},4847:(Be,K,p)=>{"use strict";p.d(K,{JX:()=>i,YE:()=>ge,nU:()=>x});var t=p(5e3),e=p(3191),f=p(1159),M=p(508),a=p(7579),C=p(6451),d=p(1777),R=p(5664),h=p(9808);const L=["mat-sort-header",""];function w(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!1}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&r){const c=t.oxw();t.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",c._getArrowDirectionState())}}const D=["*"],S=M.mZ.ENTERING+" "+M.yN.STANDARD_CURVE,k={indicator:(0,d.X$)("indicator",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"translateY(0px)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"translateY(10px)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),leftPointer:(0,d.X$)("leftPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),rightPointer:(0,d.X$)("rightPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),arrowOpacity:(0,d.X$)("arrowOpacity",[(0,d.SB)("desc-to-active, asc-to-active, active",(0,d.oB)({opacity:1})),(0,d.SB)("desc-to-hint, asc-to-hint, hint",(0,d.oB)({opacity:.54})),(0,d.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,d.oB)({opacity:0})),(0,d.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,d.jt)("0ms")),(0,d.eR)("* <=> *",(0,d.jt)(S))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(-25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-desc, * => active-to-desc",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(25%)"})]))),(0,d.eR)("* => asc-to-hint, * => asc-to-active",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-asc, * => active-to-asc",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(-25%)"})]))),(0,d.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,d.oB)({transform:"translateY(0)"})),(0,d.SB)("hint-to-desc, active-to-desc, desc",(0,d.oB)({transform:"translateY(-25%)"})),(0,d.SB)("hint-to-asc, active-to-asc, asc",(0,d.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,d.X$)("allowChildren",[(0,d.eR)("* <=> *",[(0,d.IO)("@*",(0,d.pV)(),{optional:!0})])])};let ae=(()=>{class r{constructor(){this.changes=new a.x}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ue={provide:ae,deps:[[new t.FiY,new t.tp0,ae]],useFactory:function ee(r){return r||new ae}},ne=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,M.dB)((0,M.Id)(class{}));let ge=(()=>{class r extends re{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.Ig)(c)}register(c){this.sortables.set(c.id,c)}deregister(c){this.sortables.delete(c.id)}sort(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(c){var v,T,I;if(!c)return"";const y=null!==(T=null!==(v=null==c?void 0:c.disableClear)&&void 0!==v?v:this.disableClear)&&void 0!==T?T:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function q(r,u){let c=["asc","desc"];return"desc"==r&&c.reverse(),u||c.push(""),c}(c.start||this.start,y),_=n.indexOf(this.direction)+1;return _>=n.length&&(_=0),n[_]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(ne,8))},r.\u0275dir=t.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]}),r})();const _e=(0,M.Id)(class{});let x=(()=>{class r extends _e{constructor(c,v,T,I,y,n,_){super(),this._intl=c,this._changeDetectorRef=v,this._sort=T,this._columnDef=I,this._focusMonitor=y,this._elementRef=n,this._ariaDescriber=_,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(c){this._updateSortActionDescription(c)}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.Ig)(c)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(c=>{const v=!!c;v!==this._showIndicatorHint&&(this._setIndicatorHintVisible(v),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.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(c){!this._isDisabled()&&(c.keyCode===f.L_||c.keyCode===f.K5)&&(c.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 c=this._viewState.fromState;return(c?`${c}-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()}_updateSortActionDescription(c){var v,T;this._sortButton&&(null===(v=this._ariaDescriber)||void 0===v||v.removeDescription(this._sortButton,this._sortActionDescription),null===(T=this._ariaDescriber)||void 0===T||T.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,C.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 r.\u0275fac=function(c){return new(c||r)(t.Y36(ae),t.Y36(t.sBO),t.Y36(ge,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(R.tE),t.Y36(t.SBq),t.Y36(R.$s,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v._handleClick()})("keydown",function(I){return v._handleKeydown(I)})("mouseenter",function(){return v._setIndicatorHintVisible(!0)})("mouseleave",function(){return v._setIndicatorHintVisible(!1)}),2&c&&(t.uIk("aria-sort",v._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",v._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:L,ngContentSelectors:D,decls:4,vars:7,consts:[[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(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,w,6,6,"div",2),t.qZA()),2&c&&(t.ekj("mat-sort-header-sorted",v._isSorted())("mat-sort-header-position-before","before"==v.arrowPosition),t.uIk("tabindex",v._isDisabled()?null:0)("role",v._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",v._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:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),r})(),i=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[ue],imports:[[h.ez,M.BQ]]}),r})()},5615:(Be,K,p)=>{"use strict";p.d(K,{C0:()=>Me,Ic:()=>we,T5:()=>Te,VY:()=>N,Vq:()=>Oe,fd:()=>ce,z9:()=>j});var t=p(7429),e=p(1555),f=p(9808),M=p(5e3),a=p(7423),C=p(508),d=p(5245),R=p(7579),h=p(727),L=p(5664),w=p(3900),D=p(4004),S=p(8675),k=p(2722),E=p(1884),B=p(1777),Z=p(226);function Y(xe,W){if(1&xe&&M.GkF(0,8),2&xe){const te=M.oxw();M.Q6J("ngTemplateOutlet",te.iconOverrides[te.state])("ngTemplateOutletContext",te._getIconContext())}}function ae(xe,W){if(1&xe&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._getDefaultTextForState(te.state))}}function ee(xe,W){if(1&xe&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._intl.completedLabel)}}function ue(xe,W){if(1&xe&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._intl.editableLabel)}}function ne(xe,W){if(1&xe&&(M.TgZ(0,"mat-icon",13),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._getDefaultTextForState(te.state))}}function re(xe,W){if(1&xe&&(M.ynx(0,9),M.YNc(1,ae,2,1,"span",10),M.YNc(2,ee,2,1,"span",11),M.YNc(3,ue,2,1,"span",11),M.YNc(4,ne,2,1,"mat-icon",12),M.BQk()),2&xe){const te=M.oxw();M.Q6J("ngSwitch",te.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===te.state),M.xp6(1),M.Q6J("ngIf","edit"===te.state)}}function ge(xe,W){if(1&xe&&(M.TgZ(0,"div",15),M.GkF(1,16),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",te._templateLabel().template)}}function q(xe,W){if(1&xe&&(M.TgZ(0,"div",15),M._uU(1),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Oqu(te.label)}}function _e(xe,W){if(1&xe&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Oqu(te._intl.optionalLabel)}}function x(xe,W){if(1&xe&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Oqu(te.errorMessage)}}function i(xe,W){}function r(xe,W){if(1&xe&&(M.Hsn(0),M.YNc(1,i,0,0,"ng-template",0)),2&xe){const te=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",te._portal)}}const u=["*"];function c(xe,W){1&xe&&M._UZ(0,"div",9)}const v=function(xe,W){return{step:xe,i:W}};function T(xe,W){if(1&xe&&(M.ynx(0),M.GkF(1,7),M.YNc(2,c,1,0,"div",8),M.BQk()),2&xe){const te=W.$implicit,Ce=W.index,fe=W.last;M.oxw(2);const Q=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",M.WLB(3,v,te,Ce)),M.xp6(1),M.Q6J("ngIf",!fe)}}function I(xe,W){if(1&xe){const te=M.EpF();M.TgZ(0,"div",10),M.NdJ("@horizontalStepTransition.done",function(fe){return M.CHM(te),M.oxw(2)._animationDone.next(fe)}),M.GkF(1,11),M.qZA()}if(2&xe){const te=W.$implicit,Ce=W.index,fe=M.oxw(2);M.Q6J("@horizontalStepTransition",fe._getAnimationDirection(Ce))("id",fe._getStepContentId(Ce)),M.uIk("aria-labelledby",fe._getStepLabelId(Ce))("aria-expanded",fe.selectedIndex===Ce),M.xp6(1),M.Q6J("ngTemplateOutlet",te.content)}}function y(xe,W){if(1&xe&&(M.ynx(0),M.TgZ(1,"div",3),M.YNc(2,T,3,6,"ng-container",4),M.qZA(),M.TgZ(3,"div",5),M.YNc(4,I,2,5,"div",6),M.qZA(),M.BQk()),2&xe){const te=M.oxw();M.xp6(2),M.Q6J("ngForOf",te.steps),M.xp6(2),M.Q6J("ngForOf",te.steps)}}function n(xe,W){if(1&xe){const te=M.EpF();M.TgZ(0,"div",13),M.GkF(1,7),M.TgZ(2,"div",14)(3,"div",15),M.NdJ("@verticalStepTransition.done",function(fe){return M.CHM(te),M.oxw(2)._animationDone.next(fe)}),M.TgZ(4,"div",16),M.GkF(5,11),M.qZA()()()()}if(2&xe){const te=W.$implicit,Ce=W.index,fe=W.last,Q=M.oxw(2),pt=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",pt)("ngTemplateOutletContext",M.WLB(9,v,te,Ce)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!fe),M.xp6(1),M.Q6J("@verticalStepTransition",Q._getAnimationDirection(Ce))("id",Q._getStepContentId(Ce)),M.uIk("aria-labelledby",Q._getStepLabelId(Ce))("aria-expanded",Q.selectedIndex===Ce),M.xp6(2),M.Q6J("ngTemplateOutlet",te.content)}}function _(xe,W){if(1&xe&&(M.ynx(0),M.YNc(1,n,6,12,"div",12),M.BQk()),2&xe){const te=M.oxw();M.xp6(1),M.Q6J("ngForOf",te.steps)}}function V(xe,W){if(1&xe){const te=M.EpF();M.TgZ(0,"mat-step-header",17),M.NdJ("click",function(){return M.CHM(te).step.select()})("keydown",function(fe){return M.CHM(te),M.oxw()._onKeydown(fe)}),M.qZA()}if(2&xe){const te=W.step,Ce=W.i,fe=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===fe.orientation)("mat-vertical-stepper-header","vertical"===fe.orientation),M.Q6J("tabIndex",fe._getFocusIndex()===Ce?0:-1)("id",fe._getStepLabelId(Ce))("index",Ce)("state",fe._getIndicatorType(Ce,te.state))("label",te.stepLabel||te.label)("selected",fe.selectedIndex===Ce)("active",fe._stepIsNavigable(Ce,te))("optional",te.optional)("errorMessage",te.errorMessage)("iconOverrides",fe._iconOverrides)("disableRipple",fe.disableRipple||!fe._stepIsNavigable(Ce,te))("color",te.color||fe.color),M.uIk("aria-posinset",Ce+1)("aria-setsize",fe.steps.length)("aria-controls",fe._getStepContentId(Ce))("aria-selected",fe.selectedIndex==Ce)("aria-label",te.ariaLabel||null)("aria-labelledby",!te.ariaLabel&&te.ariaLabelledby?te.ariaLabelledby:null)("aria-disabled",!fe._stepIsNavigable(Ce,te)||null)}}let N=(()=>{class xe extends e.u6{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["","matStepLabel",""]],features:[M.qOj]}),xe})(),H=(()=>{class xe{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return xe.\u0275fac=function(te){return new(te||xe)},xe.\u0275prov=M.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const he={provide:H,deps:[[new M.FiY,new M.tp0,H]],useFactory:function X(xe){return xe||new H}},be=(0,C.pj)(class extends e.KL{constructor(W){super(W)}},"primary");let Pe=(()=>{class xe extends be{constructor(te,Ce,fe,Q){super(fe),this._intl=te,this._focusMonitor=Ce,this._intlSubscription=te.changes.subscribe(()=>Q.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(te,Ce){te?this._focusMonitor.focusVia(this._elementRef,te,Ce):this._elementRef.nativeElement.focus(Ce)}_stringLabel(){return this.label instanceof N?null:this.label}_templateLabel(){return this.label instanceof N?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(te){return"number"==te?`${this.index+1}`:"edit"==te?"create":"error"==te?"warning":te}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(H),M.Y36(L.tE),M.Y36(M.SBq),M.Y36(M.sBO))},xe.\u0275cmp=M.Xpm({type:xe,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:[M.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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(te,Ce){1&te&&(M._UZ(0,"div",0),M.TgZ(1,"div")(2,"div",1),M.YNc(3,Y,1,2,"ng-container",2),M.YNc(4,re,5,4,"ng-container",3),M.qZA()(),M.TgZ(5,"div",4),M.YNc(6,ge,2,1,"div",5),M.YNc(7,q,2,1,"div",5),M.YNc(8,_e,2,1,"div",6),M.YNc(9,x,2,1,"div",7),M.qZA()),2&te&&(M.Q6J("matRippleTrigger",Ce._getHostElement())("matRippleDisabled",Ce.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",Ce.state," mat-step-icon"),M.ekj("mat-step-icon-selected",Ce.selected),M.xp6(1),M.Q6J("ngSwitch",!(!Ce.iconOverrides||!Ce.iconOverrides[Ce.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",Ce.active)("mat-step-label-selected",Ce.selected)("mat-step-label-error","error"==Ce.state),M.xp6(1),M.Q6J("ngIf",Ce._templateLabel()),M.xp6(1),M.Q6J("ngIf",Ce._stringLabel()),M.xp6(1),M.Q6J("ngIf",Ce.optional&&"error"!=Ce.state),M.xp6(1),M.Q6J("ngIf","error"==Ce.state))},directives:[d.Hw,C.wG,f.RF,f.n9,f.tP,f.ED,f.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.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}),xe})();const Ee={horizontalStepTransition:(0,B.X$)("horizontalStepTransition",[(0,B.SB)("previous",(0,B.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,B.SB)("current",(0,B.oB)({transform:"none",visibility:"inherit"})),(0,B.SB)("next",(0,B.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,B.eR)("* => *",(0,B.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,B.X$)("verticalStepTransition",[(0,B.SB)("previous",(0,B.oB)({height:"0px",visibility:"hidden"})),(0,B.SB)("next",(0,B.oB)({height:"0px",visibility:"hidden"})),(0,B.SB)("current",(0,B.oB)({height:"*",visibility:"inherit"})),(0,B.eR)("* <=> current",(0,B.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let j=(()=>{class xe{constructor(te){this.templateRef=te}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(M.Rgc))},xe.\u0275dir=M.lG2({type:xe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),xe})(),Ve=(()=>{class xe{constructor(te){this._template=te}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(M.Rgc))},xe.\u0275dir=M.lG2({type:xe,selectors:[["ng-template","matStepContent",""]]}),xe})(),Me=(()=>{class xe extends e.be{constructor(te,Ce,fe,Q){super(te,Q),this._errorStateMatcher=Ce,this._viewContainerRef=fe,this._isSelected=h.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,w.w)(()=>this._stepper.selectionChange.pipe((0,D.U)(te=>te.selectedStep===this),(0,S.O)(this._stepper.selected===this)))).subscribe(te=>{te&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(te,Ce){return this._errorStateMatcher.isErrorState(te,Ce)||!!(te&&te.invalid&&this.interacted)}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36((0,M.Gpc)(()=>Oe)),M.Y36(C.rD,4),M.Y36(M.s_b),M.Y36(e.gx,8))},xe.\u0275cmp=M.Xpm({type:xe,selectors:[["mat-step"]],contentQueries:function(te,Ce,fe){if(1&te&&(M.Suo(fe,N,5),M.Suo(fe,Ve,5)),2&te){let Q;M.iGM(Q=M.CRH())&&(Ce.stepLabel=Q.first),M.iGM(Q=M.CRH())&&(Ce._lazyContent=Q.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:C.rD,useExisting:xe},{provide:e.be,useExisting:xe}]),M.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(te,Ce){1&te&&(M.F$t(),M.YNc(0,r,2,1,"ng-template"))},directives:[t.Pl],encapsulation:2,changeDetection:0}),xe})(),J=(()=>{class xe extends e.B8{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,features:[M.qOj]}),xe})(),Ie=(()=>{class xe extends J{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["mat-horizontal-stepper"]],features:[M.qOj]}),xe})(),ut=(()=>{class xe extends J{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["mat-vertical-stepper"]],features:[M.qOj]}),xe})(),Oe=(()=>{class xe extends e.B8{constructor(te,Ce,fe,Q){super(te,Ce,fe,Q),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const pt=fe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===pt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:te,templateRef:Ce})=>this._iconOverrides[te]=Ce),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,E.x)((te,Ce)=>te.fromState===Ce.fromState&&te.toState===Ce.toState),(0,k.R)(this._destroyed)).subscribe(te=>{"current"===te.toState&&this.animationDone.emit()})}_stepIsNavigable(te,Ce){return Ce.completed||this.selectedIndex===te||!this.linear}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(Z.Is,8),M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(f.K0))},xe.\u0275cmp=M.Xpm({type:xe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(te,Ce,fe){if(1&te&&(M.Suo(fe,Me,5),M.Suo(fe,j,5)),2&te){let Q;M.iGM(Q=M.CRH())&&(Ce._steps=Q),M.iGM(Q=M.CRH())&&(Ce._icons=Q)}},viewQuery:function(te,Ce){if(1&te&&M.Gf(Pe,5),2&te){let fe;M.iGM(fe=M.CRH())&&(Ce._stepHeader=fe)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(te,Ce){2&te&&(M.uIk("aria-orientation",Ce.orientation),M.ekj("mat-stepper-horizontal","horizontal"===Ce.orientation)("mat-stepper-vertical","vertical"===Ce.orientation)("mat-stepper-label-position-end","horizontal"===Ce.orientation&&"end"==Ce.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ce.orientation&&"bottom"==Ce.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[M._Bn([{provide:e.B8,useExisting:xe},{provide:Ie,useExisting:xe},{provide:ut,useExisting:xe}]),M.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(te,Ce){1&te&&(M.ynx(0,0),M.YNc(1,y,5,2,"ng-container",1),M.YNc(2,_,2,1,"ng-container",1),M.BQk(),M.YNc(3,V,1,23,"ng-template",null,2,M.W1O)),2&te&&(M.Q6J("ngSwitch",Ce.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},directives:[Pe,f.RF,f.n9,f.sg,f.tP,f.O5],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}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[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:[Ee.horizontalStepTransition,Ee.verticalStepTransition]},changeDetection:0}),xe})(),we=(()=>{class xe extends e.st{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(te,Ce){2&te&&M.Ikx("type",Ce.type)},inputs:{type:"type"},features:[M.qOj]}),xe})(),ce=(()=>{class xe extends e.po{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(te,Ce){2&te&&M.Ikx("type",Ce.type)},inputs:{type:"type"},features:[M.qOj]}),xe})(),Te=(()=>{class xe{}return xe.\u0275fac=function(te){return new(te||xe)},xe.\u0275mod=M.oAB({type:xe}),xe.\u0275inj=M.cJS({providers:[he,C.rD],imports:[[C.BQ,f.ez,t.eL,a.ot,e.U5,d.Ps,C.si],C.BQ]}),xe})()},2075:(Be,K,p)=>{"use strict";p.d(K,{ev:()=>Ge,Dz:()=>Ft,w1:()=>rt,yh:()=>Ae,mD:()=>He,Q2:()=>Jt,Ke:()=>lt,ge:()=>et,fO:()=>nt,XQ:()=>mi,as:()=>ot,Gk:()=>ei,nj:()=>Ct,BZ:()=>mt,by:()=>Ui,p0:()=>Ji});var t=p(5e3),e=p(3191),f=p(449),M=p(9808),a=p(7579),C=p(457),d=p(1135),R=p(5191),h=p(9646),L=p(2722),w=p(5698),D=p(226),S=p(925),k=p(5303);const E=[[["caption"]],[["colgroup"],["col"]]],B=["caption","colgroup, col"];function ae(Ue){return class extends Ue{constructor(...Tt){super(...Tt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Tt){const ve=this._sticky;this._sticky=(0,e.Ig)(Tt),this._hasStickyChanged=ve!==this._sticky}hasStickyChanged(){const Tt=this._hasStickyChanged;return this._hasStickyChanged=!1,Tt}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new t.OlP("CDK_TABLE");let ne=(()=>{class Ue{constructor(ve){this.template=ve}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkCellDef",""]]}),Ue})(),re=(()=>{class Ue{constructor(ve){this.template=ve}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkHeaderCellDef",""]]}),Ue})(),ge=(()=>{class Ue{constructor(ve){this.template=ve}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkFooterCellDef",""]]}),Ue})();class q{}const _e=ae(q);let x=(()=>{class Ue extends _e{constructor(ve){super(),this._table=ve,this._stickyEnd=!1}get name(){return this._name}set name(ve){this._setNameInput(ve)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ve){const Qe=this._stickyEnd;this._stickyEnd=(0,e.Ig)(ve),this._hasStickyChanged=Qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ve){ve&&(this._name=ve,this.cssClassFriendlyName=ve.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkColumnDef",""]],contentQueries:function(ve,Qe,_t){if(1&ve&&(t.Suo(_t,ne,5),t.Suo(_t,re,5),t.Suo(_t,ge,5)),2&ve){let se;t.iGM(se=t.CRH())&&(Qe.cell=se.first),t.iGM(se=t.CRH())&&(Qe.headerCell=se.first),t.iGM(se=t.CRH())&&(Qe.footerCell=se.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ue}]),t.qOj]}),Ue})();class i{constructor(Tt,ve){ve.nativeElement.classList.add(...Tt._columnCssClassName)}}let r=(()=>{class Ue extends i{constructor(ve,Qe){super(ve,Qe)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(x),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),Ue})(),u=(()=>{class Ue extends i{constructor(ve,Qe){var _t;if(super(ve,Qe),1===(null===(_t=ve._table)||void 0===_t?void 0:_t._elementRef.nativeElement.nodeType)){const se=ve._table._elementRef.nativeElement.getAttribute("role");Qe.nativeElement.setAttribute("role","grid"===se||"treegrid"===se?"gridcell":"cell")}}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(x),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),Ue})(),c=(()=>{class Ue extends i{constructor(ve,Qe){var _t;if(super(ve,Qe),1===(null===(_t=ve._table)||void 0===_t?void 0:_t._elementRef.nativeElement.nodeType)){const se=ve._table._elementRef.nativeElement.getAttribute("role");Qe.nativeElement.setAttribute("role","grid"===se||"treegrid"===se?"gridcell":"cell")}}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(x),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),Ue})();class v{constructor(){this.tasks=[],this.endTasks=[]}}const T=new t.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ue{constructor(ve){this._ngZone=ve,this._currentSchedule=null,this._destroyed=new a.x}schedule(ve){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ve)}scheduleEnd(ve){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ve)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new v,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ve=this._currentSchedule;this._currentSchedule=new v;for(const Qe of ve.tasks)Qe();for(const Qe of ve.endTasks)Qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,C.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,w.q)(1))}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.LFG(t.R0b))},Ue.\u0275prov=t.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),n=(()=>{class Ue{constructor(ve,Qe){this.template=ve,this._differs=Qe}ngOnChanges(ve){if(!this._columnsDiffer){const Qe=ve.columns&&ve.columns.currentValue||[];this._columnsDiffer=this._differs.find(Qe).create(),this._columnsDiffer.diff(Qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ve){return this instanceof N?ve.headerCell.template:this instanceof he?ve.footerCell.template:ve.cell.template}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Ue.\u0275dir=t.lG2({type:Ue,features:[t.TTD]}),Ue})();class _ extends n{}const V=ae(_);let N=(()=>{class Ue extends V{constructor(ve,Qe,_t){super(ve,Qe),this._table=_t}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Ue})();class H extends n{}const X=ae(H);let he=(()=>{class Ue extends X{constructor(ve,Qe,_t){super(ve,Qe),this._table=_t}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Ue})(),be=(()=>{class Ue extends n{constructor(ve,Qe,_t){super(ve,Qe),this._table=_t}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),Ue})(),Pe=(()=>{class Ue{constructor(ve){this._viewContainer=ve,Ue.mostRecentCellOutlet=this}ngOnDestroy(){Ue.mostRecentCellOutlet===this&&(Ue.mostRecentCellOutlet=null)}}return Ue.mostRecentCellOutlet=null,Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkCellOutlet",""]]}),Ue})(),Ee=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),j=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Ve=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Me=(()=>{class Ue{constructor(ve){this.templateRef=ve,this._contentClassName="cdk-no-data-row"}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["ng-template","cdkNoDataRow",""]]}),Ue})();const J=["top","bottom","left","right"];class Ie{constructor(Tt,ve,Qe,_t,se=!0,Xe=!0,xt){this._isNativeHtmlTable=Tt,this._stickCellCss=ve,this.direction=Qe,this._coalescedStyleScheduler=_t,this._isBrowser=se,this._needsPositionStickyOnElement=Xe,this._positionListener=xt,this._cachedCellWidths=[],this._borderCellCss={top:`${ve}-border-elem-top`,bottom:`${ve}-border-elem-bottom`,left:`${ve}-border-elem-left`,right:`${ve}-border-elem-right`}}clearStickyPositioning(Tt,ve){const Qe=[];for(const _t of Tt)if(_t.nodeType===_t.ELEMENT_NODE){Qe.push(_t);for(let se=0;se<_t.children.length;se++)Qe.push(_t.children[se])}this._coalescedStyleScheduler.schedule(()=>{for(const _t of Qe)this._removeStickyStyle(_t,ve)})}updateStickyColumns(Tt,ve,Qe,_t=!0){if(!Tt.length||!this._isBrowser||!ve.some(Wi=>Wi)&&!Qe.some(Wi=>Wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const se=Tt[0],Xe=se.children.length,xt=this._getCellWidths(se,_t),Bt=this._getStickyStartColumnPositions(xt,ve),bi=this._getStickyEndColumnPositions(xt,Qe),Ei=ve.lastIndexOf(!0),Xi=Qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Wi="rtl"===this.direction,on=Wi?"right":"left",pn=Wi?"left":"right";for(const ii of Tt)for(let Ri=0;Rive[Ri]?ii:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Xi?[]:xt.slice(Xi).map((ii,Ri)=>Qe[Ri+Xi]?ii:null).reverse()}))})}stickRows(Tt,ve,Qe){if(!this._isBrowser)return;const _t="bottom"===Qe?Tt.slice().reverse():Tt,se="bottom"===Qe?ve.slice().reverse():ve,Xe=[],xt=[],Bt=[];for(let Ei=0,Xi=0;Ei<_t.length;Ei++){if(!se[Ei])continue;Xe[Ei]=Xi;const Wi=_t[Ei];Bt[Ei]=this._isNativeHtmlTable?Array.from(Wi.children):[Wi];const on=Wi.getBoundingClientRect().height;Xi+=on,xt[Ei]=on}const bi=se.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Ei,Xi;for(let Wi=0;Wi<_t.length;Wi++){if(!se[Wi])continue;const on=Xe[Wi],pn=Wi===bi;for(const ii of Bt[Wi])this._addStickyStyle(ii,Qe,on,pn)}"top"===Qe?null===(Ei=this._positionListener)||void 0===Ei||Ei.stickyHeaderRowsUpdated({sizes:xt,offsets:Xe,elements:Bt}):null===(Xi=this._positionListener)||void 0===Xi||Xi.stickyFooterRowsUpdated({sizes:xt,offsets:Xe,elements:Bt})})}updateStickyFooterContainer(Tt,ve){if(!this._isNativeHtmlTable)return;const Qe=Tt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{ve.some(_t=>!_t)?this._removeStickyStyle(Qe,["bottom"]):this._addStickyStyle(Qe,"bottom",0,!1)})}_removeStickyStyle(Tt,ve){for(const _t of ve)Tt.style[_t]="",Tt.classList.remove(this._borderCellCss[_t]);J.some(_t=>-1===ve.indexOf(_t)&&Tt.style[_t])?Tt.style.zIndex=this._getCalculatedZIndex(Tt):(Tt.style.zIndex="",this._needsPositionStickyOnElement&&(Tt.style.position=""),Tt.classList.remove(this._stickCellCss))}_addStickyStyle(Tt,ve,Qe,_t){Tt.classList.add(this._stickCellCss),_t&&Tt.classList.add(this._borderCellCss[ve]),Tt.style[ve]=`${Qe}px`,Tt.style.zIndex=this._getCalculatedZIndex(Tt),this._needsPositionStickyOnElement&&(Tt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Tt){const ve={top:100,bottom:10,left:1,right:1};let Qe=0;for(const _t of J)Tt.style[_t]&&(Qe+=ve[_t]);return Qe?`${Qe}`:""}_getCellWidths(Tt,ve=!0){if(!ve&&this._cachedCellWidths.length)return this._cachedCellWidths;const Qe=[],_t=Tt.children;for(let se=0;se<_t.length;se++)Qe.push(_t[se].getBoundingClientRect().width);return this._cachedCellWidths=Qe,Qe}_getStickyStartColumnPositions(Tt,ve){const Qe=[];let _t=0;for(let se=0;se0;se--)ve[se]&&(Qe[se]=_t,_t+=Tt[se]);return Qe}}const Ce=new t.OlP("CDK_SPL");let Q=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","rowOutlet",""]]}),Ue})(),pt=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","headerRowOutlet",""]]}),Ue})(),tt=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","footerRowOutlet",""]]}),Ue})(),Dt=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","noDataRowOutlet",""]]}),Ue})(),Zt=(()=>{class Ue{constructor(ve,Qe,_t,se,Xe,xt,Bt,bi,Ei,Xi,Wi,on){this._differs=ve,this._changeDetectorRef=Qe,this._elementRef=_t,this._dir=Xe,this._platform=Bt,this._viewRepeater=bi,this._coalescedStyleScheduler=Ei,this._viewportRuler=Xi,this._stickyPositioningListener=Wi,this._ngZone=on,this._onDestroy=new a.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.contentChanged=new t.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),se||this._elementRef.nativeElement.setAttribute("role","table"),this._document=xt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ve){this._trackByFn=ve}get dataSource(){return this._dataSource}set dataSource(ve){this._dataSource!==ve&&this._switchDataSource(ve)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ve){this._multiTemplateDataRows=(0,e.Ig)(ve),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ve){this._fixedLayout=(0,e.Ig)(ve),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ve,Qe)=>this.trackBy?this.trackBy(Qe.dataIndex,Qe.data):Qe),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Qe,this._forceRecalculateCellWidths=Qe,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ve=>{ve.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ve=this._dataDiffer.diff(this._renderRows);if(!ve)return this._updateNoDataRow(),void this.contentChanged.next();const Qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ve,Qe,(_t,se,Xe)=>this._getEmbeddedViewArgs(_t.item,Xe),_t=>_t.item.data,_t=>{1===_t.operation&&_t.context&&this._renderCellTemplateForItem(_t.record.item.rowDef,_t.context)}),this._updateRowIndexContext(),ve.forEachIdentityChange(_t=>{Qe.get(_t.currentIndex).context.$implicit=_t.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,w.q)(1),(0,L.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ve){this._customColumnDefs.add(ve)}removeColumnDef(ve){this._customColumnDefs.delete(ve)}addRowDef(ve){this._customRowDefs.add(ve)}removeRowDef(ve){this._customRowDefs.delete(ve)}addHeaderRowDef(ve){this._customHeaderRowDefs.add(ve),this._headerRowDefChanged=!0}removeHeaderRowDef(ve){this._customHeaderRowDefs.delete(ve),this._headerRowDefChanged=!0}addFooterRowDef(ve){this._customFooterRowDefs.add(ve),this._footerRowDefChanged=!0}removeFooterRowDef(ve){this._customFooterRowDefs.delete(ve),this._footerRowDefChanged=!0}setNoDataRow(ve){this._customNoDataRow=ve}updateStickyHeaderRowStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),_t=this._elementRef.nativeElement.querySelector("thead");_t&&(_t.style.display=ve.length?"":"none");const se=this._headerRowDefs.map(Xe=>Xe.sticky);this._stickyStyler.clearStickyPositioning(ve,["top"]),this._stickyStyler.stickRows(ve,se,"top"),this._headerRowDefs.forEach(Xe=>Xe.resetStickyChanged())}updateStickyFooterRowStyles(){const ve=this._getRenderedRows(this._footerRowOutlet),_t=this._elementRef.nativeElement.querySelector("tfoot");_t&&(_t.style.display=ve.length?"":"none");const se=this._footerRowDefs.map(Xe=>Xe.sticky);this._stickyStyler.clearStickyPositioning(ve,["bottom"]),this._stickyStyler.stickRows(ve,se,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,se),this._footerRowDefs.forEach(Xe=>Xe.resetStickyChanged())}updateStickyColumnStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),Qe=this._getRenderedRows(this._rowOutlet),_t=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ve,...Qe,..._t],["left","right"]),this._stickyColumnStylesNeedReset=!1),ve.forEach((se,Xe)=>{this._addStickyColumnStyles([se],this._headerRowDefs[Xe])}),this._rowDefs.forEach(se=>{const Xe=[];for(let xt=0;xt{this._addStickyColumnStyles([se],this._footerRowDefs[Xe])}),Array.from(this._columnDefsByName.values()).forEach(se=>se.resetStickyChanged())}_getAllRenderRows(){const ve=[],Qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let _t=0;_t{const xt=_t&&_t.has(Xe)?_t.get(Xe):[];if(xt.length){const Bt=xt.shift();return Bt.dataIndex=Qe,Bt}return{data:ve,rowDef:Xe,dataIndex:Qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ui(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Qe=>{this._columnDefsByName.has(Qe.name),this._columnDefsByName.set(Qe.name,Qe)})}_cacheRowDefs(){this._headerRowDefs=ui(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ui(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ui(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ve=this._rowDefs.filter(Qe=>!Qe.when);this._defaultRowDef=ve[0]}_renderUpdatedColumns(){const ve=(Xe,xt)=>Xe||!!xt.getColumnsDiff(),Qe=this._rowDefs.reduce(ve,!1);Qe&&this._forceRenderDataRows();const _t=this._headerRowDefs.reduce(ve,!1);_t&&this._forceRenderHeaderRows();const se=this._footerRowDefs.reduce(ve,!1);return se&&this._forceRenderFooterRows(),Qe||_t||se}_switchDataSource(ve){this._data=[],(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ve||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ve}_observeRenderChanges(){if(!this.dataSource)return;let ve;(0,f.Z9)(this.dataSource)?ve=this.dataSource.connect(this):(0,R.b)(this.dataSource)?ve=this.dataSource:Array.isArray(this.dataSource)&&(ve=(0,h.of)(this.dataSource)),this._renderChangeSubscription=ve.pipe((0,L.R)(this._onDestroy)).subscribe(Qe=>{this._data=Qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ve,Qe)=>this._renderRow(this._headerRowOutlet,ve,Qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ve,Qe)=>this._renderRow(this._footerRowOutlet,ve,Qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ve,Qe){const _t=Array.from(Qe.columns||[]).map(xt=>this._columnDefsByName.get(xt)),se=_t.map(xt=>xt.sticky),Xe=_t.map(xt=>xt.stickyEnd);this._stickyStyler.updateStickyColumns(ve,se,Xe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ve){const Qe=[];for(let _t=0;_t!se.when||se.when(Qe,ve));else{let se=this._rowDefs.find(Xe=>Xe.when&&Xe.when(Qe,ve))||this._defaultRowDef;se&&_t.push(se)}return _t}_getEmbeddedViewArgs(ve,Qe){return{templateRef:ve.rowDef.template,context:{$implicit:ve.data},index:Qe}}_renderRow(ve,Qe,_t,se={}){const Xe=ve.viewContainer.createEmbeddedView(Qe.template,se,_t);return this._renderCellTemplateForItem(Qe,se),Xe}_renderCellTemplateForItem(ve,Qe){for(let _t of this._getCellTemplates(ve))Pe.mostRecentCellOutlet&&Pe.mostRecentCellOutlet._viewContainer.createEmbeddedView(_t,Qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ve=this._rowOutlet.viewContainer;for(let Qe=0,_t=ve.length;Qe<_t;Qe++){const Xe=ve.get(Qe).context;Xe.count=_t,Xe.first=0===Qe,Xe.last=Qe===_t-1,Xe.even=Qe%2==0,Xe.odd=!Xe.even,this.multiTemplateDataRows?(Xe.dataIndex=this._renderRows[Qe].dataIndex,Xe.renderIndex=Qe):Xe.index=this._renderRows[Qe].dataIndex}}_getCellTemplates(ve){return ve&&ve.columns?Array.from(ve.columns,Qe=>{const _t=this._columnDefsByName.get(Qe);return ve.extractCellTemplate(_t)}):[]}_applyNativeTableSections(){const ve=this._document.createDocumentFragment(),Qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const _t of Qe){const se=this._document.createElement(_t.tag);se.setAttribute("role","rowgroup");for(const Xe of _t.outlets)se.appendChild(Xe.elementRef.nativeElement);ve.appendChild(se)}this._elementRef.nativeElement.appendChild(ve)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ve=(Qe,_t)=>Qe||_t.hasStickyChanged();this._headerRowDefs.reduce(ve,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ve,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ve,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ie(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,h.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(Qe=>{this._stickyStyler.direction=Qe,this.updateStickyColumnStyles()})}_getOwnDefs(ve){return ve.filter(Qe=>!Qe._table||Qe._table===this)}_updateNoDataRow(){const ve=this._customNoDataRow||this._noDataRow;if(!ve)return;const Qe=0===this._rowOutlet.viewContainer.length;if(Qe===this._isShowingNoDataRow)return;const _t=this._noDataRowOutlet.viewContainer;if(Qe){const se=_t.createEmbeddedView(ve.templateRef),Xe=se.rootNodes[0];1===se.rootNodes.length&&(null==Xe?void 0:Xe.nodeType)===this._document.ELEMENT_NODE&&(Xe.setAttribute("role","row"),Xe.classList.add(ve._contentClassName))}else _t.clear();this._isShowingNoDataRow=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(D.Is,8),t.Y36(M.K0),t.Y36(S.t4),t.Y36(f.k),t.Y36(T),t.Y36(k.rL),t.Y36(Ce,12),t.Y36(t.R0b,8))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ve,Qe,_t){if(1&ve&&(t.Suo(_t,Me,5),t.Suo(_t,x,5),t.Suo(_t,be,5),t.Suo(_t,N,5),t.Suo(_t,he,5)),2&ve){let se;t.iGM(se=t.CRH())&&(Qe._noDataRow=se.first),t.iGM(se=t.CRH())&&(Qe._contentColumnDefs=se),t.iGM(se=t.CRH())&&(Qe._contentRowDefs=se),t.iGM(se=t.CRH())&&(Qe._contentHeaderRowDefs=se),t.iGM(se=t.CRH())&&(Qe._contentFooterRowDefs=se)}},viewQuery:function(ve,Qe){if(1&ve&&(t.Gf(Q,7),t.Gf(pt,7),t.Gf(tt,7),t.Gf(Dt,7)),2&ve){let _t;t.iGM(_t=t.CRH())&&(Qe._rowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Qe._headerRowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Qe._footerRowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Qe._noDataRowOutlet=_t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ve,Qe){2&ve&&t.ekj("cdk-table-fixed-layout",Qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ee,useExisting:Ue},{provide:f.k,useClass:f.yy},{provide:T,useClass:I},{provide:Ce,useValue:null}])],ngContentSelectors:B,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,Qe){1&ve&&(t.F$t(E),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[pt,Q,Dt,tt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ue})();function ui(Ue,Tt){return Ue.concat(Array.from(Tt))}let gt=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({imports:[[k.Cl]]}),Ue})();var it=p(508),bt=p(6451),ti=p(9841),Qt=p(4004);const Re=[[["caption"]],[["colgroup"],["col"]]],ke=["caption","colgroup, col"];let mt=(()=>{class Ue extends Zt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ve,Qe){2&ve&&t.ekj("mat-table-fixed-layout",Qe.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:f.k,useClass:f.yy},{provide:Zt,useExisting:Ue},{provide:ee,useExisting:Ue},{provide:T,useClass:I},{provide:Ce,useValue:null}]),t.qOj],ngContentSelectors:ke,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,Qe){1&ve&&(t.F$t(Re),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[pt,Q,Dt,tt],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ue})(),Ft=(()=>{class Ue extends ne{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:ne,useExisting:Ue}]),t.qOj]}),Ue})(),nt=(()=>{class Ue extends re{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:re,useExisting:Ue}]),t.qOj]}),Ue})(),He=(()=>{class Ue extends ge{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:ge,useExisting:Ue}]),t.qOj]}),Ue})(),rt=(()=>{class Ue extends x{get name(){return this._name}set name(ve){this._setNameInput(ve)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:x,useExisting:Ue},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ue}]),t.qOj]}),Ue})(),et=(()=>{class Ue extends r{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),Ue})(),Ae=(()=>{class Ue extends u{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]}),Ue})(),Ge=(()=>{class Ue extends c{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),Ue})(),ot=(()=>{class Ue extends N{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:N,useExisting:Ue}]),t.qOj]}),Ue})(),lt=(()=>{class Ue extends he{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:he,useExisting:Ue}]),t.qOj]}),Ue})(),Ct=(()=>{class Ue extends be{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:be,useExisting:Ue}]),t.qOj]}),Ue})(),mi=(()=>{class Ue extends Ee{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Ee,useExisting:Ue}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Jt=(()=>{class Ue extends j{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:j,useExisting:Ue}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),ei=(()=>{class Ue extends Ve{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Ve,useExisting:Ue}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Ji=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({imports:[[gt,it.BQ],it.BQ]}),Ue})();class Vi extends f.o2{constructor(Tt=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ve,Qe)=>{const _t=ve[Qe];if((0,e.t6)(_t)){const se=Number(_t);return se<9007199254740991?se:_t}return _t},this.sortData=(ve,Qe)=>{const _t=Qe.active,se=Qe.direction;return _t&&""!=se?ve.sort((Xe,xt)=>{let Bt=this.sortingDataAccessor(Xe,_t),bi=this.sortingDataAccessor(xt,_t);const Ei=typeof Bt,Xi=typeof bi;Ei!==Xi&&("number"===Ei&&(Bt+=""),"number"===Xi&&(bi+=""));let Wi=0;return null!=Bt&&null!=bi?Bt>bi?Wi=1:Bt{const _t=Object.keys(ve).reduce((Xe,xt)=>Xe+ve[xt]+"\u25ec","").toLowerCase(),se=Qe.trim().toLowerCase();return-1!=_t.indexOf(se)},this._data=new d.X(Tt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Tt){Tt=Array.isArray(Tt)?Tt:[],this._data.next(Tt),this._renderChangesSubscription||this._filterData(Tt)}get filter(){return this._filter.value}set filter(Tt){this._filter.next(Tt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Tt){this._sort=Tt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Tt){this._paginator=Tt,this._updateChangeSubscription()}_updateChangeSubscription(){var Tt;const ve=this._sort?(0,bt.T)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),Qe=this._paginator?(0,bt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),se=(0,ti.a)([this._data,this._filter]).pipe((0,Qt.U)(([Bt])=>this._filterData(Bt))),Xe=(0,ti.a)([se,ve]).pipe((0,Qt.U)(([Bt])=>this._orderData(Bt))),xt=(0,ti.a)([Xe,Qe]).pipe((0,Qt.U)(([Bt])=>this._pageData(Bt)));null===(Tt=this._renderChangesSubscription)||void 0===Tt||Tt.unsubscribe(),this._renderChangesSubscription=xt.subscribe(Bt=>this._renderData.next(Bt))}_filterData(Tt){return this.filteredData=null==this.filter||""===this.filter?Tt:Tt.filter(ve=>this.filterPredicate(ve,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Tt){return this.sort?this.sortData(Tt.slice(),this.sort):Tt}_pageData(Tt){if(!this.paginator)return Tt;const ve=this.paginator.pageIndex*this.paginator.pageSize;return Tt.slice(ve,ve+this.paginator.pageSize)}_updatePaginator(Tt){Promise.resolve().then(()=>{const ve=this.paginator;if(ve&&(ve.length=Tt,ve.pageIndex>0)){const Qe=Math.ceil(ve.length/ve.pageSize)-1||0,_t=Math.min(ve.pageIndex,Qe);_t!==ve.pageIndex&&(ve.pageIndex=_t,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Tt;null===(Tt=this._renderChangesSubscription)||void 0===Tt||Tt.unsubscribe(),this._renderChangesSubscription=null}}class Ui extends Vi{}},3251:(Be,K,p)=>{"use strict";p.d(K,{BU:()=>de,Nh:()=>nt,Nj:()=>mt,SP:()=>Qt,uD:()=>we,uX:()=>xe});var t=p(5664),e=p(7144),f=p(7429),M=p(9808),a=p(5e3),C=p(508),d=p(6360),R=p(5698),h=p(8675),L=p(1884),w=p(2722),D=p(3900),S=p(5684),k=p(7579),E=p(727),B=p(4968),Z=p(9646),Y=p(6451),ae=p(515),ee=p(8306),ue=p(2805),ne=p(1777),re=p(226),ge=p(3191),q=p(1159),_e=p(925),x=p(5303);function i(He,rt){1&He&&a.Hsn(0)}const r=["*"];function u(He,rt){}const c=function(He){return{animationDuration:He}},v=function(He,rt){return{value:He,params:rt}},T=["tabListContainer"],I=["tabList"],y=["tabListInner"],n=["nextPaginator"],_=["previousPaginator"],V=["tabBodyWrapper"],N=["tabHeader"];function H(He,rt){}function X(He,rt){if(1&He&&a.YNc(0,H,0,0,"ng-template",10),2&He){const et=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",et.templateLabel)}}function he(He,rt){if(1&He&&a._uU(0),2&He){const et=a.oxw().$implicit;a.Oqu(et.textLabel)}}function be(He,rt){if(1&He){const et=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Ge=a.CHM(et),ot=Ge.$implicit,lt=Ge.index,Ct=a.oxw(),mi=a.MAs(1);return Ct._handleClick(ot,mi,lt)})("cdkFocusChange",function(Ge){const lt=a.CHM(et).index;return a.oxw()._tabFocusChanged(Ge,lt)}),a.TgZ(1,"div",7),a.YNc(2,X,1,1,"ng-template",8),a.YNc(3,he,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&He){const et=rt.$implicit,Ae=rt.index,Ge=a.MAs(4),ot=a.oxw();a.ekj("mat-tab-label-active",ot.selectedIndex===Ae),a.Q6J("id",ot._getTabLabelId(Ae))("ngClass",et.labelClass)("disabled",et.disabled)("matRippleDisabled",et.disabled||ot.disableRipple),a.uIk("tabIndex",ot._getTabIndex(et,Ae))("aria-posinset",Ae+1)("aria-setsize",ot._tabs.length)("aria-controls",ot._getTabContentId(Ae))("aria-selected",ot.selectedIndex===Ae)("aria-label",et.ariaLabel||null)("aria-labelledby",!et.ariaLabel&&et.ariaLabelledby?et.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",et.templateLabel)("ngIfElse",Ge)}}function Pe(He,rt){if(1&He){const et=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(et),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ge){return a.CHM(et),a.oxw()._setTabBodyWrapperHeight(Ge)}),a.qZA()}if(2&He){const et=rt.$implicit,Ae=rt.index,Ge=a.oxw();a.ekj("mat-tab-body-active",Ge.selectedIndex===Ae),a.Q6J("id",Ge._getTabContentId(Ae))("ngClass",et.bodyClass)("content",et.content)("position",et.position)("origin",et.origin)("animationDuration",Ge.animationDuration),a.uIk("tabindex",null!=Ge.contentTabIndex&&Ge.selectedIndex===Ae?Ge.contentTabIndex:null)("aria-labelledby",Ge._getTabLabelId(Ae))}}const Ee=["mat-tab-nav-bar",""],j=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ve(){return rt=>({left:rt?(rt.offsetLeft||0)+"px":"0",width:rt?(rt.offsetWidth||0)+"px":"0"})}});let Me=(()=>{class He{constructor(et,Ae,Ge,ot){this._elementRef=et,this._ngZone=Ae,this._inkBarPositioner=Ge,this._animationMode=ot}alignToElement(et){this.show(),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{const Ae=this._inkBarPositioner(et),Ge=this._elementRef.nativeElement;Ge.style.left=Ae.left,Ge.style.width=Ae.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(j),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(et,Ae){2&et&&a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)}}),He})();const J=new a.OlP("MatTabContent"),ut=new a.OlP("MatTabLabel"),Oe=new a.OlP("MAT_TAB");let we=(()=>{class He extends f.ig{constructor(et,Ae,Ge){super(et,Ae),this._closestTab=Ge}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Oe,8))},He.\u0275dir=a.lG2({type:He,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:ut,useExisting:He}]),a.qOj]}),He})();const ce=(0,C.Id)(class{}),Te=new a.OlP("MAT_TAB_GROUP");let xe=(()=>{class He extends ce{constructor(et,Ae){super(),this._viewContainerRef=et,this._closestTabGroup=Ae,this.textLabel="",this._contentPortal=null,this._stateChanges=new k.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(et){this._setTemplateLabelInput(et)}get content(){return this._contentPortal}ngOnChanges(et){(et.hasOwnProperty("textLabel")||et.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(et){et&&et._closestTab===this&&(this._templateLabel=et)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.s_b),a.Y36(Te,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab"]],contentQueries:function(et,Ae,Ge){if(1&et&&(a.Suo(Ge,ut,5),a.Suo(Ge,J,7,a.Rgc)),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae.templateLabel=ot.first),a.iGM(ot=a.CRH())&&(Ae._explicitContent=ot.first)}},viewQuery:function(et,Ae){if(1&et&&a.Gf(a.Rgc,7),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._implicitContent=Ge.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[a._Bn([{provide:Oe,useExisting:He}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(et,Ae){1&et&&(a.F$t(),a.YNc(0,i,1,0,"ng-template"))},encapsulation:2}),He})();const W={translateTab:(0,ne.X$)("translateTab",[(0,ne.SB)("center, void, left-origin-center, right-origin-center",(0,ne.oB)({transform:"none"})),(0,ne.SB)("left",(0,ne.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,ne.SB)("right",(0,ne.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,ne.eR)("* => left, * => right, left => center, right => center",(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ne.eR)("void => left-origin-center",[(0,ne.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ne.eR)("void => right-origin-center",[(0,ne.oB)({transform:"translate3d(100%, 0, 0)"}),(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let te=(()=>{class He extends f.Pl{constructor(et,Ae,Ge,ot){super(et,Ae,ot),this._host=Ge,this._centeringSub=E.w0.EMPTY,this._leavingSub=E.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,h.O)(this._host._isCenterPosition(this._host._position))).subscribe(et=>{et&&!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 He.\u0275fac=function(et){return new(et||He)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>fe)),a.Y36(M.K0))},He.\u0275dir=a.lG2({type:He,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),He})(),Ce=(()=>{class He{constructor(et,Ae,Ge){this._elementRef=et,this._dir=Ae,this._dirChangeSubscription=E.w0.EMPTY,this._translateTabComplete=new k.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",Ae&&(this._dirChangeSubscription=Ae.change.subscribe(ot=>{this._computePositionAnimationState(ot),Ge.markForCheck()})),this._translateTabComplete.pipe((0,L.x)((ot,lt)=>ot.fromState===lt.fromState&&ot.toState===lt.toState)).subscribe(ot=>{this._isCenterPosition(ot.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ot.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(et){this._positionIndex=et,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(et){const Ae=this._isCenterPosition(et.toState);this._beforeCentering.emit(Ae),Ae&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(et){return"center"==et||"left-origin-center"==et||"right-origin-center"==et}_computePositionAnimationState(et=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==et?"left":"right":this._positionIndex>0?"ltr"==et?"right":"left":"center"}_computePositionFromOrigin(et){const Ae=this._getLayoutDirection();return"ltr"==Ae&&et<=0||"rtl"==Ae&&et>0?"left-origin-center":"right-origin-center"}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.sBO))},He.\u0275dir=a.lG2({type:He,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),He})(),fe=(()=>{class He extends Ce{constructor(et,Ae,Ge){super(et,Ae,Ge)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.sBO))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab-body"]],viewQuery:function(et,Ae){if(1&et&&a.Gf(f.Pl,5),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._portalHost=Ge.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(et,Ae){1&et&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(ot){return Ae._onTranslateTabStarted(ot)})("@translateTab.done",function(ot){return Ae._translateTabComplete.next(ot)}),a.YNc(2,u,0,0,"ng-template",2),a.qZA()),2&et&&a.Q6J("@translateTab",a.WLB(3,v,Ae._position,a.VKq(1,c,Ae.animationDuration)))},directives:[te],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[W.translateTab]}}),He})();const Q=new a.OlP("MAT_TABS_CONFIG"),pt=(0,C.Id)(class{});let tt=(()=>{class He extends pt{constructor(et){super(),this.elementRef=et}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq))},He.\u0275dir=a.lG2({type:He,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(et,Ae){2&et&&(a.uIk("aria-disabled",!!Ae.disabled),a.ekj("mat-tab-disabled",Ae.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),He})();const Dt=(0,_e.i$)({passive:!0});let ui=(()=>{class He{constructor(et,Ae,Ge,ot,lt,Ct,mi){this._elementRef=et,this._changeDetectorRef=Ae,this._viewportRuler=Ge,this._dir=ot,this._ngZone=lt,this._platform=Ct,this._animationMode=mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,lt.runOutsideAngular(()=>{(0,B.R)(et.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(et){et=(0,ge.su)(et),this._selectedIndex!=et&&(this._selectedIndexChanged=!0,this._selectedIndex=et,this._keyManager&&this._keyManager.updateActiveItem(et))}ngAfterViewInit(){(0,B.R)(this._previousPaginator.nativeElement,"touchstart",Dt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,B.R)(this._nextPaginator.nativeElement,"touchstart",Dt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const et=this._dir?this._dir.change:(0,Z.of)("ltr"),Ae=this._viewportRuler.change(150),Ge=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(Ge),(0,Y.T)(et,Ae,this._items.changes,this._itemsResized()).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ge()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this.indexFocused.emit(ot),this._setTabFocus(ot)})}_itemsResized(){return"function"!=typeof ResizeObserver?ae.E:this._items.changes.pipe((0,h.O)(this._items),(0,D.w)(et=>new ee.y(Ae=>this._ngZone.runOutsideAngular(()=>{const Ge=new ResizeObserver(()=>{Ae.next()});return et.forEach(ot=>{Ge.observe(ot.elementRef.nativeElement)}),()=>{Ge.disconnect()}}))),(0,S.T)(1))}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(et){if(!(0,q.Vb)(et))switch(et.keyCode){case q.K5:case q.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(et));break;default:this._keyManager.onKeydown(et)}}_onContentChanges(){const et=this._elementRef.nativeElement.textContent;et!==this._currentTextContent&&(this._currentTextContent=et||"",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(et){!this._isValidIndex(et)||this.focusIndex===et||!this._keyManager||this._keyManager.setActiveItem(et)}_isValidIndex(et){if(!this._items)return!0;const Ae=this._items?this._items.toArray()[et]:null;return!!Ae&&!Ae.disabled}_setTabFocus(et){if(this._showPaginationControls&&this._scrollToLabel(et),this._items&&this._items.length){this._items.toArray()[et].focus();const Ae=this._tabListContainer.nativeElement;Ae.scrollLeft="ltr"==this._getLayoutDirection()?0:Ae.scrollWidth-Ae.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const et=this.scrollDistance,Ae="ltr"===this._getLayoutDirection()?-et:et;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ae)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(et){this._scrollTo(et)}_scrollHeader(et){return this._scrollTo(this._scrollDistance+("before"==et?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(et){this._stopInterval(),this._scrollHeader(et)}_scrollToLabel(et){if(this.disablePagination)return;const Ae=this._items?this._items.toArray()[et]:null;if(!Ae)return;const Ge=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ot,offsetWidth:lt}=Ae.elementRef.nativeElement;let Ct,mi;"ltr"==this._getLayoutDirection()?(Ct=ot,mi=Ct+lt):(mi=this._tabListInner.nativeElement.offsetWidth-ot,Ct=mi-lt);const Jt=this.scrollDistance,ei=this.scrollDistance+Ge;Ctei&&(this.scrollDistance+=mi-ei+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const et=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;et||(this.scrollDistance=0),et!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=et}}_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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const et=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ae=et?et.elementRef.nativeElement:null;Ae?this._inkBar.alignToElement(Ae):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(et,Ae){Ae&&null!=Ae.button&&0!==Ae.button||(this._stopInterval(),(0,ue.H)(650,100).pipe((0,w.R)((0,Y.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ge,distance:ot}=this._scrollHeader(et);(0===ot||ot>=Ge)&&this._stopInterval()}))}_scrollTo(et){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ae=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ae,et)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ae,distance:this._scrollDistance}}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{disablePagination:"disablePagination"}}),He})(),Ot=(()=>{class He extends ui{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,Ae,Ge,ot,lt,Ct,mi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(et){this._disableRipple=(0,ge.Ig)(et)}_itemSelected(et){et.preventDefault()}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),He})(),Nt=(()=>{class He extends Ot{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,Ae,Ge,ot,lt,Ct,mi)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab-header"]],contentQueries:function(et,Ae,Ge){if(1&et&&a.Suo(Ge,tt,4),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae._items=ot)}},viewQuery:function(et,Ae){if(1&et&&(a.Gf(Me,7),a.Gf(T,7),a.Gf(I,7),a.Gf(y,7),a.Gf(n,5),a.Gf(_,5)),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._inkBar=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListContainer=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabList=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListInner=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._nextPaginator=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(et,Ae){2&et&&a.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(et,Ae){1&et&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(ot){return Ae._handlePaginatorPress("before",ot)})("touchend",function(){return Ae._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(ot){return Ae._handleKeydown(ot)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Ae._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(ot){return Ae._handlePaginatorPress("after",ot)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&et&&(a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),a.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),a.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},directives:[C.wG,e.wD,Me],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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}),He})(),gt=0;class it{}const bt=(0,C.pj)((0,C.Kr)(class{constructor(He){this._elementRef=He}}),"primary");let ti=(()=>{class He extends bt{constructor(et,Ae,Ge,ot){var lt;super(et),this._changeDetectorRef=Ae,this._animationMode=ot,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=E.w0.EMPTY,this._tabLabelSubscription=E.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=gt++,this.animationDuration=Ge&&Ge.animationDuration?Ge.animationDuration:"500ms",this.disablePagination=!(!Ge||null==Ge.disablePagination)&&Ge.disablePagination,this.dynamicHeight=!(!Ge||null==Ge.dynamicHeight)&&Ge.dynamicHeight,this.contentTabIndex=null!==(lt=null==Ge?void 0:Ge.contentTabIndex)&&void 0!==lt?lt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(et){this._dynamicHeight=(0,ge.Ig)(et)}get selectedIndex(){return this._selectedIndex}set selectedIndex(et){this._indexToSelect=(0,ge.su)(et,null)}get animationDuration(){return this._animationDuration}set animationDuration(et){this._animationDuration=/^\d+$/.test(et+"")?et+"ms":et}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(et){this._contentTabIndex=(0,ge.su)(et,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(et){const Ae=this._elementRef.nativeElement;Ae.classList.remove(`mat-background-${this.backgroundColor}`),et&&Ae.classList.add(`mat-background-${et}`),this._backgroundColor=et}ngAfterContentChecked(){const et=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=et){const Ae=null==this._selectedIndex;if(!Ae){this.selectedTabChange.emit(this._createChangeEvent(et));const Ge=this._tabBodyWrapper.nativeElement;Ge.style.minHeight=Ge.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ge,ot)=>Ge.isActive=ot===et),Ae||(this.selectedIndexChange.emit(et),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ae,Ge)=>{Ae.position=Ge-et,null!=this._selectedIndex&&0==Ae.position&&!Ae.origin&&(Ae.origin=et-this._selectedIndex)}),this._selectedIndex!==et&&(this._selectedIndex=et,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const et=this._clampTabIndex(this._indexToSelect);if(et===this._selectedIndex){const Ae=this._tabs.toArray();let Ge;for(let ot=0;ot{Ae[et].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(et))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,h.O)(this._allTabs)).subscribe(et=>{this._tabs.reset(et.filter(Ae=>Ae._closestTabGroup===this||!Ae._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(et){const Ae=this._tabHeader;Ae&&(Ae.focusIndex=et)}_focusChanged(et){this._lastFocusedTabIndex=et,this.focusChange.emit(this._createChangeEvent(et))}_createChangeEvent(et){const Ae=new it;return Ae.index=et,this._tabs&&this._tabs.length&&(Ae.tab=this._tabs.toArray()[et]),Ae}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Y.T)(...this._tabs.map(et=>et._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(et){return Math.min(this._tabs.length-1,Math.max(et||0,0))}_getTabLabelId(et){return`mat-tab-label-${this._groupId}-${et}`}_getTabContentId(et){return`mat-tab-content-${this._groupId}-${et}`}_setTabBodyWrapperHeight(et){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Ae=this._tabBodyWrapper.nativeElement;Ae.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ae.style.height=et+"px")}_removeTabBodyWrapperHeight(){const et=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=et.clientHeight,et.style.height="",this.animationDone.emit()}_handleClick(et,Ae,Ge){et.disabled||(this.selectedIndex=Ae.focusIndex=Ge)}_getTabIndex(et,Ae){var Ge;return et.disabled?null:Ae===(null!==(Ge=this._lastFocusedTabIndex)&&void 0!==Ge?Ge:this.selectedIndex)?0:-1}_tabFocusChanged(et,Ae){et&&"mouse"!==et&&"touch"!==et&&(this._tabHeader.focusIndex=Ae)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Q,8),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),He})(),Qt=(()=>{class He extends ti{constructor(et,Ae,Ge,ot){super(et,Ae,Ge,ot)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Q,8),a.Y36(d.Qb,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab-group"]],contentQueries:function(et,Ae,Ge){if(1&et&&a.Suo(Ge,xe,5),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae._allTabs=ot)}},viewQuery:function(et,Ae){if(1&et&&(a.Gf(V,5),a.Gf(N,5)),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._tabBodyWrapper=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabHeader=Ge.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(et,Ae){2&et&&a.ekj("mat-tab-group-dynamic-height",Ae.dynamicHeight)("mat-tab-group-inverted-header","below"===Ae.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Te,useExisting:He}]),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","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(et,Ae){1&et&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(ot){return Ae._focusChanged(ot)})("selectFocusedIndex",function(ot){return Ae.selectedIndex=ot}),a.YNc(2,be,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,Pe,1,10,"mat-tab-body",5),a.qZA()),2&et&&(a.Q6J("selectedIndex",Ae.selectedIndex||0)("disableRipple",Ae.disableRipple)("disablePagination",Ae.disablePagination),a.xp6(2),a.Q6J("ngForOf",Ae._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),a.xp6(2),a.Q6J("ngForOf",Ae._tabs))},directives:[Nt,fe,M.sg,tt,C.wG,t.kH,M.mk,M.O5,f.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.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;outline:0;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}),He})(),Re=0,ke=(()=>{class He extends ui{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,ot,lt,Ae,Ge,Ct,mi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(et){const Ae=this._elementRef.nativeElement.classList;Ae.remove(`mat-background-${this.backgroundColor}`),et&&Ae.add(`mat-background-${et}`),this._backgroundColor=et}get disableRipple(){return this._disableRipple}set disableRipple(et){this._disableRipple=(0,ge.Ig)(et)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,h.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const et=this._items.toArray();for(let Ae=0;Ae{class He extends ke{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,Ae,Ge,ot,lt,Ct,mi)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(et,Ae,Ge){if(1&et&&a.Suo(Ge,mt,5),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae._items=ot)}},viewQuery:function(et,Ae){if(1&et&&(a.Gf(Me,7),a.Gf(T,7),a.Gf(I,7),a.Gf(y,7),a.Gf(n,5),a.Gf(_,5)),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._inkBar=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListContainer=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabList=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListInner=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._nextPaginator=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(et,Ae){2&et&&(a.uIk("role",Ae._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())("mat-primary","warn"!==Ae.color&&"accent"!==Ae.color)("mat-accent","accent"===Ae.color)("mat-warn","warn"===Ae.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:Ee,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(et,Ae){1&et&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(ot){return Ae._handlePaginatorPress("before",ot)})("touchend",function(){return Ae._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(ot){return Ae._handleKeydown(ot)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Ae._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(ot){return Ae._handlePaginatorPress("after",ot)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&et&&(a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),a.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),a.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},directives:[C.wG,e.wD,Me],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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}),He})();const ye=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let ht=(()=>{class He extends ye{constructor(et,Ae,Ge,ot,lt,Ct){super(),this._tabNavBar=et,this.elementRef=Ae,this._focusMonitor=lt,this._isActive=!1,this.id="mat-tab-link-"+Re++,this.rippleConfig=Ge||{},this.tabIndex=parseInt(ot)||0,"NoopAnimations"===Ct&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(et){const Ae=(0,ge.Ig)(et);Ae!==this._isActive&&(this._isActive=Ae,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)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(et){this._tabNavBar.tabPanel&&et.keyCode===q.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var et;return this._tabNavBar.tabPanel?null===(et=this._tabNavBar.tabPanel)||void 0===et?void 0:et.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(ke),a.Y36(a.SBq),a.Y36(C.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{active:"active",id:"id"},features:[a.qOj]}),He})(),mt=(()=>{class He extends ht{constructor(et,Ae,Ge,ot,lt,Ct,mi,Jt){super(et,Ae,lt,Ct,mi,Jt),this._tabLinkRipple=new C.IR(this,Ge,Ae,ot),this._tabLinkRipple.setupTriggerEvents(Ae.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(de),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(C.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(et,Ae){1&et&&a.NdJ("focus",function(){return Ae._handleFocus()})("keydown",function(ot){return Ae._handleKeydown(ot)}),2&et&&(a.uIk("aria-controls",Ae._getAriaControls())("aria-current",Ae._getAriaCurrent())("aria-disabled",Ae.disabled)("aria-selected",Ae._getAriaSelected())("id",Ae.id)("tabIndex",Ae._getTabIndex())("role",Ae._getRole()),a.ekj("mat-tab-disabled",Ae.disabled)("mat-tab-label-active",Ae.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),He})(),nt=(()=>{class He{}return He.\u0275fac=function(et){return new(et||He)},He.\u0275mod=a.oAB({type:He}),He.\u0275inj=a.cJS({imports:[[M.ez,C.BQ,f.eL,C.si,e.Q8,t.rt],C.BQ]}),He})()},4594:(Be,K,p)=>{"use strict";p.d(K,{Ye:()=>h,g0:()=>w});var t=p(5e3),e=p(508),f=p(9808),M=p(925);const a=["*",[["mat-toolbar-row"]]],C=["*","mat-toolbar-row"],d=(0,e.pj)(class{constructor(D){this._elementRef=D}});let R=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275dir=t.lG2({type:D,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),D})(),h=(()=>{class D extends d{constructor(k,E,B){super(k),this._platform=E,this._document=B}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return D.\u0275fac=function(k){return new(k||D)(t.Y36(t.SBq),t.Y36(M.t4),t.Y36(f.K0))},D.\u0275cmp=t.Xpm({type:D,selectors:[["mat-toolbar"]],contentQueries:function(k,E,B){if(1&k&&t.Suo(B,R,5),2&k){let Z;t.iGM(Z=t.CRH())&&(E._toolbarRows=Z)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,E){2&k&&t.ekj("mat-toolbar-multiple-rows",E._toolbarRows.length>0)("mat-toolbar-single-row",0===E._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:C,decls:2,vars:0,template:function(k,E){1&k&&(t.F$t(a),t.Hsn(0),t.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}),D})(),w=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),D})()},7238:(Be,K,p)=>{"use strict";p.d(K,{AV:()=>I,gM:()=>c});var t=p(9776),e=p(5664),f=p(9808),M=p(5e3),a=p(508),C=p(5303),d=p(3191),R=p(1159),h=p(5113),L=p(925),w=p(7429),D=p(6360),S=p(7579),k=p(2722),E=p(5698),B=p(226);p(1777);const Y=["tooltip"],ue="tooltip-panel",ne=(0,L.i$)({passive:!0}),q=new M.OlP("mat-tooltip-scroll-strategy"),x={provide:q,deps:[t.aV],useFactory:function _e(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},i=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let u=(()=>{class n{constructor(V,N,H,X,he,be,Pe,Ee,j,Ve,Me,J){this._overlay=V,this._elementRef=N,this._scrollDispatcher=H,this._viewContainerRef=X,this._ngZone=he,this._platform=be,this._ariaDescriber=Pe,this._focusMonitor=Ee,this._dir=Ve,this._defaultOptions=Me,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 S.x,this._scrollStrategy=j,this._document=J,Me&&(Me.position&&(this.position=Me.position),Me.touchGestures&&(this.touchGestures=Me.touchGestures)),Ve.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){var N;V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(N=this._tooltipInstance)||void 0===N||N.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,d.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,d.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,d.su)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([N,H])=>{V.removeEventListener(N,H,ne)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const N=this._createOverlay();this._detach(),this._portal=this._portal||new w.C5(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=N.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var V;if(this._overlayRef)return this._overlayRef;const N=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),H=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(N);return H.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(X=>{this._updateCurrentPositionClass(X.connectionPair),this._tooltipInstance&&X.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:H,panelClass:`${this._cssClassPrefix}-${ue}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,k.R)(this._destroyed)).subscribe(()=>{var X;return null===(X=this._tooltipInstance)||void 0===X?void 0:X._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe(X=>{this._isTooltipVisible()&&X.keyCode===R.hY&&!(0,R.Vb)(X)&&(X.preventDefault(),X.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(V=this._defaultOptions)||void 0===V?void 0:V.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const N=V.getConfig().positionStrategy,H=this._getOrigin(),X=this._getOverlayPosition();N.withPositions([this._addOffset(Object.assign(Object.assign({},H.main),X.main)),this._addOffset(Object.assign(Object.assign({},H.fallback),X.fallback))])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,N=this.position;let H;"above"==N||"below"==N?H={originX:"center",originY:"above"==N?"top":"bottom"}:"before"==N||"left"==N&&V||"right"==N&&!V?H={originX:"start",originY:"center"}:("after"==N||"right"==N&&V||"left"==N&&!V)&&(H={originX:"end",originY:"center"});const{x:X,y:he}=this._invertPosition(H.originX,H.originY);return{main:H,fallback:{originX:X,originY:he}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,N=this.position;let H;"above"==N?H={overlayX:"center",overlayY:"bottom"}:"below"==N?H={overlayX:"center",overlayY:"top"}:"before"==N||"left"==N&&V||"right"==N&&!V?H={overlayX:"end",overlayY:"center"}:("after"==N||"right"==N&&V||"left"==N&&!V)&&(H={overlayX:"start",overlayY:"center"});const{x:X,y:he}=this._invertPosition(H.overlayX,H.overlayY);return{main:H,fallback:{overlayX:X,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1),(0,k.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,N){return"above"===this.position||"below"===this.position?"top"===N?N="bottom":"bottom"===N&&(N="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:N}}_updateCurrentPositionClass(V){const{overlayY:N,originX:H,originY:X}=V;let he;if(he="center"===N?this._dir&&"rtl"===this._dir.value?"end"===H?"left":"right":"start"===H?"left":"right":"bottom"===N&&"top"===X?"above":"below",he!==this._currentPosition){const be=this._overlayRef;if(be){const Pe=`${this._cssClassPrefix}-${ue}-`;be.removePanelClass(Pe+this._currentPosition),be.addPanelClass(Pe+he)}this._currentPosition=he}}_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 V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",N=>{var H;const X=N.relatedTarget;(!X||!(null===(H=this._overlayRef)||void 0===H?void 0:H.overlayElement.contains(X)))&&this.hide()}],["wheel",N=>this._wheelListener(N)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const N=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",N],["touchcancel",N])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([N,H])=>{this._elementRef.nativeElement.addEventListener(N,H,ne)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const N=this._document.elementFromPoint(V.clientX,V.clientY),H=this._elementRef.nativeElement;N!==H&&!H.contains(N)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const N=this._elementRef.nativeElement,H=N.style;("on"===V||"INPUT"!==N.nodeName&&"TEXTAREA"!==N.nodeName)&&(H.userSelect=H.msUserSelect=H.webkitUserSelect=H.MozUserSelect="none"),("on"===V||!N.draggable)&&(H.webkitUserDrag="none"),H.touchAction="none",H.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(V){M.$Z()},n.\u0275dir=M.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),c=(()=>{class n extends u{constructor(V,N,H,X,he,be,Pe,Ee,j,Ve,Me,J){super(V,N,H,X,he,be,Pe,Ee,j,Ve,Me,J),this._tooltipComponent=T}}return n.\u0275fac=function(V){return new(V||n)(M.Y36(t.aV),M.Y36(M.SBq),M.Y36(C.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(L.t4),M.Y36(e.$s),M.Y36(e.tE),M.Y36(q),M.Y36(B.Is,8),M.Y36(i,8),M.Y36(f.K0))},n.\u0275dir=M.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),n})(),v=(()=>{class n{constructor(V,N){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new S.x,this._animationsDisabled="NoopAnimations"===N}show(V){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const N=this._tooltip.nativeElement,H=this._showAnimation,X=this._hideAnimation;if(N.classList.remove(V?X:H),N.classList.add(V?H:X),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle(N);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(N.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}}return n.\u0275fac=function(V){return new(V||n)(M.Y36(M.sBO),M.Y36(D.Qb,8))},n.\u0275dir=M.lG2({type:n}),n})(),T=(()=>{class n extends v{constructor(V,N,H){super(V,H),this._breakpointObserver=N,this._isHandset=this._breakpointObserver.observe(h.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(V){return new(V||n)(M.Y36(M.sBO),M.Y36(h.Yg),M.Y36(D.Qb,8))},n.\u0275cmp=M.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(V,N){if(1&V&&M.Gf(Y,7),2&V){let H;M.iGM(H=M.CRH())&&(N._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,N){1&V&&M.NdJ("mouseleave",function(X){return N._handleMouseLeave(X)}),2&V&&M.Udp("zoom",N.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(V,N){if(1&V&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(X){return N._handleAnimationEnd(X)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&V){let H;M.ekj("mat-tooltip-handset",null==(H=M.lcZ(2,4,N._isHandset))?null:H.matches),M.Q6J("ngClass",N.tooltipClass),M.xp6(3),M.Oqu(N.message)}},directives:[f.mk],pipes:[f.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(V){return new(V||n)},n.\u0275mod=M.oAB({type:n}),n.\u0275inj=M.cJS({providers:[x],imports:[[e.rt,f.ez,t.U8,a.BQ],a.BQ,C.ZD]}),n})()},149:(Be,K,p)=>{"use strict";p.d(K,{Ar:()=>k,GZ:()=>D,WX:()=>ue,dp:()=>Y,eu:()=>B,fQ:()=>w,gi:()=>E,uo:()=>L});var t=p(8258),e=p(5e3),f=p(508),M=p(3191),a=p(449),C=p(1135),d=p(6451),R=p(4004);const h=(0,f.sb)((0,f.Id)(t.Hs));let L=(()=>{class ne extends h{constructor(ge,q,_e){super(ge,q),this.tabIndex=Number(_e)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ne.\u0275fac=function(ge){return new(ge||ne)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:ne}]),e.qOj]}),ne})(),w=(()=>{class ne extends t.rO{}return ne.\u0275fac=function(){let re;return function(q){return(re||(re=e.n5z(ne)))(q||ne)}}(),ne.\u0275dir=e.lG2({type:ne,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:ne}]),e.qOj]}),ne})(),D=(()=>{class ne extends t.Xx{constructor(ge,q,_e,x){super(ge,q,_e),this._disabled=!1,this.tabIndex=Number(x)||0}get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,M.Ig)(ge)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ge){this._tabIndex=null!=ge?ge:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ne.\u0275fac=function(ge){return new(ge||ne)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:ne},{provide:t.Hs,useExisting:ne},{provide:t.HI,useExisting:ne}]),e.qOj]}),ne})(),k=(()=>{class ne{constructor(ge,q){this.viewContainer=ge,this._node=q}}return ne.\u0275fac=function(ge){return new(ge||ne)(e.Y36(e.s_b),e.Y36(t.HI,8))},ne.\u0275dir=e.lG2({type:ne,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:ne}])]}),ne})(),E=(()=>{class ne extends t._0{}return ne.\u0275fac=function(){let re;return function(q){return(re||(re=e.n5z(ne)))(q||ne)}}(),ne.\u0275cmp=e.Xpm({type:ne,selectors:[["mat-tree"]],viewQuery:function(ge,q){if(1&ge&&e.Gf(k,7),2&ge){let _e;e.iGM(_e=e.CRH())&&(q._nodeOutlet=_e.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:ne}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ge,q){1&ge&&e.GkF(0,0)},directives:[k],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}),ne})(),B=(()=>{class ne extends t.Ud{}return ne.\u0275fac=function(){let re;return function(q){return(re||(re=e.n5z(ne)))(q||ne)}}(),ne.\u0275dir=e.lG2({type:ne,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:ne}]),e.qOj]}),ne})(),Y=(()=>{class ne{}return ne.\u0275fac=function(ge){return new(ge||ne)},ne.\u0275mod=e.oAB({type:ne}),ne.\u0275inj=e.cJS({imports:[[t.nZ,f.BQ],f.BQ]}),ne})();class ue extends a.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,d.T)(re.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(Be,K,p)=>{"use strict";p.d(K,{Qb:()=>Fs,PW:()=>Ur});var t=p(5e3),e=p(2313),f=p(1777);const M=!1;function C(yt){return new t.vHH(3e3,M)}function he(){return"undefined"!=typeof window&&void 0!==window.document}function be(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pe(yt){switch(yt.length){case 0:return new f.ZN;case 1:return yt[0];default:return new f.ZE(yt)}}function Ee(yt,oe,pe,Ke,Mt={},Vt={}){const ri=[],ni=[];let gi=-1,ki=null;if(Ke.forEach($i=>{const dn=$i.offset,An=dn==gi,Gn=An&&ki||{};Object.keys($i).forEach(En=>{let kn=En,ar=$i[En];if("offset"!==En)switch(kn=oe.normalizePropertyName(kn,ri),ar){case f.k1:ar=Mt[En];break;case f.l3:ar=Vt[En];break;default:ar=oe.normalizeStyleValue(En,kn,ar,ri)}Gn[kn]=ar}),An||ni.push(Gn),ki=Gn,gi=dn}),ri.length)throw function u(yt){return new t.vHH(3502,M)}();return ni}function j(yt,oe,pe,Ke){switch(oe){case"start":yt.onStart(()=>Ke(pe&&Ve(pe,"start",yt)));break;case"done":yt.onDone(()=>Ke(pe&&Ve(pe,"done",yt)));break;case"destroy":yt.onDestroy(()=>Ke(pe&&Ve(pe,"destroy",yt)))}}function Ve(yt,oe,pe){const Ke=pe.totalTime,Vt=Me(yt.element,yt.triggerName,yt.fromState,yt.toState,oe||yt.phaseName,null==Ke?yt.totalTime:Ke,!!pe.disabled),ri=yt._data;return null!=ri&&(Vt._data=ri),Vt}function Me(yt,oe,pe,Ke,Mt="",Vt=0,ri){return{element:yt,triggerName:oe,fromState:pe,toState:Ke,phaseName:Mt,totalTime:Vt,disabled:!!ri}}function J(yt,oe,pe){let Ke;return yt instanceof Map?(Ke=yt.get(oe),Ke||yt.set(oe,Ke=pe)):(Ke=yt[oe],Ke||(Ke=yt[oe]=pe)),Ke}function Ie(yt){const oe=yt.indexOf(":");return[yt.substring(1,oe),yt.substr(oe+1)]}let ut=(yt,oe)=>!1,Oe=(yt,oe,pe)=>[],we=null;function ce(yt){const oe=yt.parentNode||yt.host;return oe===we?null:oe}(be()||"undefined"!=typeof Element)&&(he()?(we=(()=>document.documentElement)(),ut=(yt,oe)=>{for(;oe;){if(oe===yt)return!0;oe=ce(oe)}return!1}):ut=(yt,oe)=>yt.contains(oe),Oe=(yt,oe,pe)=>{if(pe)return Array.from(yt.querySelectorAll(oe));const Ke=yt.querySelector(oe);return Ke?[Ke]:[]});let W=null,te=!1;function Ce(yt){W||(W=function fe(){return"undefined"!=typeof document?document.body:null}()||{},te=!!W.style&&"WebkitAppearance"in W.style);let oe=!0;return W.style&&!function xe(yt){return"ebkit"==yt.substring(1,6)}(yt)&&(oe=yt in W.style,!oe&&te&&(oe="Webkit"+yt.charAt(0).toUpperCase()+yt.substr(1)in W.style)),oe}const Q=ut,pt=Oe;let Dt=(()=>{class yt{validateStyleProperty(pe){return Ce(pe)}matchesElement(pe,Ke){return!1}containsElement(pe,Ke){return Q(pe,Ke)}getParentElement(pe){return ce(pe)}query(pe,Ke,Mt){return pt(pe,Ke,Mt)}computeStyle(pe,Ke,Mt){return Mt||""}animate(pe,Ke,Mt,Vt,ri,ni=[],gi){return new f.ZN(Mt,Vt)}}return yt.\u0275fac=function(pe){return new(pe||yt)},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})(),di=(()=>{class yt{}return yt.NOOP=new Dt,yt})();const Ot="ng-enter",Nt="ng-leave",gt="ng-trigger",it=".ng-trigger",bt="ng-animating",ti=".ng-animating";function Qt(yt){if("number"==typeof yt)return yt;const oe=yt.match(/^(-?[\.\d]+)(m?s)/);return!oe||oe.length<2?0:Re(parseFloat(oe[1]),oe[2])}function Re(yt,oe){return"s"===oe?1e3*yt:yt}function ke(yt,oe,pe){return yt.hasOwnProperty("duration")?yt:function de(yt,oe,pe){let Mt,Vt=0,ri="";if("string"==typeof yt){const ni=yt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return oe.push(C()),{duration:0,delay:0,easing:""};Mt=Re(parseFloat(ni[1]),ni[2]);const gi=ni[3];null!=gi&&(Vt=Re(parseFloat(gi),ni[4]));const ki=ni[5];ki&&(ri=ki)}else Mt=yt;if(!pe){let ni=!1,gi=oe.length;Mt<0&&(oe.push(function d(){return new t.vHH(3100,M)}()),ni=!0),Vt<0&&(oe.push(function R(){return new t.vHH(3101,M)}()),ni=!0),ni&&oe.splice(gi,0,C())}return{duration:Mt,delay:Vt,easing:ri}}(yt,oe,pe)}function ye(yt,oe={}){return Object.keys(yt).forEach(pe=>{oe[pe]=yt[pe]}),oe}function mt(yt,oe,pe={}){if(oe)for(let Ke in yt)pe[Ke]=yt[Ke];else ye(yt,pe);return pe}function Ft(yt,oe,pe){return pe?oe+":"+pe+";":""}function nt(yt){let oe="";for(let pe=0;pe{const Mt=Jt(Ke);pe&&!pe.hasOwnProperty(Ke)&&(pe[Ke]=yt.style[Mt]),yt.style[Mt]=oe[Ke]}),be()&&nt(yt))}function rt(yt,oe){yt.style&&(Object.keys(oe).forEach(pe=>{const Ke=Jt(pe);yt.style[Ke]=""}),be()&&nt(yt))}function et(yt){return Array.isArray(yt)?1==yt.length?yt[0]:(0,f.vP)(yt):yt}const Ge=new RegExp("{{\\s*(.+?)\\s*}}","g");function ot(yt){let oe=[];if("string"==typeof yt){let pe;for(;pe=Ge.exec(yt);)oe.push(pe[1]);Ge.lastIndex=0}return oe}function lt(yt,oe,pe){const Ke=yt.toString(),Mt=Ke.replace(Ge,(Vt,ri)=>{let ni=oe[ri];return oe.hasOwnProperty(ri)||(pe.push(function L(yt){return new t.vHH(3003,M)}()),ni=""),ni.toString()});return Mt==Ke?yt:Mt}function Ct(yt){const oe=[];let pe=yt.next();for(;!pe.done;)oe.push(pe.value),pe=yt.next();return oe}const mi=/-+([a-z0-9])/g;function Jt(yt){return yt.replace(mi,(...oe)=>oe[1].toUpperCase())}function ei(yt){return yt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(yt,oe,pe){switch(oe.type){case 7:return yt.visitTrigger(oe,pe);case 0:return yt.visitState(oe,pe);case 1:return yt.visitTransition(oe,pe);case 2:return yt.visitSequence(oe,pe);case 3:return yt.visitGroup(oe,pe);case 4:return yt.visitAnimate(oe,pe);case 5:return yt.visitKeyframes(oe,pe);case 6:return yt.visitStyle(oe,pe);case 8:return yt.visitReference(oe,pe);case 9:return yt.visitAnimateChild(oe,pe);case 10:return yt.visitAnimateRef(oe,pe);case 11:return yt.visitQuery(oe,pe);case 12:return yt.visitStagger(oe,pe);default:throw function w(yt){return new t.vHH(3004,M)}()}}function Ji(yt,oe){return window.getComputedStyle(yt)[oe]}function se(yt,oe){const pe=[];return"string"==typeof yt?yt.split(/\s*,\s*/).forEach(Ke=>function Xe(yt,oe,pe){if(":"==yt[0]){const gi=function xt(yt,oe){switch(yt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,Ke)=>parseFloat(Ke)>parseFloat(pe);case":decrement":return(pe,Ke)=>parseFloat(Ke) *"}}(yt,pe);if("function"==typeof gi)return void oe.push(gi);yt=gi}const Ke=yt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ke||Ke.length<4)return pe.push(function q(yt){return new t.vHH(3015,M)}()),oe;const Mt=Ke[1],Vt=Ke[2],ri=Ke[3];oe.push(Ei(Mt,ri));"<"==Vt[0]&&!("*"==Mt&&"*"==ri)&&oe.push(Ei(ri,Mt))}(Ke,pe,oe)):pe.push(yt),pe}const Bt=new Set(["true","1"]),bi=new Set(["false","0"]);function Ei(yt,oe){const pe=Bt.has(yt)||bi.has(yt),Ke=Bt.has(oe)||bi.has(oe);return(Mt,Vt)=>{let ri="*"==yt||yt==Mt,ni="*"==oe||oe==Vt;return!ri&&pe&&"boolean"==typeof Mt&&(ri=Mt?Bt.has(yt):bi.has(yt)),!ni&&Ke&&"boolean"==typeof Vt&&(ni=Vt?Bt.has(oe):bi.has(oe)),ri&&ni}}const Wi=new RegExp("s*:selfs*,?","g");function on(yt,oe,pe,Ke){return new ii(yt).build(oe,pe,Ke)}class ii{constructor(oe){this._driver=oe}build(oe,pe,Ke){const Mt=new Rt(pe);this._resetContextStyleTimingState(Mt);const Vt=si(this,et(oe),Mt);return Mt.unsupportedCSSPropertiesFound.size&&Mt.unsupportedCSSPropertiesFound.keys(),Vt}_resetContextStyleTimingState(oe){oe.currentQuerySelector="",oe.collectedStyles={},oe.collectedStyles[""]={},oe.currentTime=0}visitTrigger(oe,pe){let Ke=pe.queryCount=0,Mt=pe.depCount=0;const Vt=[],ri=[];return"@"==oe.name.charAt(0)&&pe.errors.push(function S(){return new t.vHH(3006,M)}()),oe.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(pe),0==ni.type){const gi=ni,ki=gi.name;ki.toString().split(/\s*,\s*/).forEach($i=>{gi.name=$i,Vt.push(this.visitState(gi,pe))}),gi.name=ki}else if(1==ni.type){const gi=this.visitTransition(ni,pe);Ke+=gi.queryCount,Mt+=gi.depCount,ri.push(gi)}else pe.errors.push(function k(){return new t.vHH(3007,M)}())}),{type:7,name:oe.name,states:Vt,transitions:ri,queryCount:Ke,depCount:Mt,options:null}}visitState(oe,pe){const Ke=this.visitStyle(oe.styles,pe),Mt=oe.options&&oe.options.params||null;if(Ke.containsDynamicStyles){const Vt=new Set,ri=Mt||{};Ke.styles.forEach(ni=>{if(fi(ni)){const gi=ni;Object.keys(gi).forEach(ki=>{ot(gi[ki]).forEach($i=>{ri.hasOwnProperty($i)||Vt.add($i)})})}}),Vt.size&&(Ct(Vt.values()),pe.errors.push(function E(yt,oe){return new t.vHH(3008,M)}()))}return{type:0,name:oe.name,style:Ke,options:Mt?{params:Mt}:null}}visitTransition(oe,pe){pe.queryCount=0,pe.depCount=0;const Ke=si(this,et(oe.animation),pe);return{type:1,matchers:se(oe.expr,pe.errors),animation:Ke,queryCount:pe.queryCount,depCount:pe.depCount,options:Ni(oe.options)}}visitSequence(oe,pe){return{type:2,steps:oe.steps.map(Ke=>si(this,Ke,pe)),options:Ni(oe.options)}}visitGroup(oe,pe){const Ke=pe.currentTime;let Mt=0;const Vt=oe.steps.map(ri=>{pe.currentTime=Ke;const ni=si(this,ri,pe);return Mt=Math.max(Mt,pe.currentTime),ni});return pe.currentTime=Mt,{type:3,steps:Vt,options:Ni(oe.options)}}visitAnimate(oe,pe){const Ke=function Ti(yt,oe){if(yt.hasOwnProperty("duration"))return yt;if("number"==typeof yt)return mn(ke(yt,oe).duration,0,"");const pe=yt;if(pe.split(/\s+/).some(Vt=>"{"==Vt.charAt(0)&&"{"==Vt.charAt(1))){const Vt=mn(0,0,"");return Vt.dynamic=!0,Vt.strValue=pe,Vt}const Mt=ke(pe,oe);return mn(Mt.duration,Mt.delay,Mt.easing)}(oe.timings,pe.errors);pe.currentAnimateTimings=Ke;let Mt,Vt=oe.styles?oe.styles:(0,f.oB)({});if(5==Vt.type)Mt=this.visitKeyframes(Vt,pe);else{let ri=oe.styles,ni=!1;if(!ri){ni=!0;const ki={};Ke.easing&&(ki.easing=Ke.easing),ri=(0,f.oB)(ki)}pe.currentTime+=Ke.duration+Ke.delay;const gi=this.visitStyle(ri,pe);gi.isEmptyStep=ni,Mt=gi}return pe.currentAnimateTimings=null,{type:4,timings:Ke,style:Mt,options:null}}visitStyle(oe,pe){const Ke=this._makeStyleAst(oe,pe);return this._validateStyleAst(Ke,pe),Ke}_makeStyleAst(oe,pe){const Ke=[];Array.isArray(oe.styles)?oe.styles.forEach(ri=>{"string"==typeof ri?ri==f.l3?Ke.push(ri):pe.errors.push(function B(yt){return new t.vHH(3002,M)}()):Ke.push(ri)}):Ke.push(oe.styles);let Mt=!1,Vt=null;return Ke.forEach(ri=>{if(fi(ri)){const ni=ri,gi=ni.easing;if(gi&&(Vt=gi,delete ni.easing),!Mt)for(let ki in ni)if(ni[ki].toString().indexOf("{{")>=0){Mt=!0;break}}}),{type:6,styles:Ke,easing:Vt,offset:oe.offset,containsDynamicStyles:Mt,options:null}}_validateStyleAst(oe,pe){const Ke=pe.currentAnimateTimings;let Mt=pe.currentTime,Vt=pe.currentTime;Ke&&Vt>0&&(Vt-=Ke.duration+Ke.delay),oe.styles.forEach(ri=>{"string"!=typeof ri&&Object.keys(ri).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ri[ni],void pe.unsupportedCSSPropertiesFound.add(ni);const gi=pe.collectedStyles[pe.currentQuerySelector],ki=gi[ni];let $i=!0;ki&&(Vt!=Mt&&Vt>=ki.startTime&&Mt<=ki.endTime&&(pe.errors.push(function Y(yt,oe,pe,Ke,Mt){return new t.vHH(3010,M)}()),$i=!1),Vt=ki.startTime),$i&&(gi[ni]={startTime:Vt,endTime:Mt}),pe.options&&function Ae(yt,oe,pe){const Ke=oe.params||{},Mt=ot(yt);Mt.length&&Mt.forEach(Vt=>{Ke.hasOwnProperty(Vt)||pe.push(function h(yt){return new t.vHH(3001,M)}())})}(ri[ni],pe.options,pe.errors)})})}visitKeyframes(oe,pe){const Ke={type:5,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.errors.push(function ae(){return new t.vHH(3011,M)}()),Ke;let Vt=0;const ri=[];let ni=!1,gi=!1,ki=0;const $i=oe.steps.map(Rr=>{const yr=this._makeStyleAst(Rr,pe);let oa=null!=yr.offset?yr.offset:function Wt(yt){if("string"==typeof yt)return null;let oe=null;if(Array.isArray(yt))yt.forEach(pe=>{if(fi(pe)&&pe.hasOwnProperty("offset")){const Ke=pe;oe=parseFloat(Ke.offset),delete Ke.offset}});else if(fi(yt)&&yt.hasOwnProperty("offset")){const pe=yt;oe=parseFloat(pe.offset),delete pe.offset}return oe}(yr.styles),Xr=0;return null!=oa&&(Vt++,Xr=yr.offset=oa),gi=gi||Xr<0||Xr>1,ni=ni||Xr0&&Vt{const oa=An>0?yr==Gn?1:An*yr:ri[yr],Xr=oa*ar;pe.currentTime=En+kn.delay+Xr,kn.duration=Xr,this._validateStyleAst(Rr,pe),Rr.offset=oa,Ke.styles.push(Rr)}),Ke}visitReference(oe,pe){return{type:8,animation:si(this,et(oe.animation),pe),options:Ni(oe.options)}}visitAnimateChild(oe,pe){return pe.depCount++,{type:9,options:Ni(oe.options)}}visitAnimateRef(oe,pe){return{type:10,animation:this.visitReference(oe.animation,pe),options:Ni(oe.options)}}visitQuery(oe,pe){const Ke=pe.currentQuerySelector,Mt=oe.options||{};pe.queryCount++,pe.currentQuery=oe;const[Vt,ri]=function Ri(yt){const oe=!!yt.split(/\s*,\s*/).find(pe=>":self"==pe);return oe&&(yt=yt.replace(Wi,"")),yt=yt.replace(/@\*/g,it).replace(/@\w+/g,pe=>it+"-"+pe.substr(1)).replace(/:animating/g,ti),[yt,oe]}(oe.selector);pe.currentQuerySelector=Ke.length?Ke+" "+Vt:Vt,J(pe.collectedStyles,pe.currentQuerySelector,{});const ni=si(this,et(oe.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=Ke,{type:11,selector:Vt,limit:Mt.limit||0,optional:!!Mt.optional,includeSelf:ri,animation:ni,originalSelector:oe.selector,options:Ni(oe.options)}}visitStagger(oe,pe){pe.currentQuery||pe.errors.push(function re(){return new t.vHH(3013,M)}());const Ke="full"===oe.timings?{duration:0,delay:0,easing:"full"}:ke(oe.timings,pe.errors,!0);return{type:12,animation:si(this,et(oe.animation),pe),timings:Ke,options:null}}}class Rt{constructor(oe){this.errors=oe,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,this.unsupportedCSSPropertiesFound=new Set}}function fi(yt){return!Array.isArray(yt)&&"object"==typeof yt}function Ni(yt){return yt?(yt=ye(yt)).params&&(yt.params=function st(yt){return yt?ye(yt):null}(yt.params)):yt={},yt}function mn(yt,oe,pe){return{duration:yt,delay:oe,easing:pe}}function In(yt,oe,pe,Ke,Mt,Vt,ri=null,ni=!1){return{type:1,element:yt,keyframes:oe,preStyleProps:pe,postStyleProps:Ke,duration:Mt,delay:Vt,totalTime:Mt+Vt,easing:ri,subTimeline:ni}}class Rn{constructor(){this._map=new Map}get(oe){return this._map.get(oe)||[]}append(oe,pe){let Ke=this._map.get(oe);Ke||this._map.set(oe,Ke=[]),Ke.push(...pe)}has(oe){return this._map.has(oe)}clear(){this._map.clear()}}const Si=new RegExp(":enter","g"),Sn=new RegExp(":leave","g");function qn(yt,oe,pe,Ke,Mt,Vt={},ri={},ni,gi,ki=[]){return(new sr).buildKeyframes(yt,oe,pe,Ke,Mt,Vt,ri,ni,gi,ki)}class sr{buildKeyframes(oe,pe,Ke,Mt,Vt,ri,ni,gi,ki,$i=[]){ki=ki||new Rn;const dn=new _a(oe,pe,ki,Mt,Vt,$i,[]);dn.options=gi,dn.currentTimeline.setStyles([ri],null,dn.errors,gi),si(this,Ke,dn);const An=dn.timelines.filter(Gn=>Gn.containsAnimation());if(Object.keys(ni).length){let Gn;for(let En=An.length-1;En>=0;En--){const kn=An[En];if(kn.element===pe){Gn=kn;break}}Gn&&!Gn.allowOnlyTimelineStyles()&&Gn.setStyles([ni],null,dn.errors,gi)}return An.length?An.map(Gn=>Gn.buildKeyframes()):[In(pe,[],[],[],0,0,"",!1)]}visitTrigger(oe,pe){}visitState(oe,pe){}visitTransition(oe,pe){}visitAnimateChild(oe,pe){const Ke=pe.subInstructions.get(pe.element);if(Ke){const Mt=pe.createSubContext(oe.options),Vt=pe.currentTimeline.currentTime,ri=this._visitSubInstructions(Ke,Mt,Mt.options);Vt!=ri&&pe.transformIntoNewTimeline(ri)}pe.previousNode=oe}visitAnimateRef(oe,pe){const Ke=pe.createSubContext(oe.options);Ke.transformIntoNewTimeline(),this.visitReference(oe.animation,Ke),pe.transformIntoNewTimeline(Ke.currentTimeline.currentTime),pe.previousNode=oe}_visitSubInstructions(oe,pe,Ke){let Vt=pe.currentTimeline.currentTime;const ri=null!=Ke.duration?Qt(Ke.duration):null,ni=null!=Ke.delay?Qt(Ke.delay):null;return 0!==ri&&oe.forEach(gi=>{const ki=pe.appendInstructionToTimeline(gi,ri,ni);Vt=Math.max(Vt,ki.duration+ki.delay)}),Vt}visitReference(oe,pe){pe.updateOptions(oe.options,!0),si(this,oe.animation,pe),pe.previousNode=oe}visitSequence(oe,pe){const Ke=pe.subContextCount;let Mt=pe;const Vt=oe.options;if(Vt&&(Vt.params||Vt.delay)&&(Mt=pe.createSubContext(Vt),Mt.transformIntoNewTimeline(),null!=Vt.delay)){6==Mt.previousNode.type&&(Mt.currentTimeline.snapshotCurrentStyles(),Mt.previousNode=ha);const ri=Qt(Vt.delay);Mt.delayNextStep(ri)}oe.steps.length&&(oe.steps.forEach(ri=>si(this,ri,Mt)),Mt.currentTimeline.applyStylesToKeyframe(),Mt.subContextCount>Ke&&Mt.transformIntoNewTimeline()),pe.previousNode=oe}visitGroup(oe,pe){const Ke=[];let Mt=pe.currentTimeline.currentTime;const Vt=oe.options&&oe.options.delay?Qt(oe.options.delay):0;oe.steps.forEach(ri=>{const ni=pe.createSubContext(oe.options);Vt&&ni.delayNextStep(Vt),si(this,ri,ni),Mt=Math.max(Mt,ni.currentTimeline.currentTime),Ke.push(ni.currentTimeline)}),Ke.forEach(ri=>pe.currentTimeline.mergeTimelineCollectedStyles(ri)),pe.transformIntoNewTimeline(Mt),pe.previousNode=oe}_visitTiming(oe,pe){if(oe.dynamic){const Ke=oe.strValue;return ke(pe.params?lt(Ke,pe.params,pe.errors):Ke,pe.errors)}return{duration:oe.duration,delay:oe.delay,easing:oe.easing}}visitAnimate(oe,pe){const Ke=pe.currentAnimateTimings=this._visitTiming(oe.timings,pe),Mt=pe.currentTimeline;Ke.delay&&(pe.incrementTime(Ke.delay),Mt.snapshotCurrentStyles());const Vt=oe.style;5==Vt.type?this.visitKeyframes(Vt,pe):(pe.incrementTime(Ke.duration),this.visitStyle(Vt,pe),Mt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=oe}visitStyle(oe,pe){const Ke=pe.currentTimeline,Mt=pe.currentAnimateTimings;!Mt&&Ke.getCurrentStyleProperties().length&&Ke.forwardFrame();const Vt=Mt&&Mt.easing||oe.easing;oe.isEmptyStep?Ke.applyEmptyStep(Vt):Ke.setStyles(oe.styles,Vt,pe.errors,pe.options),pe.previousNode=oe}visitKeyframes(oe,pe){const Ke=pe.currentAnimateTimings,Mt=pe.currentTimeline.duration,Vt=Ke.duration,ni=pe.createSubContext().currentTimeline;ni.easing=Ke.easing,oe.styles.forEach(gi=>{ni.forwardTime((gi.offset||0)*Vt),ni.setStyles(gi.styles,gi.easing,pe.errors,pe.options),ni.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(ni),pe.transformIntoNewTimeline(Mt+Vt),pe.previousNode=oe}visitQuery(oe,pe){const Ke=pe.currentTimeline.currentTime,Mt=oe.options||{},Vt=Mt.delay?Qt(Mt.delay):0;Vt&&(6===pe.previousNode.type||0==Ke&&pe.currentTimeline.getCurrentStyleProperties().length)&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=ha);let ri=Ke;const ni=pe.invokeQuery(oe.selector,oe.originalSelector,oe.limit,oe.includeSelf,!!Mt.optional,pe.errors);pe.currentQueryTotal=ni.length;let gi=null;ni.forEach((ki,$i)=>{pe.currentQueryIndex=$i;const dn=pe.createSubContext(oe.options,ki);Vt&&dn.delayNextStep(Vt),ki===pe.element&&(gi=dn.currentTimeline),si(this,oe.animation,dn),dn.currentTimeline.applyStylesToKeyframe(),ri=Math.max(ri,dn.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(ri),gi&&(pe.currentTimeline.mergeTimelineCollectedStyles(gi),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=oe}visitStagger(oe,pe){const Ke=pe.parentContext,Mt=pe.currentTimeline,Vt=oe.timings,ri=Math.abs(Vt.duration),ni=ri*(pe.currentQueryTotal-1);let gi=ri*pe.currentQueryIndex;switch(Vt.duration<0?"reverse":Vt.easing){case"reverse":gi=ni-gi;break;case"full":gi=Ke.currentStaggerTime}const $i=pe.currentTimeline;gi&&$i.delayNextStep(gi);const dn=$i.currentTime;si(this,oe.animation,pe),pe.previousNode=oe,Ke.currentStaggerTime=Mt.currentTime-dn+(Mt.startTime-Ke.currentTimeline.startTime)}}const ha={};class _a{constructor(oe,pe,Ke,Mt,Vt,ri,ni,gi){this._driver=oe,this.element=pe,this.subInstructions=Ke,this._enterClassName=Mt,this._leaveClassName=Vt,this.errors=ri,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ha,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=gi||new Sr(this._driver,pe,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(oe,pe){if(!oe)return;const Ke=oe;let Mt=this.options;null!=Ke.duration&&(Mt.duration=Qt(Ke.duration)),null!=Ke.delay&&(Mt.delay=Qt(Ke.delay));const Vt=Ke.params;if(Vt){let ri=Mt.params;ri||(ri=this.options.params={}),Object.keys(Vt).forEach(ni=>{(!pe||!ri.hasOwnProperty(ni))&&(ri[ni]=lt(Vt[ni],ri,this.errors))})}}_copyOptions(){const oe={};if(this.options){const pe=this.options.params;if(pe){const Ke=oe.params={};Object.keys(pe).forEach(Mt=>{Ke[Mt]=pe[Mt]})}}return oe}createSubContext(oe=null,pe,Ke){const Mt=pe||this.element,Vt=new _a(this._driver,Mt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Mt,Ke||0));return Vt.previousNode=this.previousNode,Vt.currentAnimateTimings=this.currentAnimateTimings,Vt.options=this._copyOptions(),Vt.updateOptions(oe),Vt.currentQueryIndex=this.currentQueryIndex,Vt.currentQueryTotal=this.currentQueryTotal,Vt.parentContext=this,this.subContextCount++,Vt}transformIntoNewTimeline(oe){return this.previousNode=ha,this.currentTimeline=this.currentTimeline.fork(this.element,oe),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(oe,pe,Ke){const Mt={duration:null!=pe?pe:oe.duration,delay:this.currentTimeline.currentTime+(null!=Ke?Ke:0)+oe.delay,easing:""},Vt=new fa(this._driver,oe.element,oe.keyframes,oe.preStyleProps,oe.postStyleProps,Mt,oe.stretchStartingKeyframe);return this.timelines.push(Vt),Mt}incrementTime(oe){this.currentTimeline.forwardTime(this.currentTimeline.duration+oe)}delayNextStep(oe){oe>0&&this.currentTimeline.delayNextStep(oe)}invokeQuery(oe,pe,Ke,Mt,Vt,ri){let ni=[];if(Mt&&ni.push(this.element),oe.length>0){oe=(oe=oe.replace(Si,"."+this._enterClassName)).replace(Sn,"."+this._leaveClassName);let ki=this._driver.query(this.element,oe,1!=Ke);0!==Ke&&(ki=Ke<0?ki.slice(ki.length+Ke,ki.length):ki.slice(0,Ke)),ni.push(...ki)}return!Vt&&0==ni.length&&ri.push(function ge(yt){return new t.vHH(3014,M)}()),ni}}class Sr{constructor(oe,pe,Ke,Mt){this._driver=oe,this.element=pe,this.startTime=Ke,this._elementTimelineStylesLookup=Mt,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(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,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(oe){const pe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||pe?(this.forwardTime(this.currentTime+oe),pe&&this.snapshotCurrentStyles()):this.startTime+=oe}fork(oe,pe){return this.applyStylesToKeyframe(),new Sr(this._driver,oe,pe||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(oe){this.applyStylesToKeyframe(),this.duration=oe,this._loadKeyframe()}_updateStyle(oe,pe){this._localTimelineStyles[oe]=pe,this._globalTimelineStyles[oe]=pe,this._styleSummary[oe]={time:this.currentTime,value:pe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(oe){oe&&(this._previousKeyframe.easing=oe),Object.keys(this._globalTimelineStyles).forEach(pe=>{this._backFill[pe]=this._globalTimelineStyles[pe]||f.l3,this._currentKeyframe[pe]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(oe,pe,Ke,Mt){pe&&(this._previousKeyframe.easing=pe);const Vt=Mt&&Mt.params||{},ri=function ta(yt,oe){const pe={};let Ke;return yt.forEach(Mt=>{"*"===Mt?(Ke=Ke||Object.keys(oe),Ke.forEach(Vt=>{pe[Vt]=f.l3})):mt(Mt,!1,pe)}),pe}(oe,this._globalTimelineStyles);Object.keys(ri).forEach(ni=>{const gi=lt(ri[ni],Vt,Ke);this._pendingStyles[ni]=gi,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:f.l3),this._updateStyle(ni,gi)})}applyStylesToKeyframe(){const oe=this._pendingStyles,pe=Object.keys(oe);0!=pe.length&&(this._pendingStyles={},pe.forEach(Ke=>{this._currentKeyframe[Ke]=oe[Ke]}),Object.keys(this._localTimelineStyles).forEach(Ke=>{this._currentKeyframe.hasOwnProperty(Ke)||(this._currentKeyframe[Ke]=this._localTimelineStyles[Ke])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(oe=>{const pe=this._localTimelineStyles[oe];this._pendingStyles[oe]=pe,this._updateStyle(oe,pe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const oe=[];for(let pe in this._currentKeyframe)oe.push(pe);return oe}mergeTimelineCollectedStyles(oe){Object.keys(oe._styleSummary).forEach(pe=>{const Ke=this._styleSummary[pe],Mt=oe._styleSummary[pe];(!Ke||Mt.time>Ke.time)&&this._updateStyle(pe,Mt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const oe=new Set,pe=new Set,Ke=1===this._keyframes.size&&0===this.duration;let Mt=[];this._keyframes.forEach((ni,gi)=>{const ki=mt(ni,!0);Object.keys(ki).forEach($i=>{const dn=ki[$i];dn==f.k1?oe.add($i):dn==f.l3&&pe.add($i)}),Ke||(ki.offset=gi/this.duration),Mt.push(ki)});const Vt=oe.size?Ct(oe.values()):[],ri=pe.size?Ct(pe.values()):[];if(Ke){const ni=Mt[0],gi=ye(ni);ni.offset=0,gi.offset=1,Mt=[ni,gi]}return In(this.element,Mt,Vt,ri,this.duration,this.startTime,this.easing,!1)}}class fa extends Sr{constructor(oe,pe,Ke,Mt,Vt,ri,ni=!1){super(oe,pe,ri.delay),this.keyframes=Ke,this.preStyleProps=Mt,this.postStyleProps=Vt,this._stretchStartingKeyframe=ni,this.timings={duration:ri.duration,delay:ri.delay,easing:ri.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let oe=this.keyframes,{delay:pe,duration:Ke,easing:Mt}=this.timings;if(this._stretchStartingKeyframe&&pe){const Vt=[],ri=Ke+pe,ni=pe/ri,gi=mt(oe[0],!1);gi.offset=0,Vt.push(gi);const ki=mt(oe[0],!1);ki.offset=zr(ni),Vt.push(ki);const $i=oe.length-1;for(let dn=1;dn<=$i;dn++){let An=mt(oe[dn],!1);An.offset=zr((pe+An.offset*Ke)/ri),Vt.push(An)}Ke=ri,pe=0,Mt="",oe=Vt}return In(this.element,oe,this.preStyleProps,this.postStyleProps,Ke,pe,Mt,!0)}}function zr(yt,oe=3){const pe=Math.pow(10,oe-1);return Math.round(yt*pe)/pe}class na{}class Jr extends na{normalizePropertyName(oe,pe){return Jt(oe)}normalizeStyleValue(oe,pe,Ke,Mt){let Vt="";const ri=Ke.toString().trim();if(Ma[pe]&&0!==Ke&&"0"!==Ke)if("number"==typeof Ke)Vt="px";else{const ni=Ke.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&Mt.push(function D(yt,oe){return new t.vHH(3005,M)}())}return ri+Vt}}const Ma=(()=>function pa(yt){const oe={};return yt.forEach(pe=>oe[pe]=!0),oe}("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 Za(yt,oe,pe,Ke,Mt,Vt,ri,ni,gi,ki,$i,dn,An){return{type:0,element:yt,triggerName:oe,isRemovalTransition:Mt,fromState:pe,fromStyles:Vt,toState:Ke,toStyles:ri,timelines:ni,queriedElements:gi,preStyleProps:ki,postStyleProps:$i,totalTime:dn,errors:An}}const Pr={};class Yn{constructor(oe,pe,Ke){this._triggerName=oe,this.ast=pe,this._stateStyles=Ke}match(oe,pe,Ke,Mt){return function Vr(yt,oe,pe,Ke,Mt){return yt.some(Vt=>Vt(oe,pe,Ke,Mt))}(this.ast.matchers,oe,pe,Ke,Mt)}buildStyles(oe,pe,Ke){const Mt=this._stateStyles["*"],Vt=this._stateStyles[oe],ri=Mt?Mt.buildStyles(pe,Ke):{};return Vt?Vt.buildStyles(pe,Ke):ri}build(oe,pe,Ke,Mt,Vt,ri,ni,gi,ki,$i){const dn=[],An=this.ast.options&&this.ast.options.params||Pr,En=this.buildStyles(Ke,ni&&ni.params||Pr,dn),kn=gi&&gi.params||Pr,ar=this.buildStyles(Mt,kn,dn),Rr=new Set,yr=new Map,oa=new Map,Xr="void"===Mt,Mr={params:Object.assign(Object.assign({},An),kn)},jr=$i?[]:qn(oe,pe,this.ast.animation,Vt,ri,En,ar,Mr,ki,dn);let Zn=0;if(jr.forEach(ja=>{Zn=Math.max(ja.duration+ja.delay,Zn)}),dn.length)return Za(pe,this._triggerName,Ke,Mt,Xr,En,ar,[],[],yr,oa,Zn,dn);jr.forEach(ja=>{const la=ja.element,ws=J(yr,la,{});ja.preStyleProps.forEach(Aa=>ws[Aa]=!0);const Ka=J(oa,la,{});ja.postStyleProps.forEach(Aa=>Ka[Aa]=!0),la!==pe&&Rr.add(la)});const xr=Ct(Rr.values());return Za(pe,this._triggerName,Ke,Mt,Xr,En,ar,jr,xr,yr,oa,Zn)}}class cr{constructor(oe,pe,Ke){this.styles=oe,this.defaultParams=pe,this.normalizer=Ke}buildStyles(oe,pe){const Ke={},Mt=ye(this.defaultParams);return Object.keys(oe).forEach(Vt=>{const ri=oe[Vt];null!=ri&&(Mt[Vt]=ri)}),this.styles.styles.forEach(Vt=>{if("string"!=typeof Vt){const ri=Vt;Object.keys(ri).forEach(ni=>{let gi=ri[ni];gi.length>1&&(gi=lt(gi,Mt,pe));const ki=this.normalizer.normalizePropertyName(ni,pe);gi=this.normalizer.normalizeStyleValue(ni,ki,gi,pe),Ke[ki]=gi})}}),Ke}}class Wr{constructor(oe,pe,Ke){this.name=oe,this.ast=pe,this._normalizer=Ke,this.transitionFactories=[],this.states={},pe.states.forEach(Mt=>{this.states[Mt.name]=new cr(Mt.style,Mt.options&&Mt.options.params||{},Ke)}),va(this.states,"true","1"),va(this.states,"false","0"),pe.transitions.forEach(Mt=>{this.transitionFactories.push(new Yn(oe,Mt,this.states))}),this.fallbackTransition=function Ya(yt,oe,pe){return new Yn(yt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ri,ni)=>!0],options:null,queryCount:0,depCount:0},oe)}(oe,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(oe,pe,Ke,Mt){return this.transitionFactories.find(ri=>ri.match(oe,pe,Ke,Mt))||null}matchStyles(oe,pe,Ke){return this.fallbackTransition.buildStyles(oe,pe,Ke)}}function va(yt,oe,pe){yt.hasOwnProperty(oe)?yt.hasOwnProperty(pe)||(yt[pe]=yt[oe]):yt.hasOwnProperty(pe)&&(yt[oe]=yt[pe])}const dr=new Rn;class ya{constructor(oe,pe,Ke){this.bodyNode=oe,this._driver=pe,this._normalizer=Ke,this._animations={},this._playersById={},this.players=[]}register(oe,pe){const Ke=[],Vt=on(this._driver,pe,Ke,[]);if(Ke.length)throw function c(yt){return new t.vHH(3503,M)}();this._animations[oe]=Vt}_buildPlayer(oe,pe,Ke){const Mt=oe.element,Vt=Ee(0,this._normalizer,0,oe.keyframes,pe,Ke);return this._driver.animate(Mt,Vt,oe.duration,oe.delay,oe.easing,[],!0)}create(oe,pe,Ke={}){const Mt=[],Vt=this._animations[oe];let ri;const ni=new Map;if(Vt?(ri=qn(this._driver,pe,Vt,Ot,Nt,{},{},Ke,dr,Mt),ri.forEach($i=>{const dn=J(ni,$i.element,{});$i.postStyleProps.forEach(An=>dn[An]=null)})):(Mt.push(function v(){return new t.vHH(3300,M)}()),ri=[]),Mt.length)throw function T(yt){return new t.vHH(3504,M)}();ni.forEach(($i,dn)=>{Object.keys($i).forEach(An=>{$i[An]=this._driver.computeStyle(dn,An,f.l3)})});const ki=Pe(ri.map($i=>{const dn=ni.get($i.element);return this._buildPlayer($i,{},dn)}));return this._playersById[oe]=ki,ki.onDestroy(()=>this.destroy(oe)),this.players.push(ki),ki}destroy(oe){const pe=this._getPlayer(oe);pe.destroy(),delete this._playersById[oe];const Ke=this.players.indexOf(pe);Ke>=0&&this.players.splice(Ke,1)}_getPlayer(oe){const pe=this._playersById[oe];if(!pe)throw function I(yt){return new t.vHH(3301,M)}();return pe}listen(oe,pe,Ke,Mt){const Vt=Me(pe,"","","");return j(this._getPlayer(oe),Ke,Vt,Mt),()=>{}}command(oe,pe,Ke,Mt){if("register"==Ke)return void this.register(oe,Mt[0]);if("create"==Ke)return void this.create(oe,pe,Mt[0]||{});const Vt=this._getPlayer(oe);switch(Ke){case"play":Vt.play();break;case"pause":Vt.pause();break;case"reset":Vt.reset();break;case"restart":Vt.restart();break;case"finish":Vt.finish();break;case"init":Vt.init();break;case"setPosition":Vt.setPosition(parseFloat(Mt[0]));break;case"destroy":this.destroy(oe)}}}const kr="ng-animate-queued",ra="ng-animate-disabled",or=[],aa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ha={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ir="__ng_removed";class sa{constructor(oe,pe=""){this.namespaceId=pe;const Ke=oe&&oe.hasOwnProperty("value");if(this.value=function $e(yt){return null!=yt?yt:null}(Ke?oe.value:oe),Ke){const Vt=ye(oe);delete Vt.value,this.options=Vt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(oe){const pe=oe.params;if(pe){const Ke=this.options.params;Object.keys(pe).forEach(Mt=>{null==Ke[Mt]&&(Ke[Mt]=pe[Mt])})}}}const Yr="void",Nr=new sa(Yr);class Br{constructor(oe,pe,Ke){this.id=oe,this.hostElement=pe,this._engine=Ke,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+oe,Pi(pe,this._hostClassName)}listen(oe,pe,Ke,Mt){if(!this._triggers.hasOwnProperty(pe))throw function y(yt,oe){return new t.vHH(3302,M)}();if(null==Ke||0==Ke.length)throw function n(yt){return new t.vHH(3303,M)}();if(!function Je(yt){return"start"==yt||"done"==yt}(Ke))throw function _(yt,oe){return new t.vHH(3400,M)}();const Vt=J(this._elementListeners,oe,[]),ri={name:pe,phase:Ke,callback:Mt};Vt.push(ri);const ni=J(this._engine.statesByElement,oe,{});return ni.hasOwnProperty(pe)||(Pi(oe,gt),Pi(oe,gt+"-"+pe),ni[pe]=Nr),()=>{this._engine.afterFlush(()=>{const gi=Vt.indexOf(ri);gi>=0&&Vt.splice(gi,1),this._triggers[pe]||delete ni[pe]})}}register(oe,pe){return!this._triggers[oe]&&(this._triggers[oe]=pe,!0)}_getTrigger(oe){const pe=this._triggers[oe];if(!pe)throw function V(yt){return new t.vHH(3401,M)}();return pe}trigger(oe,pe,Ke,Mt=!0){const Vt=this._getTrigger(pe),ri=new Xa(this.id,pe,oe);let ni=this._engine.statesByElement.get(oe);ni||(Pi(oe,gt),Pi(oe,gt+"-"+pe),this._engine.statesByElement.set(oe,ni={}));let gi=ni[pe];const ki=new sa(Ke,this.id);if(!(Ke&&Ke.hasOwnProperty("value"))&&gi&&ki.absorbOptions(gi.options),ni[pe]=ki,gi||(gi=Nr),ki.value!==Yr&&gi.value===ki.value){if(!function ci(yt,oe){const pe=Object.keys(yt),Ke=Object.keys(oe);if(pe.length!=Ke.length)return!1;for(let Mt=0;Mt{rt(oe,ar),He(oe,Rr)})}return}const An=J(this._engine.playersByElement,oe,[]);An.forEach(kn=>{kn.namespaceId==this.id&&kn.triggerName==pe&&kn.queued&&kn.destroy()});let Gn=Vt.matchTransition(gi.value,ki.value,oe,ki.params),En=!1;if(!Gn){if(!Mt)return;Gn=Vt.fallbackTransition,En=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:oe,triggerName:pe,transition:Gn,fromState:gi,toState:ki,player:ri,isFallbackTransition:En}),En||(Pi(oe,kr),ri.onStart(()=>{en(oe,kr)})),ri.onDone(()=>{let kn=this.players.indexOf(ri);kn>=0&&this.players.splice(kn,1);const ar=this._engine.playersByElement.get(oe);if(ar){let Rr=ar.indexOf(ri);Rr>=0&&ar.splice(Rr,1)}}),this.players.push(ri),An.push(ri),ri}deregister(oe){delete this._triggers[oe],this._engine.statesByElement.forEach((pe,Ke)=>{delete pe[oe]}),this._elementListeners.forEach((pe,Ke)=>{this._elementListeners.set(Ke,pe.filter(Mt=>Mt.name!=oe))})}clearElementCache(oe){this._engine.statesByElement.delete(oe),this._elementListeners.delete(oe);const pe=this._engine.playersByElement.get(oe);pe&&(pe.forEach(Ke=>Ke.destroy()),this._engine.playersByElement.delete(oe))}_signalRemovalForInnerTriggers(oe,pe){const Ke=this._engine.driver.query(oe,it,!0);Ke.forEach(Mt=>{if(Mt[ir])return;const Vt=this._engine.fetchNamespacesByElement(Mt);Vt.size?Vt.forEach(ri=>ri.triggerLeaveAnimation(Mt,pe,!1,!0)):this.clearElementCache(Mt)}),this._engine.afterFlushAnimationsDone(()=>Ke.forEach(Mt=>this.clearElementCache(Mt)))}triggerLeaveAnimation(oe,pe,Ke,Mt){const Vt=this._engine.statesByElement.get(oe),ri=new Map;if(Vt){const ni=[];if(Object.keys(Vt).forEach(gi=>{if(ri.set(gi,Vt[gi].value),this._triggers[gi]){const ki=this.trigger(oe,gi,Yr,Mt);ki&&ni.push(ki)}}),ni.length)return this._engine.markElementAsRemoved(this.id,oe,!0,pe,ri),Ke&&Pe(ni).onDone(()=>this._engine.processLeaveNode(oe)),!0}return!1}prepareLeaveAnimationListeners(oe){const pe=this._elementListeners.get(oe),Ke=this._engine.statesByElement.get(oe);if(pe&&Ke){const Mt=new Set;pe.forEach(Vt=>{const ri=Vt.name;if(Mt.has(ri))return;Mt.add(ri);const gi=this._triggers[ri].fallbackTransition,ki=Ke[ri]||Nr,$i=new sa(Yr),dn=new Xa(this.id,ri,oe);this._engine.totalQueuedPlayers++,this._queue.push({element:oe,triggerName:ri,transition:gi,fromState:ki,toState:$i,player:dn,isFallbackTransition:!0})})}}removeNode(oe,pe){const Ke=this._engine;if(oe.childElementCount&&this._signalRemovalForInnerTriggers(oe,pe),this.triggerLeaveAnimation(oe,pe,!0))return;let Mt=!1;if(Ke.totalAnimations){const Vt=Ke.players.length?Ke.playersByQueriedElement.get(oe):[];if(Vt&&Vt.length)Mt=!0;else{let ri=oe;for(;ri=ri.parentNode;)if(Ke.statesByElement.get(ri)){Mt=!0;break}}}if(this.prepareLeaveAnimationListeners(oe),Mt)Ke.markElementAsRemoved(this.id,oe,!1,pe);else{const Vt=oe[ir];(!Vt||Vt===aa)&&(Ke.afterFlush(()=>this.clearElementCache(oe)),Ke.destroyInnerAnimations(oe),Ke._onRemovalComplete(oe,pe))}}insertNode(oe,pe){Pi(oe,this._hostClassName)}drainQueuedTransitions(oe){const pe=[];return this._queue.forEach(Ke=>{const Mt=Ke.player;if(Mt.destroyed)return;const Vt=Ke.element,ri=this._elementListeners.get(Vt);ri&&ri.forEach(ni=>{if(ni.name==Ke.triggerName){const gi=Me(Vt,Ke.triggerName,Ke.fromState.value,Ke.toState.value);gi._data=oe,j(Ke.player,ni.phase,gi,ni.callback)}}),Mt.markedForDestroy?this._engine.afterFlush(()=>{Mt.destroy()}):pe.push(Ke)}),this._queue=[],pe.sort((Ke,Mt)=>{const Vt=Ke.transition.ast.depCount,ri=Mt.transition.ast.depCount;return 0==Vt||0==ri?Vt-ri:this._engine.driver.containsElement(Ke.element,Mt.element)?1:-1})}destroy(oe){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,oe)}elementContainsData(oe){let pe=!1;return this._elementListeners.has(oe)&&(pe=!0),pe=!!this._queue.find(Ke=>Ke.element===oe)||pe,pe}}class Sa{constructor(oe,pe,Ke){this.bodyNode=oe,this.driver=pe,this._normalizer=Ke,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=(Mt,Vt)=>{}}_onRemovalComplete(oe,pe){this.onRemovalComplete(oe,pe)}get queuedPlayers(){const oe=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(Ke=>{Ke.queued&&oe.push(Ke)})}),oe}createNamespace(oe,pe){const Ke=new Br(oe,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(Ke,pe):(this.newHostElements.set(pe,Ke),this.collectEnterElement(pe)),this._namespaceLookup[oe]=Ke}_balanceNamespaceList(oe,pe){const Ke=this._namespaceList,Mt=this.namespacesByHostElement,Vt=Ke.length-1;if(Vt>=0){let ri=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(pe);for(;ni;){const gi=Mt.get(ni);if(gi){const ki=Ke.indexOf(gi);Ke.splice(ki+1,0,oe),ri=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Vt;ni>=0;ni--)if(this.driver.containsElement(Ke[ni].hostElement,pe)){Ke.splice(ni+1,0,oe),ri=!0;break}ri||Ke.unshift(oe)}else Ke.push(oe);return Mt.set(pe,oe),oe}register(oe,pe){let Ke=this._namespaceLookup[oe];return Ke||(Ke=this.createNamespace(oe,pe)),Ke}registerTrigger(oe,pe,Ke){let Mt=this._namespaceLookup[oe];Mt&&Mt.register(pe,Ke)&&this.totalAnimations++}destroy(oe,pe){if(!oe)return;const Ke=this._fetchNamespace(oe);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ke.hostElement),delete this._namespaceLookup[oe];const Mt=this._namespaceList.indexOf(Ke);Mt>=0&&this._namespaceList.splice(Mt,1)}),this.afterFlushAnimationsDone(()=>Ke.destroy(pe))}_fetchNamespace(oe){return this._namespaceLookup[oe]}fetchNamespacesByElement(oe){const pe=new Set,Ke=this.statesByElement.get(oe);if(Ke){const Mt=Object.keys(Ke);for(let Vt=0;Vt=0&&this.collectedLeaveElements.splice(ri,1)}if(oe){const ri=this._fetchNamespace(oe);ri&&ri.insertNode(pe,Ke)}Mt&&this.collectEnterElement(pe)}collectEnterElement(oe){this.collectedEnterElements.push(oe)}markElementAsDisabled(oe,pe){pe?this.disabledNodes.has(oe)||(this.disabledNodes.add(oe),Pi(oe,ra)):this.disabledNodes.has(oe)&&(this.disabledNodes.delete(oe),en(oe,ra))}removeNode(oe,pe,Ke,Mt){if(Et(pe)){const Vt=oe?this._fetchNamespace(oe):null;if(Vt?Vt.removeNode(pe,Mt):this.markElementAsRemoved(oe,pe,!1,Mt),Ke){const ri=this.namespacesByHostElement.get(pe);ri&&ri.id!==oe&&ri.removeNode(pe,Mt)}}else this._onRemovalComplete(pe,Mt)}markElementAsRemoved(oe,pe,Ke,Mt,Vt){this.collectedLeaveElements.push(pe),pe[ir]={namespaceId:oe,setForRemoval:Mt,hasAnimation:Ke,removedBeforeQueried:!1,previousTriggersValues:Vt}}listen(oe,pe,Ke,Mt,Vt){return Et(pe)?this._fetchNamespace(oe).listen(pe,Ke,Mt,Vt):()=>{}}_buildInstruction(oe,pe,Ke,Mt,Vt){return oe.transition.build(this.driver,oe.element,oe.fromState.value,oe.toState.value,Ke,Mt,oe.fromState.options,oe.toState.options,pe,Vt)}destroyInnerAnimations(oe){let pe=this.driver.query(oe,it,!0);pe.forEach(Ke=>this.destroyActiveAnimationsForElement(Ke)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(oe,ti,!0),pe.forEach(Ke=>this.finishActiveQueriedAnimationOnElement(Ke)))}destroyActiveAnimationsForElement(oe){const pe=this.playersByElement.get(oe);pe&&pe.forEach(Ke=>{Ke.queued?Ke.markedForDestroy=!0:Ke.destroy()})}finishActiveQueriedAnimationOnElement(oe){const pe=this.playersByQueriedElement.get(oe);pe&&pe.forEach(Ke=>Ke.finish())}whenRenderingDone(){return new Promise(oe=>{if(this.players.length)return Pe(this.players).onDone(()=>oe());oe()})}processLeaveNode(oe){var pe;const Ke=oe[ir];if(Ke&&Ke.setForRemoval){if(oe[ir]=aa,Ke.namespaceId){this.destroyInnerAnimations(oe);const Mt=this._fetchNamespace(Ke.namespaceId);Mt&&Mt.clearElementCache(oe)}this._onRemovalComplete(oe,Ke.setForRemoval)}(null===(pe=oe.classList)||void 0===pe?void 0:pe.contains(ra))&&this.markElementAsDisabled(oe,!1),this.driver.query(oe,".ng-animate-disabled",!0).forEach(Mt=>{this.markElementAsDisabled(Mt,!1)})}flush(oe=-1){let pe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ke,Mt)=>this._balanceNamespaceList(Ke,Mt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ke=0;KeKe()),this._flushFns=[],this._whenQuietFns.length){const Ke=this._whenQuietFns;this._whenQuietFns=[],pe.length?Pe(pe).onDone(()=>{Ke.forEach(Mt=>Mt())}):Ke.forEach(Mt=>Mt())}}reportError(oe){throw function N(yt){return new t.vHH(3402,M)}()}_flushAnimations(oe,pe){const Ke=new Rn,Mt=[],Vt=new Map,ri=[],ni=new Map,gi=new Map,ki=new Map,$i=new Set;this.disabledNodes.forEach(cn=>{$i.add(cn);const xn=this.driver.query(cn,".ng-animate-queued",!0);for(let Tn=0;Tn{const Tn=Ot+kn++;En.set(xn,Tn),cn.forEach($n=>Pi($n,Tn))});const ar=[],Rr=new Set,yr=new Set;for(let cn=0;cnRr.add($n)):yr.add(xn))}const oa=new Map,Xr=Mi(An,Array.from(Rr));Xr.forEach((cn,xn)=>{const Tn=Nt+kn++;oa.set(xn,Tn),cn.forEach($n=>Pi($n,Tn))}),oe.push(()=>{Gn.forEach((cn,xn)=>{const Tn=En.get(xn);cn.forEach($n=>en($n,Tn))}),Xr.forEach((cn,xn)=>{const Tn=oa.get(xn);cn.forEach($n=>en($n,Tn))}),ar.forEach(cn=>{this.processLeaveNode(cn)})});const Mr=[],jr=[];for(let cn=this._namespaceList.length-1;cn>=0;cn--)this._namespaceList[cn].drainQueuedTransitions(pe).forEach(Tn=>{const $n=Tn.player,mr=Tn.element;if(Mr.push($n),this.collectedEnterElements.length){const wt=mr[ir];if(wt&&wt.setForMove){if(wt.previousTriggersValues&&wt.previousTriggersValues.has(Tn.triggerName)){const zt=wt.previousTriggersValues.get(Tn.triggerName),$t=this.statesByElement.get(Tn.element);$t&&$t[Tn.triggerName]&&($t[Tn.triggerName].value=zt)}return void $n.destroy()}}const La=!dn||!this.driver.containsElement(dn,mr),Gr=oa.get(mr),$a=En.get(mr),ur=this._buildInstruction(Tn,Ke,$a,Gr,La);if(ur.errors&&ur.errors.length)return void jr.push(ur);if(La)return $n.onStart(()=>rt(mr,ur.fromStyles)),$n.onDestroy(()=>He(mr,ur.toStyles)),void Mt.push($n);if(Tn.isFallbackTransition)return $n.onStart(()=>rt(mr,ur.fromStyles)),$n.onDestroy(()=>He(mr,ur.toStyles)),void Mt.push($n);const at=[];ur.timelines.forEach(wt=>{wt.stretchStartingKeyframe=!0,this.disabledNodes.has(wt.element)||at.push(wt)}),ur.timelines=at,Ke.append(mr,ur.timelines),ri.push({instruction:ur,player:$n,element:mr}),ur.queriedElements.forEach(wt=>J(ni,wt,[]).push($n)),ur.preStyleProps.forEach((wt,zt)=>{const $t=Object.keys(wt);if($t.length){let pi=gi.get(zt);pi||gi.set(zt,pi=new Set),$t.forEach(_i=>pi.add(_i))}}),ur.postStyleProps.forEach((wt,zt)=>{const $t=Object.keys(wt);let pi=ki.get(zt);pi||ki.set(zt,pi=new Set),$t.forEach(_i=>pi.add(_i))})});if(jr.length){const cn=[];jr.forEach(xn=>{cn.push(function X(yt,oe){return new t.vHH(3505,M)}())}),Mr.forEach(xn=>xn.destroy()),this.reportError(cn)}const Zn=new Map,xr=new Map;ri.forEach(cn=>{const xn=cn.element;Ke.has(xn)&&(xr.set(xn,xn),this._beforeAnimationBuild(cn.player.namespaceId,cn.instruction,Zn))}),Mt.forEach(cn=>{const xn=cn.element;this._getPreviousPlayers(xn,!1,cn.namespaceId,cn.triggerName,null).forEach($n=>{J(Zn,xn,[]).push($n),$n.destroy()})});const ja=ar.filter(cn=>vt(cn,gi,ki)),la=new Map;Xt(la,this.driver,yr,ki,f.l3).forEach(cn=>{vt(cn,gi,ki)&&ja.push(cn)});const Ka=new Map;Gn.forEach((cn,xn)=>{Xt(Ka,this.driver,new Set(cn),gi,f.k1)}),ja.forEach(cn=>{const xn=la.get(cn),Tn=Ka.get(cn);la.set(cn,Object.assign(Object.assign({},xn),Tn))});const Aa=[],_s=[],vs={};ri.forEach(cn=>{const{element:xn,player:Tn,instruction:$n}=cn;if(Ke.has(xn)){if($i.has(xn))return Tn.onDestroy(()=>He(xn,$n.toStyles)),Tn.disabled=!0,Tn.overrideTotalTime($n.totalTime),void Mt.push(Tn);let mr=vs;if(xr.size>1){let Gr=xn;const $a=[];for(;Gr=Gr.parentNode;){const ur=xr.get(Gr);if(ur){mr=ur;break}$a.push(Gr)}$a.forEach(ur=>xr.set(ur,mr))}const La=this._buildAnimation(Tn.namespaceId,$n,Zn,Vt,Ka,la);if(Tn.setRealPlayer(La),mr===vs)Aa.push(Tn);else{const Gr=this.playersByElement.get(mr);Gr&&Gr.length&&(Tn.parentPlayer=Pe(Gr)),Mt.push(Tn)}}else rt(xn,$n.fromStyles),Tn.onDestroy(()=>He(xn,$n.toStyles)),_s.push(Tn),$i.has(xn)&&Mt.push(Tn)}),_s.forEach(cn=>{const xn=Vt.get(cn.element);if(xn&&xn.length){const Tn=Pe(xn);cn.setRealPlayer(Tn)}}),Mt.forEach(cn=>{cn.parentPlayer?cn.syncPlayerEvents(cn.parentPlayer):cn.destroy()});for(let cn=0;cn!La.destroyed);mr.length?nr(this,xn,mr):this.processLeaveNode(xn)}return ar.length=0,Aa.forEach(cn=>{this.players.push(cn),cn.onDone(()=>{cn.destroy();const xn=this.players.indexOf(cn);this.players.splice(xn,1)}),cn.play()}),Aa}elementContainsData(oe,pe){let Ke=!1;const Mt=pe[ir];return Mt&&Mt.setForRemoval&&(Ke=!0),this.playersByElement.has(pe)&&(Ke=!0),this.playersByQueriedElement.has(pe)&&(Ke=!0),this.statesByElement.has(pe)&&(Ke=!0),this._fetchNamespace(oe).elementContainsData(pe)||Ke}afterFlush(oe){this._flushFns.push(oe)}afterFlushAnimationsDone(oe){this._whenQuietFns.push(oe)}_getPreviousPlayers(oe,pe,Ke,Mt,Vt){let ri=[];if(pe){const ni=this.playersByQueriedElement.get(oe);ni&&(ri=ni)}else{const ni=this.playersByElement.get(oe);if(ni){const gi=!Vt||Vt==Yr;ni.forEach(ki=>{ki.queued||!gi&&ki.triggerName!=Mt||ri.push(ki)})}}return(Ke||Mt)&&(ri=ri.filter(ni=>!(Ke&&Ke!=ni.namespaceId||Mt&&Mt!=ni.triggerName))),ri}_beforeAnimationBuild(oe,pe,Ke){const Vt=pe.element,ri=pe.isRemovalTransition?void 0:oe,ni=pe.isRemovalTransition?void 0:pe.triggerName;for(const gi of pe.timelines){const ki=gi.element,$i=ki!==Vt,dn=J(Ke,ki,[]);this._getPreviousPlayers(ki,$i,ri,ni,pe.toState).forEach(Gn=>{const En=Gn.getRealPlayer();En.beforeDestroy&&En.beforeDestroy(),Gn.destroy(),dn.push(Gn)})}rt(Vt,pe.fromStyles)}_buildAnimation(oe,pe,Ke,Mt,Vt,ri){const ni=pe.triggerName,gi=pe.element,ki=[],$i=new Set,dn=new Set,An=pe.timelines.map(En=>{const kn=En.element;$i.add(kn);const ar=kn[ir];if(ar&&ar.removedBeforeQueried)return new f.ZN(En.duration,En.delay);const Rr=kn!==gi,yr=function Bn(yt){const oe=[];return It(yt,oe),oe}((Ke.get(kn)||or).map(Zn=>Zn.getRealPlayer())).filter(Zn=>!!Zn.element&&Zn.element===kn),oa=Vt.get(kn),Xr=ri.get(kn),Mr=Ee(0,this._normalizer,0,En.keyframes,oa,Xr),jr=this._buildPlayer(En,Mr,yr);if(En.subTimeline&&Mt&&dn.add(kn),Rr){const Zn=new Xa(oe,ni,kn);Zn.setRealPlayer(jr),ki.push(Zn)}return jr});ki.forEach(En=>{J(this.playersByQueriedElement,En.element,[]).push(En),En.onDone(()=>function Xn(yt,oe,pe){let Ke;if(yt instanceof Map){if(Ke=yt.get(oe),Ke){if(Ke.length){const Mt=Ke.indexOf(pe);Ke.splice(Mt,1)}0==Ke.length&&yt.delete(oe)}}else if(Ke=yt[oe],Ke){if(Ke.length){const Mt=Ke.indexOf(pe);Ke.splice(Mt,1)}0==Ke.length&&delete yt[oe]}return Ke}(this.playersByQueriedElement,En.element,En))}),$i.forEach(En=>Pi(En,bt));const Gn=Pe(An);return Gn.onDestroy(()=>{$i.forEach(En=>en(En,bt)),He(gi,pe.toStyles)}),dn.forEach(En=>{J(Mt,En,[]).push(Gn)}),Gn}_buildPlayer(oe,pe,Ke){return pe.length>0?this.driver.animate(oe.element,pe,oe.duration,oe.delay,oe.easing,Ke):new f.ZN(oe.duration,oe.delay)}}class Xa{constructor(oe,pe,Ke){this.namespaceId=oe,this.triggerName=pe,this.element=Ke,this._player=new f.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(oe){this._containsRealPlayer||(this._player=oe,Object.keys(this._queuedCallbacks).forEach(pe=>{this._queuedCallbacks[pe].forEach(Ke=>j(oe,pe,void 0,Ke))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(oe.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(oe){this.totalTime=oe}syncPlayerEvents(oe){const pe=this._player;pe.triggerCallback&&oe.onStart(()=>pe.triggerCallback("start")),oe.onDone(()=>this.finish()),oe.onDestroy(()=>this.destroy())}_queueEvent(oe,pe){J(this._queuedCallbacks,oe,[]).push(pe)}onDone(oe){this.queued&&this._queueEvent("done",oe),this._player.onDone(oe)}onStart(oe){this.queued&&this._queueEvent("start",oe),this._player.onStart(oe)}onDestroy(oe){this.queued&&this._queueEvent("destroy",oe),this._player.onDestroy(oe)}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(oe){this.queued||this._player.setPosition(oe)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(oe){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(oe)}}function Et(yt){return yt&&1===yt.nodeType}function kt(yt,oe){const pe=yt.style.display;return yt.style.display=null!=oe?oe:"none",pe}function Xt(yt,oe,pe,Ke,Mt){const Vt=[];pe.forEach(gi=>Vt.push(kt(gi)));const ri=[];Ke.forEach((gi,ki)=>{const $i={};gi.forEach(dn=>{const An=$i[dn]=oe.computeStyle(ki,dn,Mt);(!An||0==An.length)&&(ki[ir]=Ha,ri.push(ki))}),yt.set(ki,$i)});let ni=0;return pe.forEach(gi=>kt(gi,Vt[ni++])),ri}function Mi(yt,oe){const pe=new Map;if(yt.forEach(ni=>pe.set(ni,[])),0==oe.length)return pe;const Mt=new Set(oe),Vt=new Map;function ri(ni){if(!ni)return 1;let gi=Vt.get(ni);if(gi)return gi;const ki=ni.parentNode;return gi=pe.has(ki)?ki:Mt.has(ki)?1:ri(ki),Vt.set(ni,gi),gi}return oe.forEach(ni=>{const gi=ri(ni);1!==gi&&pe.get(gi).push(ni)}),pe}function Pi(yt,oe){var pe;null===(pe=yt.classList)||void 0===pe||pe.add(oe)}function en(yt,oe){var pe;null===(pe=yt.classList)||void 0===pe||pe.remove(oe)}function nr(yt,oe,pe){Pe(pe).onDone(()=>yt.processLeaveNode(oe))}function It(yt,oe){for(let pe=0;peMt.add(Vt)):oe.set(yt,Ke),pe.delete(yt),!0}class jt{constructor(oe,pe,Ke){this.bodyNode=oe,this._driver=pe,this._normalizer=Ke,this._triggerCache={},this.onRemovalComplete=(Mt,Vt)=>{},this._transitionEngine=new Sa(oe,pe,Ke),this._timelineEngine=new ya(oe,pe,Ke),this._transitionEngine.onRemovalComplete=(Mt,Vt)=>this.onRemovalComplete(Mt,Vt)}registerTrigger(oe,pe,Ke,Mt,Vt){const ri=oe+"-"+Mt;let ni=this._triggerCache[ri];if(!ni){const gi=[],$i=on(this._driver,Vt,gi,[]);if(gi.length)throw function r(yt,oe){return new t.vHH(3404,M)}();ni=function Wa(yt,oe,pe){return new Wr(yt,oe,pe)}(Mt,$i,this._normalizer),this._triggerCache[ri]=ni}this._transitionEngine.registerTrigger(pe,Mt,ni)}register(oe,pe){this._transitionEngine.register(oe,pe)}destroy(oe,pe){this._transitionEngine.destroy(oe,pe)}onInsert(oe,pe,Ke,Mt){this._transitionEngine.insertNode(oe,pe,Ke,Mt)}onRemove(oe,pe,Ke,Mt){this._transitionEngine.removeNode(oe,pe,Mt||!1,Ke)}disableAnimations(oe,pe){this._transitionEngine.markElementAsDisabled(oe,pe)}process(oe,pe,Ke,Mt){if("@"==Ke.charAt(0)){const[Vt,ri]=Ie(Ke);this._timelineEngine.command(Vt,pe,ri,Mt)}else this._transitionEngine.trigger(oe,pe,Ke,Mt)}listen(oe,pe,Ke,Mt,Vt){if("@"==Ke.charAt(0)){const[ri,ni]=Ie(Ke);return this._timelineEngine.listen(ri,pe,ni,Vt)}return this._transitionEngine.listen(oe,pe,Ke,Mt,Vt)}flush(oe=-1){this._transitionEngine.flush(oe)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let je=(()=>{class yt{constructor(pe,Ke,Mt){this._element=pe,this._startStyles=Ke,this._endStyles=Mt,this._state=0;let Vt=yt.initialStylesByElement.get(pe);Vt||yt.initialStylesByElement.set(pe,Vt={}),this._initialStyles=Vt}start(){this._state<1&&(this._startStyles&&He(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(He(this._element,this._initialStyles),this._endStyles&&(He(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(yt.initialStylesByElement.delete(this._element),this._startStyles&&(rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rt(this._element,this._endStyles),this._endStyles=null),He(this._element,this._initialStyles),this._state=3)}}return yt.initialStylesByElement=new WeakMap,yt})();function Ye(yt){let oe=null;const pe=Object.keys(yt);for(let Ke=0;Keoe()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const oe=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,oe,this.options),this._finalKeyframe=oe.length?oe[oe.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(oe,pe,Ke){return oe.animate(pe,Ke)}onStart(oe){this._onStartFns.push(oe)}onDone(oe){this._onDoneFns.push(oe)}onDestroy(oe){this._onDestroyFns.push(oe)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(oe=>oe()),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(oe=>oe()),this._onDestroyFns=[])}setPosition(oe){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=oe*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const oe={};if(this.hasStarted()){const pe=this._finalKeyframe;Object.keys(pe).forEach(Ke=>{"offset"!=Ke&&(oe[Ke]=this._finished?pe[Ke]:Ji(this.element,Ke))})}this.currentSnapshot=oe}triggerCallback(oe){const pe="start"==oe?this._onStartFns:this._onDoneFns;pe.forEach(Ke=>Ke()),pe.length=0}}class wi{validateStyleProperty(oe){return Ce(oe)}matchesElement(oe,pe){return!1}containsElement(oe,pe){return Q(oe,pe)}getParentElement(oe){return ce(oe)}query(oe,pe,Ke){return pt(oe,pe,Ke)}computeStyle(oe,pe,Ke){return window.getComputedStyle(oe)[pe]}animate(oe,pe,Ke,Mt,Vt,ri=[]){const gi={duration:Ke,delay:Mt,fill:0==Mt?"both":"forwards"};Vt&&(gi.easing=Vt);const ki={},$i=ri.filter(An=>An instanceof At);(function Qi(yt,oe){return 0===yt||0===oe})(Ke,Mt)&&$i.forEach(An=>{let Gn=An.currentSnapshot;Object.keys(Gn).forEach(En=>ki[En]=Gn[En])}),pe=function hi(yt,oe,pe){const Ke=Object.keys(pe);if(Ke.length&&oe.length){let Vt=oe[0],ri=[];if(Ke.forEach(ni=>{Vt.hasOwnProperty(ni)||ri.push(ni),Vt[ni]=pe[ni]}),ri.length)for(var Mt=1;Mtmt(An,!1)),ki);const dn=function Oi(yt,oe){let pe=null,Ke=null;return Array.isArray(oe)&&oe.length?(pe=Ye(oe[0]),oe.length>1&&(Ke=Ye(oe[oe.length-1]))):oe&&(pe=Ye(oe)),pe||Ke?new je(yt,pe,Ke):null}(oe,pe);return new At(oe,pe,gi,dn)}}var Gi=p(9808);let Un=(()=>{class yt extends f._j{constructor(pe,Ke){super(),this._nextAnimationId=0,this._renderer=pe.createRenderer(Ke.body,{id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}})}build(pe){const Ke=this._nextAnimationId.toString();this._nextAnimationId++;const Mt=Array.isArray(pe)?(0,f.vP)(pe):pe;return xa(this._renderer,null,Ke,"register",[Mt]),new br(Ke,this._renderer)}}return yt.\u0275fac=function(pe){return new(pe||yt)(t.LFG(t.FYo),t.LFG(Gi.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})();class br extends f.LC{constructor(oe,pe){super(),this._id=oe,this._renderer=pe}create(oe,pe){return new Fa(this._id,oe,pe||{},this._renderer)}}class Fa{constructor(oe,pe,Ke,Mt){this.id=oe,this.element=pe,this._renderer=Mt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ke)}_listen(oe,pe){return this._renderer.listen(this.element,`@@${this.id}:${oe}`,pe)}_command(oe,...pe){return xa(this._renderer,this.element,this.id,oe,pe)}onDone(oe){this._listen("done",oe)}onStart(oe){this._listen("start",oe)}onDestroy(oe){this._listen("destroy",oe)}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(oe){this._command("setPosition",oe)}getPosition(){var oe,pe;return null!==(pe=null===(oe=this._renderer.engine.players[+this.id])||void 0===oe?void 0:oe.getPosition())&&void 0!==pe?pe:0}}function xa(yt,oe,pe,Ke,Mt){return yt.setProperty(oe,`@@${pe}:${Ke}`,Mt)}const Fi="@.disabled";let jn=(()=>{class yt{constructor(pe,Ke,Mt){this.delegate=pe,this.engine=Ke,this._zone=Mt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ke.onRemovalComplete=(Vt,ri)=>{const ni=null==ri?void 0:ri.parentNode(Vt);ni&&ri.removeChild(ni,Vt)}}createRenderer(pe,Ke){const Vt=this.delegate.createRenderer(pe,Ke);if(!(pe&&Ke&&Ke.data&&Ke.data.animation)){let $i=this._rendererCache.get(Vt);return $i||($i=new Hs("",Vt,this.engine),this._rendererCache.set(Vt,$i)),$i}const ri=Ke.id,ni=Ke.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,pe);const gi=$i=>{Array.isArray($i)?$i.forEach(gi):this.engine.registerTrigger(ri,ni,pe,$i.name,$i)};return Ke.data.animation.forEach(gi),new Er(this,ni,Vt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(pe,Ke,Mt){pe>=0&&peKe(Mt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Vt=>{const[ri,ni]=Vt;ri(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ke,Mt]))}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 yt.\u0275fac=function(pe){return new(pe||yt)(t.LFG(t.FYo),t.LFG(jt),t.LFG(t.R0b))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})();class Hs{constructor(oe,pe,Ke){this.namespaceId=oe,this.delegate=pe,this.engine=Ke,this.destroyNode=this.delegate.destroyNode?Mt=>pe.destroyNode(Mt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(oe,pe){return this.delegate.createElement(oe,pe)}createComment(oe){return this.delegate.createComment(oe)}createText(oe){return this.delegate.createText(oe)}appendChild(oe,pe){this.delegate.appendChild(oe,pe),this.engine.onInsert(this.namespaceId,pe,oe,!1)}insertBefore(oe,pe,Ke,Mt=!0){this.delegate.insertBefore(oe,pe,Ke),this.engine.onInsert(this.namespaceId,pe,oe,Mt)}removeChild(oe,pe,Ke){this.engine.onRemove(this.namespaceId,pe,this.delegate,Ke)}selectRootElement(oe,pe){return this.delegate.selectRootElement(oe,pe)}parentNode(oe){return this.delegate.parentNode(oe)}nextSibling(oe){return this.delegate.nextSibling(oe)}setAttribute(oe,pe,Ke,Mt){this.delegate.setAttribute(oe,pe,Ke,Mt)}removeAttribute(oe,pe,Ke){this.delegate.removeAttribute(oe,pe,Ke)}addClass(oe,pe){this.delegate.addClass(oe,pe)}removeClass(oe,pe){this.delegate.removeClass(oe,pe)}setStyle(oe,pe,Ke,Mt){this.delegate.setStyle(oe,pe,Ke,Mt)}removeStyle(oe,pe,Ke){this.delegate.removeStyle(oe,pe,Ke)}setProperty(oe,pe,Ke){"@"==pe.charAt(0)&&pe==Fi?this.disableAnimations(oe,!!Ke):this.delegate.setProperty(oe,pe,Ke)}setValue(oe,pe){this.delegate.setValue(oe,pe)}listen(oe,pe,Ke){return this.delegate.listen(oe,pe,Ke)}disableAnimations(oe,pe){this.engine.disableAnimations(oe,pe)}}class Er extends Hs{constructor(oe,pe,Ke,Mt){super(pe,Ke,Mt),this.factory=oe,this.namespaceId=pe}setProperty(oe,pe,Ke){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==Fi?this.disableAnimations(oe,Ke=void 0===Ke||!!Ke):this.engine.process(this.namespaceId,oe,pe.substr(1),Ke):this.delegate.setProperty(oe,pe,Ke)}listen(oe,pe,Ke){if("@"==pe.charAt(0)){const Mt=function to(yt){switch(yt){case"body":return document.body;case"document":return document;case"window":return window;default:return yt}}(oe);let Vt=pe.substr(1),ri="";return"@"!=Vt.charAt(0)&&([Vt,ri]=function gs(yt){const oe=yt.indexOf(".");return[yt.substring(0,oe),yt.substr(oe+1)]}(Vt)),this.engine.listen(this.namespaceId,Mt,Vt,ri,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ke,ni)})}return this.delegate.listen(oe,pe,Ke)}}let Ta=(()=>{class yt extends jt{constructor(pe,Ke,Mt){super(pe.body,Ke,Mt)}ngOnDestroy(){this.flush()}}return yt.\u0275fac=function(pe){return new(pe||yt)(t.LFG(Gi.K0),t.LFG(di),t.LFG(na))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})();const Fs=new t.OlP("AnimationModuleType"),zs=[{provide:f._j,useClass:Un},{provide:na,useFactory:function Ls(){return new Jr}},{provide:jt,useClass:Ta},{provide:t.FYo,useFactory:function Ds(yt,oe,pe){return new jn(yt,oe,pe)},deps:[e.se,jt,t.R0b]}],Vs=[{provide:di,useFactory:()=>new wi},{provide:Fs,useValue:"BrowserAnimations"},...zs],as=[{provide:di,useClass:Dt},{provide:Fs,useValue:"NoopAnimations"},...zs];let Ur=(()=>{class yt{static withConfig(pe){return{ngModule:yt,providers:pe.disableAnimations?as:Vs}}}return yt.\u0275fac=function(pe){return new(pe||yt)},yt.\u0275mod=t.oAB({type:yt}),yt.\u0275inj=t.cJS({providers:Vs,imports:[e.b2]}),yt})()},2313:(Be,K,p)=>{"use strict";p.d(K,{H7:()=>nt,b2:()=>ut,q6:()=>J,se:()=>c,t6:()=>Ft});var t=p(9808),e=p(5e3);class f extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends f{static makeCurrent(){(0,t.HT)(new M)}onAndCancel(Ge,ot,lt){return Ge.addEventListener(ot,lt,!1),()=>{Ge.removeEventListener(ot,lt,!1)}}dispatchEvent(Ge,ot){Ge.dispatchEvent(ot)}remove(Ge){Ge.parentNode&&Ge.parentNode.removeChild(Ge)}createElement(Ge,ot){return(ot=ot||this.getDefaultDocument()).createElement(Ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ge){return Ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ge){return Ge instanceof DocumentFragment}getGlobalEventTarget(Ge,ot){return"window"===ot?window:"document"===ot?Ge:"body"===ot?Ge.body:null}getBaseHref(Ge){const ot=function C(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==ot?null:function R(Ae){d=d||document.createElement("a"),d.setAttribute("href",Ae);const Ge=d.pathname;return"/"===Ge.charAt(0)?Ge:`/${Ge}`}(ot)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ge){return(0,t.Mx)(document.cookie,Ge)}}let d,a=null;const h=new e.OlP("TRANSITION_ID"),w=[{provide:e.ip1,useFactory:function L(Ae,Ge,ot){return()=>{ot.get(e.CZH).donePromise.then(()=>{const lt=(0,t.q)(),Ct=Ge.querySelectorAll(`style[ng-transition="${Ae}"]`);for(let mi=0;mi{const mi=Ge.findTestabilityInTree(lt,Ct);if(null==mi)throw new Error("Could not find testability for element.");return mi},e.dqk.getAllAngularTestabilities=()=>Ge.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ge.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(lt=>{const Ct=e.dqk.getAllAngularTestabilities();let mi=Ct.length,Jt=!1;const ei=function(Qi){Jt=Jt||Qi,mi--,0==mi&<(Jt)};Ct.forEach(function(Qi){Qi.whenStable(ei)})})}findTestabilityInTree(Ge,ot,lt){if(null==ot)return null;const Ct=Ge.getTestability(ot);return null!=Ct?Ct:lt?(0,t.q)().isShadowRoot(ot)?this.findTestabilityInTree(Ge,ot.host,!0):this.findTestabilityInTree(Ge,ot.parentElement,!0):null}}let S=(()=>{class Ae{build(){return new XMLHttpRequest}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const k=new e.OlP("EventManagerPlugins");let E=(()=>{class Ae{constructor(ot,lt){this._zone=lt,this._eventNameToPlugin=new Map,ot.forEach(Ct=>Ct.manager=this),this._plugins=ot.slice().reverse()}addEventListener(ot,lt,Ct){return this._findPluginFor(lt).addEventListener(ot,lt,Ct)}addGlobalEventListener(ot,lt,Ct){return this._findPluginFor(lt).addGlobalEventListener(ot,lt,Ct)}getZone(){return this._zone}_findPluginFor(ot){const lt=this._eventNameToPlugin.get(ot);if(lt)return lt;const Ct=this._plugins;for(let mi=0;mi{class Ae{constructor(){this._stylesSet=new Set}addStyles(ot){const lt=new Set;ot.forEach(Ct=>{this._stylesSet.has(Ct)||(this._stylesSet.add(Ct),lt.add(Ct))}),this.onStylesAdded(lt)}onStylesAdded(ot){}getAllStyles(){return Array.from(this._stylesSet)}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),Y=(()=>{class Ae extends Z{constructor(ot){super(),this._doc=ot,this._hostNodes=new Map,this._hostNodes.set(ot.head,[])}_addStylesToHost(ot,lt,Ct){ot.forEach(mi=>{const Jt=this._doc.createElement("style");Jt.textContent=mi,Ct.push(lt.appendChild(Jt))})}addHost(ot){const lt=[];this._addStylesToHost(this._stylesSet,ot,lt),this._hostNodes.set(ot,lt)}removeHost(ot){const lt=this._hostNodes.get(ot);lt&<.forEach(ae),this._hostNodes.delete(ot)}onStylesAdded(ot){this._hostNodes.forEach((lt,Ct)=>{this._addStylesToHost(ot,Ct,lt)})}ngOnDestroy(){this._hostNodes.forEach(ot=>ot.forEach(ae))}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();function ae(Ae){(0,t.q)().remove(Ae)}const ee={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ue=/%COMP%/g;function i(Ae,Ge,ot){for(let lt=0;lt{if("__ngUnwrap__"===Ge)return Ae;!1===Ae(Ge)&&(Ge.preventDefault(),Ge.returnValue=!1)}}let c=(()=>{class Ae{constructor(ot,lt,Ct){this.eventManager=ot,this.sharedStylesHost=lt,this.appId=Ct,this.rendererByCompId=new Map,this.defaultRenderer=new v(ot)}createRenderer(ot,lt){if(!ot||!lt)return this.defaultRenderer;switch(lt.encapsulation){case e.ifc.Emulated:{let Ct=this.rendererByCompId.get(lt.id);return Ct||(Ct=new y(this.eventManager,this.sharedStylesHost,lt,this.appId),this.rendererByCompId.set(lt.id,Ct)),Ct.applyToHost(ot),Ct}case 1:case e.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,ot,lt);default:if(!this.rendererByCompId.has(lt.id)){const Ct=i(lt.id,lt.styles,[]);this.sharedStylesHost.addStyles(Ct),this.rendererByCompId.set(lt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(E),e.LFG(Y),e.LFG(e.AFp))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();class v{constructor(Ge){this.eventManager=Ge,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ge,ot){return ot?document.createElementNS(ee[ot]||ot,Ge):document.createElement(Ge)}createComment(Ge){return document.createComment(Ge)}createText(Ge){return document.createTextNode(Ge)}appendChild(Ge,ot){Ge.appendChild(ot)}insertBefore(Ge,ot,lt){Ge&&Ge.insertBefore(ot,lt)}removeChild(Ge,ot){Ge&&Ge.removeChild(ot)}selectRootElement(Ge,ot){let lt="string"==typeof Ge?document.querySelector(Ge):Ge;if(!lt)throw new Error(`The selector "${Ge}" did not match any elements`);return ot||(lt.textContent=""),lt}parentNode(Ge){return Ge.parentNode}nextSibling(Ge){return Ge.nextSibling}setAttribute(Ge,ot,lt,Ct){if(Ct){ot=Ct+":"+ot;const mi=ee[Ct];mi?Ge.setAttributeNS(mi,ot,lt):Ge.setAttribute(ot,lt)}else Ge.setAttribute(ot,lt)}removeAttribute(Ge,ot,lt){if(lt){const Ct=ee[lt];Ct?Ge.removeAttributeNS(Ct,ot):Ge.removeAttribute(`${lt}:${ot}`)}else Ge.removeAttribute(ot)}addClass(Ge,ot){Ge.classList.add(ot)}removeClass(Ge,ot){Ge.classList.remove(ot)}setStyle(Ge,ot,lt,Ct){Ct&(e.JOm.DashCase|e.JOm.Important)?Ge.style.setProperty(ot,lt,Ct&e.JOm.Important?"important":""):Ge.style[ot]=lt}removeStyle(Ge,ot,lt){lt&e.JOm.DashCase?Ge.style.removeProperty(ot):Ge.style[ot]=""}setProperty(Ge,ot,lt){Ge[ot]=lt}setValue(Ge,ot){Ge.nodeValue=ot}listen(Ge,ot,lt){return"string"==typeof Ge?this.eventManager.addGlobalEventListener(Ge,ot,r(lt)):this.eventManager.addEventListener(Ge,ot,r(lt))}}class y extends v{constructor(Ge,ot,lt,Ct){super(Ge),this.component=lt;const mi=i(Ct+"-"+lt.id,lt.styles,[]);ot.addStyles(mi),this.contentAttr=function _e(Ae){return"_ngcontent-%COMP%".replace(ue,Ae)}(Ct+"-"+lt.id),this.hostAttr=function x(Ae){return"_nghost-%COMP%".replace(ue,Ae)}(Ct+"-"+lt.id)}applyToHost(Ge){super.setAttribute(Ge,this.hostAttr,"")}createElement(Ge,ot){const lt=super.createElement(Ge,ot);return super.setAttribute(lt,this.contentAttr,""),lt}}class n extends v{constructor(Ge,ot,lt,Ct){super(Ge),this.sharedStylesHost=ot,this.hostEl=lt,this.shadowRoot=lt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mi=i(Ct.id,Ct.styles,[]);for(let Jt=0;Jt{class Ae extends B{constructor(ot){super(ot)}supports(ot){return!0}addEventListener(ot,lt,Ct){return ot.addEventListener(lt,Ct,!1),()=>this.removeEventListener(ot,lt,Ct)}removeEventListener(ot,lt,Ct){return ot.removeEventListener(lt,Ct)}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const V=["alt","control","meta","shift"],H={"\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"},X={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"},he={alt:Ae=>Ae.altKey,control:Ae=>Ae.ctrlKey,meta:Ae=>Ae.metaKey,shift:Ae=>Ae.shiftKey};let be=(()=>{class Ae extends B{constructor(ot){super(ot)}supports(ot){return null!=Ae.parseEventName(ot)}addEventListener(ot,lt,Ct){const mi=Ae.parseEventName(lt),Jt=Ae.eventCallback(mi.fullKey,Ct,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(ot,mi.domEventName,Jt))}static parseEventName(ot){const lt=ot.toLowerCase().split("."),Ct=lt.shift();if(0===lt.length||"keydown"!==Ct&&"keyup"!==Ct)return null;const mi=Ae._normalizeKey(lt.pop());let Jt="";if(V.forEach(Qi=>{const hi=lt.indexOf(Qi);hi>-1&&(lt.splice(hi,1),Jt+=Qi+".")}),Jt+=mi,0!=lt.length||0===mi.length)return null;const ei={};return ei.domEventName=Ct,ei.fullKey=Jt,ei}static getEventFullKey(ot){let lt="",Ct=function Pe(Ae){let Ge=Ae.key;if(null==Ge){if(Ge=Ae.keyIdentifier,null==Ge)return"Unidentified";Ge.startsWith("U+")&&(Ge=String.fromCharCode(parseInt(Ge.substring(2),16)),3===Ae.location&&X.hasOwnProperty(Ge)&&(Ge=X[Ge]))}return H[Ge]||Ge}(ot);return Ct=Ct.toLowerCase()," "===Ct?Ct="space":"."===Ct&&(Ct="dot"),V.forEach(mi=>{mi!=Ct&&he[mi](ot)&&(lt+=mi+".")}),lt+=Ct,lt}static eventCallback(ot,lt,Ct){return mi=>{Ae.getEventFullKey(mi)===ot&&Ct.runGuarded(()=>lt(mi))}}static _normalizeKey(ot){return"esc"===ot?"escape":ot}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const J=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function Ee(){M.makeCurrent(),D.init()},multi:!0},{provide:t.K0,useFactory:function Ve(){return(0,e.RDi)(document),document},deps:[]}]),Ie=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function j(){return new e.qLn},deps:[]},{provide:k,useClass:_,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:k,useClass:be,multi:!0,deps:[t.K0]},{provide:c,useClass:c,deps:[E,Y,e.AFp]},{provide:e.FYo,useExisting:c},{provide:Z,useExisting:Y},{provide:Y,useClass:Y,deps:[t.K0]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b]},{provide:E,useClass:E,deps:[k,e.R0b]},{provide:t.JF,useClass:S,deps:[]}];let ut=(()=>{class Ae{constructor(ot){if(ot)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(ot){return{ngModule:Ae,providers:[{provide:e.AFp,useValue:ot.appId},{provide:h,useExisting:e.AFp},w]}}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(Ae,12))},Ae.\u0275mod=e.oAB({type:Ae}),Ae.\u0275inj=e.cJS({providers:Ie,imports:[t.ez,e.hGG]}),Ae})();"undefined"!=typeof window&&window;const ke={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},de=new e.OlP("HammerGestureConfig"),ye=new e.OlP("HammerLoader");let ht=(()=>{class Ae{constructor(){this.events=[],this.overrides={}}buildHammer(ot){const lt=new Hammer(ot,this.options);lt.get("pinch").set({enable:!0}),lt.get("rotate").set({enable:!0});for(const Ct in this.overrides)lt.get(Ct).set(this.overrides[Ct]);return lt}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),mt=(()=>{class Ae extends B{constructor(ot,lt,Ct,mi){super(ot),this._config=lt,this.console=Ct,this.loader=mi,this._loaderPromise=null}supports(ot){return!(!ke.hasOwnProperty(ot.toLowerCase())&&!this.isCustomEvent(ot)||!window.Hammer&&!this.loader)}addEventListener(ot,lt,Ct){const mi=this.manager.getZone();if(lt=lt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Jt=!1,ei=()=>{Jt=!0};return this._loaderPromise.then(()=>{window.Hammer?Jt||(ei=this.addEventListener(ot,lt,Ct)):ei=()=>{}}).catch(()=>{ei=()=>{}}),()=>{ei()}}return mi.runOutsideAngular(()=>{const Jt=this._config.buildHammer(ot),ei=function(Qi){mi.runGuarded(function(){Ct(Qi)})};return Jt.on(lt,ei),()=>{Jt.off(lt,ei),"function"==typeof Jt.destroy&&Jt.destroy()}})}isCustomEvent(ot){return this._config.events.indexOf(ot)>-1}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0),e.LFG(de),e.LFG(e.c2e),e.LFG(ye,8))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),Ft=(()=>{class Ae{}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275mod=e.oAB({type:Ae}),Ae.\u0275inj=e.cJS({providers:[{provide:k,useClass:mt,multi:!0,deps:[t.K0,de,e.c2e,[new e.FiY,ye]]},{provide:de,useClass:ht,deps:[]}]}),Ae})(),nt=(()=>{class Ae{}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:function(ot){let lt=null;return lt=ot?new(ot||Ae):e.LFG(rt),lt},providedIn:"root"}),Ae})(),rt=(()=>{class Ae extends nt{constructor(ot){super(),this._doc=ot}sanitize(ot,lt){if(null==lt)return null;switch(ot){case e.q3G.NONE:return lt;case e.q3G.HTML:return(0,e.qzn)(lt,"HTML")?(0,e.z3N)(lt):(0,e.EiD)(this._doc,String(lt)).toString();case e.q3G.STYLE:return(0,e.qzn)(lt,"Style")?(0,e.z3N)(lt):lt;case e.q3G.SCRIPT:if((0,e.qzn)(lt,"Script"))return(0,e.z3N)(lt);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.yhl)(lt),(0,e.qzn)(lt,"URL")?(0,e.z3N)(lt):(0,e.mCW)(String(lt));case e.q3G.RESOURCE_URL:if((0,e.qzn)(lt,"ResourceURL"))return(0,e.z3N)(lt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ot} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ot){return(0,e.JVY)(ot)}bypassSecurityTrustStyle(ot){return(0,e.L6k)(ot)}bypassSecurityTrustScript(ot){return(0,e.eBb)(ot)}bypassSecurityTrustUrl(ot){return(0,e.LAX)(ot)}bypassSecurityTrustResourceUrl(ot){return(0,e.pB0)(ot)}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:function(ot){let lt=null;return lt=ot?new ot:function He(Ae){return new rt(Ae.get(t.K0))}(e.LFG(e.zs3)),lt},providedIn:"root"}),Ae})()},1402:(Be,K,p)=>{"use strict";p.d(K,{gz:()=>Wi,gk:()=>H,m2:()=>N,Q3:()=>X,OD:()=>V,Av:()=>j,F0:()=>xr,rH:()=>ws,Od:()=>_s,yS:()=>Ka,Bz:()=>St,lC:()=>ra});var t=p(5e3),e=p(8306),f=p(727),M=p(4482),a=p(5403);function C(){return(0,M.e)((ze,Se)=>{let me=null;ze._refCount++;const qe=(0,a.x)(Se,void 0,void 0,void 0,()=>{if(!ze||ze._refCount<=0||0<--ze._refCount)return void(me=null);const ct=ze._connection,Pt=me;me=null,ct&&(!Pt||ct===Pt)&&ct.unsubscribe(),Se.unsubscribe()});ze.subscribe(qe),qe.closed||(me=ze.connect())})}class d extends e.y{constructor(Se,me){super(),this.source=Se,this.subjectFactory=me,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(Se)&&(this.lift=Se.lift)}_subscribe(Se){return this.getSubject().subscribe(Se)}getSubject(){const Se=this._subject;return(!Se||Se.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Se}=this;this._subject=this._connection=null,null==Se||Se.unsubscribe()}connect(){let Se=this._connection;if(!Se){Se=this._connection=new f.w0;const me=this.getSubject();Se.add(this.source.subscribe((0,a.x)(me,void 0,()=>{this._teardown(),me.complete()},qe=>{this._teardown(),me.error(qe)},()=>this._teardown()))),Se.closed&&(this._connection=null,Se=f.w0.EMPTY)}return Se}refCount(){return C()(this)}}var R=p(457),h=p(9646),L=p(1135),w=p(9841),D=p(2843),S=p(6805),k=p(7272),E=p(9770),B=p(515),Z=p(7579),Y=p(9300);function ae(ze){return ze<=0?()=>B.E:(0,M.e)((Se,me)=>{let qe=[];Se.subscribe((0,a.x)(me,ct=>{qe.push(ct),ze{for(const ct of qe)me.next(ct);me.complete()},void 0,()=>{qe=null}))})}var ee=p(8068),ue=p(6590),ne=p(4671),ge=p(4004),q=p(3900),_e=p(5698),x=p(8675),i=p(5026),r=p(262),u=p(4351),c=p(590),v=p(5577),T=p(8505),I=p(8746),y=p(8189),n=p(9808);class _{constructor(Se,me){this.id=Se,this.url=me}}class V extends _{constructor(Se,me,qe="imperative",ct=null){super(Se,me),this.navigationTrigger=qe,this.restoredState=ct}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class N extends _{constructor(Se,me,qe){super(Se,me),this.urlAfterRedirects=qe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends _{constructor(Se,me,qe){super(Se,me),this.reason=qe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class X extends _{constructor(Se,me,qe){super(Se,me),this.error=qe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class he extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class be extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pe extends _{constructor(Se,me,qe,ct,Pt){super(Se,me),this.urlAfterRedirects=qe,this.state=ct,this.shouldActivate=Pt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class j extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ve{constructor(Se){this.route=Se}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Me{constructor(Se){this.route=Se}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class J{constructor(Se){this.snapshot=Se}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(Se){this.snapshot=Se}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(Se){this.snapshot=Se}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oe{constructor(Se){this.snapshot=Se}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class we{constructor(Se,me,qe){this.routerEvent=Se,this.position=me,this.anchor=qe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class Te{constructor(Se){this.params=Se||{}}has(Se){return Object.prototype.hasOwnProperty.call(this.params,Se)}get(Se){if(this.has(Se)){const me=this.params[Se];return Array.isArray(me)?me[0]:me}return null}getAll(Se){if(this.has(Se)){const me=this.params[Se];return Array.isArray(me)?me:[me]}return[]}get keys(){return Object.keys(this.params)}}function xe(ze){return new Te(ze)}const W="ngNavigationCancelingError";function te(ze){const Se=Error("NavigationCancelingError: "+ze);return Se[W]=!0,Se}function fe(ze,Se,me){const qe=me.path.split("/");if(qe.length>ze.length||"full"===me.pathMatch&&(Se.hasChildren()||qe.lengthqe[Pt]===ct)}return ze===Se}function Dt(ze){return Array.prototype.concat.apply([],ze)}function di(ze){return ze.length>0?ze[ze.length-1]:null}function Zt(ze,Se){for(const me in ze)ze.hasOwnProperty(me)&&Se(ze[me],me)}function ui(ze){return(0,t.CqO)(ze)?ze:(0,t.QGY)(ze)?(0,R.D)(Promise.resolve(ze)):(0,h.of)(ze)}const Nt={exact:function ti(ze,Se,me){if(!nt(ze.segments,Se.segments)||!de(ze.segments,Se.segments,me)||ze.numberOfChildren!==Se.numberOfChildren)return!1;for(const qe in Se.children)if(!ze.children[qe]||!ti(ze.children[qe],Se.children[qe],me))return!1;return!0},subset:Re},gt={exact:function bt(ze,Se){return pt(ze,Se)},subset:function Qt(ze,Se){return Object.keys(Se).length<=Object.keys(ze).length&&Object.keys(Se).every(me=>tt(ze[me],Se[me]))},ignored:()=>!0};function it(ze,Se,me){return Nt[me.paths](ze.root,Se.root,me.matrixParams)&>[me.queryParams](ze.queryParams,Se.queryParams)&&!("exact"===me.fragment&&ze.fragment!==Se.fragment)}function Re(ze,Se,me){return ke(ze,Se,Se.segments,me)}function ke(ze,Se,me,qe){if(ze.segments.length>me.length){const ct=ze.segments.slice(0,me.length);return!(!nt(ct,me)||Se.hasChildren()||!de(ct,me,qe))}if(ze.segments.length===me.length){if(!nt(ze.segments,me)||!de(ze.segments,me,qe))return!1;for(const ct in Se.children)if(!ze.children[ct]||!Re(ze.children[ct],Se.children[ct],qe))return!1;return!0}{const ct=me.slice(0,ze.segments.length),Pt=me.slice(ze.segments.length);return!!(nt(ze.segments,ct)&&de(ze.segments,ct,qe)&&ze.children[ce])&&ke(ze.children[ce],Se,Pt,qe)}}function de(ze,Se,me){return Se.every((qe,ct)=>gt[me](ze[ct].parameters,qe.parameters))}class ye{constructor(Se,me,qe){this.root=Se,this.queryParams=me,this.fragment=qe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return Ae.serialize(this)}}class ht{constructor(Se,me){this.segments=Se,this.children=me,this.parent=null,Zt(me,(qe,ct)=>qe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ge(this)}}class mt{constructor(Se,me){this.path=Se,this.parameters=me}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return hi(this)}}function nt(ze,Se){return ze.length===Se.length&&ze.every((me,qe)=>me.path===Se[qe].path)}class rt{}class et{parse(Se){const me=new Qe(Se);return new ye(me.parseRootSegment(),me.parseQueryParams(),me.parseFragment())}serialize(Se){const me=`/${ot(Se.root,!0)}`,qe=function Ji(ze){const Se=Object.keys(ze).map(me=>{const qe=ze[me];return Array.isArray(qe)?qe.map(ct=>`${Ct(me)}=${Ct(ct)}`).join("&"):`${Ct(me)}=${Ct(qe)}`}).filter(me=>!!me);return Se.length?`?${Se.join("&")}`:""}(Se.queryParams);return`${me}${qe}${"string"==typeof Se.fragment?`#${function mi(ze){return encodeURI(ze)}(Se.fragment)}`:""}`}}const Ae=new et;function Ge(ze){return ze.segments.map(Se=>hi(Se)).join("/")}function ot(ze,Se){if(!ze.hasChildren())return Ge(ze);if(Se){const me=ze.children[ce]?ot(ze.children[ce],!1):"",qe=[];return Zt(ze.children,(ct,Pt)=>{Pt!==ce&&qe.push(`${Pt}:${ot(ct,!1)}`)}),qe.length>0?`${me}(${qe.join("//")})`:me}{const me=function He(ze,Se){let me=[];return Zt(ze.children,(qe,ct)=>{ct===ce&&(me=me.concat(Se(qe,ct)))}),Zt(ze.children,(qe,ct)=>{ct!==ce&&(me=me.concat(Se(qe,ct)))}),me}(ze,(qe,ct)=>ct===ce?[ot(ze.children[ce],!1)]:[`${ct}:${ot(qe,!1)}`]);return 1===Object.keys(ze.children).length&&null!=ze.children[ce]?`${Ge(ze)}/${me[0]}`:`${Ge(ze)}/(${me.join("//")})`}}function lt(ze){return encodeURIComponent(ze).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(ze){return lt(ze).replace(/%3B/gi,";")}function Jt(ze){return lt(ze).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(ze){return decodeURIComponent(ze)}function Qi(ze){return ei(ze.replace(/\+/g,"%20"))}function hi(ze){return`${Jt(ze.path)}${function si(ze){return Object.keys(ze).map(Se=>`;${Jt(Se)}=${Jt(ze[Se])}`).join("")}(ze.parameters)}`}const Zi=/^[^\/()?;=#]+/;function Vi(ze){const Se=ze.match(Zi);return Se?Se[0]:""}const Ui=/^[^=?&#]+/,Tt=/^[^&#]+/;class Qe{constructor(Se){this.url=Se,this.remaining=Se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const Se={};if(this.consumeOptional("?"))do{this.parseQueryParam(Se)}while(this.consumeOptional("&"));return Se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Se=[];for(this.peekStartsWith("(")||Se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Se.push(this.parseSegment());let me={};this.peekStartsWith("/(")&&(this.capture("/"),me=this.parseParens(!0));let qe={};return this.peekStartsWith("(")&&(qe=this.parseParens(!1)),(Se.length>0||Object.keys(me).length>0)&&(qe[ce]=new ht(Se,me)),qe}parseSegment(){const Se=Vi(this.remaining);if(""===Se&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Se),new mt(ei(Se),this.parseMatrixParams())}parseMatrixParams(){const Se={};for(;this.consumeOptional(";");)this.parseParam(Se);return Se}parseParam(Se){const me=Vi(this.remaining);if(!me)return;this.capture(me);let qe="";if(this.consumeOptional("=")){const ct=Vi(this.remaining);ct&&(qe=ct,this.capture(qe))}Se[ei(me)]=ei(qe)}parseQueryParam(Se){const me=function Ue(ze){const Se=ze.match(Ui);return Se?Se[0]:""}(this.remaining);if(!me)return;this.capture(me);let qe="";if(this.consumeOptional("=")){const qt=function ve(ze){const Se=ze.match(Tt);return Se?Se[0]:""}(this.remaining);qt&&(qe=qt,this.capture(qe))}const ct=Qi(me),Pt=Qi(qe);if(Se.hasOwnProperty(ct)){let qt=Se[ct];Array.isArray(qt)||(qt=[qt],Se[ct]=qt),qt.push(Pt)}else Se[ct]=Pt}parseParens(Se){const me={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const qe=Vi(this.remaining),ct=this.remaining[qe.length];if("/"!==ct&&")"!==ct&&";"!==ct)throw new Error(`Cannot parse url '${this.url}'`);let Pt;qe.indexOf(":")>-1?(Pt=qe.substr(0,qe.indexOf(":")),this.capture(Pt),this.capture(":")):Se&&(Pt=ce);const qt=this.parseChildren();me[Pt]=1===Object.keys(qt).length?qt[ce]:new ht([],qt),this.consumeOptional("//")}return me}peekStartsWith(Se){return this.remaining.startsWith(Se)}consumeOptional(Se){return!!this.peekStartsWith(Se)&&(this.remaining=this.remaining.substring(Se.length),!0)}capture(Se){if(!this.consumeOptional(Se))throw new Error(`Expected "${Se}".`)}}class _t{constructor(Se){this._root=Se}get root(){return this._root.value}parent(Se){const me=this.pathFromRoot(Se);return me.length>1?me[me.length-2]:null}children(Se){const me=se(Se,this._root);return me?me.children.map(qe=>qe.value):[]}firstChild(Se){const me=se(Se,this._root);return me&&me.children.length>0?me.children[0].value:null}siblings(Se){const me=Xe(Se,this._root);return me.length<2?[]:me[me.length-2].children.map(ct=>ct.value).filter(ct=>ct!==Se)}pathFromRoot(Se){return Xe(Se,this._root).map(me=>me.value)}}function se(ze,Se){if(ze===Se.value)return Se;for(const me of Se.children){const qe=se(ze,me);if(qe)return qe}return null}function Xe(ze,Se){if(ze===Se.value)return[Se];for(const me of Se.children){const qe=Xe(ze,me);if(qe.length)return qe.unshift(Se),qe}return[]}class xt{constructor(Se,me){this.value=Se,this.children=me}toString(){return`TreeNode(${this.value})`}}function Bt(ze){const Se={};return ze&&ze.children.forEach(me=>Se[me.value.outlet]=me),Se}class bi extends _t{constructor(Se,me){super(Se),this.snapshot=me,st(this,Se)}toString(){return this.snapshot.toString()}}function Ei(ze,Se){const me=function Xi(ze,Se){const qt=new ii([],{},{},"",{},ce,Se,null,ze.root,-1,{});return new Ri("",new xt(qt,[]))}(ze,Se),qe=new L.X([new mt("",{})]),ct=new L.X({}),Pt=new L.X({}),qt=new L.X({}),ai=new L.X(""),Di=new Wi(qe,ct,qt,ai,Pt,ce,Se,me.root);return Di.snapshot=me.root,new bi(new xt(Di,[]),me)}class Wi{constructor(Se,me,qe,ct,Pt,qt,ai,Di){this.url=Se,this.params=me,this.queryParams=qe,this.fragment=ct,this.data=Pt,this.outlet=qt,this.component=ai,this._futureSnapshot=Di}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,ge.U)(Se=>xe(Se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ge.U)(Se=>xe(Se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function on(ze,Se="emptyOnly"){const me=ze.pathFromRoot;let qe=0;if("always"!==Se)for(qe=me.length-1;qe>=1;){const ct=me[qe],Pt=me[qe-1];if(ct.routeConfig&&""===ct.routeConfig.path)qe--;else{if(Pt.component)break;qe--}}return function pn(ze){return ze.reduce((Se,me)=>({params:Object.assign(Object.assign({},Se.params),me.params),data:Object.assign(Object.assign({},Se.data),me.data),resolve:Object.assign(Object.assign({},Se.resolve),me._resolvedData)}),{params:{},data:{},resolve:{}})}(me.slice(qe))}class ii{constructor(Se,me,qe,ct,Pt,qt,ai,Di,an,Pn,Cn){this.url=Se,this.params=me,this.queryParams=qe,this.fragment=ct,this.data=Pt,this.outlet=qt,this.component=ai,this.routeConfig=Di,this._urlSegment=an,this._lastPathIndex=Pn,this._resolve=Cn}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=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(qe=>qe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ri extends _t{constructor(Se,me){super(me),this.url=Se,st(this,me)}toString(){return Rt(this._root)}}function st(ze,Se){Se.value._routerState=ze,Se.children.forEach(me=>st(ze,me))}function Rt(ze){const Se=ze.children.length>0?` { ${ze.children.map(Rt).join(", ")} } `:"";return`${ze.value}${Se}`}function Wt(ze){if(ze.snapshot){const Se=ze.snapshot,me=ze._futureSnapshot;ze.snapshot=me,pt(Se.queryParams,me.queryParams)||ze.queryParams.next(me.queryParams),Se.fragment!==me.fragment&&ze.fragment.next(me.fragment),pt(Se.params,me.params)||ze.params.next(me.params),function Q(ze,Se){if(ze.length!==Se.length)return!1;for(let me=0;mept(me.parameters,Se[qe].parameters))}(ze.url,Se.url);return me&&!(!ze.parent!=!Se.parent)&&(!ze.parent||fi(ze.parent,Se.parent))}function Ni(ze,Se,me){if(me&&ze.shouldReuseRoute(Se.value,me.value.snapshot)){const qe=me.value;qe._futureSnapshot=Se.value;const ct=function mn(ze,Se,me){return Se.children.map(qe=>{for(const ct of me.children)if(ze.shouldReuseRoute(qe.value,ct.value.snapshot))return Ni(ze,qe,ct);return Ni(ze,qe)})}(ze,Se,me);return new xt(qe,ct)}{if(ze.shouldAttach(Se.value)){const Pt=ze.retrieve(Se.value);if(null!==Pt){const qt=Pt.route;return qt.value._futureSnapshot=Se.value,qt.children=Se.children.map(ai=>Ni(ze,ai)),qt}}const qe=function In(ze){return new Wi(new L.X(ze.url),new L.X(ze.params),new L.X(ze.queryParams),new L.X(ze.fragment),new L.X(ze.data),ze.outlet,ze.component,ze)}(Se.value),ct=Se.children.map(Pt=>Ni(ze,Pt));return new xt(qe,ct)}}function tr(ze){return"object"==typeof ze&&null!=ze&&!ze.outlets&&!ze.segmentPath}function gn(ze){return"object"==typeof ze&&null!=ze&&ze.outlets}function Si(ze,Se,me,qe,ct){let Pt={};if(qe&&Zt(qe,(ai,Di)=>{Pt[Di]=Array.isArray(ai)?ai.map(an=>`${an}`):`${ai}`}),ze===Se)return new ye(me,Pt,ct);const qt=Ki(ze,Se,me);return new ye(qt,Pt,ct)}function Ki(ze,Se,me){const qe={};return Zt(ze.children,(ct,Pt)=>{qe[Pt]=ct===Se?me:Ki(ct,Se,me)}),new ht(ze.segments,qe)}class Sn{constructor(Se,me,qe){if(this.isAbsolute=Se,this.numberOfDoubleDots=me,this.commands=qe,Se&&qe.length>0&&tr(qe[0]))throw new Error("Root segment cannot have matrix parameters");const ct=qe.find(gn);if(ct&&ct!==di(qe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class sr{constructor(Se,me,qe){this.segmentGroup=Se,this.processChildren=me,this.index=qe}}function fa(ze,Se,me){if(ze||(ze=new ht([],{})),0===ze.segments.length&&ze.hasChildren())return zr(ze,Se,me);const qe=function ta(ze,Se,me){let qe=0,ct=Se;const Pt={match:!1,pathIndex:0,commandIndex:0};for(;ct=me.length)return Pt;const qt=ze.segments[ct],ai=me[qe];if(gn(ai))break;const Di=`${ai}`,an=qe0&&void 0===Di)break;if(Di&&an&&"object"==typeof an&&void 0===an.outlets){if(!Jr(Di,an,qt))return Pt;qe+=2}else{if(!Jr(Di,{},qt))return Pt;qe++}ct++}return{match:!0,pathIndex:ct,commandIndex:qe}}(ze,Se,me),ct=me.slice(qe.commandIndex);if(qe.match&&qe.pathIndex{"string"==typeof Pt&&(Pt=[Pt]),null!==Pt&&(ct[qt]=fa(ze.children[qt],Se,Pt))}),Zt(ze.children,(Pt,qt)=>{void 0===qe[qt]&&(ct[qt]=Pt)}),new ht(ze.segments,ct)}}function ia(ze,Se,me){const qe=ze.segments.slice(0,Se);let ct=0;for(;ct{"string"==typeof me&&(me=[me]),null!==me&&(Se[qe]=ia(new ht([],{}),0,me))}),Se}function qr(ze){const Se={};return Zt(ze,(me,qe)=>Se[qe]=`${me}`),Se}function Jr(ze,Se,me){return ze==me.path&&pt(Se,me.parameters)}class pa{constructor(Se,me,qe,ct){this.routeReuseStrategy=Se,this.futureState=me,this.currState=qe,this.forwardEvent=ct}activate(Se){const me=this.futureState._root,qe=this.currState?this.currState._root:null;this.deactivateChildRoutes(me,qe,Se),Wt(this.futureState.root),this.activateChildRoutes(me,qe,Se)}deactivateChildRoutes(Se,me,qe){const ct=Bt(me);Se.children.forEach(Pt=>{const qt=Pt.value.outlet;this.deactivateRoutes(Pt,ct[qt],qe),delete ct[qt]}),Zt(ct,(Pt,qt)=>{this.deactivateRouteAndItsChildren(Pt,qe)})}deactivateRoutes(Se,me,qe){const ct=Se.value,Pt=me?me.value:null;if(ct===Pt)if(ct.component){const qt=qe.getContext(ct.outlet);qt&&this.deactivateChildRoutes(Se,me,qt.children)}else this.deactivateChildRoutes(Se,me,qe);else Pt&&this.deactivateRouteAndItsChildren(me,qe)}deactivateRouteAndItsChildren(Se,me){Se.value.component&&this.routeReuseStrategy.shouldDetach(Se.value.snapshot)?this.detachAndStoreRouteSubtree(Se,me):this.deactivateRouteAndOutlet(Se,me)}detachAndStoreRouteSubtree(Se,me){const qe=me.getContext(Se.value.outlet),ct=qe&&Se.value.component?qe.children:me,Pt=Bt(Se);for(const qt of Object.keys(Pt))this.deactivateRouteAndItsChildren(Pt[qt],ct);if(qe&&qe.outlet){const qt=qe.outlet.detach(),ai=qe.children.onOutletDeactivated();this.routeReuseStrategy.store(Se.value.snapshot,{componentRef:qt,route:Se,contexts:ai})}}deactivateRouteAndOutlet(Se,me){const qe=me.getContext(Se.value.outlet),ct=qe&&Se.value.component?qe.children:me,Pt=Bt(Se);for(const qt of Object.keys(Pt))this.deactivateRouteAndItsChildren(Pt[qt],ct);qe&&qe.outlet&&(qe.outlet.deactivate(),qe.children.onOutletDeactivated(),qe.attachRef=null,qe.resolver=null,qe.route=null)}activateChildRoutes(Se,me,qe){const ct=Bt(me);Se.children.forEach(Pt=>{this.activateRoutes(Pt,ct[Pt.value.outlet],qe),this.forwardEvent(new Oe(Pt.value.snapshot))}),Se.children.length&&this.forwardEvent(new Ie(Se.value.snapshot))}activateRoutes(Se,me,qe){const ct=Se.value,Pt=me?me.value:null;if(Wt(ct),ct===Pt)if(ct.component){const qt=qe.getOrCreateContext(ct.outlet);this.activateChildRoutes(Se,me,qt.children)}else this.activateChildRoutes(Se,me,qe);else if(ct.component){const qt=qe.getOrCreateContext(ct.outlet);if(this.routeReuseStrategy.shouldAttach(ct.snapshot)){const ai=this.routeReuseStrategy.retrieve(ct.snapshot);this.routeReuseStrategy.store(ct.snapshot,null),qt.children.onOutletReAttached(ai.contexts),qt.attachRef=ai.componentRef,qt.route=ai.route.value,qt.outlet&&qt.outlet.attach(ai.componentRef,ai.route.value),Wt(ai.route.value),this.activateChildRoutes(Se,null,qt.children)}else{const ai=function Za(ze){for(let Se=ze.parent;Se;Se=Se.parent){const me=Se.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig;if(me&&me.component)return null}return null}(ct.snapshot),Di=ai?ai.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=ct,qt.resolver=Di,qt.outlet&&qt.outlet.activateWith(ct,Di),this.activateChildRoutes(Se,null,qt.children)}}else this.activateChildRoutes(Se,null,qe)}}class Pr{constructor(Se,me){this.routes=Se,this.module=me}}function Yn(ze){return"function"==typeof ze}function cr(ze){return ze instanceof ye}const dr=Symbol("INITIAL_VALUE");function ya(){return(0,q.w)(ze=>(0,w.a)(ze.map(Se=>Se.pipe((0,_e.q)(1),(0,x.O)(dr)))).pipe((0,i.R)((Se,me)=>{let qe=!1;return me.reduce((ct,Pt,qt)=>ct!==dr?ct:(Pt===dr&&(qe=!0),qe||!1!==Pt&&qt!==me.length-1&&!cr(Pt)?ct:Pt),Se)},dr),(0,Y.h)(Se=>Se!==dr),(0,ge.U)(Se=>cr(Se)?Se:!0===Se),(0,_e.q)(1)))}class kr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dr,this.attachRef=null}}class Dr{constructor(){this.contexts=new Map}onChildOutletCreated(Se,me){const qe=this.getOrCreateContext(Se);qe.outlet=me,this.contexts.set(Se,qe)}onChildOutletDestroyed(Se){const me=this.getContext(Se);me&&(me.outlet=null,me.attachRef=null)}onOutletDeactivated(){const Se=this.contexts;return this.contexts=new Map,Se}onOutletReAttached(Se){this.contexts=Se}getOrCreateContext(Se){let me=this.getContext(Se);return me||(me=new kr,this.contexts.set(Se,me)),me}getContext(Se){return this.contexts.get(Se)||null}}let ra=(()=>{class ze{constructor(me,qe,ct,Pt,qt){this.parentContexts=me,this.location=qe,this.resolver=ct,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=Pt||ce,me.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const me=this.parentContexts.getContext(this.name);me&&me.route&&(me.attachRef?this.attach(me.attachRef,me.route):this.activateWith(me.route,me.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 me=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(me.instance),me}attach(me,qe){this.activated=me,this._activatedRoute=qe,this.location.insert(me.hostView),this.attachEvents.emit(me.instance)}deactivate(){if(this.activated){const me=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(me)}}activateWith(me,qe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=me;const qt=(qe=qe||this.resolver).resolveComponentFactory(me._futureSnapshot.routeConfig.component),ai=this.parentContexts.getOrCreateContext(this.name).children,Di=new wa(me,ai,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Di),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(Dr),t.Y36(t.s_b),t.Y36(t._Vd),t.$8M("name"),t.Y36(t.sBO))},ze.\u0275dir=t.lG2({type:ze,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ze})();class wa{constructor(Se,me,qe){this.route=Se,this.childContexts=me,this.parent=qe}get(Se,me){return Se===Wi?this.route:Se===Dr?this.childContexts:this.parent.get(Se,me)}}let Pa=(()=>{class ze{}return ze.\u0275fac=function(me){return new(me||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["ng-component"]],decls:1,vars:0,template:function(me,qe){1&me&&t._UZ(0,"router-outlet")},directives:[ra],encapsulation:2}),ze})();function ba(ze,Se=""){for(let me=0;meir(qe)===Se);return me.push(...ze.filter(qe=>ir(qe)!==Se)),me}const Yr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Nr(ze,Se,me){var qe;if(""===Se.path)return"full"===Se.pathMatch&&(ze.hasChildren()||me.length>0)?Object.assign({},Yr):{matched:!0,consumedSegments:[],remainingSegments:me,parameters:{},positionalParamSegments:{}};const Pt=(Se.matcher||fe)(me,ze,Se);if(!Pt)return Object.assign({},Yr);const qt={};Zt(Pt.posParams,(Di,an)=>{qt[an]=Di.path});const ai=Pt.consumed.length>0?Object.assign(Object.assign({},qt),Pt.consumed[Pt.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Pt.consumed,remainingSegments:me.slice(Pt.consumed.length),parameters:ai,positionalParamSegments:null!==(qe=Pt.posParams)&&void 0!==qe?qe:{}}}function Br(ze,Se,me,qe,ct="corrected"){if(me.length>0&&function Xn(ze,Se,me){return me.some(qe=>Et(ze,Se,qe)&&ir(qe)!==ce)}(ze,me,qe)){const qt=new ht(Se,function Xa(ze,Se,me,qe){const ct={};ct[ce]=qe,qe._sourceSegment=ze,qe._segmentIndexShift=Se.length;for(const Pt of me)if(""===Pt.path&&ir(Pt)!==ce){const qt=new ht([],{});qt._sourceSegment=ze,qt._segmentIndexShift=Se.length,ct[ir(Pt)]=qt}return ct}(ze,Se,qe,new ht(me,ze.children)));return qt._sourceSegment=ze,qt._segmentIndexShift=Se.length,{segmentGroup:qt,slicedSegments:[]}}if(0===me.length&&function $e(ze,Se,me){return me.some(qe=>Et(ze,Se,qe))}(ze,me,qe)){const qt=new ht(ze.segments,function Sa(ze,Se,me,qe,ct,Pt){const qt={};for(const ai of qe)if(Et(ze,me,ai)&&!ct[ir(ai)]){const Di=new ht([],{});Di._sourceSegment=ze,Di._segmentIndexShift="legacy"===Pt?ze.segments.length:Se.length,qt[ir(ai)]=Di}return Object.assign(Object.assign({},ct),qt)}(ze,Se,me,qe,ze.children,ct));return qt._sourceSegment=ze,qt._segmentIndexShift=Se.length,{segmentGroup:qt,slicedSegments:me}}const Pt=new ht(ze.segments,ze.children);return Pt._sourceSegment=ze,Pt._segmentIndexShift=Se.length,{segmentGroup:Pt,slicedSegments:me}}function Et(ze,Se,me){return(!(ze.hasChildren()||Se.length>0)||"full"!==me.pathMatch)&&""===me.path}function Je(ze,Se,me,qe){return!!(ir(ze)===qe||qe!==ce&&Et(Se,me,ze))&&("**"===ze.path||Nr(Se,ze,me).matched)}function kt(ze,Se,me){return 0===Se.length&&!ze.children[me]}class Xt{constructor(Se){this.segmentGroup=Se||null}}class Mi{constructor(Se){this.urlTree=Se}}function Pi(ze){return(0,D._)(new Xt(ze))}function en(ze){return(0,D._)(new Mi(ze))}class ci{constructor(Se,me,qe,ct,Pt){this.configLoader=me,this.urlSerializer=qe,this.urlTree=ct,this.config=Pt,this.allowRedirects=!0,this.ngModule=Se.get(t.h0i)}apply(){const Se=Br(this.urlTree.root,[],[],this.config).segmentGroup,me=new ht(Se.segments,Se.children);return this.expandSegmentGroup(this.ngModule,this.config,me,ce).pipe((0,ge.U)(Pt=>this.createUrlTree(jt(Pt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(Pt=>{if(Pt instanceof Mi)return this.allowRedirects=!1,this.match(Pt.urlTree);throw Pt instanceof Xt?this.noMatchError(Pt):Pt}))}match(Se){return this.expandSegmentGroup(this.ngModule,this.config,Se.root,ce).pipe((0,ge.U)(ct=>this.createUrlTree(jt(ct),Se.queryParams,Se.fragment))).pipe((0,r.K)(ct=>{throw ct instanceof Xt?this.noMatchError(ct):ct}))}noMatchError(Se){return new Error(`Cannot match any routes. URL Segment: '${Se.segmentGroup}'`)}createUrlTree(Se,me,qe){const ct=Se.segments.length>0?new ht([],{[ce]:Se}):Se;return new ye(ct,me,qe)}expandSegmentGroup(Se,me,qe,ct){return 0===qe.segments.length&&qe.hasChildren()?this.expandChildren(Se,me,qe).pipe((0,ge.U)(Pt=>new ht([],Pt))):this.expandSegment(Se,qe,me,qe.segments,ct,!0)}expandChildren(Se,me,qe){const ct=[];for(const Pt of Object.keys(qe.children))"primary"===Pt?ct.unshift(Pt):ct.push(Pt);return(0,R.D)(ct).pipe((0,u.b)(Pt=>{const qt=qe.children[Pt],ai=sa(me,Pt);return this.expandSegmentGroup(Se,ai,qt,Pt).pipe((0,ge.U)(Di=>({segment:Di,outlet:Pt})))}),(0,i.R)((Pt,qt)=>(Pt[qt.outlet]=qt.segment,Pt),{}),function re(ze,Se){const me=arguments.length>=2;return qe=>qe.pipe(ze?(0,Y.h)((ct,Pt)=>ze(ct,Pt,qe)):ne.y,ae(1),me?(0,ue.d)(Se):(0,ee.T)(()=>new S.K))}())}expandSegment(Se,me,qe,ct,Pt,qt){return(0,R.D)(qe).pipe((0,u.b)(ai=>this.expandSegmentAgainstRoute(Se,me,qe,ai,ct,Pt,qt).pipe((0,r.K)(an=>{if(an instanceof Xt)return(0,h.of)(null);throw an}))),(0,c.P)(ai=>!!ai),(0,r.K)((ai,Di)=>{if(ai instanceof S.K||"EmptyError"===ai.name)return kt(me,ct,Pt)?(0,h.of)(new ht([],{})):Pi(me);throw ai}))}expandSegmentAgainstRoute(Se,me,qe,ct,Pt,qt,ai){return Je(ct,me,Pt,qt)?void 0===ct.redirectTo?this.matchSegmentAgainstRoute(Se,me,ct,Pt,qt):ai&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt):Pi(me):Pi(me)}expandSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt){return"**"===ct.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Se,qe,ct,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Se,me,qe,ct){const Pt=this.applyRedirectCommands([],qe.redirectTo,{});return qe.redirectTo.startsWith("/")?en(Pt):this.lineralizeSegments(qe,Pt).pipe((0,v.z)(qt=>{const ai=new ht(qt,{});return this.expandSegment(Se,ai,me,qt,ct,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt){const{matched:ai,consumedSegments:Di,remainingSegments:an,positionalParamSegments:Pn}=Nr(me,ct,Pt);if(!ai)return Pi(me);const Cn=this.applyRedirectCommands(Di,ct.redirectTo,Pn);return ct.redirectTo.startsWith("/")?en(Cn):this.lineralizeSegments(ct,Cn).pipe((0,v.z)(gr=>this.expandSegment(Se,me,qe,gr.concat(an),qt,!1)))}matchSegmentAgainstRoute(Se,me,qe,ct,Pt){if("**"===qe.path)return qe.loadChildren?(qe._loadedConfig?(0,h.of)(qe._loadedConfig):this.configLoader.load(Se.injector,qe)).pipe((0,ge.U)(Cn=>(qe._loadedConfig=Cn,new ht(ct,{})))):(0,h.of)(new ht(ct,{}));const{matched:qt,consumedSegments:ai,remainingSegments:Di}=Nr(me,qe,ct);return qt?this.getChildConfig(Se,qe,ct).pipe((0,v.z)(Pn=>{const Cn=Pn.module,gr=Pn.routes,{segmentGroup:hr,slicedSegments:ss}=Br(me,ai,Di,gr),za=new ht(hr.segments,hr.children);if(0===ss.length&&za.hasChildren())return this.expandChildren(Cn,gr,za).pipe((0,ge.U)(Bs=>new ht(ai,Bs)));if(0===gr.length&&0===ss.length)return(0,h.of)(new ht(ai,{}));const Qo=ir(qe)===Pt;return this.expandSegment(Cn,za,gr,ss,Qo?ce:Pt,!0).pipe((0,ge.U)(Da=>new ht(ai.concat(Da.segments),Da.children)))})):Pi(me)}getChildConfig(Se,me,qe){return me.children?(0,h.of)(new Pr(me.children,Se)):me.loadChildren?void 0!==me._loadedConfig?(0,h.of)(me._loadedConfig):this.runCanLoadGuards(Se.injector,me,qe).pipe((0,v.z)(ct=>ct?this.configLoader.load(Se.injector,me).pipe((0,ge.U)(Pt=>(me._loadedConfig=Pt,Pt))):function Bn(ze){return(0,D._)(te(`Cannot load children because the guard of the route "path: '${ze.path}'" returned false`))}(me))):(0,h.of)(new Pr([],Se))}runCanLoadGuards(Se,me,qe){const ct=me.canLoad;if(!ct||0===ct.length)return(0,h.of)(!0);const Pt=ct.map(qt=>{const ai=Se.get(qt);let Di;if(function Wa(ze){return ze&&Yn(ze.canLoad)}(ai))Di=ai.canLoad(me,qe);else{if(!Yn(ai))throw new Error("Invalid CanLoad guard");Di=ai(me,qe)}return ui(Di)});return(0,h.of)(Pt).pipe(ya(),(0,T.b)(qt=>{if(!cr(qt))return;const ai=te(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ai.url=qt,ai}),(0,ge.U)(qt=>!0===qt))}lineralizeSegments(Se,me){let qe=[],ct=me.root;for(;;){if(qe=qe.concat(ct.segments),0===ct.numberOfChildren)return(0,h.of)(qe);if(ct.numberOfChildren>1||!ct.children[ce])return(0,D._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Se.redirectTo}'`));ct=ct.children[ce]}}applyRedirectCommands(Se,me,qe){return this.applyRedirectCreatreUrlTree(me,this.urlSerializer.parse(me),Se,qe)}applyRedirectCreatreUrlTree(Se,me,qe,ct){const Pt=this.createSegmentGroup(Se,me.root,qe,ct);return new ye(Pt,this.createQueryParams(me.queryParams,this.urlTree.queryParams),me.fragment)}createQueryParams(Se,me){const qe={};return Zt(Se,(ct,Pt)=>{if("string"==typeof ct&&ct.startsWith(":")){const ai=ct.substring(1);qe[Pt]=me[ai]}else qe[Pt]=ct}),qe}createSegmentGroup(Se,me,qe,ct){const Pt=this.createSegments(Se,me.segments,qe,ct);let qt={};return Zt(me.children,(ai,Di)=>{qt[Di]=this.createSegmentGroup(Se,ai,qe,ct)}),new ht(Pt,qt)}createSegments(Se,me,qe,ct){return me.map(Pt=>Pt.path.startsWith(":")?this.findPosParam(Se,Pt,ct):this.findOrReturn(Pt,qe))}findPosParam(Se,me,qe){const ct=qe[me.path.substring(1)];if(!ct)throw new Error(`Cannot redirect to '${Se}'. Cannot find '${me.path}'.`);return ct}findOrReturn(Se,me){let qe=0;for(const ct of me){if(ct.path===Se.path)return me.splice(qe),ct;qe++}return Se}}function jt(ze){const Se={};for(const qe of Object.keys(ze.children)){const Pt=jt(ze.children[qe]);(Pt.segments.length>0||Pt.hasChildren())&&(Se[qe]=Pt)}return function vt(ze){if(1===ze.numberOfChildren&&ze.children[ce]){const Se=ze.children[ce];return new ht(ze.segments.concat(Se.segments),Se.children)}return ze}(new ht(ze.segments,Se))}class je{constructor(Se){this.path=Se,this.route=this.path[this.path.length-1]}}class Ye{constructor(Se,me){this.component=Se,this.route=me}}function Fe(ze,Se,me){const qe=ze._root;return Un(qe,Se?Se._root:null,me,[qe.value])}function wi(ze,Se,me){const qe=function Gi(ze){if(!ze)return null;for(let Se=ze.parent;Se;Se=Se.parent){const me=Se.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig}return null}(Se);return(qe?qe.module.injector:me).get(ze)}function Un(ze,Se,me,qe,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Pt=Bt(Se);return ze.children.forEach(qt=>{(function br(ze,Se,me,qe,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Pt=ze.value,qt=Se?Se.value:null,ai=me?me.getContext(ze.value.outlet):null;if(qt&&Pt.routeConfig===qt.routeConfig){const Di=function Fa(ze,Se,me){if("function"==typeof me)return me(ze,Se);switch(me){case"pathParamsChange":return!nt(ze.url,Se.url);case"pathParamsOrQueryParamsChange":return!nt(ze.url,Se.url)||!pt(ze.queryParams,Se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fi(ze,Se)||!pt(ze.queryParams,Se.queryParams);default:return!fi(ze,Se)}}(qt,Pt,Pt.routeConfig.runGuardsAndResolvers);Di?ct.canActivateChecks.push(new je(qe)):(Pt.data=qt.data,Pt._resolvedData=qt._resolvedData),Un(ze,Se,Pt.component?ai?ai.children:null:me,qe,ct),Di&&ai&&ai.outlet&&ai.outlet.isActivated&&ct.canDeactivateChecks.push(new Ye(ai.outlet.component,qt))}else qt&&xa(Se,ai,ct),ct.canActivateChecks.push(new je(qe)),Un(ze,null,Pt.component?ai?ai.children:null:me,qe,ct)})(qt,Pt[qt.value.outlet],me,qe.concat([qt.value]),ct),delete Pt[qt.value.outlet]}),Zt(Pt,(qt,ai)=>xa(qt,me.getContext(ai),ct)),ct}function xa(ze,Se,me){const qe=Bt(ze),ct=ze.value;Zt(qe,(Pt,qt)=>{xa(Pt,ct.component?Se?Se.children.getContext(qt):null:Se,me)}),me.canDeactivateChecks.push(new Ye(ct.component&&Se&&Se.outlet&&Se.outlet.isActivated?Se.outlet.component:null,ct))}class Ls{}function Ds(ze){return new e.y(Se=>Se.error(ze))}class zs{constructor(Se,me,qe,ct,Pt,qt){this.rootComponentType=Se,this.config=me,this.urlTree=qe,this.url=ct,this.paramsInheritanceStrategy=Pt,this.relativeLinkResolution=qt}recognize(){const Se=Br(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,me=this.processSegmentGroup(this.config,Se,ce);if(null===me)return null;const qe=new ii([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),ct=new xt(qe,me),Pt=new Ri(this.url,ct);return this.inheritParamsAndData(Pt._root),Pt}inheritParamsAndData(Se){const me=Se.value,qe=on(me,this.paramsInheritanceStrategy);me.params=Object.freeze(qe.params),me.data=Object.freeze(qe.data),Se.children.forEach(ct=>this.inheritParamsAndData(ct))}processSegmentGroup(Se,me,qe){return 0===me.segments.length&&me.hasChildren()?this.processChildren(Se,me):this.processSegment(Se,me,me.segments,qe)}processChildren(Se,me){const qe=[];for(const Pt of Object.keys(me.children)){const qt=me.children[Pt],ai=sa(Se,Pt),Di=this.processSegmentGroup(ai,qt,Pt);if(null===Di)return null;qe.push(...Di)}const ct=ka(qe);return function Vs(ze){ze.sort((Se,me)=>Se.value.outlet===ce?-1:me.value.outlet===ce?1:Se.value.outlet.localeCompare(me.value.outlet))}(ct),ct}processSegment(Se,me,qe,ct){for(const Pt of Se){const qt=this.processSegmentAgainstRoute(Pt,me,qe,ct);if(null!==qt)return qt}return kt(me,qe,ct)?[]:null}processSegmentAgainstRoute(Se,me,qe,ct){if(Se.redirectTo||!Je(Se,me,qe,ct))return null;let Pt,qt=[],ai=[];if("**"===Se.path){const hr=qe.length>0?di(qe).parameters:{};Pt=new ii(qe,hr,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(Se),ir(Se),Se.component,Se,oe(me),pe(me)+qe.length,Mt(Se))}else{const hr=Nr(me,Se,qe);if(!hr.matched)return null;qt=hr.consumedSegments,ai=hr.remainingSegments,Pt=new ii(qt,hr.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(Se),ir(Se),Se.component,Se,oe(me),pe(me)+qt.length,Mt(Se))}const Di=function as(ze){return ze.children?ze.children:ze.loadChildren?ze._loadedConfig.routes:[]}(Se),{segmentGroup:an,slicedSegments:Pn}=Br(me,qt,ai,Di.filter(hr=>void 0===hr.redirectTo),this.relativeLinkResolution);if(0===Pn.length&&an.hasChildren()){const hr=this.processChildren(Di,an);return null===hr?null:[new xt(Pt,hr)]}if(0===Di.length&&0===Pn.length)return[new xt(Pt,[])];const Cn=ir(Se)===ct,gr=this.processSegment(Di,an,Pn,Cn?ce:ct);return null===gr?null:[new xt(Pt,gr)]}}function Ur(ze){const Se=ze.value.routeConfig;return Se&&""===Se.path&&void 0===Se.redirectTo}function ka(ze){const Se=[],me=new Set;for(const qe of ze){if(!Ur(qe)){Se.push(qe);continue}const ct=Se.find(Pt=>qe.value.routeConfig===Pt.value.routeConfig);void 0!==ct?(ct.children.push(...qe.children),me.add(ct)):Se.push(qe)}for(const qe of me){const ct=ka(qe.children);Se.push(new xt(qe.value,ct))}return Se.filter(qe=>!me.has(qe))}function oe(ze){let Se=ze;for(;Se._sourceSegment;)Se=Se._sourceSegment;return Se}function pe(ze){let Se=ze,me=Se._segmentIndexShift?Se._segmentIndexShift:0;for(;Se._sourceSegment;)Se=Se._sourceSegment,me+=Se._segmentIndexShift?Se._segmentIndexShift:0;return me-1}function Ke(ze){return ze.data||{}}function Mt(ze){return ze.resolve||{}}function ki(ze){return[...Object.keys(ze),...Object.getOwnPropertySymbols(ze)]}function dn(ze){return(0,q.w)(Se=>{const me=ze(Se);return me?(0,R.D)(me).pipe((0,ge.U)(()=>Se)):(0,h.of)(Se)})}class En extends class Gn{shouldDetach(Se){return!1}store(Se,me){}shouldAttach(Se){return!1}retrieve(Se){return null}shouldReuseRoute(Se,me){return Se.routeConfig===me.routeConfig}}{}const kn=new t.OlP("ROUTES");class ar{constructor(Se,me,qe,ct){this.injector=Se,this.compiler=me,this.onLoadStartListener=qe,this.onLoadEndListener=ct}load(Se,me){if(me._loader$)return me._loader$;this.onLoadStartListener&&this.onLoadStartListener(me);const ct=this.loadModuleFactory(me.loadChildren).pipe((0,ge.U)(Pt=>{this.onLoadEndListener&&this.onLoadEndListener(me);const qt=Pt.create(Se);return new Pr(Dt(qt.injector.get(kn,void 0,t.XFs.Self|t.XFs.Optional)).map(Ha),qt)}),(0,r.K)(Pt=>{throw me._loader$=void 0,Pt}));return me._loader$=new d(ct,()=>new Z.x).pipe(C()),me._loader$}loadModuleFactory(Se){return ui(Se()).pipe((0,v.z)(me=>me instanceof t.YKP?(0,h.of)(me):(0,R.D)(this.compiler.compileModuleAsync(me))))}}class yr{shouldProcessUrl(Se){return!0}extract(Se){return Se}merge(Se,me){return Se}}function oa(ze){throw ze}function Xr(ze,Se,me){return Se.parse("/")}function Mr(ze,Se){return(0,h.of)(null)}const jr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xr=(()=>{class ze{constructor(me,qe,ct,Pt,qt,ai,Di){this.rootComponentType=me,this.urlSerializer=qe,this.rootContexts=ct,this.location=Pt,this.config=Di,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=oa,this.malformedUriErrorHandler=Xr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mr,afterPreactivation:Mr},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new En,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(t.h0i),this.console=qt.get(t.c2e);const Cn=qt.get(t.R0b);this.isNgZoneEnabled=Cn instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(Di),this.currentUrlTree=function Ot(){return new ye(new ht([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ar(qt,ai,gr=>this.triggerEvent(new Ve(gr)),gr=>this.triggerEvent(new Me(gr))),this.routerState=Ei(this.currentUrlTree,this.rootComponentType),this.transitions=new L.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()}get browserPageId(){var me;return null===(me=this.location.getState())||void 0===me?void 0:me.\u0275routerPageId}setupNavigations(me){const qe=this.events;return me.pipe((0,Y.h)(ct=>0!==ct.id),(0,ge.U)(ct=>Object.assign(Object.assign({},ct),{extractedUrl:this.urlHandlingStrategy.extract(ct.rawUrl)})),(0,q.w)(ct=>{let Pt=!1,qt=!1;return(0,h.of)(ct).pipe((0,T.b)(ai=>{this.currentNavigation={id:ai.id,initialUrl:ai.currentRawUrl,extractedUrl:ai.extractedUrl,trigger:ai.source,extras:ai.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,q.w)(ai=>{const Di=this.browserUrlTree.toString(),an=!this.navigated||ai.extractedUrl.toString()!==Di||Di!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ai.rawUrl))return la(ai.source)&&(this.browserUrlTree=ai.extractedUrl),(0,h.of)(ai).pipe((0,q.w)(Cn=>{const gr=this.transitions.getValue();return qe.next(new V(Cn.id,this.serializeUrl(Cn.extractedUrl),Cn.source,Cn.restoredState)),gr!==this.transitions.getValue()?B.E:Promise.resolve(Cn)}),function Oi(ze,Se,me,qe){return(0,q.w)(ct=>function It(ze,Se,me,qe,ct){return new ci(ze,Se,me,qe,ct).apply()}(ze,Se,me,ct.extractedUrl,qe).pipe((0,ge.U)(Pt=>Object.assign(Object.assign({},ct),{urlAfterRedirects:Pt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,T.b)(Cn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Cn.urlAfterRedirects})}),function Vt(ze,Se,me,qe,ct){return(0,v.z)(Pt=>function Fs(ze,Se,me,qe,ct="emptyOnly",Pt="legacy"){try{const qt=new zs(ze,Se,me,qe,ct,Pt).recognize();return null===qt?Ds(new Ls):(0,h.of)(qt)}catch(qt){return Ds(qt)}}(ze,Se,Pt.urlAfterRedirects,me(Pt.urlAfterRedirects),qe,ct).pipe((0,ge.U)(qt=>Object.assign(Object.assign({},Pt),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,Cn=>this.serializeUrl(Cn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,T.b)(Cn=>{if("eager"===this.urlUpdateStrategy){if(!Cn.extras.skipLocationChange){const hr=this.urlHandlingStrategy.merge(Cn.urlAfterRedirects,Cn.rawUrl);this.setBrowserUrl(hr,Cn)}this.browserUrlTree=Cn.urlAfterRedirects}const gr=new he(Cn.id,this.serializeUrl(Cn.extractedUrl),this.serializeUrl(Cn.urlAfterRedirects),Cn.targetSnapshot);qe.next(gr)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:gr,extractedUrl:hr,source:ss,restoredState:za,extras:Qo}=ai,qo=new V(gr,this.serializeUrl(hr),ss,za);qe.next(qo);const Da=Ei(hr,this.rootComponentType).snapshot;return(0,h.of)(Object.assign(Object.assign({},ai),{targetSnapshot:Da,urlAfterRedirects:hr,extras:Object.assign(Object.assign({},Qo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ai.rawUrl,ai.resolve(null),B.E}),dn(ai=>{const{targetSnapshot:Di,id:an,extractedUrl:Pn,rawUrl:Cn,extras:{skipLocationChange:gr,replaceUrl:hr}}=ai;return this.hooks.beforePreactivation(Di,{navigationId:an,appliedUrlTree:Pn,rawUrlTree:Cn,skipLocationChange:!!gr,replaceUrl:!!hr})}),(0,T.b)(ai=>{const Di=new be(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot);this.triggerEvent(Di)}),(0,ge.U)(ai=>Object.assign(Object.assign({},ai),{guards:Fe(ai.targetSnapshot,ai.currentSnapshot,this.rootContexts)})),function Ea(ze,Se){return(0,v.z)(me=>{const{targetSnapshot:qe,currentSnapshot:ct,guards:{canActivateChecks:Pt,canDeactivateChecks:qt}}=me;return 0===qt.length&&0===Pt.length?(0,h.of)(Object.assign(Object.assign({},me),{guardsResult:!0})):function Fi(ze,Se,me,qe){return(0,R.D)(ze).pipe((0,v.z)(ct=>function Ta(ze,Se,me,qe,ct){const Pt=Se&&Se.routeConfig?Se.routeConfig.canDeactivate:null;if(!Pt||0===Pt.length)return(0,h.of)(!0);const qt=Pt.map(ai=>{const Di=wi(ai,Se,ct);let an;if(function va(ze){return ze&&Yn(ze.canDeactivate)}(Di))an=ui(Di.canDeactivate(ze,Se,me,qe));else{if(!Yn(Di))throw new Error("Invalid CanDeactivate guard");an=ui(Di(ze,Se,me,qe))}return an.pipe((0,c.P)())});return(0,h.of)(qt).pipe(ya())}(ct.component,ct.route,me,Se,qe)),(0,c.P)(ct=>!0!==ct,!0))}(qt,qe,ct,ze).pipe((0,v.z)(ai=>ai&&function Vr(ze){return"boolean"==typeof ze}(ai)?function jn(ze,Se,me,qe){return(0,R.D)(Se).pipe((0,u.b)(ct=>(0,k.z)(function Er(ze,Se){return null!==ze&&Se&&Se(new J(ze)),(0,h.of)(!0)}(ct.route.parent,qe),function Hs(ze,Se){return null!==ze&&Se&&Se(new ut(ze)),(0,h.of)(!0)}(ct.route,qe),function gs(ze,Se,me){const qe=Se[Se.length-1],Pt=Se.slice(0,Se.length-1).reverse().map(qt=>function At(ze){const Se=ze.routeConfig?ze.routeConfig.canActivateChild:null;return Se&&0!==Se.length?{node:ze,guards:Se}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,E.P)(()=>{const ai=qt.guards.map(Di=>{const an=wi(Di,qt.node,me);let Pn;if(function Ya(ze){return ze&&Yn(ze.canActivateChild)}(an))Pn=ui(an.canActivateChild(qe,ze));else{if(!Yn(an))throw new Error("Invalid CanActivateChild guard");Pn=ui(an(qe,ze))}return Pn.pipe((0,c.P)())});return(0,h.of)(ai).pipe(ya())}));return(0,h.of)(Pt).pipe(ya())}(ze,ct.path,me),function to(ze,Se,me){const qe=Se.routeConfig?Se.routeConfig.canActivate:null;if(!qe||0===qe.length)return(0,h.of)(!0);const ct=qe.map(Pt=>(0,E.P)(()=>{const qt=wi(Pt,Se,me);let ai;if(function Wr(ze){return ze&&Yn(ze.canActivate)}(qt))ai=ui(qt.canActivate(Se,ze));else{if(!Yn(qt))throw new Error("Invalid CanActivate guard");ai=ui(qt(Se,ze))}return ai.pipe((0,c.P)())}));return(0,h.of)(ct).pipe(ya())}(ze,ct.route,me))),(0,c.P)(ct=>!0!==ct,!0))}(qe,Pt,ze,Se):(0,h.of)(ai)),(0,ge.U)(ai=>Object.assign(Object.assign({},me),{guardsResult:ai})))})}(this.ngModule.injector,ai=>this.triggerEvent(ai)),(0,T.b)(ai=>{if(cr(ai.guardsResult)){const an=te(`Redirecting to "${this.serializeUrl(ai.guardsResult)}"`);throw an.url=ai.guardsResult,an}const Di=new Pe(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot,!!ai.guardsResult);this.triggerEvent(Di)}),(0,Y.h)(ai=>!!ai.guardsResult||(this.restoreHistory(ai),this.cancelNavigationTransition(ai,""),!1)),dn(ai=>{if(ai.guards.canActivateChecks.length)return(0,h.of)(ai).pipe((0,T.b)(Di=>{const an=new Ee(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(an)}),(0,q.w)(Di=>{let an=!1;return(0,h.of)(Di).pipe(function ri(ze,Se){return(0,v.z)(me=>{const{targetSnapshot:qe,guards:{canActivateChecks:ct}}=me;if(!ct.length)return(0,h.of)(me);let Pt=0;return(0,R.D)(ct).pipe((0,u.b)(qt=>function ni(ze,Se,me,qe){return function gi(ze,Se,me,qe){const ct=ki(ze);if(0===ct.length)return(0,h.of)({});const Pt={};return(0,R.D)(ct).pipe((0,v.z)(qt=>function $i(ze,Se,me,qe){const ct=wi(ze,Se,qe);return ui(ct.resolve?ct.resolve(Se,me):ct(Se,me))}(ze[qt],Se,me,qe).pipe((0,T.b)(ai=>{Pt[qt]=ai}))),ae(1),(0,v.z)(()=>ki(Pt).length===ct.length?(0,h.of)(Pt):B.E))}(ze._resolve,ze,Se,qe).pipe((0,ge.U)(Pt=>(ze._resolvedData=Pt,ze.data=Object.assign(Object.assign({},ze.data),on(ze,me).resolve),null)))}(qt.route,qe,ze,Se)),(0,T.b)(()=>Pt++),ae(1),(0,v.z)(qt=>Pt===ct.length?(0,h.of)(me):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,T.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Di),this.cancelNavigationTransition(Di,"At least one route resolver didn't emit any value."))}}))}),(0,T.b)(Di=>{const an=new j(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(an)}))}),dn(ai=>{const{targetSnapshot:Di,id:an,extractedUrl:Pn,rawUrl:Cn,extras:{skipLocationChange:gr,replaceUrl:hr}}=ai;return this.hooks.afterPreactivation(Di,{navigationId:an,appliedUrlTree:Pn,rawUrlTree:Cn,skipLocationChange:!!gr,replaceUrl:!!hr})}),(0,ge.U)(ai=>{const Di=function Ti(ze,Se,me){const qe=Ni(ze,Se._root,me?me._root:void 0);return new bi(qe,Se)}(this.routeReuseStrategy,ai.targetSnapshot,ai.currentRouterState);return Object.assign(Object.assign({},ai),{targetRouterState:Di})}),(0,T.b)(ai=>{this.currentUrlTree=ai.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ai.urlAfterRedirects,ai.rawUrl),this.routerState=ai.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ai.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ai),this.browserUrlTree=ai.urlAfterRedirects)}),((ze,Se,me)=>(0,ge.U)(qe=>(new pa(Se,qe.targetRouterState,qe.currentRouterState,me).activate(ze),qe)))(this.rootContexts,this.routeReuseStrategy,ai=>this.triggerEvent(ai)),(0,T.b)({next(){Pt=!0},complete(){Pt=!0}}),(0,I.x)(()=>{var ai;Pt||qt||this.cancelNavigationTransition(ct,`Navigation ID ${ct.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ai=this.currentNavigation)||void 0===ai?void 0:ai.id)===ct.id&&(this.currentNavigation=null)}),(0,r.K)(ai=>{if(qt=!0,function Ce(ze){return ze&&ze[W]}(ai)){const Di=cr(ai.url);Di||(this.navigated=!0,this.restoreHistory(ct,!0));const an=new H(ct.id,this.serializeUrl(ct.extractedUrl),ai.message);qe.next(an),Di?setTimeout(()=>{const Pn=this.urlHandlingStrategy.merge(ai.url,this.rawUrlTree),Cn={skipLocationChange:ct.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||la(ct.source)};this.scheduleNavigation(Pn,"imperative",null,Cn,{resolve:ct.resolve,reject:ct.reject,promise:ct.promise})},0):ct.resolve(!1)}else{this.restoreHistory(ct,!0);const Di=new X(ct.id,this.serializeUrl(ct.extractedUrl),ai);qe.next(Di);try{ct.resolve(this.errorHandler(ai))}catch(an){ct.reject(an)}}return B.E}))}))}resetRootComponentType(me){this.rootComponentType=me,this.routerState.root.component=this.rootComponentType}setTransition(me){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),me))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(me=>{const qe="popstate"===me.type?"popstate":"hashchange";"popstate"===qe&&setTimeout(()=>{var ct;const Pt={replaceUrl:!0},qt=(null===(ct=me.state)||void 0===ct?void 0:ct.navigationId)?me.state:null;if(qt){const Di=Object.assign({},qt);delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(Pt.state=Di)}const ai=this.parseUrl(me.url);this.scheduleNavigation(ai,qe,qt,Pt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(me){this.events.next(me)}resetConfig(me){ba(me),this.config=me.map(Ha),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(me,qe={}){const{relativeTo:ct,queryParams:Pt,fragment:qt,queryParamsHandling:ai,preserveFragment:Di}=qe,an=ct||this.routerState.root,Pn=Di?this.currentUrlTree.fragment:qt;let Cn=null;switch(ai){case"merge":Cn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Pt);break;case"preserve":Cn=this.currentUrlTree.queryParams;break;default:Cn=Pt||null}return null!==Cn&&(Cn=this.removeEmptyProps(Cn)),function Rn(ze,Se,me,qe,ct){if(0===me.length)return Si(Se.root,Se.root,Se.root,qe,ct);const Pt=function qn(ze){if("string"==typeof ze[0]&&1===ze.length&&"/"===ze[0])return new Sn(!0,0,ze);let Se=0,me=!1;const qe=ze.reduce((ct,Pt,qt)=>{if("object"==typeof Pt&&null!=Pt){if(Pt.outlets){const ai={};return Zt(Pt.outlets,(Di,an)=>{ai[an]="string"==typeof Di?Di.split("/"):Di}),[...ct,{outlets:ai}]}if(Pt.segmentPath)return[...ct,Pt.segmentPath]}return"string"!=typeof Pt?[...ct,Pt]:0===qt?(Pt.split("/").forEach((ai,Di)=>{0==Di&&"."===ai||(0==Di&&""===ai?me=!0:".."===ai?Se++:""!=ai&&ct.push(ai))}),ct):[...ct,Pt]},[]);return new Sn(me,Se,qe)}(me);if(Pt.toRoot())return Si(Se.root,Se.root,new ht([],{}),qe,ct);const qt=function ha(ze,Se,me){if(ze.isAbsolute)return new sr(Se.root,!0,0);if(-1===me.snapshot._lastPathIndex){const Pt=me.snapshot._urlSegment;return new sr(Pt,Pt===Se.root,0)}const qe=tr(ze.commands[0])?0:1;return function _a(ze,Se,me){let qe=ze,ct=Se,Pt=me;for(;Pt>ct;){if(Pt-=ct,qe=qe.parent,!qe)throw new Error("Invalid number of '../'");ct=qe.segments.length}return new sr(qe,!1,ct-Pt)}(me.snapshot._urlSegment,me.snapshot._lastPathIndex+qe,ze.numberOfDoubleDots)}(Pt,Se,ze),ai=qt.processChildren?zr(qt.segmentGroup,qt.index,Pt.commands):fa(qt.segmentGroup,qt.index,Pt.commands);return Si(Se.root,qt.segmentGroup,ai,qe,ct)}(an,this.currentUrlTree,me,Cn,null!=Pn?Pn:null)}navigateByUrl(me,qe={skipLocationChange:!1}){const ct=cr(me)?me:this.parseUrl(me),Pt=this.urlHandlingStrategy.merge(ct,this.rawUrlTree);return this.scheduleNavigation(Pt,"imperative",null,qe)}navigate(me,qe={skipLocationChange:!1}){return function ja(ze){for(let Se=0;Se{const Pt=me[ct];return null!=Pt&&(qe[ct]=Pt),qe},{})}processNavigations(){this.navigations.subscribe(me=>{this.navigated=!0,this.lastSuccessfulId=me.id,this.currentPageId=me.targetPageId,this.events.next(new N(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,me.resolve(!0)},me=>{this.console.warn(`Unhandled Navigation Error: ${me}`)})}scheduleNavigation(me,qe,ct,Pt,qt){var ai,Di;if(this.disposed)return Promise.resolve(!1);let an,Pn,Cn;qt?(an=qt.resolve,Pn=qt.reject,Cn=qt.promise):Cn=new Promise((ss,za)=>{an=ss,Pn=za});const gr=++this.navigationId;let hr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ct=this.location.getState()),hr=ct&&ct.\u0275routerPageId?ct.\u0275routerPageId:Pt.replaceUrl||Pt.skipLocationChange?null!==(ai=this.browserPageId)&&void 0!==ai?ai:0:(null!==(Di=this.browserPageId)&&void 0!==Di?Di:0)+1):hr=0,this.setTransition({id:gr,targetPageId:hr,source:qe,restoredState:ct,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:me,extras:Pt,resolve:an,reject:Pn,promise:Cn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Cn.catch(ss=>Promise.reject(ss))}setBrowserUrl(me,qe){const ct=this.urlSerializer.serialize(me),Pt=Object.assign(Object.assign({},qe.extras.state),this.generateNgRouterState(qe.id,qe.targetPageId));this.location.isCurrentPathEqualTo(ct)||qe.extras.replaceUrl?this.location.replaceState(ct,"",Pt):this.location.go(ct,"",Pt)}restoreHistory(me,qe=!1){var ct,Pt;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-me.targetPageId;"popstate"!==me.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ct=this.currentNavigation)||void 0===ct?void 0:ct.finalUrl)||0===qt?this.currentUrlTree===(null===(Pt=this.currentNavigation)||void 0===Pt?void 0:Pt.finalUrl)&&0===qt&&(this.resetState(me),this.browserUrlTree=me.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&(qe&&this.resetState(me),this.resetUrlToCurrentUrlTree())}resetState(me){this.routerState=me.currentRouterState,this.currentUrlTree=me.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,me.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(me,qe){const ct=new H(me.id,this.serializeUrl(me.extractedUrl),qe);this.triggerEvent(ct),me.resolve(!1)}generateNgRouterState(me,qe){return"computed"===this.canceledNavigationResolution?{navigationId:me,\u0275routerPageId:qe}:{navigationId:me}}}return ze.\u0275fac=function(me){t.$Z()},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function la(ze){return"imperative"!==ze}let ws=(()=>{class ze{constructor(me,qe,ct,Pt,qt){this.router=me,this.route=qe,this.tabIndexAttribute=ct,this.renderer=Pt,this.el=qt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(me){if(null!=this.tabIndexAttribute)return;const qe=this.renderer,ct=this.el.nativeElement;null!==me?qe.setAttribute(ct,"tabindex",me):qe.removeAttribute(ct,"tabindex")}ngOnChanges(me){this.onChanges.next(this)}set routerLink(me){null!=me?(this.commands=Array.isArray(me)?me:[me],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const me={skipLocationChange:Aa(this.skipLocationChange),replaceUrl:Aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,me),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Aa(this.preserveFragment)})}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(xr),t.Y36(Wi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(me,qe){1&me&&t.NdJ("click",function(){return qe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),ze})(),Ka=(()=>{class ze{constructor(me,qe,ct){this.router=me,this.route=qe,this.locationStrategy=ct,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=me.events.subscribe(Pt=>{Pt instanceof N&&this.updateTargetUrlAndHref()})}set routerLink(me){this.commands=null!=me?Array.isArray(me)?me:[me]:null}ngOnChanges(me){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(me,qe,ct,Pt,qt){if(0!==me||qe||ct||Pt||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ai={skipLocationChange:Aa(this.skipLocationChange),replaceUrl:Aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ai),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Aa(this.preserveFragment)})}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(xr),t.Y36(Wi),t.Y36(n.S$))},ze.\u0275dir=t.lG2({type:ze,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(me,qe){1&me&&t.NdJ("click",function(Pt){return qe.onClick(Pt.button,Pt.ctrlKey,Pt.shiftKey,Pt.altKey,Pt.metaKey)}),2&me&&t.uIk("target",qe.target)("href",qe.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),ze})();function Aa(ze){return""===ze||!!ze}let _s=(()=>{class ze{constructor(me,qe,ct,Pt,qt,ai){this.router=me,this.element=qe,this.renderer=ct,this.cdr=Pt,this.link=qt,this.linkWithHref=ai,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=me.events.subscribe(Di=>{Di instanceof N&&this.update()})}ngAfterContentInit(){(0,h.of)(this.links.changes,this.linksWithHrefs.changes,(0,h.of)(null)).pipe((0,y.J)()).subscribe(me=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var me;null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe();const qe=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ct=>!!ct).map(ct=>ct.onChanges);this.linkInputChangesSubscription=(0,R.D)(qe).pipe((0,y.J)()).subscribe(ct=>{this.isActive!==this.isLinkActive(this.router)(ct)&&this.update()})}set routerLinkActive(me){const qe=Array.isArray(me)?me:me.split(" ");this.classes=qe.filter(ct=>!!ct)}ngOnChanges(me){this.update()}ngOnDestroy(){var me;this.routerEventsSubscription.unsubscribe(),null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const me=this.hasActiveLinks();this.isActive!==me&&(this.isActive=me,this.cdr.markForCheck(),this.classes.forEach(qe=>{me?this.renderer.addClass(this.element.nativeElement,qe):this.renderer.removeClass(this.element.nativeElement,qe)}),this.isActiveChange.emit(me))})}isLinkActive(me){const qe=function vs(ze){return!!ze.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ct=>!!ct.urlTree&&me.isActive(ct.urlTree,qe)}hasActiveLinks(){const me=this.isLinkActive(this.router);return this.link&&me(this.link)||this.linkWithHref&&me(this.linkWithHref)||this.links.some(me)||this.linksWithHrefs.some(me)}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(xr),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(ws,8),t.Y36(Ka,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","routerLinkActive",""]],contentQueries:function(me,qe,ct){if(1&me&&(t.Suo(ct,ws,5),t.Suo(ct,Ka,5)),2&me){let Pt;t.iGM(Pt=t.CRH())&&(qe.links=Pt),t.iGM(Pt=t.CRH())&&(qe.linksWithHrefs=Pt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[t.TTD]}),ze})();class cn{}class Tn{preload(Se,me){return(0,h.of)(null)}}let $n=(()=>{class ze{constructor(me,qe,ct,Pt){this.router=me,this.injector=ct,this.preloadingStrategy=Pt,this.loader=new ar(ct,qe,Di=>me.triggerEvent(new Ve(Di)),Di=>me.triggerEvent(new Me(Di)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Y.h)(me=>me instanceof N),(0,u.b)(()=>this.preload())).subscribe(()=>{})}preload(){const me=this.injector.get(t.h0i);return this.processRoutes(me,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(me,qe){const ct=[];for(const Pt of qe)if(Pt.loadChildren&&!Pt.canLoad&&Pt._loadedConfig){const qt=Pt._loadedConfig;ct.push(this.processRoutes(qt.module,qt.routes))}else Pt.loadChildren&&!Pt.canLoad?ct.push(this.preloadConfig(me,Pt)):Pt.children&&ct.push(this.processRoutes(me,Pt.children));return(0,R.D)(ct).pipe((0,y.J)(),(0,ge.U)(Pt=>{}))}preloadConfig(me,qe){return this.preloadingStrategy.preload(qe,()=>(qe._loadedConfig?(0,h.of)(qe._loadedConfig):this.loader.load(me.injector,qe)).pipe((0,v.z)(Pt=>(qe._loadedConfig=Pt,this.processRoutes(Pt.module,Pt.routes)))))}}return ze.\u0275fac=function(me){return new(me||ze)(t.LFG(xr),t.LFG(t.Sil),t.LFG(t.zs3),t.LFG(cn))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),mr=(()=>{class ze{constructor(me,qe,ct={}){this.router=me,this.viewportScroller=qe,this.options=ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ct.scrollPositionRestoration=ct.scrollPositionRestoration||"disabled",ct.anchorScrolling=ct.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(me=>{me instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=me.navigationTrigger,this.restoredId=me.restoredState?me.restoredState.navigationId:0):me instanceof N&&(this.lastId=me.id,this.scheduleScrollEvent(me,this.router.parseUrl(me.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(me=>{me instanceof we&&(me.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(me.position):me.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(me.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(me,qe){this.router.triggerEvent(new we(me,"popstate"===this.lastSource?this.store[this.restoredId]:null,qe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ze.\u0275fac=function(me){t.$Z()},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const Gr=new t.OlP("ROUTER_CONFIGURATION"),$a=new t.OlP("ROUTER_FORROOT_GUARD"),ur=[n.Ye,{provide:rt,useClass:et},{provide:xr,useFactory:function _i(ze,Se,me,qe,ct,Pt,qt={},ai,Di){const an=new xr(null,ze,Se,me,qe,ct,Dt(Pt));return ai&&(an.urlHandlingStrategy=ai),Di&&(an.routeReuseStrategy=Di),function Ii(ze,Se){ze.errorHandler&&(Se.errorHandler=ze.errorHandler),ze.malformedUriErrorHandler&&(Se.malformedUriErrorHandler=ze.malformedUriErrorHandler),ze.onSameUrlNavigation&&(Se.onSameUrlNavigation=ze.onSameUrlNavigation),ze.paramsInheritanceStrategy&&(Se.paramsInheritanceStrategy=ze.paramsInheritanceStrategy),ze.relativeLinkResolution&&(Se.relativeLinkResolution=ze.relativeLinkResolution),ze.urlUpdateStrategy&&(Se.urlUpdateStrategy=ze.urlUpdateStrategy),ze.canceledNavigationResolution&&(Se.canceledNavigationResolution=ze.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Pn=>{var Cn,gr;null===(Cn=console.group)||void 0===Cn||Cn.call(console,`Router Event: ${Pn.constructor.name}`),console.log(Pn.toString()),console.log(Pn),null===(gr=console.groupEnd)||void 0===gr||gr.call(console)}),an},deps:[rt,Dr,n.Ye,t.zs3,t.Sil,kn,Gr,[class Rr{},new t.FiY],[class An{},new t.FiY]]},Dr,{provide:Wi,useFactory:function zi(ze){return ze.routerState.root},deps:[xr]},$n,Tn,class xn{preload(Se,me){return me().pipe((0,r.K)(()=>(0,h.of)(null)))}},{provide:Gr,useValue:{enableTracing:!1}}];function at(){return new t.PXZ("Router",xr)}let St=(()=>{class ze{constructor(me,qe){}static forRoot(me,qe){return{ngModule:ze,providers:[ur,pi(me),{provide:$a,useFactory:$t,deps:[[xr,new t.FiY,new t.tp0]]},{provide:Gr,useValue:qe||{}},{provide:n.S$,useFactory:zt,deps:[n.lw,[new t.tBr(n.mr),new t.FiY],Gr]},{provide:mr,useFactory:wt,deps:[xr,n.EM,Gr]},{provide:cn,useExisting:qe&&qe.preloadingStrategy?qe.preloadingStrategy:Tn},{provide:t.PXZ,multi:!0,useFactory:at},[ln,{provide:t.ip1,multi:!0,useFactory:nn,deps:[ln]},{provide:Jn,useFactory:un,deps:[ln]},{provide:t.tb,multi:!0,useExisting:Jn}]]}}static forChild(me){return{ngModule:ze,providers:[pi(me)]}}}return ze.\u0275fac=function(me){return new(me||ze)(t.LFG($a,8),t.LFG(xr,8))},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({}),ze})();function wt(ze,Se,me){return me.scrollOffset&&Se.setOffset(me.scrollOffset),new mr(ze,Se,me)}function zt(ze,Se,me={}){return me.useHash?new n.Do(ze,Se):new n.b0(ze,Se)}function $t(ze){return"guarded"}function pi(ze){return[{provide:t.deG,multi:!0,useValue:ze},{provide:kn,multi:!0,useValue:ze}]}let ln=(()=>{class ze{constructor(me){this.injector=me,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let qe=null;const ct=new Promise(ai=>qe=ai),Pt=this.injector.get(xr),qt=this.injector.get(Gr);return"disabled"===qt.initialNavigation?(Pt.setUpLocationChangeListener(),qe(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Pt.hooks.afterPreactivation=()=>this.initNavigation?(0,h.of)(null):(this.initNavigation=!0,qe(!0),this.resultOfPreactivationDone),Pt.initialNavigation()):qe(!0),ct})}bootstrapListener(me){const qe=this.injector.get(Gr),ct=this.injector.get($n),Pt=this.injector.get(mr),qt=this.injector.get(xr),ai=this.injector.get(t.z2F);me===ai.components[0]&&(("enabledNonBlocking"===qe.initialNavigation||void 0===qe.initialNavigation)&&qt.initialNavigation(),ct.setUpPreloading(),Pt.init(),qt.resetRootComponentType(ai.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return ze.\u0275fac=function(me){return new(me||ze)(t.LFG(t.zs3))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function nn(ze){return ze.appInitializer.bind(ze)}function un(ze){return ze.bootstrapListener.bind(ze)}const Jn=new t.OlP("Router Initializer")},9546:(Be,K,p)=>{"use strict";p.d(K,{BN:()=>Tn,uH:()=>ur});var t=p(5e3);function e(at,St){var wt=Object.keys(at);if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(at);St&&(zt=zt.filter(function($t){return Object.getOwnPropertyDescriptor(at,$t).enumerable})),wt.push.apply(wt,zt)}return wt}function f(at){for(var St=1;Stat.length)&&(St=at.length);for(var wt=0,zt=new Array(St);wt0;)St+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return St}function Ae(at){for(var St=[],wt=(at||[]).length>>>0;wt--;)St[wt]=at[wt];return St}function Ge(at){return at.classList?Ae(at.classList):(at.getAttribute("class")||"").split(" ").filter(function(St){return St})}function ot(at){return"".concat(at).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ct(at){return Object.keys(at||{}).reduce(function(St,wt){return St+"".concat(wt,": ").concat(at[wt].trim(),";")},"")}function mi(at){return at.size!==nt.size||at.x!==nt.x||at.y!==nt.y||at.rotate!==nt.rotate||at.flipX||at.flipY}function hi(){var St=Ee,wt=ye.cssPrefix,zt=ye.replacementClass,$t=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\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-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: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\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-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\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: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\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@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 -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\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 z-index: var(--fa-stack-z-index, auto);\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: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\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.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==wt||zt!==St){var pi=new RegExp("\\.".concat("fa","\\-"),"g"),_i=new RegExp("\\--".concat("fa","\\-"),"g"),Ii=new RegExp("\\.".concat(St),"g");$t=$t.replace(pi,".".concat(wt,"-")).replace(_i,"--".concat(wt,"-")).replace(Ii,".".concat(zt))}return $t}var si=!1;function Ji(){ye.autoAddCss&&!si&&(function He(at){if(at&&y){var St=c.createElement("style");St.setAttribute("type","text/css"),St.innerHTML=at;for(var wt=c.head.childNodes,zt=null,$t=wt.length-1;$t>-1;$t--){var pi=wt[$t],_i=(pi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(_i)>-1&&(zt=pi)}c.head.insertBefore(St,zt)}}(hi()),si=!0)}var Zi={mixout:function(){return{dom:{css:hi,insertCss:Ji}}},hooks:function(){return{beforeDOMElementCreation:function(){Ji()},beforeI2svg:function(){Ji()}}}},Vi=u||{};Vi[he]||(Vi[he]={}),Vi[he].styles||(Vi[he].styles={}),Vi[he].hooks||(Vi[he].hooks={}),Vi[he].shims||(Vi[he].shims=[]);var Ui=Vi[he],Ue=[],ve=!1;function Qe(at){!y||(ve?setTimeout(at,0):Ue.push(at))}function _t(at){var St=at.tag,wt=at.attributes,zt=void 0===wt?{}:wt,$t=at.children,pi=void 0===$t?[]:$t;return"string"==typeof at?ot(at):"<".concat(St," ").concat(function lt(at){return Object.keys(at||{}).reduce(function(St,wt){return St+"".concat(wt,'="').concat(ot(at[wt]),'" ')},"").trim()}(zt),">").concat(pi.map(_t).join(""),"")}function se(at,St,wt){if(at&&at[St]&&at[St][wt])return{prefix:St,iconName:wt,icon:at[St][wt]}}y&&((ve=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function at(){c.removeEventListener("DOMContentLoaded",at),ve=1,Ue.map(function(St){return St()})}));var xt=function(St,wt,zt,$t){var zi,ln,nn,pi=Object.keys(St),_i=pi.length,Ii=void 0!==$t?function(St,wt){return function(zt,$t,pi,_i){return St.call(wt,zt,$t,pi,_i)}}(wt,$t):wt;for(void 0===zt?(zi=1,nn=St[pi[0]]):(zi=0,nn=zt);zi<_i;zi++)nn=Ii(nn,St[ln=pi[zi]],ln,St);return nn};function bi(at){var St=function Bt(at){for(var St=[],wt=0,zt=at.length;wt=55296&&$t<=56319&&wt2&&void 0!==arguments[2]?arguments[2]:{},zt=wt.skipHooks,$t=void 0!==zt&&zt,pi=Xi(St);"function"!=typeof Ui.hooks.addPack||$t?Ui.styles[at]=f(f({},Ui.styles[at]||{}),pi):Ui.hooks.addPack(at,Xi(St)),"fas"===at&&Wi("fa",St)}var pn,ii,Ri,st=Ui.styles,Rt=Ui.shims,Wt=(h(pn={},Te,Object.values(Q[Te])),h(pn,xe,Object.values(Q[xe])),pn),fi=null,Ti={},Ni={},mn={},In={},Rn={},tr=(h(ii={},Te,Object.keys(Ce[Te])),h(ii,xe,Object.keys(Ce[xe])),ii);function Si(at,St){var wt=St.split("-"),zt=wt[0],$t=wt.slice(1).join("-");return zt!==at||""===$t||function gn(at){return~it.indexOf(at)}($t)?null:$t}var Ki=function(){var St=function(pi){return xt(st,function(_i,Ii,zi){return _i[zi]=xt(Ii,pi,{}),_i},{})};Ti=St(function($t,pi,_i){return pi[3]&&($t[pi[3]]=_i),pi[2]&&pi[2].filter(function(zi){return"number"==typeof zi}).forEach(function(zi){$t[zi.toString(16)]=_i}),$t}),Ni=St(function($t,pi,_i){return $t[_i]=_i,pi[2]&&pi[2].filter(function(zi){return"string"==typeof zi}).forEach(function(zi){$t[zi]=_i}),$t}),Rn=St(function($t,pi,_i){var Ii=pi[2];return $t[_i]=_i,Ii.forEach(function(zi){$t[zi]=_i}),$t});var wt="far"in st||ye.autoFetchSvg,zt=xt(Rt,function($t,pi){var _i=pi[0],Ii=pi[1],zi=pi[2];return"far"===Ii&&!wt&&(Ii="fas"),"string"==typeof _i&&($t.names[_i]={prefix:Ii,iconName:zi}),"number"==typeof _i&&($t.unicodes[_i.toString(16)]={prefix:Ii,iconName:zi}),$t},{names:{},unicodes:{}});mn=zt.names,In=zt.unicodes,fi=zr(ye.styleDefault,{family:ye.familyDefault})};function Sn(at,St){return(Ti[at]||{})[St]}function sr(at,St){return(Rn[at]||{})[St]}function ha(at){return mn[at]||{prefix:null,iconName:null}}function Sr(){return fi}function zr(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=St.family,zt=void 0===wt?Te:wt,$t=Ce[zt][at],pi=fe[zt][at]||fe[zt][$t],_i=at in Ui.styles?at:null;return pi||_i||null}(function mt(at){ht.push(at)})(function(at){fi=zr(at.styleDefault,{family:ye.familyDefault})}),Ki();var ta=(h(Ri={},Te,Object.keys(Q[Te])),h(Ri,xe,Object.keys(Q[xe])),Ri);function ia(at){var St,wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=wt.skipLookups,$t=void 0!==zt&&zt,pi=(h(St={},Te,"".concat(ye.cssPrefix,"-").concat(Te)),h(St,xe,"".concat(ye.cssPrefix,"-").concat(xe)),St),_i=null,Ii=Te;(at.includes(pi[Te])||at.some(function(ln){return ta[Te].includes(ln)}))&&(Ii=Te),(at.includes(pi[xe])||at.some(function(ln){return ta[xe].includes(ln)}))&&(Ii=xe);var zi=at.reduce(function(ln,nn){var un=Si(ye.cssPrefix,nn);if(st[nn]?(nn=Wt[Ii].includes(nn)?pt[Ii][nn]:nn,_i=nn,ln.prefix=nn):tr[Ii].indexOf(nn)>-1?(_i=nn,ln.prefix=zr(nn,{family:Ii})):un?ln.iconName=un:nn!==ye.replacementClass&&nn!==pi[Te]&&nn!==pi[xe]&&ln.rest.push(nn),!$t&&ln.prefix&&ln.iconName){var Jn="fa"===_i?ha(ln.iconName):{},rr=sr(ln.prefix,ln.iconName);Jn.prefix&&(_i=null),ln.iconName=Jn.iconName||rr||ln.iconName,ln.prefix=Jn.prefix||ln.prefix,"far"===ln.prefix&&!st.far&&st.fas&&!ye.autoFetchSvg&&(ln.prefix="fas")}return ln},{prefix:null,iconName:null,rest:[]});return(at.includes("fa-brands")||at.includes("fab"))&&(zi.prefix="fab"),(at.includes("fa-duotone")||at.includes("fad"))&&(zi.prefix="fad"),!zi.prefix&&Ii===xe&&(st.fass||ye.autoFetchSvg)&&(zi.prefix="fass",zi.iconName=sr(zi.prefix,zi.iconName)||zi.iconName),("fa"===zi.prefix||"fa"===_i)&&(zi.prefix=Sr()||"fas"),zi}var na=function(){function at(){(function C(at,St){if(!(at instanceof St))throw new TypeError("Cannot call a class as a function")})(this,at),this.definitions={}}return function R(at,St,wt){St&&d(at.prototype,St),wt&&d(at,wt),Object.defineProperty(at,"prototype",{writable:!1})}(at,[{key:"add",value:function(){for(var wt=this,zt=arguments.length,$t=new Array(zt),pi=0;pi0&&nn.forEach(function(un){"string"==typeof un&&(wt[Ii][un]=ln)}),wt[Ii][zi]=ln}),wt}}]),at}(),qr=[],Jr={},Ma={},pa=Object.keys(Ma);function Pr(at,St){for(var wt=arguments.length,zt=new Array(wt>2?wt-2:0),$t=2;$t1?St-1:0),zt=1;zt0&&void 0!==arguments[0]?arguments[0]:{};return y?(Yn("beforeI2svg",St),Vr("pseudoElements2svg",St),Vr("i2svg",St)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=St.autoReplaceSvgRoot;!1===ye.autoReplaceSvg&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,Qe(function(){ya({autoReplaceSvgRoot:wt}),Yn("watch",St)})}},dr={noAuto:function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Yn("noAuto")},config:ye,dom:Ya,parse:{icon:function(St){if(null===St)return null;if("object"===M(St)&&St.prefix&&St.iconName)return{prefix:St.prefix,iconName:sr(St.prefix,St.iconName)||St.iconName};if(Array.isArray(St)&&2===St.length){var wt=0===St[1].indexOf("fa-")?St[1].slice(3):St[1],zt=zr(St[0]);return{prefix:zt,iconName:sr(zt,wt)||wt}}if("string"==typeof St&&(St.indexOf("".concat(ye.cssPrefix,"-"))>-1||St.match(tt))){var $t=ia(St.split(" "),{skipLookups:!0});return{prefix:$t.prefix||Sr(),iconName:sr($t.prefix,$t.iconName)||$t.iconName}}if("string"==typeof St){var pi=Sr();return{prefix:pi,iconName:sr(pi,St)||St}}}},library:Wa,findIconDefinition:cr,toHtml:_t},ya=function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=St.autoReplaceSvgRoot,zt=void 0===wt?c:wt;(Object.keys(Ui.styles).length>0||ye.autoFetchSvg)&&y&&ye.autoReplaceSvg&&dr.dom.i2svg({node:zt})};function kr(at,St){return Object.defineProperty(at,"abstract",{get:St}),Object.defineProperty(at,"html",{get:function(){return at.abstract.map(function(zt){return _t(zt)})}}),Object.defineProperty(at,"node",{get:function(){if(y){var zt=c.createElement("div");return zt.innerHTML=at.html,zt.children}}}),at}function wa(at){var St=at.icons,wt=St.main,zt=St.mask,$t=at.prefix,pi=at.iconName,_i=at.transform,Ii=at.symbol,zi=at.title,ln=at.maskId,nn=at.titleId,un=at.extra,Jn=at.watchable,rr=void 0!==Jn&&Jn,ca=zt.found?zt:wt,ze=ca.width,Se=ca.height,me="fak"===$t,qe=[ye.replacementClass,pi?"".concat(ye.cssPrefix,"-").concat(pi):""].filter(function(Pn){return-1===un.classes.indexOf(Pn)}).filter(function(Pn){return""!==Pn||!!Pn}).concat(un.classes).join(" "),ct={children:[],attributes:f(f({},un.attributes),{},{"data-prefix":$t,"data-icon":pi,class:qe,role:un.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ze," ").concat(Se)})},Pt=me&&!~un.classes.indexOf("fa-fw")?{width:"".concat(ze/Se*16*.0625,"em")}:{};rr&&(ct.attributes[j]=""),zi&&(ct.children.push({tag:"title",attributes:{id:ct.attributes["aria-labelledby"]||"title-".concat(nn||et())},children:[zi]}),delete ct.attributes.title);var qt=f(f({},ct),{},{prefix:$t,iconName:pi,main:wt,mask:zt,maskId:ln,transform:_i,symbol:Ii,styles:f(f({},Pt),un.styles)}),ai=zt.found&&wt.found?Vr("generateAbstractMask",qt)||{children:[],attributes:{}}:Vr("generateAbstractIcon",qt)||{children:[],attributes:{}},an=ai.attributes;return qt.children=ai.children,qt.attributes=an,Ii?function ra(at){var wt=at.iconName,zt=at.children,$t=at.attributes,pi=at.symbol,_i=!0===pi?"".concat(at.prefix,"-").concat(ye.cssPrefix,"-").concat(wt):pi;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:f(f({},$t),{},{id:_i}),children:zt}]}]}(qt):function Dr(at){var St=at.children,wt=at.main,zt=at.mask,$t=at.attributes,pi=at.styles,_i=at.transform;if(mi(_i)&&wt.found&&!zt.found){var ln={x:wt.width/wt.height/2,y:.5};$t.style=Ct(f(f({},pi),{},{"transform-origin":"".concat(ln.x+_i.x/16,"em ").concat(ln.y+_i.y/16,"em")}))}return[{tag:"svg",attributes:$t,children:St}]}(qt)}function Pa(at){var St=at.content,wt=at.width,zt=at.height,$t=at.transform,pi=at.title,_i=at.extra,Ii=at.watchable,zi=void 0!==Ii&&Ii,ln=f(f(f({},_i.attributes),pi?{title:pi}:{}),{},{class:_i.classes.join(" ")});zi&&(ln[j]="");var nn=f({},_i.styles);mi($t)&&(nn.transform=function ei(at){var St=at.transform,wt=at.width,$t=at.height,pi=void 0===$t?16:$t,_i=at.startCentered,Ii=void 0!==_i&&_i,zi="";return zi+=Ii&&n?"translate(".concat(St.x/16-(void 0===wt?16:wt)/2,"em, ").concat(St.y/16-pi/2,"em) "):Ii?"translate(calc(-50% + ".concat(St.x/16,"em), calc(-50% + ").concat(St.y/16,"em)) "):"translate(".concat(St.x/16,"em, ").concat(St.y/16,"em) "),(zi+="scale(".concat(St.size/16*(St.flipX?-1:1),", ").concat(St.size/16*(St.flipY?-1:1),") "))+"rotate(".concat(St.rotate,"deg) ")}({transform:$t,startCentered:!0,width:wt,height:zt}),nn["-webkit-transform"]=nn.transform);var un=Ct(nn);un.length>0&&(ln.style=un);var Jn=[];return Jn.push({tag:"span",attributes:ln,children:[St]}),pi&&Jn.push({tag:"span",attributes:{class:"sr-only"},children:[pi]}),Jn}function ba(at){var St=at.content,wt=at.title,zt=at.extra,$t=f(f(f({},zt.attributes),wt?{title:wt}:{}),{},{class:zt.classes.join(" ")}),pi=Ct(zt.styles);pi.length>0&&($t.style=pi);var _i=[];return _i.push({tag:"span",attributes:$t,children:[St]}),wt&&_i.push({tag:"span",attributes:{class:"sr-only"},children:[wt]}),_i}var or=Ui.styles;function aa(at){var St=at[0],wt=at[1],pi=D(at.slice(4),1)[0];return{found:!0,width:St,height:wt,icon:Array.isArray(pi)?{tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:pi[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat("primary"),fill:"currentColor",d:pi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:pi}}}}var Ha={found:!1,width:512,height:512};function sa(at,St){var wt=St;return"fa"===St&&null!==ye.styleDefault&&(St=Sr()),new Promise(function(zt,$t){if(Vr("missingIconAbstract"),"fa"===wt){var _i=ha(at)||{};at=_i.iconName||at,St=_i.prefix||St}if(at&&St&&or[St]&&or[St][at])return zt(aa(or[St][at]));(function ir(at,St){!ce&&!ye.showMissingIcons&&at&&console.error('Icon with name "'.concat(at,'" and prefix "').concat(St,'" is missing.'))})(at,St),zt(f(f({},Ha),{},{icon:ye.showMissingIcons&&at&&Vr("missingIconAbstract")||{}}))})}var Yr=function(){},Nr=ye.measurePerformance&&T&&T.mark&&T.measure?T:{mark:Yr,measure:Yr},Br='FA "6.2.1"',Xn_begin=function(St){return Nr.mark("".concat(Br," ").concat(St," begins")),function(){return function(St){Nr.mark("".concat(Br," ").concat(St," ends")),Nr.measure("".concat(Br," ").concat(St),"".concat(Br," ").concat(St," begins"),"".concat(Br," ").concat(St," ends"))}(St)}},$e=function(){};function Et(at){return"string"==typeof(at.getAttribute?at.getAttribute(j):null)}function Mi(at){return c.createElementNS("http://www.w3.org/2000/svg",at)}function Pi(at){return c.createElement(at)}function en(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=St.ceFn,zt=void 0===wt?"svg"===at.tag?Mi:Pi:wt;if("string"==typeof at)return c.createTextNode(at);var $t=zt(at.tag);Object.keys(at.attributes||[]).forEach(function(_i){$t.setAttribute(_i,at.attributes[_i])});var pi=at.children||[];return pi.forEach(function(_i){$t.appendChild(en(_i,{ceFn:zt}))}),$t}var Bn={replace:function(St){var wt=St[0];if(wt.parentNode)if(St[1].forEach(function($t){wt.parentNode.insertBefore(en($t),wt)}),null===wt.getAttribute(j)&&ye.keepOriginalSource){var zt=c.createComment(function nr(at){var St=" ".concat(at.outerHTML," ");return"".concat(St,"Font Awesome fontawesome.com ")}(wt));wt.parentNode.replaceChild(zt,wt)}else wt.remove()},nest:function(St){var wt=St[0],zt=St[1];if(~Ge(wt).indexOf(ye.replacementClass))return Bn.replace(St);var $t=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete zt[0].attributes.id,zt[0].attributes.class){var pi=zt[0].attributes.class.split(" ").reduce(function(Ii,zi){return zi===ye.replacementClass||zi.match($t)?Ii.toSvg.push(zi):Ii.toNode.push(zi),Ii},{toNode:[],toSvg:[]});zt[0].attributes.class=pi.toSvg.join(" "),0===pi.toNode.length?wt.removeAttribute("class"):wt.setAttribute("class",pi.toNode.join(" "))}var _i=zt.map(function(Ii){return _t(Ii)}).join("\n");wt.setAttribute(j,""),wt.innerHTML=_i}};function It(at){at()}function ci(at,St){var wt="function"==typeof St?St:$e;if(0===at.length)wt();else{var zt=It;"async"===ye.mutateApproach&&(zt=u.requestAnimationFrame||It),zt(function(){var $t=function Xt(){return!0===ye.autoReplaceSvg?Bn.replace:Bn[ye.autoReplaceSvg]||Bn.replace}(),pi=Xn_begin("mutate");at.map($t),pi(),wt()})}}var vt=!1;function jt(){vt=!0}function Oi(){vt=!1}var je=null;function Ye(at){if(v&&ye.observeMutations){var St=at.treeCallback,wt=void 0===St?$e:St,zt=at.nodeCallback,$t=void 0===zt?$e:zt,pi=at.pseudoElementsCallback,_i=void 0===pi?$e:pi,Ii=at.observeMutationsRoot,zi=void 0===Ii?c:Ii;je=new v(function(ln){if(!vt){var nn=Sr();Ae(ln).forEach(function(un){if("childList"===un.type&&un.addedNodes.length>0&&!Et(un.addedNodes[0])&&(ye.searchPseudoElements&&_i(un.target),wt(un.target)),"attributes"===un.type&&un.target.parentNode&&ye.searchPseudoElements&&_i(un.target.parentNode),"attributes"===un.type&&Et(un.target)&&~Ot.indexOf(un.attributeName))if("class"===un.attributeName&&function Je(at){var St=at.getAttribute?at.getAttribute(J):null,wt=at.getAttribute?at.getAttribute(Ie):null;return St&&wt}(un.target)){var Jn=ia(Ge(un.target)),ca=Jn.iconName;un.target.setAttribute(J,Jn.prefix||nn),ca&&un.target.setAttribute(Ie,ca)}else(function kt(at){return at&&at.classList&&at.classList.contains&&at.classList.contains(ye.replacementClass)})(un.target)&&$t(un.target)})}}),y&&je.observe(zi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function At(at){var St=at.getAttribute("style"),wt=[];return St&&(wt=St.split(";").reduce(function(zt,$t){var pi=$t.split(":"),_i=pi[0],Ii=pi.slice(1);return _i&&Ii.length>0&&(zt[_i]=Ii.join(":").trim()),zt},{})),wt}function wi(at){var St=at.getAttribute("data-prefix"),wt=at.getAttribute("data-icon"),zt=void 0!==at.innerText?at.innerText.trim():"",$t=ia(Ge(at));return $t.prefix||($t.prefix=Sr()),St&&wt&&($t.prefix=St,$t.iconName=wt),$t.iconName&&$t.prefix||($t.prefix&&zt.length>0&&($t.iconName=function qn(at,St){return(Ni[at]||{})[St]}($t.prefix,at.innerText)||Sn($t.prefix,bi(at.innerText))),!$t.iconName&&ye.autoFetchSvg&&at.firstChild&&at.firstChild.nodeType===Node.TEXT_NODE&&($t.iconName=at.firstChild.data)),$t}function Gi(at){var St=Ae(at.attributes).reduce(function($t,pi){return"class"!==$t.name&&"style"!==$t.name&&($t[pi.name]=pi.value),$t},{}),wt=at.getAttribute("title"),zt=at.getAttribute("data-fa-title-id");return ye.autoA11y&&(wt?St["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(zt||et()):(St["aria-hidden"]="true",St.focusable="false")),St}function br(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},wt=wi(at),zt=wt.iconName,$t=wt.prefix,pi=wt.rest,_i=Gi(at),Ii=Pr("parseNodeAttributes",{},at),zi=St.styleParser?At(at):[];return f({iconName:zt,title:at.getAttribute("title"),titleId:at.getAttribute("data-fa-title-id"),prefix:$t,transform:nt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:pi,styles:zi,attributes:_i}},Ii)}var Fa=Ui.styles;function xa(at){var St="nest"===ye.autoReplaceSvg?br(at,{styleParser:!1}):br(at);return~St.extra.classes.indexOf(Dt)?Vr("generateLayersText",at,St):Vr("generateSvgReplacementMutation",at,St)}var Ea=new Set;function Fi(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!y)return Promise.resolve();var wt=c.documentElement.classList,zt=function(un){return wt.add("".concat(ut,"-").concat(un))},$t=function(un){return wt.remove("".concat(ut,"-").concat(un))},pi=ye.autoFetchSvg?Ea:W.map(function(nn){return"fa-".concat(nn)}).concat(Object.keys(Fa));pi.includes("fa")||pi.push("fa");var _i=[".".concat(Dt,":not([").concat(j,"])")].concat(pi.map(function(nn){return".".concat(nn,":not([").concat(j,"])")})).join(", ");if(0===_i.length)return Promise.resolve();var Ii=[];try{Ii=Ae(at.querySelectorAll(_i))}catch(nn){}if(!(Ii.length>0))return Promise.resolve();zt("pending"),$t("complete");var zi=Xn_begin("onTree"),ln=Ii.reduce(function(nn,un){try{var Jn=xa(un);Jn&&nn.push(Jn)}catch(rr){ce||"MissingIcon"===rr.name&&console.error(rr)}return nn},[]);return new Promise(function(nn,un){Promise.all(ln).then(function(Jn){ci(Jn,function(){zt("active"),zt("complete"),$t("pending"),"function"==typeof St&&St(),zi(),nn()})}).catch(function(Jn){zi(),un(Jn)})})}function jn(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;xa(at).then(function(wt){wt&&ci([wt],St)})}W.map(function(at){Ea.add("fa-".concat(at))}),Object.keys(Ce[Te]).map(Ea.add.bind(Ea)),Object.keys(Ce[xe]).map(Ea.add.bind(Ea)),Ea=S(Ea);var Er=function(St){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=wt.transform,$t=void 0===zt?nt:zt,pi=wt.symbol,_i=void 0!==pi&&pi,Ii=wt.mask,zi=void 0===Ii?null:Ii,ln=wt.maskId,nn=void 0===ln?null:ln,un=wt.title,Jn=void 0===un?null:un,rr=wt.titleId,ca=void 0===rr?null:rr,ze=wt.classes,Se=void 0===ze?[]:ze,me=wt.attributes,qe=void 0===me?{}:me,ct=wt.styles,Pt=void 0===ct?{}:ct;if(St){var qt=St.prefix,ai=St.iconName,Di=St.icon;return kr(f({type:"icon"},St),function(){return Yn("beforeDOMElementCreation",{iconDefinition:St,params:wt}),ye.autoA11y&&(Jn?qe["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(ca||et()):(qe["aria-hidden"]="true",qe.focusable="false")),wa({icons:{main:aa(Di),mask:zi?aa(zi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:qt,iconName:ai,transform:f(f({},nt),$t),symbol:_i,title:Jn,maskId:nn,titleId:ca,extra:{attributes:qe,styles:Pt,classes:Se}})})}},to={mixout:function(){return{icon:(at=Er,function(St){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=(St||{}).icon?St:cr(St||{}),$t=wt.mask;return $t&&($t=($t||{}).icon?$t:cr($t||{})),at(zt,f(f({},wt),{},{mask:$t}))})};var at},hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.treeCallback=Fi,wt.nodeCallback=jn,wt}}},provides:function(St){St.i2svg=function(wt){var zt=wt.node,pi=wt.callback;return Fi(void 0===zt?c:zt,void 0===pi?function(){}:pi)},St.generateSvgReplacementMutation=function(wt,zt){var $t=zt.iconName,pi=zt.title,_i=zt.titleId,Ii=zt.prefix,zi=zt.transform,ln=zt.symbol,nn=zt.mask,un=zt.maskId,Jn=zt.extra;return new Promise(function(rr,ca){Promise.all([sa($t,Ii),nn.iconName?sa(nn.iconName,nn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ze){var Se=D(ze,2);rr([wt,wa({icons:{main:Se[0],mask:Se[1]},prefix:Ii,iconName:$t,transform:zi,symbol:ln,maskId:un,title:pi,titleId:_i,extra:Jn,watchable:!0})])}).catch(ca)})},St.generateAbstractIcon=function(wt){var ln,zt=wt.children,$t=wt.attributes,pi=wt.main,_i=wt.transform,zi=Ct(wt.styles);return zi.length>0&&($t.style=zi),mi(_i)&&(ln=Vr("generateAbstractTransformGrouping",{main:pi,transform:_i,containerWidth:pi.width,iconWidth:pi.width})),zt.push(ln||pi.icon),{children:zt,attributes:$t}}}},gs={mixout:function(){return{layer:function(wt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=zt.classes,pi=void 0===$t?[]:$t;return kr({type:"layer"},function(){Yn("beforeDOMElementCreation",{assembler:wt,params:zt});var _i=[];return wt(function(Ii){Array.isArray(Ii)?Ii.map(function(zi){_i=_i.concat(zi.abstract)}):_i=_i.concat(Ii.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(S(pi)).join(" ")},children:_i}]})}}}},Ta={mixout:function(){return{counter:function(wt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=zt.title,pi=void 0===$t?null:$t,_i=zt.classes,Ii=void 0===_i?[]:_i,zi=zt.attributes,ln=void 0===zi?{}:zi,nn=zt.styles,un=void 0===nn?{}:nn;return kr({type:"counter",content:wt},function(){return Yn("beforeDOMElementCreation",{content:wt,params:zt}),ba({content:wt.toString(),title:pi,extra:{attributes:ln,styles:un,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(S(Ii))}})})}}}},Ls={mixout:function(){return{text:function(wt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=zt.transform,pi=void 0===$t?nt:$t,_i=zt.title,Ii=void 0===_i?null:_i,zi=zt.classes,ln=void 0===zi?[]:zi,nn=zt.attributes,un=void 0===nn?{}:nn,Jn=zt.styles,rr=void 0===Jn?{}:Jn;return kr({type:"text",content:wt},function(){return Yn("beforeDOMElementCreation",{content:wt,params:zt}),Pa({content:wt,transform:f(f({},nt),pi),title:Ii,extra:{attributes:un,styles:rr,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(S(ln))}})})}}},provides:function(St){St.generateLayersText=function(wt,zt){var $t=zt.title,pi=zt.transform,_i=zt.extra,Ii=null,zi=null;if(n){var ln=parseInt(getComputedStyle(wt).fontSize,10),nn=wt.getBoundingClientRect();Ii=nn.width/ln,zi=nn.height/ln}return ye.autoA11y&&!$t&&(_i.attributes["aria-hidden"]="true"),Promise.resolve([wt,Pa({content:wt.innerHTML,width:Ii,height:zi,transform:pi,title:$t,extra:_i,watchable:!0})])}}},Ds=new RegExp('"',"ug"),Fs=[1105920,1112319];function Vs(at,St){var wt="".concat("data-fa-pseudo-element-pending").concat(St.replace(":","-"));return new Promise(function(zt,$t){if(null!==at.getAttribute(wt))return zt();var _i=Ae(at.children).filter(function(Di){return Di.getAttribute(Ve)===St})[0],Ii=u.getComputedStyle(at,St),zi=Ii.getPropertyValue("font-family").match(di),ln=Ii.getPropertyValue("font-weight"),nn=Ii.getPropertyValue("content");if(_i&&!zi)return at.removeChild(_i),zt();if(zi&&"none"!==nn&&""!==nn){var un=Ii.getPropertyValue("content"),Jn=~["Sharp"].indexOf(zi[2])?xe:Te,rr=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(zi[2])?fe[Jn][zi[2].toLowerCase()]:Yt[Jn][ln],ca=function zs(at){var St=at.replace(Ds,""),wt=function Ei(at,St){var $t,wt=at.length,zt=at.charCodeAt(St);return zt>=55296&&zt<=56319&&wt>St+1&&($t=at.charCodeAt(St+1))>=56320&&$t<=57343?1024*(zt-55296)+$t-56320+65536:zt}(St,0),zt=wt>=Fs[0]&&wt<=Fs[1],$t=2===St.length&&St[0]===St[1];return{value:bi($t?St[0]:St),isSecondary:zt||$t}}(un),ze=ca.value,Se=ca.isSecondary,me=zi[0].startsWith("FontAwesome"),qe=Sn(rr,ze),ct=qe;if(me){var Pt=function _a(at){var St=In[at],wt=Sn("fas",at);return St||(wt?{prefix:"fas",iconName:wt}:null)||{prefix:null,iconName:null}}(ze);Pt.iconName&&Pt.prefix&&(qe=Pt.iconName,rr=Pt.prefix)}if(!qe||Se||_i&&_i.getAttribute(J)===rr&&_i.getAttribute(Ie)===ct)zt();else{at.setAttribute(wt,ct),_i&&at.removeChild(_i);var qt=function Un(){return{iconName:null,title:null,titleId:null,prefix:null,transform:nt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ai=qt.extra;ai.attributes[Ve]=St,sa(qe,rr).then(function(Di){var an=wa(f(f({},qt),{},{icons:{main:Di,mask:{prefix:null,iconName:null,rest:[]}},prefix:rr,iconName:ct,extra:ai,watchable:!0})),Pn=c.createElement("svg");"::before"===St?at.insertBefore(Pn,at.firstChild):at.appendChild(Pn),Pn.outerHTML=an.map(function(Cn){return _t(Cn)}).join("\n"),at.removeAttribute(wt),zt()}).catch($t)}}else zt()})}function as(at){return Promise.all([Vs(at,"::before"),Vs(at,"::after")])}function Ur(at){return!(at.parentNode===document.head||~we.indexOf(at.tagName.toUpperCase())||at.getAttribute(Ve)||at.parentNode&&"svg"===at.parentNode.tagName)}function ka(at){if(y)return new Promise(function(St,wt){var zt=Ae(at.querySelectorAll("*")).filter(Ur).map(as),$t=Xn_begin("searchPseudoElements");jt(),Promise.all(zt).then(function(){$t(),Oi(),St()}).catch(function(){$t(),Oi(),wt()})})}var oe=!1,Ke=function(St){return St.toLowerCase().split(" ").reduce(function(zt,$t){var pi=$t.toLowerCase().split("-"),_i=pi[0],Ii=pi.slice(1).join("-");if(_i&&"h"===Ii)return zt.flipX=!0,zt;if(_i&&"v"===Ii)return zt.flipY=!0,zt;if(Ii=parseFloat(Ii),isNaN(Ii))return zt;switch(_i){case"grow":zt.size=zt.size+Ii;break;case"shrink":zt.size=zt.size-Ii;break;case"left":zt.x=zt.x-Ii;break;case"right":zt.x=zt.x+Ii;break;case"up":zt.y=zt.y-Ii;break;case"down":zt.y=zt.y+Ii;break;case"rotate":zt.rotate=zt.rotate+Ii}return zt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Vt={x:0,y:0,width:"100%",height:"100%"};function ri(at){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return at.attributes&&(at.attributes.fill||St)&&(at.attributes.fill="black"),at}!function Za(at,St){var wt=St.mixoutsTo;qr=at,Jr={},Object.keys(Ma).forEach(function(zt){-1===pa.indexOf(zt)&&delete Ma[zt]}),qr.forEach(function(zt){var $t=zt.mixout?zt.mixout():{};if(Object.keys($t).forEach(function(_i){"function"==typeof $t[_i]&&(wt[_i]=$t[_i]),"object"===M($t[_i])&&Object.keys($t[_i]).forEach(function(Ii){wt[_i]||(wt[_i]={}),wt[_i][Ii]=$t[_i][Ii]})}),zt.hooks){var pi=zt.hooks();Object.keys(pi).forEach(function(_i){Jr[_i]||(Jr[_i]=[]),Jr[_i].push(pi[_i])})}zt.provides&&zt.provides(Ma)})}([Zi,to,gs,Ta,Ls,{hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.pseudoElementsCallback=ka,wt}}},provides:function(St){St.pseudoElements2svg=function(wt){var zt=wt.node;ye.searchPseudoElements&&ka(void 0===zt?c:zt)}}},{mixout:function(){return{dom:{unwatch:function(){jt(),oe=!0}}}},hooks:function(){return{bootstrap:function(){Ye(Pr("mutationObserverCallbacks",{}))},noAuto:function(){!function Fe(){!je||je.disconnect()}()},watch:function(wt){var zt=wt.observeMutationsRoot;oe?Oi():Ye(Pr("mutationObserverCallbacks",{observeMutationsRoot:zt}))}}}},{mixout:function(){return{parse:{transform:function(wt){return Ke(wt)}}}},hooks:function(){return{parseNodeAttributes:function(wt,zt){var $t=zt.getAttribute("data-fa-transform");return $t&&(wt.transform=Ke($t)),wt}}},provides:function(St){St.generateAbstractTransformGrouping=function(wt){var zt=wt.main,$t=wt.transform,_i=wt.iconWidth,Ii={transform:"translate(".concat(wt.containerWidth/2," 256)")},zi="translate(".concat(32*$t.x,", ").concat(32*$t.y,") "),ln="scale(".concat($t.size/16*($t.flipX?-1:1),", ").concat($t.size/16*($t.flipY?-1:1),") "),nn="rotate(".concat($t.rotate," 0 0)"),rr={outer:Ii,inner:{transform:"".concat(zi," ").concat(ln," ").concat(nn)},path:{transform:"translate(".concat(_i/2*-1," -256)")}};return{tag:"g",attributes:f({},rr.outer),children:[{tag:"g",attributes:f({},rr.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:f(f({},zt.icon.attributes),rr.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(wt,zt){var $t=zt.getAttribute("data-fa-mask"),pi=$t?ia($t.split(" ").map(function(_i){return _i.trim()})):{prefix:null,iconName:null,rest:[]};return pi.prefix||(pi.prefix=Sr()),wt.mask=pi,wt.maskId=zt.getAttribute("data-fa-mask-id"),wt}}},provides:function(St){St.generateAbstractMask=function(wt){var at,zt=wt.children,$t=wt.attributes,pi=wt.main,_i=wt.mask,Ii=wt.maskId,nn=pi.icon,Jn=_i.icon,rr=function Jt(at){var St=at.transform,zt=at.iconWidth,$t={transform:"translate(".concat(at.containerWidth/2," 256)")},pi="translate(".concat(32*St.x,", ").concat(32*St.y,") "),_i="scale(".concat(St.size/16*(St.flipX?-1:1),", ").concat(St.size/16*(St.flipY?-1:1),") "),Ii="rotate(".concat(St.rotate," 0 0)");return{outer:$t,inner:{transform:"".concat(pi," ").concat(_i," ").concat(Ii)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}({transform:wt.transform,containerWidth:_i.width,iconWidth:pi.width}),ca={tag:"rect",attributes:f(f({},Vt),{},{fill:"white"})},ze=nn.children?{children:nn.children.map(ri)}:{},Se={tag:"g",attributes:f({},rr.inner),children:[ri(f({tag:nn.tag,attributes:f(f({},nn.attributes),rr.path)},ze))]},me={tag:"g",attributes:f({},rr.outer),children:[Se]},qe="mask-".concat(Ii||et()),ct="clip-".concat(Ii||et()),Pt={tag:"mask",attributes:f(f({},Vt),{},{id:qe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ca,me]},qt={tag:"defs",children:[{tag:"clipPath",attributes:{id:ct},children:(at=Jn,"g"===at.tag?at.children:[at])},Pt]};return zt.push(qt,{tag:"rect",attributes:f({fill:"currentColor","clip-path":"url(#".concat(ct,")"),mask:"url(#".concat(qe,")")},Vt)}),{children:zt,attributes:$t}}}},{provides:function(St){var wt=!1;u.matchMedia&&(wt=u.matchMedia("(prefers-reduced-motion: reduce)").matches),St.missingIconAbstract=function(){var zt=[],$t={fill:"currentColor"},pi={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};zt.push({tag:"path",attributes:f(f({},$t),{},{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"})});var _i=f(f({},pi),{},{attributeName:"opacity"}),Ii={tag:"circle",attributes:f(f({},$t),{},{cx:"256",cy:"364",r:"28"}),children:[]};return wt||Ii.children.push({tag:"animate",attributes:f(f({},pi),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:f(f({},_i),{},{values:"1;0;1;1;0;1;"})}),zt.push(Ii),zt.push({tag:"path",attributes:f(f({},$t),{},{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"}),children:wt?[]:[{tag:"animate",attributes:f(f({},_i),{},{values:"1;0;0;0;0;1;"})}]}),wt||zt.push({tag:"path",attributes:f(f({},$t),{},{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"}),children:[{tag:"animate",attributes:f(f({},_i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:zt}}}},{hooks:function(){return{parseNodeAttributes:function(wt,zt){var $t=zt.getAttribute("data-fa-symbol");return wt.symbol=null!==$t&&(""===$t||$t),wt}}}}],{mixoutsTo:dr});var ar=dr.parse,oa=dr.icon,Zn=p(2313);const xr=["*"],ws=at=>{const St={"fa-spin":at.spin,"fa-pulse":at.pulse,"fa-fw":at.fixedWidth,"fa-border":at.border,"fa-inverse":at.inverse,"fa-layers-counter":at.counter,"fa-flip-horizontal":"horizontal"===at.flip||"both"===at.flip,"fa-flip-vertical":"vertical"===at.flip||"both"===at.flip,[`fa-${at.size}`]:null!==at.size,[`fa-rotate-${at.rotate}`]:null!==at.rotate,[`fa-pull-${at.pull}`]:null!==at.pull,[`fa-stack-${at.stackItemSize}`]:null!=at.stackItemSize};return Object.keys(St).map(wt=>St[wt]?wt:null).filter(wt=>wt)};let _s=(()=>{class at{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275prov=t.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),vs=(()=>{class at{constructor(){this.definitions={}}addIcons(...wt){for(const zt of wt){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const $t of zt.icon[2])"string"==typeof $t&&(this.definitions[zt.prefix][$t]=zt)}}addIconPacks(...wt){for(const zt of wt){const $t=Object.keys(zt).map(pi=>zt[pi]);this.addIcons(...$t)}}getIconDefinition(wt,zt){return wt in this.definitions&&zt in this.definitions[wt]?this.definitions[wt][zt]:null}}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275prov=t.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),cn=(()=>{class at{constructor(){this.stackItemSize="1x"}ngOnChanges(wt){if("size"in wt)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 at.\u0275fac=function(wt){return new(wt||at)},at.\u0275dir=t.lG2({type:at,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),at})(),xn=(()=>{class at{constructor(wt,zt){this.renderer=wt,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(wt){"size"in wt&&(null!=wt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${wt.size.currentValue}`),null!=wt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${wt.size.previousValue}`))}}return at.\u0275fac=function(wt){return new(wt||at)(t.Y36(t.Qsj),t.Y36(t.SBq))},at.\u0275cmp=t.Xpm({type:at,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:xr,decls:1,vars:0,template:function(wt,zt){1&wt&&(t.F$t(),t.Hsn(0))},encapsulation:2}),at})(),Tn=(()=>{class at{constructor(wt,zt,$t,pi,_i){this.sanitizer=wt,this.config=zt,this.iconLibrary=$t,this.stackItem=pi,this.classes=[],null!=_i&&null==pi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(wt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,wt){const $t=this.findIconDefinition(zt);if(null!=$t){const pi=this.buildParams();this.renderIcon($t,pi)}}}render(){this.ngOnChanges({})}findIconDefinition(wt){const zt=((at,St)=>(at=>void 0!==at.prefix&&void 0!==at.iconName)(at)?at:Array.isArray(at)&&2===at.length?{prefix:at[0],iconName:at[1]}:"string"==typeof at?{prefix:St,iconName:at}:void 0)(wt,this.config.defaultPrefix);if("icon"in zt)return zt;const $t=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=$t?$t:((at=>{throw new Error(`Could not find icon with iconName=${at.iconName} and prefix=${at.prefix} in the icon library.`)})(zt),null)}buildParams(){const wt={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},zt="string"==typeof this.transform?ar.transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...ws(wt),...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(wt,zt){const $t=oa(wt,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml($t.html.join("\n"))}}return at.\u0275fac=function(wt){return new(wt||at)(t.Y36(Zn.H7),t.Y36(_s),t.Y36(vs),t.Y36(cn,8),t.Y36(xn,8))},at.\u0275cmp=t.Xpm({type:at,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(wt,zt){2&wt&&(t.Ikx("innerHTML",zt.renderedIconHTML,t.oJD),t.uIk("title",zt.title))},inputs:{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",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[t.TTD],decls:0,vars:0,template:function(wt,zt){},encapsulation:2}),at})(),ur=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=t.oAB({type:at}),at.\u0275inj=t.cJS({}),at})()},2687:(Be,K,p)=>{"use strict";p.d(K,{Acd:()=>vo,Aq:()=>yl,B$L:()=>Vt,BDt:()=>k4,CgH:()=>hs,CvI:()=>b4,DL8:()=>h9,FJU:()=>On,FVb:()=>Zl,FlN:()=>_4,FpQ:()=>o4,HLz:()=>W7,KOR:()=>Bl,Krp:()=>b0,Mdf:()=>wr,N2j:()=>sr,NBC:()=>y_,OS1:()=>P1,Psp:()=>Ld,Pyt:()=>Ze,Sbq:()=>it,SoD:()=>aa,Ssp:()=>w9,SuH:()=>Gd,TmZ:()=>f_,USL:()=>I_,Vei:()=>l0,Vfw:()=>r5,X5K:()=>Gh,XsY:()=>un,aj4:()=>d2,b7W:()=>Nf,byT:()=>Jn,co4:()=>Of,d63:()=>u0,dLy:()=>e_,dT$:()=>w0,eHv:()=>C9,gNZ:()=>Mp,hkK:()=>Wt,hnx:()=>N9,kXW:()=>U5,kZ_:()=>p_,koM:()=>Vo,mh3:()=>U0,nNP:()=>Ig,q7m:()=>Bm,qO$:()=>G_,r8p:()=>Hg,sqG:()=>em,vqe:()=>t9,wn1:()=>q7,wyP:()=>U3,xf3:()=>Ln});var it={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Wt={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},sr={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},aa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M469.3 19.3l23.4 23.4c25 25 25 65.5 0 90.5l-56.4 56.4L322.3 75.7l56.4-56.4c25-25 65.5-25 90.5 0zM44.9 353.2L299.7 98.3 413.7 212.3 158.8 467.1c-6.7 6.7-15.1 11.6-24.2 14.2l-104 29.7c-8.4 2.4-17.4 .1-23.6-6.1s-8.5-15.2-6.1-23.6l29.7-104c2.6-9.2 7.5-17.5 14.2-24.2zM249.4 103.4L103.4 249.4 16 161.9c-18.7-18.7-18.7-49.1 0-67.9L94.1 16c18.7-18.7 49.1-18.7 67.9 0l19.8 19.8c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1l45.1 45.1zM408.6 262.6l45.1 45.1c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1L496 350.1c18.7 18.7 18.7 49.1 0 67.9L417.9 496c-18.7 18.7-49.1 18.7-67.9 0l-87.4-87.4L408.6 262.6z"]},Vt={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64c-44.2 0-80 35.8-80 80v48H384c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80V144C80 64.5 144.5 0 224 0c57.5 0 107 33.7 130.1 82.3c7.6 16 .8 35.1-15.2 42.6s-35.1 .8-42.6-15.2C283.4 82.6 255.9 64 224 64zm32 320c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-17.7 0-32 14.3-32 32s14.3 32 32 32h64z"]},un={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M371.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L600.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S549.7-4.4 531.1 9.6L294.4 187.2c-24 18-38.2 46.1-38.4 76.1L371.3 367.1zm-19.6 25.4l-116-104.4C175.9 290.3 128 339.6 128 400c0 3.9 .2 7.8 .6 11.6c1.8 17.5-10.2 36.4-27.8 36.4H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H240c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},Jn={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},Zl={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 160c-44.2 0-80-35.8-80-80S99.8 0 144 0s80 35.8 80 80s-35.8 80-80 80zm368 0c-44.2 0-80-35.8-80-80s35.8-80 80-80s80 35.8 80 80s-35.8 80-80 80zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM416 224c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},yl={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c5.2-11.8 8-24.8 8-38.5c0-53-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zm223.1 298L373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5z"]},vo={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"]},d2={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M0 112.5V422.3c0 18 10.1 35 27 41.3c87 32.5 174 10.3 261-11.9c79.8-20.3 159.6-40.7 239.3-18.9c23 6.3 48.7-9.5 48.7-33.4V89.7c0-18-10.1-35-27-41.3C462 15.9 375 38.1 288 60.3C208.2 80.6 128.4 100.9 48.7 79.1C25.6 72.8 0 88.6 0 112.5zM288 352c-44.2 0-80-43-80-96s35.8-96 80-96s80 43 80 96s-35.8 96-80 96zM64 352c35.3 0 64 28.7 64 64H64V352zm64-208c0 35.3-28.7 64-64 64V144h64zM512 304v64H448c0-35.3 28.7-64 64-64zM448 96h64v64c-35.3 0-64-28.7-64-64z"]},Ln={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},Vo={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},U3={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208c-8.8 0-16 7.2-16 16V96H128V80c0-44.2 35.8-80 80-80H432c44.2 0 80 35.8 80 80V304c0 44.2-35.8 80-80 80H416V320h16c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192zm64 32c0 17.7 14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H96c-17.7 0-32 14.3-32 32z"]},l0={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},u0={prefix:"fas",iconName:"arrows-turn-right",icon:[512,512,[],"e4c0","M329.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L370.7 160H160c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C32 153.3 89.3 96 160 96H370.7L329.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 416H128c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H274.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},b0={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},Ld={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M96 96c-17.7 0-32 14.3-32 32s-14.3 32-32 32s-32-14.3-32-32C0 75 43 32 96 32h97c70.1 0 127 56.9 127 127c0 52.4-32.2 99.4-81 118.4l-63 24.5 0 18.1c0 17.7-14.3 32-32 32s-32-14.3-32-32V301.9c0-26.4 16.2-50.1 40.8-59.6l63-24.5C240 208.3 256 185 256 159c0-34.8-28.2-63-63-63H96zm48 384c-22.1 0-40-17.9-40-40s17.9-40 40-40s40 17.9 40 40s-17.9 40-40 40z"]},w0={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},P1={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},Bl={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320H48c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48s-21.5 48-48 48H48c-26.5 0-48-21.5-48-48z"]},Gd={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},hs={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM104 432c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},Gh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 336c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},U0={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104c13.3 0 24-10.7 24-24s-10.7-24-24-24S56 66.7 56 80s10.7 24 24 24zm80-24c0 32.8-19.7 61-48 73.3v87.8c18.8-10.9 40.7-17.1 64-17.1h96c35.3 0 64-28.7 64-64v-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3V160c0 70.7-57.3 128-128 128H176c-35.3 0-64 28.7-64 64v6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V352 153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0c0-13.3-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24s24-10.7 24-24zM80 456c13.3 0 24-10.7 24-24s-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24z"]},o4={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 256s96-96 96-160c0-53-43-96-96-96s-96 43-96 96c0 29.4 20.2 65.5 42.1 96H320c-53 0-96 43-96 96s43 96 96 96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H188.6c-6.2 9.6-12.6 18.8-19 27.2c-10.7 14.2-21.3 26.9-30 36.8H416c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32-14.3-32-32s14.3-32 32-32h96zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32zM149.9 448c21.9-30.5 42.1-66.6 42.1-96c0-53-43-96-96-96s-96 43-96 96c0 64 96 160 96 160s3.5-3.5 9.2-9.6c.4-.4 .7-.8 1.1-1.2c3.3-3.5 7.1-7.8 11.4-12.8c.2-.2 .4-.4 .6-.6c9.4-10.8 20.7-24.6 31.6-39.8zM96 384c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},wr={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},Mp={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5c0-26.5-21.5-48-48.1-48s-48.1 21.5-48.1 48s21.5 48 48.1 48s48.1-21.5 48.1-48z"]},r5={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},em={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},_4={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M112 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32V224v64V416c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V384H64c-17.7 0-32-14.3-32-32V288c-17.7 0-32-14.3-32-32s14.3-32 32-32V160c0-17.7 14.3-32 32-32h48V96zm416 0v32h48c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32s-14.3 32-32 32v64c0 17.7-14.3 32-32 32H528v32c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},b4={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM400 256c0 61.9-50.1 112-112 112s-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112zM252 208c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},Of=b4,Nf={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"]},U5={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"]},Bm={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},k4={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},Ze={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM512 384c0 35.3-28.7 64-64 64s-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64zM64 64c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64S28.7 64 64 64z"]},On={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0S96 57.3 96 128s57.3 128 128 128zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},W7={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM96 288c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm352-32c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},Ig={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},q7={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},e_={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8V488c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.2 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488V24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96zM80 352c0 8.8 7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96z"]},f_={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},p_={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"]},Hg={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},y_={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},I_={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128c0-35.3-28.7-64-64-64S0 92.7 0 128s28.7 64 64 64s64-28.7 64-64zM384 384c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64z"]},G_={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"]},t9={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z"]},h9={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zM125.8 177.3L51.1 320H204.9L130.2 177.3c-.4-.8-1.3-1.3-2.2-1.3s-1.7 .5-2.2 1.3zM128 128c18.8 0 36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C210.9 402.6 178.2 416 128 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L83.3 155c8.7-16.6 25.9-27 44.7-27zm384 48c-.9 0-1.7 .5-2.2 1.3L435.1 320H588.9L514.2 177.3c-.4-.8-1.3-1.3-2.2-1.3zm-44.7-21c8.7-16.6 25.9-27 44.7-27s36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C594.9 402.6 562.2 416 512 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L467.3 155z"]},C9={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},w9={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},N9={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM640 368c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM496 288c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},6642:(Be,K,p)=>{"use strict";p.d(K,{eX:()=>he,sQ:()=>Nt,GW:()=>i,l4:()=>be});var t=p(5620),e=p(6451),f=p(8306),M=p(7579),a=p(515),C=p(9646),d=p(2843),R=p(576);class L{constructor(ke,de,ye){this.kind=ke,this.value=de,this.error=ye,this.hasValue="N"===ke}observe(ke){return w(this,ke)}do(ke,de,ye){const{kind:ht,value:mt,error:Ft}=this;return"N"===ht?null==ke?void 0:ke(mt):"E"===ht?null==de?void 0:de(Ft):null==ye?void 0:ye()}accept(ke,de,ye){var ht;return(0,R.m)(null===(ht=ke)||void 0===ht?void 0:ht.next)?this.observe(ke):this.do(ke,de,ye)}toObservable(){const{kind:ke,value:de,error:ye}=this,ht="N"===ke?(0,C.of)(de):"E"===ke?(0,d._)(()=>ye):"C"===ke?a.E:0;if(!ht)throw new TypeError(`Unexpected notification kind ${ke}`);return ht}static createNext(ke){return new L("N",ke)}static createError(ke){return new L("E",void 0,ke)}static createComplete(){return L.completeNotification}}function w(Re,ke){var de,ye,ht;const{kind:mt,value:Ft,error:nt}=Re;if("string"!=typeof mt)throw new TypeError('Invalid notification, missing "kind"');"N"===mt?null===(de=ke.next)||void 0===de||de.call(ke,Ft):"E"===mt?null===(ye=ke.error)||void 0===ye||ye.call(ke,nt):null===(ht=ke.complete)||void 0===ht||ht.call(ke)}L.completeNotification=new L("C");var D=p(4482),S=p(5403),E=p(8421);function B(Re,ke,de,ye){return(0,D.e)((ht,mt)=>{let Ft;ke&&"function"!=typeof ke?({duration:de,element:Ft,connector:ye}=ke):Ft=ke;const nt=new Map,He=lt=>{nt.forEach(lt),lt(mt)},rt=lt=>He(Ct=>Ct.error(lt));let et=0,Ae=!1;const Ge=new S.Q(mt,lt=>{try{const Ct=Re(lt);let mi=nt.get(Ct);if(!mi){nt.set(Ct,mi=ye?ye():new M.x);const Jt=function ot(lt,Ct){const mi=new f.y(Jt=>{et++;const ei=Ct.subscribe(Jt);return()=>{ei.unsubscribe(),0==--et&&Ae&&Ge.unsubscribe()}});return mi.key=lt,mi}(Ct,mi);if(mt.next(Jt),de){const ei=(0,S.x)(mi,()=>{mi.complete(),null==ei||ei.unsubscribe()},void 0,void 0,()=>nt.delete(Ct));Ge.add((0,E.Xf)(de(Jt)).subscribe(ei))}}mi.next(Ft?Ft(lt):lt)}catch(Ct){rt(Ct)}},()=>He(lt=>lt.complete()),rt,()=>nt.clear(),()=>(Ae=!0,0===et));ht.subscribe(Ge)})}var Z=p(4004);function Y(Re,ke){return ke?de=>de.pipe(Y((ye,ht)=>(0,E.Xf)(Re(ye,ht)).pipe((0,Z.U)((mt,Ft)=>ke(ye,mt,ht,Ft))))):(0,D.e)((de,ye)=>{let ht=0,mt=null,Ft=!1;de.subscribe((0,S.x)(ye,nt=>{mt||(mt=(0,S.x)(ye,void 0,()=>{mt=null,Ft&&ye.complete()}),(0,E.Xf)(Re(nt,ht++)).subscribe(mt))},()=>{Ft=!0,!mt&&ye.complete()}))})}var ee=p(8502),ue=p(262),ne=p(9300),re=p(5577),ge=p(5698),q=p(5e3);const _e={dispatch:!0,useEffectsErrorHandler:!0},x="__@ngrx/effects_create__";function i(Re,ke){const de=Re(),ye=Object.assign(Object.assign({},_e),ke);return Object.defineProperty(de,x,{value:ye}),de}function r(Re){return Object.getOwnPropertyNames(Re).filter(ye=>!(!Re[ye]||!Re[ye].hasOwnProperty(x))&&Re[ye][x].hasOwnProperty("dispatch")).map(ye=>Object.assign({propertyName:ye},Re[ye][x]))}function u(Re){return Object.getPrototypeOf(Re)}const c="__@ngrx/effects__";function T(Re){return(0,t.qC)(n,u)(Re)}function n(Re){return function I(Re){return Re.constructor.hasOwnProperty(c)}(Re)?Re.constructor[c]:[]}function N(Re,ke,de){const ye=u(Re).constructor.name,ht=function V(Re){return[T,r].reduce((de,ye)=>de.concat(ye(Re)),[])}(Re).map(({propertyName:mt,dispatch:Ft,useEffectsErrorHandler:nt})=>{const He="function"==typeof Re[mt]?Re[mt]():Re[mt],rt=nt?de(He,ke):He;return!1===Ft?rt.pipe((0,ee.l)()):rt.pipe(function k(){return(0,D.e)((Re,ke)=>{Re.subscribe((0,S.x)(ke,de=>{ke.next(L.createNext(de))},()=>{ke.next(L.createComplete()),ke.complete()},de=>{ke.next(L.createError(de)),ke.complete()}))})}()).pipe((0,Z.U)(Ae=>({effect:Re[mt],notification:Ae,propertyName:mt,sourceName:ye,sourceInstance:Re})))});return(0,e.T)(...ht)}function X(Re,ke,de=10){return Re.pipe((0,ue.K)(ye=>(ke&&ke.handleError(ye),de<=1?Re:X(Re,ke,de-1))))}let he=(()=>{class Re extends f.y{constructor(de){super(),de&&(this.source=de)}lift(de){const ye=new Re;return ye.source=this,ye.operator=de,ye}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(t.Y$))},Re.\u0275prov=q.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function be(...Re){return(0,ne.h)(ke=>Re.some(de=>"string"==typeof de?de===ke.type:de.type===ke.type))}function we(Re){return ce(Re,"ngrxOnInitEffects")}function ce(Re,ke){return Re&&ke in Re&&"function"==typeof Re[ke]}const Te=new q.OlP("@ngrx/effects Internal Root Guard"),xe=new q.OlP("@ngrx/effects User Provided Effects"),W=new q.OlP("@ngrx/effects Internal Root Effects"),te=new q.OlP("@ngrx/effects Root Effects"),Ce=new q.OlP("@ngrx/effects Internal Feature Effects"),fe=new q.OlP("@ngrx/effects Feature Effects"),Q=new q.OlP("@ngrx/effects Effects Error Handler");let pt=(()=>{class Re extends M.x{constructor(de,ye){super(),this.errorHandler=de,this.effectsErrorHandler=ye}addEffects(de){this.next(de)}toActions(){return this.pipe(B(u),(0,re.z)(de=>de.pipe(B(tt))),(0,re.z)(de=>{const ye=de.pipe(Y(mt=>function Dt(Re,ke){return de=>{const ye=N(de,Re,ke);return function ut(Re){return ce(Re,"ngrxOnRunEffects")}(de)?de.ngrxOnRunEffects(ye):ye}}(this.errorHandler,this.effectsErrorHandler)(mt)),(0,Z.U)(mt=>(function Pe(Re,ke){if("N"===Re.notification.kind){const de=Re.notification.value;!function Ee(Re){return"function"!=typeof Re&&Re&&Re.type&&"string"==typeof Re.type}(de)&&ke.handleError(new Error(`Effect ${function j({propertyName:Re,sourceInstance:ke,sourceName:de}){const ye="function"==typeof ke[Re];return`"${de}.${String(Re)}${ye?"()":""}"`}(Re)} dispatched an invalid action: ${function Ve(Re){try{return JSON.stringify(Re)}catch(ke){return Re}}(de)}`))}}(mt,this.errorHandler),mt.notification)),(0,ne.h)(mt=>"N"===mt.kind&&null!=mt.value),function ae(){return(0,D.e)((Re,ke)=>{Re.subscribe((0,S.x)(ke,de=>w(de,ke)))})}()),ht=de.pipe((0,ge.q)(1),(0,ne.h)(we),(0,Z.U)(mt=>mt.ngrxOnInitEffects()));return(0,e.T)(ye,ht)}))}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(q.qLn),q.LFG(Q))},Re.\u0275prov=q.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function tt(Re){return function J(Re){return ce(Re,"ngrxOnIdentifyEffects")}(Re)?Re.ngrxOnIdentifyEffects():""}let di=(()=>{class Re{constructor(de,ye){this.effectSources=de,this.store=ye,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(pt),q.LFG(t.yh))},Re.\u0275prov=q.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Yt="@ngrx/effects/init";(0,t.PH)(Yt);let ui=(()=>{class Re{constructor(de,ye,ht,mt,Ft,nt,He){this.sources=de,ye.start(),mt.forEach(rt=>de.addEffects(rt)),ht.dispatch({type:Yt})}addEffects(de){this.sources.addEffects(de)}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(pt),q.LFG(di),q.LFG(t.yh),q.LFG(te),q.LFG(t.cr,8),q.LFG(t.CK,8),q.LFG(Te,8))},Re.\u0275mod=q.oAB({type:Re}),Re.\u0275inj=q.cJS({}),Re})(),Ot=(()=>{class Re{constructor(de,ye,ht,mt){ye.forEach(Ft=>Ft.forEach(nt=>de.addEffects(nt)))}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(ui),q.LFG(fe),q.LFG(t.cr,8),q.LFG(t.CK,8))},Re.\u0275mod=q.oAB({type:Re}),Re.\u0275inj=q.cJS({}),Re})(),Nt=(()=>{class Re{static forFeature(de=[]){return{ngModule:Ot,providers:[de,{provide:Ce,multi:!0,useValue:de},{provide:xe,multi:!0,useValue:[]},{provide:fe,multi:!0,useFactory:gt,deps:[q.zs3,Ce,xe]}]}}static forRoot(de=[]){return{ngModule:ui,providers:[{provide:Q,useValue:X},di,pt,he,de,{provide:W,useValue:[de]},{provide:Te,useFactory:bt,deps:[[di,new q.FiY,new q.tp0],[W,new q.PiD]]},{provide:xe,multi:!0,useValue:[]},{provide:te,useFactory:gt,deps:[q.zs3,W,xe]}]}}}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=q.oAB({type:Re}),Re.\u0275inj=q.cJS({}),Re})();function gt(Re,ke,de){const ye=[];for(const ht of ke)ye.push(...ht);for(const ht of de)ye.push(...ht);return function it(Re,ke){return ke.map(de=>Re.get(de))}(Re,ye)}function bt(Re,ke){if((1!==ke.length||0!==ke[0].length)&&Re)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);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(Be){const K={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}},p="function"==typeof Be?Be():Be,f=Object.assign({},K,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||K.features},p);if(f.maxAge&&f.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${f.maxAge}`);return f}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(K,p){if(this.action=K,this.timestamp=p,this.type=PERFORM_ACTION,void 0===K.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(K){this.timestamp=K,this.type=RESET}}class Rollback{constructor(K){this.timestamp=K,this.type=ROLLBACK}}class Commit{constructor(K){this.timestamp=K,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(K){this.id=K,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(K,p,t=!0){this.start=K,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(K){this.index=K,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(K){this.actionId=K,this.type=JUMP_TO_ACTION}}class ImportState{constructor(K){this.nextLiftedState=K,this.type=IMPORT_STATE}}class LockChanges{constructor(K){this.status=K,this.type=LOCK_CHANGES}}class PauseRecording{constructor(K){this.status=K,this.type=PAUSE_RECORDING}}function difference(Be,K){return Be.filter(p=>K.indexOf(p)<0)}function unliftState(Be){const{computedStates:K,currentStateIndex:p}=Be;if(p>=K.length){const{state:e}=K[K.length-1];return e}const{state:t}=K[p];return t}function unliftAction(Be){return Be.actionsById[Be.nextActionId-1]}function liftAction(Be){return new PerformAction(Be,+Date.now())}function sanitizeActions(Be,K){return Object.keys(K).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(Be,K[e],e),p},{})}function sanitizeAction(Be,K,p){return Object.assign(Object.assign({},K),{action:Be(K.action,p)})}function sanitizeStates(Be,K){return K.map((p,t)=>({state:sanitizeState(Be,p.state,t),error:p.error}))}function sanitizeState(Be,K,p){return Be(K,p)}function shouldFilterActions(Be){return Be.predicate||Be.actionsSafelist||Be.actionsBlocklist}function filterLiftedState(Be,K,p,t){const e=[],f={},M=[];return Be.stagedActionIds.forEach((a,C)=>{const d=Be.actionsById[a];!d||C&&isActionFiltered(Be.computedStates[C],d,K,p,t)||(f[a]=d,e.push(a),M.push(Be.computedStates[C]))}),Object.assign(Object.assign({},Be),{stagedActionIds:e,actionsById:f,computedStates:M})}function isActionFiltered(Be,K,p,t,e){const f=p&&!p(Be,K.action),M=t&&!K.action.type.match(t.map(C=>escapeRegExp(C)).join("|")),a=e&&K.action.type.match(e.map(C=>escapeRegExp(C)).join("|"));return f||M||a}function escapeRegExp(Be){return Be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Be,K,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let M,f=p;try{f=Be(p,K)}catch(a){M=a.toString(),e.handleError(a)}return{state:f,error:M}}function recomputeStates(Be,K,p,t,e,f,M,a,C){if(K>=Be.length&&Be.length===f.length)return Be;const d=Be.slice(0,K),R=f.length-(C?1:0);for(let h=K;h-1?D:computeNextEntry(p,w,S,k,a);d.push(B)}return C&&d.push(Be[Be.length-1]),d}function liftInitialState(Be,K){return{monitorState:K(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Be,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Be,K,p,t,e={}){return f=>(M,a)=>{let{monitorState:C,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}=M||K;function B(ae){let ee=ae,ue=h.slice(1,ee+1);for(let ne=0;ne-1===ue.indexOf(ne)),h=[0,...h.slice(ee+1)],w=S[ee].state,S=S.slice(ee),D=D>ee?D-ee:0}function Z(){d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],w=S[D].state,D=0,S=[]}M||(d=Object.create(d));let Y=0;switch(a.type){case LOCK_CHANGES:k=a.status,Y=1/0;break;case PAUSE_RECORDING:E=a.status,E?(h=[...h,R],d[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,Y=h.length-1,S=S.concat(S[S.length-1]),D===h.length-2&&D++,Y=1/0):Z();break;case RESET:d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],w=Be,D=0,S=[];break;case COMMIT:Z();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],D=0,S=[];break;case TOGGLE_ACTION:{const{id:ae}=a;L=-1===L.indexOf(ae)?[ae,...L]:L.filter(ue=>ue!==ae),Y=h.indexOf(ae);break}case SET_ACTIONS_ACTIVE:{const{start:ae,end:ee,active:ue}=a,ne=[];for(let re=ae;ree.maxAge&&(S=recomputeStates(S,Y,f,w,d,h,L,p,E),B(h.length-e.maxAge),Y=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(S.filter(ee=>ee.error).length>0)Y=0,e.maxAge&&h.length>e.maxAge&&(S=recomputeStates(S,Y,f,w,d,h,L,p,E),B(h.length-e.maxAge),Y=1/0);else{if(!E&&!k){D===h.length-1&&D++;const ee=R++;d[ee]=new PerformAction(a,+Date.now()),h=[...h,ee],Y=h.length-1,S=recomputeStates(S,Y,f,w,d,h,L,p,E)}S=S.map(ee=>Object.assign(Object.assign({},ee),{state:f(ee.state,RECOMPUTE_ACTION)})),D=h.length-1,e.maxAge&&h.length>e.maxAge&&B(h.length-e.maxAge),Y=1/0}break;default:Y=1/0}return S=recomputeStates(S,Y,f,w,d,h,L,p,E),C=t(C,a),{monitorState:C,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}}}let DevtoolsDispatcher=(()=>{class Be extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Be.\u0275fac=function(){let K;return function(t){return(K||(K=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Be)))(t||Be)}}(),Be.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Be,factory:Be.\u0275fac}),Be})();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(Be,K,p){this.config=K,this.dispatcher=p,this.devtoolsExtension=Be,this.createActionStreams()}notify(Be,K){if(this.devtoolsExtension)if(Be.type===PERFORM_ACTION){if(K.isLocked||K.isPaused)return;const p=unliftState(K);if(shouldFilterActions(this.config)&&isActionFiltered(p,Be,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,K.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Be,K.nextActionId):Be;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p=Object.assign(Object.assign({},K),{stagedActionIds:K.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,K.actionsById):K.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,K.computedStates):K.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Be=>{const K=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=K,K.init(),K.subscribe(p=>Be.next(p)),K.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Be=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),K=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),t=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(a=>a.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(C=>C.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)(()=>a),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a))),f=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),M=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=K.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>f)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>M))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Be){var K;const p={name:Be.name,features:Be.features,serialize:Be.serialize,autoPause:null!==(K=Be.autoPause)&&void 0!==K&&K};return!1!==Be.maxAge&&(p.maxAge=Be.maxAge),p}sendToReduxDevtools(Be){try{Be()}catch(K){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",K)}}}return DevtoolsExtension.\u0275fac=function Be(K){return new(K||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})(),StoreDevtools=(()=>{class Be{constructor(p,t,e,f,M,a,C,d){const R=liftInitialState(C,d.monitor),h=liftReducerWith(C,R,a,d.monitor,d),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),f.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,f.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),w=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(h)),D=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),S=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(w),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:Z},[Y,ae])=>{let ee=ae(Z,Y);return Y.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(ee=filterLiftedState(ee,d.predicate,d.actionsSafelist,d.actionsBlocklist)),f.notify(Y,ee),{state:ee,action:Y}},{state:R,action:null})).subscribe(({state:Z,action:Y})=>{D.next(Z),Y.type===PERFORM_ACTION&&M.next(Y.action)}),k=f.start$.subscribe(()=>{this.refresh()}),E=D.asObservable(),B=E.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=S,this.dispatcher=p,this.liftedState=E,this.state=B}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+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(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return Be.\u0275fac=function(p){return new(p||Be)(_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))},Be.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Be,factory:Be.\u0275fac}),Be})();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(Be,K){return Boolean(Be)||K.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Be="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Be]?window[Be]:null}function createStateObservable(Be){return Be.state}let StoreDevtoolsModule=(()=>{class Be{static instrument(p={}){return{ngModule:Be,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{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 Be.\u0275fac=function(p){return new(p||Be)},Be.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Be}),Be.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Be})()},5620:(Be,K,p)=>{"use strict";p.d(K,{UO:()=>ge,qg:()=>re,Y6:()=>i,mK:()=>we,n$:()=>Oe,Y$:()=>W,FR:()=>Ce,yh:()=>tt,CK:()=>xt,Aw:()=>Bt,cr:()=>Xe,wb:()=>ce,qC:()=>J,PH:()=>k,ZF:()=>ot,Lq:()=>Ri,P1:()=>et,on:()=>ii,Ky:()=>E});var t=p(5e3),e=p(1135),f=p(8306),M=p(7579),a=p(233),C=p(4004),R=p(5363),h=p(1365),L=p(5026),w=p(1884);const D={};function k(st,Rt){if(D[st]=(D[st]||0)+1,"function"==typeof Rt)return Z(st,(...fi)=>Object.assign(Object.assign({},Rt(...fi)),{type:st}));switch(Rt?Rt._as:"empty"){case"empty":return Z(st,()=>({type:st}));case"props":return Z(st,fi=>Object.assign(Object.assign({},fi),{type:st}));default:throw new Error("Unexpected config.")}}function E(){return{_as:"props",_p:void 0}}function Z(st,Rt){return Object.defineProperty(Rt,"type",{value:st,writable:!1})}const re="@ngrx/store/init";let ge=(()=>{class st extends e.X{constructor(){super({type:re})}next(Wt){if("function"==typeof Wt)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===Wt)throw new TypeError("Actions must be objects");if(void 0===Wt.type)throw new TypeError("Actions must have a type property");super.next(Wt)}complete(){}ngOnDestroy(){super.complete()}}return st.\u0275fac=function(Wt){return new(Wt||st)},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const q=[ge],_e=new t.OlP("@ngrx/store Internal Root Guard"),x=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),r=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new t.OlP("@ngrx/store Initial Reducers"),v=new t.OlP("@ngrx/store Internal Initial Reducers"),T=new t.OlP("@ngrx/store Store Features"),I=new t.OlP("@ngrx/store Internal Store Reducers"),y=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),_=new t.OlP("@ngrx/store Internal Store Features"),V=new t.OlP("@ngrx/store Internal Feature Reducers Token"),N=new t.OlP("@ngrx/store Feature Reducers"),H=new t.OlP("@ngrx/store User Provided Meta Reducers"),X=new t.OlP("@ngrx/store Meta Reducers"),he=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),be=new t.OlP("@ngrx/store User Runtime Checks Config"),Pe=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),Ee=new t.OlP("@ngrx/store Internal Runtime Checks"),j=new t.OlP("@ngrx/store Check if Action types are unique");function Ve(st,Rt={}){const Wt=Object.keys(st),fi={};for(let Ni=0;NiNi(Ti),Wt(Rt))}}function Ie(st,Rt){return Array.isArray(Rt)&&Rt.length>0&&(st=J.apply(null,[...Rt,st])),(Wt,fi)=>{const Ti=st(Wt);return(Ni,mn)=>Ti(Ni=void 0===Ni?fi:Ni,mn)}}class Oe extends f.y{}class we extends ge{}const ce="@ngrx/store/update-reducers";let Te=(()=>{class st extends e.X{constructor(Wt,fi,Ti,Ni){super(Ni(Ti,fi)),this.dispatcher=Wt,this.initialState=fi,this.reducers=Ti,this.reducerFactory=Ni}get currentReducers(){return this.reducers}addFeature(Wt){this.addFeatures([Wt])}addFeatures(Wt){const fi=Wt.reduce((Ti,{reducers:Ni,reducerFactory:mn,metaReducers:In,initialState:Rn,key:tr})=>{const gn="function"==typeof Ni?function ut(st){const Rt=Array.isArray(st)&&st.length>0?J(...st):Wt=>Wt;return(Wt,fi)=>(Wt=Rt(Wt),(Ti,Ni)=>Wt(Ti=void 0===Ti?fi:Ti,Ni))}(In)(Ni,Rn):Ie(mn,In)(Ni,Rn);return Ti[tr]=gn,Ti},{});this.addReducers(fi)}removeFeature(Wt){this.removeFeatures([Wt])}removeFeatures(Wt){this.removeReducers(Wt.map(fi=>fi.key))}addReducer(Wt,fi){this.addReducers({[Wt]:fi})}addReducers(Wt){this.reducers=Object.assign(Object.assign({},this.reducers),Wt),this.updateReducers(Object.keys(Wt))}removeReducer(Wt){this.removeReducers([Wt])}removeReducers(Wt){Wt.forEach(fi=>{this.reducers=function Me(st,Rt){return Object.keys(st).filter(Wt=>Wt!==Rt).reduce((Wt,fi)=>Object.assign(Wt,{[fi]:st[fi]}),{})}(this.reducers,fi)}),this.updateReducers(Wt)}updateReducers(Wt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ce,features:Wt})}ngOnDestroy(){this.complete()}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(we),t.LFG(i),t.LFG(c),t.LFG(r))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const xe=[Te,{provide:Oe,useExisting:Te},{provide:we,useExisting:ge}];let W=(()=>{class st extends M.x{ngOnDestroy(){this.complete()}}return st.\u0275fac=function(){let Rt;return function(fi){return(Rt||(Rt=t.n5z(st)))(fi||st)}}(),st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const te=[W];class Ce extends f.y{}let fe=(()=>{class st extends e.X{constructor(Wt,fi,Ti,Ni){super(Ni);const tr=Wt.pipe((0,R.Q)(a.N)).pipe((0,h.M)(fi)).pipe((0,L.R)(Q,{state:Ni}));this.stateSubscription=tr.subscribe(({state:gn,action:Si})=>{this.next(gn),Ti.next(Si)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return st.INIT=re,st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(ge),t.LFG(Oe),t.LFG(W),t.LFG(i))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();function Q(st={state:void 0},[Rt,Wt]){const{state:fi}=st;return{state:Wt(fi,Rt),action:Rt}}const pt=[fe,{provide:Ce,useExisting:fe}];let tt=(()=>{class st extends f.y{constructor(Wt,fi,Ti){super(),this.actionsObserver=fi,this.reducerManager=Ti,this.source=Wt}select(Wt,...fi){return di.call(null,Wt,...fi)(this)}lift(Wt){const fi=new st(this,this.actionsObserver,this.reducerManager);return fi.operator=Wt,fi}dispatch(Wt){this.actionsObserver.next(Wt)}next(Wt){this.actionsObserver.next(Wt)}error(Wt){this.actionsObserver.error(Wt)}complete(){this.actionsObserver.complete()}addReducer(Wt,fi){this.reducerManager.addReducer(Wt,fi)}removeReducer(Wt){this.reducerManager.removeReducer(Wt)}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(Ce),t.LFG(ge),t.LFG(Te))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const Dt=[tt];function di(st,Rt,...Wt){return function(Ti){let Ni;if("string"==typeof st){const mn=[Rt,...Wt].filter(Boolean);Ni=Ti.pipe(function d(...st){const Rt=st.length;if(0===Rt)throw new Error("list of properties cannot be empty.");return(0,C.U)(Wt=>{let fi=Wt;for(let Ti=0;Tist(mn,Rt)))}return Ni.pipe((0,w.x)())}}const Yt="https://ngrx.io/guide/store/configuration/runtime-checks";function Zt(st){return void 0===st}function ui(st){return null===st}function Ot(st){return Array.isArray(st)}function bt(st){return"object"==typeof st&&null!==st}function Re(st){return"function"==typeof st}function Ft(st,Rt){return st===Rt}function nt(st,Rt,Wt){for(let fi=0;fign.release&&"function"==typeof gn.release),In=st(function(...gn){return Ni.apply(null,gn)}),Rn=rt(function(gn,Si){return Rt.stateFn.apply(null,[gn,Ti,Si,In])});return Object.assign(Rn.memoized,{release:function tr(){Rn.reset(),In.reset(),mn.forEach(gn=>gn.release())},projector:In.memoized,setResult:Rn.setResult,clearResult:Rn.clearResult})}}(rt)(...st)}function Ae(st,Rt,Wt,fi){if(void 0===Wt){const Ni=Rt.map(mn=>mn(st));return fi.memoized.apply(null,Ni)}const Ti=Rt.map(Ni=>Ni(st,Wt));return fi.memoized.apply(null,[...Ti,Wt])}function ot(st){return et(Rt=>{const Wt=Rt[st];return(0,t.X6Q)()&&!(st in Rt)&&console.warn(`@ngrx/store: The feature name "${st}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${st}', ...) or StoreModule.forFeature('${st}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Wt},Rt=>Rt)}function ei(st){Object.freeze(st);const Rt=Re(st);return Object.getOwnPropertyNames(st).forEach(Wt=>{if(!Wt.startsWith("\u0275")&&function de(st,Rt){return Object.prototype.hasOwnProperty.call(st,Rt)}(st,Wt)&&(!Rt||"caller"!==Wt&&"callee"!==Wt&&"arguments"!==Wt)){const fi=st[Wt];(bt(fi)||Re(fi))&&!Object.isFrozen(fi)&&ei(fi)}}),st}function hi(st,Rt=[]){return(Zt(st)||ui(st))&&0===Rt.length?{path:["root"],value:st}:Object.keys(st).reduce((fi,Ti)=>{if(fi)return fi;const Ni=st[Ti];return function ke(st){return Re(st)&&st.hasOwnProperty("\u0275cmp")}(Ni)?fi:!(Zt(Ni)||ui(Ni)||function it(st){return"number"==typeof st}(Ni)||function gt(st){return"boolean"==typeof st}(Ni)||function Nt(st){return"string"==typeof st}(Ni)||Ot(Ni))&&(function Qt(st){if(!function ti(st){return bt(st)&&!Ot(st)}(st))return!1;const Rt=Object.getPrototypeOf(st);return Rt===Object.prototype||null===Rt}(Ni)?hi(Ni,[...Rt,Ti]):{path:[...Rt,Ti],value:Ni})},!1)}function si(st,Rt){if(!1===st)return;const Wt=st.path.join("."),fi=new Error(`Detected unserializable ${Rt} at "${Wt}". ${Yt}#strict${Rt}serializability`);throw fi.value=st.value,fi.unserializablePath=Wt,fi}function Zi(st){return(0,t.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},st):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Vi({strictActionSerializability:st,strictStateSerializability:Rt}){return Wt=>st||Rt?function Qi(st,Rt){return function(Wt,fi){Rt.action(fi)&&si(hi(fi),"action");const Ti=st(Wt,fi);return Rt.state()&&si(hi(Ti),"state"),Ti}}(Wt,{action:fi=>st&&!Ue(fi),state:()=>Rt}):Wt}function Ui({strictActionImmutability:st,strictStateImmutability:Rt}){return Wt=>st||Rt?function Jt(st,Rt){return function(Wt,fi){const Ti=Rt.action(fi)?ei(fi):fi,Ni=st(Wt,Ti);return Rt.state()?ei(Ni):Ni}}(Wt,{action:fi=>st&&!Ue(fi),state:()=>Rt}):Wt}function Ue(st){return st.type.startsWith("@ngrx")}function Tt({strictActionWithinNgZone:st}){return Rt=>st?function Ji(st,Rt){return function(Wt,fi){if(Rt.action(fi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${fi.type}' running outside NgZone. ${Yt}#strictactionwithinngzone`);return st(Wt,fi)}}(Rt,{action:Wt=>st&&!Ue(Wt)}):Rt}function ve(st){return[{provide:Pe,useValue:st},{provide:be,useFactory:_t,deps:[Pe]},{provide:Ee,deps:[be],useFactory:Zi},{provide:X,multi:!0,deps:[Ee],useFactory:Ui},{provide:X,multi:!0,deps:[Ee],useFactory:Vi},{provide:X,multi:!0,deps:[Ee],useFactory:Tt}]}function Qe(){return[{provide:j,multi:!0,deps:[Ee],useFactory:se}]}function _t(st){return st}function se(st){if(!st.strictActionTypeUniqueness)return;const Rt=Object.entries(D).filter(([,Wt])=>Wt>1).map(([Wt])=>Wt);if(Rt.length)throw new Error(`Action types are registered more than once, ${Rt.map(Wt=>`"${Wt}"`).join(", ")}. ${Yt}#strictactiontypeuniqueness`)}let Xe=(()=>{class st{constructor(Wt,fi,Ti,Ni,mn,In){}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(ge),t.LFG(Oe),t.LFG(W),t.LFG(tt),t.LFG(_e,8),t.LFG(j,8))},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})(),xt=(()=>{class st{constructor(Wt,fi,Ti,Ni,mn){this.features=Wt,this.featureReducers=fi,this.reducerManager=Ti;const In=Wt.map((Rn,tr)=>{const Si=fi.shift()[tr];return Object.assign(Object.assign({},Rn),{reducers:Si,initialState:Wi(Rn.initialState)})});Ti.addFeatures(In)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(_),t.LFG(N),t.LFG(Te),t.LFG(Xe),t.LFG(j,8))},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})(),Bt=(()=>{class st{static forRoot(Wt,fi={}){return{ngModule:Xe,providers:[{provide:_e,useFactory:pn,deps:[[tt,new t.FiY,new t.tp0]]},{provide:x,useValue:fi.initialState},{provide:i,useFactory:Wi,deps:[x]},{provide:v,useValue:Wt},{provide:I,useExisting:Wt instanceof t.OlP?Wt:v},{provide:c,deps:[t.zs3,v,[new t.tBr(I)]],useFactory:bi},{provide:H,useValue:fi.metaReducers?fi.metaReducers:[]},{provide:he,deps:[X,H],useFactory:on},{provide:u,useValue:fi.reducerFactory?fi.reducerFactory:Ve},{provide:r,deps:[u,he],useFactory:Ie},q,xe,te,pt,Dt,ve(fi.runtimeChecks),Qe()]}}static forFeature(Wt,fi,Ti={}){return{ngModule:xt,providers:[{provide:n,multi:!0,useValue:Wt instanceof Object?{}:Ti},{provide:T,multi:!0,useValue:{key:Wt instanceof Object?Wt.name:Wt,reducerFactory:Ti instanceof t.OlP||!Ti.reducerFactory?Ve:Ti.reducerFactory,metaReducers:Ti instanceof t.OlP||!Ti.metaReducers?[]:Ti.metaReducers,initialState:Ti instanceof t.OlP||!Ti.initialState?void 0:Ti.initialState}},{provide:_,deps:[t.zs3,n,T],useFactory:Ei},{provide:y,multi:!0,useValue:Wt instanceof Object?Wt.reducer:fi},{provide:V,multi:!0,useExisting:fi instanceof t.OlP?fi:y},{provide:N,multi:!0,deps:[t.zs3,y,[new t.tBr(V)]],useFactory:Xi},Qe()]}}}return st.\u0275fac=function(Wt){return new(Wt||st)},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})();function bi(st,Rt){return Rt instanceof t.OlP?st.get(Rt):Rt}function Ei(st,Rt,Wt){return Wt.map((fi,Ti)=>{if(Rt[Ti]instanceof t.OlP){const Ni=st.get(Rt[Ti]);return{key:fi.key,reducerFactory:Ni.reducerFactory?Ni.reducerFactory:Ve,metaReducers:Ni.metaReducers?Ni.metaReducers:[],initialState:Ni.initialState}}return fi})}function Xi(st,Rt){return Rt.map(fi=>fi instanceof t.OlP?st.get(fi):fi)}function Wi(st){return"function"==typeof st?st():st}function on(st,Rt){return st.concat(Rt)}function pn(st){if(st)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function ii(...st){return{reducer:st.pop(),types:st.map(fi=>fi.type)}}function Ri(st,...Rt){const Wt=new Map;for(const fi of Rt)for(const Ti of fi.types){const Ni=Wt.get(Ti);Wt.set(Ti,Ni?(In,Rn)=>fi.reducer(Ni(In,Rn),Rn):fi.reducer)}return function(fi=st,Ti){const Ni=Wt.get(Ti.type);return Ni?Ni(fi,Ti):fi}}},1210:(Be,K,p)=>{"use strict";p.d(K,{H5:()=>e4,K$:()=>Oh,a4:()=>tf});var t=p(5e3),e=p(9808),f=p(655),M=p(7429),a=p(4968),C=p(8372),d=p(1777);function R(){}function h(m){return null==m?R:function(){return this.querySelector(m)}}function w(m){return"object"==typeof m&&"length"in m?m:Array.from(m)}function D(){return[]}function S(m){return null==m?D:function(){return this.querySelectorAll(m)}}function B(m){return function(){return this.matches(m)}}function Z(m){return function(O){return O.matches(m)}}var Y=Array.prototype.find;function ee(){return this.firstElementChild}var ne=Array.prototype.filter;function re(){return this.children}function x(m){return new Array(m.length)}function r(m,O){this.ownerDocument=m.ownerDocument,this.namespaceURI=m.namespaceURI,this._next=null,this._parent=m,this.__data__=O}function u(m){return function(){return m}}function c(m,O,o,b,z,$){for(var dt,Ne=0,Gt=O.length,Ut=$.length;NeO?1:m>=O?0:NaN}r.prototype={constructor:r,appendChild:function(m){return this._parent.insertBefore(m,this._next)},insertBefore:function(m,O){return this._parent.insertBefore(m,O)},querySelector:function(m){return this._parent.querySelector(m)},querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};var Ve="http://www.w3.org/1999/xhtml";const Me={svg:"http://www.w3.org/2000/svg",xhtml:Ve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function J(m){var O=m+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=m.slice(0,o))&&(m=m.slice(o+1)),Me.hasOwnProperty(O)?{space:Me[O],local:m}:m}function Ie(m){return function(){this.removeAttribute(m)}}function ut(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Oe(m,O){return function(){this.setAttribute(m,O)}}function we(m,O){return function(){this.setAttributeNS(m.space,m.local,O)}}function ce(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(m):this.setAttribute(m,o)}}function Te(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,o)}}function W(m){return m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView}function te(m){return function(){this.style.removeProperty(m)}}function Ce(m,O,o){return function(){this.style.setProperty(m,O,o)}}function fe(m,O,o){return function(){var b=O.apply(this,arguments);null==b?this.style.removeProperty(m):this.style.setProperty(m,b,o)}}function pt(m,O){return m.style.getPropertyValue(O)||W(m).getComputedStyle(m,null).getPropertyValue(O)}function tt(m){return function(){delete this[m]}}function Dt(m,O){return function(){this[m]=O}}function di(m,O){return function(){var o=O.apply(this,arguments);null==o?delete this[m]:this[m]=o}}function Zt(m){return m.trim().split(/^|\s+/)}function ui(m){return m.classList||new Ot(m)}function Ot(m){this._node=m,this._names=Zt(m.getAttribute("class")||"")}function Nt(m,O){for(var o=ui(m),b=-1,z=O.length;++b=0&&(o=O.slice(b+1),O=O.slice(0,b)),{type:O,name:o}})}function Ue(m){return function(){var O=this.__on;if(O){for(var $,o=0,b=-1,z=O.length;o=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(m){return this._names.indexOf(m)>=0}};var Bt=[null];function bi(m,O){this._groups=m,this._parents=O}function Ei(){return new bi([[document.documentElement]],Bt)}bi.prototype=Ei.prototype={constructor:bi,select:function L(m){"function"!=typeof m&&(m=h(m));for(var O=this._groups,o=O.length,b=new Array(o),z=0;z=yn&&(yn=vn+1);!(Nn=Li[yn])&&++yn=0;)(Ne=b[z])&&($&&4^Ne.compareDocumentPosition($)&&$.parentNode.insertBefore(Ne,$),$=Ne);return this},sort:function N(m){function O(yi,xi){return yi&&xi?m(yi.__data__,xi.__data__):!yi-!xi}m||(m=H);for(var o=this._groups,b=o.length,z=new Array(b),$=0;$1?this.each((null==O?te:"function"==typeof O?fe:Ce)(m,O,null==o?"":o)):pt(this.node(),m)},property:function Yt(m,O){return arguments.length>1?this.each((null==O?tt:"function"==typeof O?di:Dt)(m,O)):this.node()[m]},classed:function Qt(m,O){var o=Zt(m+"");if(arguments.length<2){for(var b=ui(this.node()),z=-1,$=o.length;++z<$;)if(!b.contains(o[z]))return!1;return!0}return this.each(("function"==typeof O?ti:O?it:bt)(o,O))},text:function ye(m){return arguments.length?this.each(null==m?Re:("function"==typeof m?de:ke)(m)):this.node().textContent},html:function nt(m){return arguments.length?this.each(null==m?ht:("function"==typeof m?Ft:mt)(m)):this.node().innerHTML},raise:function rt(){return this.each(He)},lower:function Ae(){return this.each(et)},append:function Ct(m){var O="function"==typeof m?m:lt(m);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},insert:function Jt(m,O){var o="function"==typeof m?m:lt(m),b=null==O?mi:"function"==typeof O?O:h(O);return this.select(function(){return this.insertBefore(o.apply(this,arguments),b.apply(this,arguments)||null)})},remove:function Qi(){return this.each(ei)},clone:function Ji(m){return this.select(m?si:hi)},datum:function Zi(m){return arguments.length?this.property("__data__",m):this.node().__data__},on:function ve(m,O,o){var z,Ne,b=Ui(m+""),$=b.length;if(!(arguments.length<2)){for(dt=O?Tt:Ue,z=0;z<$;++z)this.each(dt(b[z],O,o));return this}var dt=this.node().__on;if(dt)for(var oi,Gt=0,Ut=dt.length;Gt{}};function ii(){for(var b,m=0,O=arguments.length,o={};m=0&&(b=o.slice(z+1),o=o.slice(0,z)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:b}})}function Rt(m,O){for(var z,o=0,b=m.length;o0)for(var z,$,o=new Array(z),b=0;b>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?Pr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?Pr(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=_a.exec(m))?new cr(O[1],O[2],O[3],1):(O=Sr.exec(m))?new cr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=fa.exec(m))?Pr(O[1],O[2],O[3],O[4]):(O=zr.exec(m))?Pr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=ta.exec(m))?va(O[1],O[2]/100,O[3]/100,1):(O=ia.exec(m))?va(O[1],O[2]/100,O[3]/100,O[4]):na.hasOwnProperty(m)?Za(na[m]):"transparent"===m?new cr(NaN,NaN,NaN,0):null}function Za(m){return new cr(m>>16&255,m>>8&255,255&m,1)}function Pr(m,O,o,b){return b<=0&&(m=O=o=NaN),new cr(m,O,o,b)}function Yn(m){return m instanceof gn||(m=pa(m)),m?new cr((m=m.rgb()).r,m.g,m.b,m.opacity):new cr}function Vr(m,O,o,b){return 1===arguments.length?Yn(m):new cr(m,O,o,null==b?1:b)}function cr(m,O,o,b){this.r=+m,this.g=+O,this.b=+o,this.opacity=+b}function Wa(){return"#"+Ya(this.r)+Ya(this.g)+Ya(this.b)}function Wr(){var m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"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===m?")":", "+m+")")}function Ya(m){return((m=Math.max(0,Math.min(255,Math.round(m)||0)))<16?"0":"")+m.toString(16)}function va(m,O,o,b){return b<=0?m=O=o=NaN:o<=0||o>=1?m=O=NaN:O<=0&&(m=NaN),new kr(m,O,o,b)}function dr(m){if(m instanceof kr)return new kr(m.h,m.s,m.l,m.opacity);if(m instanceof gn||(m=pa(m)),!m)return new kr;if(m instanceof kr)return m;var O=(m=m.rgb()).r/255,o=m.g/255,b=m.b/255,z=Math.min(O,o,b),$=Math.max(O,o,b),Ne=NaN,dt=$-z,Gt=($+z)/2;return dt?(Ne=O===$?(o-b)/dt+6*(o0&&Gt<1?0:Ne,new kr(Ne,dt,Gt,m.opacity)}function kr(m,O,o,b){this.h=+m,this.s=+O,this.l=+o,this.opacity=+b}function Dr(m,O,o){return 255*(m<60?O+(o-O)*m/60:m<180?o:m<240?O+(o-O)*(240-m)/60:O)}function ra(m,O,o,b,z){var $=m*m,Ne=$*m;return((1-3*m+3*$-Ne)*O+(4-6*$+3*Ne)*o+(1+3*m+3*$-3*Ne)*b+Ne*z)/6}Rn(gn,pa,{copy:function(m){return Object.assign(new this.constructor,this,m)},displayable:function(){return this.rgb().displayable()},hex:qr,formatHex:qr,formatHsl:function Jr(){return dr(this).formatHsl()},formatRgb:Ma,toString:Ma}),Rn(cr,Vr,tr(gn,{brighter:function(m){return m=null==m?Ki:Math.pow(Ki,m),new cr(this.r*m,this.g*m,this.b*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new cr(this.r*m,this.g*m,this.b*m,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:Wa,formatHex:Wa,formatRgb:Wr,toString:Wr})),Rn(kr,function ya(m,O,o,b){return 1===arguments.length?dr(m):new kr(m,O,o,null==b?1:b)},tr(gn,{brighter:function(m){return m=null==m?Ki:Math.pow(Ki,m),new kr(this.h,this.s,this.l*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new kr(this.h,this.s,this.l*m,this.opacity)},rgb:function(){var m=this.h%360+360*(this.h<0),O=isNaN(m)||isNaN(this.s)?0:this.s,o=this.l,b=o+(o<.5?o:1-o)*O,z=2*o-b;return new cr(Dr(m>=240?m-240:m+120,z,b),Dr(m,z,b),Dr(m<120?m+240:m-120,z,b),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 m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===m?")":", "+m+")")}}));const ba=m=>()=>m;function sa(m,O){var o=O-m;return o?function or(m,O){return function(o){return m+o*O}}(m,o):ba(isNaN(m)?O:m)}const Yr=function m(O){var o=function ir(m){return 1==(m=+m)?sa:function(O,o){return o-O?function aa(m,O,o){return m=Math.pow(m,o),O=Math.pow(O,o)-m,o=1/o,function(b){return Math.pow(m+b*O,o)}}(O,o,m):ba(isNaN(O)?o:O)}}(O);function b(z,$){var Ne=o((z=Vr(z)).r,($=Vr($)).r),dt=o(z.g,$.g),Gt=o(z.b,$.b),Ut=sa(z.opacity,$.opacity);return function(oi){return z.r=Ne(oi),z.g=dt(oi),z.b=Gt(oi),z.opacity=Ut(oi),z+""}}return b.gamma=m,b}(1);function Nr(m){return function(O){var Ne,dt,o=O.length,b=new Array(o),z=new Array(o),$=new Array(o);for(Ne=0;Ne=1?(o=1,O-1):Math.floor(o*O),z=m[b],$=m[b+1];return ra((o-b/O)*O,b>0?m[b-1]:2*z-$,z,$,bo&&($=O.slice(o,$),dt[Ne]?dt[Ne]+=$:dt[++Ne]=$),(b=b[0])===(z=z[0])?dt[Ne]?dt[Ne]+=z:dt[++Ne]=z:(dt[++Ne]=null,Gt.push({i:Ne,x:Et(b,z)})),o=Xt.lastIndex;return o=0&&m._call.call(null,O),m=m._next;--jt}()}finally{jt=0,function gs(){for(var m,o,O=Fe,b=1/0;O;)O._call?(b>O._time&&(b=O._time),m=O,O=O._next):(o=O._next,O._next=null,O=m?m._next=o:Fe=o);At=m,Ta(b)}(),Gi=0}}function to(){var m=br.now(),O=m-wi;O>1e3&&(Un-=O,wi=m)}function Ta(m){jt||(Oi&&(Oi=clearTimeout(Oi)),m-Gi>24?(m<1/0&&(Oi=setTimeout(Er,m-br.now()-Un)),je&&(je=clearInterval(je))):(je||(wi=br.now(),je=setInterval(to,1e3)),jt=1,Fa(Er)))}function Ls(m,O,o){var b=new Fi;return b.restart(z=>{b.stop(),m(z+O)},O=null==O?0:+O,o),b}Fi.prototype=jn.prototype={constructor:Fi,restart:function(m,O,o){if("function"!=typeof m)throw new TypeError("callback is not a function");o=(null==o?xa():+o)+(null==O?0:+O),!this._next&&At!==this&&(At?At._next=this:Fe=this,At=this),this._call=m,this._time=o,Ta()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ta())}};var Ds=fi("start","end","cancel","interrupt"),Fs=[];function pe(m,O,o,b,z,$){var Ne=m.__transition;if(Ne){if(o in Ne)return}else m.__transition={};!function ri(m,O,o){var z,b=m.__transition;function Ne(Ut){var oi,yi,xi,Ai;if(1!==o.state)return Gt();for(oi in b)if((Ai=b[oi]).name===o.name){if(3===Ai.state)return Ls(Ne);4===Ai.state?(Ai.state=6,Ai.timer.stop(),Ai.on.call("interrupt",m,m.__data__,Ai.index,Ai.group),delete b[oi]):+oi0)throw new Error("too late; already scheduled");return o}function Mt(m,O){var o=Vt(m,O);if(o.state>3)throw new Error("too late; already running");return o}function Vt(m,O){var o=m.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var An,ki=180/Math.PI,$i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dn(m,O,o,b,z,$){var Ne,dt,Gt;return(Ne=Math.sqrt(m*m+O*O))&&(m/=Ne,O/=Ne),(Gt=m*o+O*b)&&(o-=m*Gt,b-=O*Gt),(dt=Math.sqrt(o*o+b*b))&&(o/=dt,b/=dt,Gt/=dt),m*b180?oi+=360:oi-Ut>180&&(Ut+=360),xi.push({i:yi.push(z(yi)+"rotate(",null,b)-2,x:Et(Ut,oi)})):oi&&yi.push(z(yi)+"rotate("+oi+b)}(Ut.rotate,oi.rotate,yi,xi),function dt(Ut,oi,yi,xi){Ut!==oi?xi.push({i:yi.push(z(yi)+"skewX(",null,b)-2,x:Et(Ut,oi)}):oi&&yi.push(z(yi)+"skewX("+oi+b)}(Ut.skewX,oi.skewX,yi,xi),function Gt(Ut,oi,yi,xi,Ai,tn){if(Ut!==yi||oi!==xi){var Mn=Ai.push(z(Ai)+"scale(",null,",",null,")");tn.push({i:Mn-4,x:Et(Ut,yi)},{i:Mn-2,x:Et(oi,xi)})}else(1!==yi||1!==xi)&&Ai.push(z(Ai)+"scale("+yi+","+xi+")")}(Ut.scaleX,Ut.scaleY,oi.scaleX,oi.scaleY,yi,xi),Ut=oi=null,function(Ai){for(var Li,tn=-1,Mn=xi.length;++tn=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Ke:Mt;return function(){var Ne=$(this,m),dt=Ne.on;dt!==b&&(z=(b=dt).copy()).on(O,o),Ne.on=z}}var rr=Wi.prototype.constructor;function Se(m){return function(){this.style.removeProperty(m)}}function qt(m,O,o){return function(b){this.style.setProperty(m,O.call(this,b),o)}}function ai(m,O,o){var b,z;function $(){var Ne=O.apply(this,arguments);return Ne!==z&&(b=(z=Ne)&&qt(m,Ne,o)),b}return $._value=O,$}function gr(m){return function(O){this.textContent=m.call(this,O)}}function hr(m){var O,o;function b(){var z=m.apply(this,arguments);return z!==o&&(O=(o=z)&&gr(z)),O}return b._value=m,b}var qo=0;function Da(m,O,o,b){this._groups=m,this._parents=O,this._name=o,this._id=b}function Kc(){return++qo}var io=Wi.prototype;Da.prototype=function Bs(m){return Wi().transition(m)}.prototype={constructor:Da,select:function un(m){var O=this._name,o=this._id;"function"!=typeof m&&(m=h(m));for(var b=this._groups,z=b.length,$=new Array(z),Ne=0;Ne2&&b.state<5,b.state=6,b.timer.stop(),b.on.call(z?"interrupt":"cancel",m,m.__data__,b.index,b.group),delete o[Ne]):$=!1;$&&delete m.__transition}}(this,m)})},Wi.prototype.transition=function mo(m){var O,o;m instanceof Da?(O=m._id,m=m._name):(O=Kc(),(o=yl).time=xa(),m=null==m?null:m+"");for(var b=this._groups,z=b.length,$=0;$O?1:m>=O?0:NaN}function ro(m){let O=m,o=m;function b(Ne,dt,Gt,Ut){for(null==Gt&&(Gt=0),null==Ut&&(Ut=Ne.length);Gt>>1;o(Ne[oi],dt)<0?Gt=oi+1:Ut=oi}return Gt}return 1===m.length&&(O=(Ne,dt)=>m(Ne)-dt,o=function o3(m){return(O,o)=>tl(m(O),o)}(m)),{left:b,center:function $(Ne,dt,Gt,Ut){null==Gt&&(Gt=0),null==Ut&&(Ut=Ne.length);const oi=b(Ne,dt,Gt,Ut-1);return oi>Gt&&O(Ne[oi-1],dt)>-O(Ne[oi],dt)?oi-1:oi},right:function z(Ne,dt,Gt,Ut){for(null==Gt&&(Gt=0),null==Ut&&(Ut=Ne.length);Gt>>1;o(Ne[oi],dt)>0?Ut=oi:Gt=oi+1}return Gt}}}["w","e"].map(es),["n","s"].map(es),["n","w","e","s","nw","ne","sw","se"].map(es);var Ml=Math.sqrt(50),Do=Math.sqrt(10),Kl=Math.sqrt(2);function Xc(m,O,o){var b=(O-m)/Math.max(0,o),z=Math.floor(Math.log(b)/Math.LN10),$=b/Math.pow(10,z);return z>=0?($>=Ml?10:$>=Do?5:$>=Kl?2:1)*Math.pow(10,z):-Math.pow(10,-z)/($>=Ml?10:$>=Do?5:$>=Kl?2:1)}function Ql(m,O,o){var b=Math.abs(O-m)/Math.max(0,o),z=Math.pow(10,Math.floor(Math.log(b)/Math.LN10)),$=b/z;return $>=Ml?z*=10:$>=Do?z*=5:$>=Kl&&(z*=2),O0))return Gt;do{Gt.push(Ut=new Date(+$)),O($,dt),m($)}while(Ut<$&&$=Ne)for(;m(Ne),!$(Ne);)Ne.setTime(Ne-1)},function(Ne,dt){if(Ne>=Ne)if(dt<0)for(;++dt<=0;)for(;O(Ne,-1),!$(Ne););else for(;--dt>=0;)for(;O(Ne,1),!$(Ne););})},o&&(z.count=function($,Ne){return ql.setTime(+$),Jl.setTime(+Ne),m(ql),m(Jl),Math.floor(o(ql,Jl))},z.every=function($){return $=Math.floor($),isFinite($)&&$>0?$>1?z.filter(b?function(Ne){return b(Ne)%$==0}:function(Ne){return z.count(0,Ne)%$==0}):z:null}),z}var nl=Ia(function(){},function(m,O){m.setTime(+m+O)},function(m,O){return O-m});nl.every=function(m){return m=Math.floor(m),isFinite(m)&&m>0?m>1?Ia(function(O){O.setTime(Math.floor(O/m)*m)},function(O,o){O.setTime(+O+o*m)},function(O,o){return(o-O)/m}):nl:null};const X1=nl;const ao=Ia(function(m){m.setTime(m-m.getMilliseconds())},function(m,O){m.setTime(+m+O*Es)},function(m,O){return(O-m)/Es},function(m){return m.getUTCSeconds()});const ec=Ia(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Es)},function(m,O){m.setTime(+m+O*ts)},function(m,O){return(O-m)/ts},function(m){return m.getMinutes()});const tc=Ia(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Es-m.getMinutes()*ts)},function(m,O){m.setTime(+m+O*ys)},function(m,O){return(O-m)/ys},function(m){return m.getHours()});const _o=Ia(m=>m.setHours(0,0,0,0),(m,O)=>m.setDate(m.getDate()+O),(m,O)=>(O-m-(O.getTimezoneOffset()-m.getTimezoneOffset())*ts)/Io,m=>m.getDate()-1);function Us(m){return Ia(function(O){O.setDate(O.getDate()-(O.getDay()+7-m)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*ts)/Kr})}var so=Us(0),El=Us(1),Gs=(Us(2),Us(3),Us(4));const n2=(Us(5),Us(6),Ia(function(m){m.setDate(1),m.setHours(0,0,0,0)},function(m,O){m.setMonth(m.getMonth()+O)},function(m,O){return O.getMonth()-m.getMonth()+12*(O.getFullYear()-m.getFullYear())},function(m){return m.getMonth()}));var ac=Ia(function(m){m.setMonth(0,1),m.setHours(0,0,0,0)},function(m,O){m.setFullYear(m.getFullYear()+O)},function(m,O){return O.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});ac.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Ia(function(O){O.setFullYear(Math.floor(O.getFullYear()/m)*m),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*m)}):null};const Os=ac;const r2=Ia(function(m){m.setUTCSeconds(0,0)},function(m,O){m.setTime(+m+O*ts)},function(m,O){return(O-m)/ts},function(m){return m.getUTCMinutes()});const Ll=Ia(function(m){m.setUTCMinutes(0,0,0)},function(m,O){m.setTime(+m+O*ys)},function(m,O){return(O-m)/ys},function(m){return m.getUTCHours()});const Dl=Ia(function(m){m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCDate(m.getUTCDate()+O)},function(m,O){return(O-m)/Io},function(m){return m.getUTCDate()-1});function is(m){return Ia(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-m)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/Kr})}var oc=is(0),Il=is(1),No=(is(2),is(3),is(4));const c2=(is(5),is(6),Ia(function(m){m.setUTCDate(1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCMonth(m.getUTCMonth()+O)},function(m,O){return O.getUTCMonth()-m.getUTCMonth()+12*(O.getUTCFullYear()-m.getUTCFullYear())},function(m){return m.getUTCMonth()}));var Ol=Ia(function(m){m.setUTCMonth(0,1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCFullYear(m.getUTCFullYear()+O)},function(m,O){return O.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});Ol.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Ia(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/m)*m),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*m)}):null};const rl=Ol;function Ro(m,O,o,b,z,$){const Ne=[[ao,1,Es],[ao,5,5e3],[ao,15,15e3],[ao,30,3e4],[$,1,ts],[$,5,5*ts],[$,15,15*ts],[$,30,30*ts],[z,1,ys],[z,3,3*ys],[z,6,6*ys],[z,12,12*ys],[b,1,Io],[b,2,2*Io],[o,1,Kr],[O,1,il],[O,3,3*il],[m,1,Oo]];function Gt(Ut,oi,yi){const xi=Math.abs(oi-Ut)/yi,Ai=ro(([,,Li])=>Li).right(Ne,xi);if(Ai===Ne.length)return m.every(Ql(Ut/Oo,oi/Oo,yi));if(0===Ai)return X1.every(Math.max(Ql(Ut,oi,yi),1));const[tn,Mn]=Ne[xi/Ne[Ai-1][2][O.toLowerCase(),o]))}function c1(m,O,o){var b=da.exec(O.slice(o,o+1));return b?(m.w=+b[0],o+b[0].length):-1}function d1(m,O,o){var b=da.exec(O.slice(o,o+1));return b?(m.u=+b[0],o+b[0].length):-1}function u1(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.U=+b[0],o+b[0].length):-1}function dc(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.V=+b[0],o+b[0].length):-1}function G(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.W=+b[0],o+b[0].length):-1}function Le(m,O,o){var b=da.exec(O.slice(o,o+4));return b?(m.y=+b[0],o+b[0].length):-1}function P(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.y=+b[0]+(+b[0]>68?1900:2e3),o+b[0].length):-1}function ie(m,O,o){var b=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return b?(m.Z=b[1]?0:-(b[2]+(b[3]||"00")),o+b[0].length):-1}function We(m,O,o){var b=da.exec(O.slice(o,o+1));return b?(m.q=3*b[0]-3,o+b[0].length):-1}function Ht(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.m=b[0]-1,o+b[0].length):-1}function Ci(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.d=+b[0],o+b[0].length):-1}function ji(m,O,o){var b=da.exec(O.slice(o,o+3));return b?(m.m=0,m.d=+b[0],o+b[0].length):-1}function hn(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.H=+b[0],o+b[0].length):-1}function Fn(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.M=+b[0],o+b[0].length):-1}function ls(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.S=+b[0],o+b[0].length):-1}function Ts(m,O,o){var b=da.exec(O.slice(o,o+3));return b?(m.L=+b[0],o+b[0].length):-1}function cs(m,O,o){var b=da.exec(O.slice(o,o+6));return b?(m.L=Math.floor(b[0]/1e3),o+b[0].length):-1}function ds(m,O,o){var b=cl.exec(O.slice(o,o+1));return b?o+b[0].length:-1}function lr(m,O,o){var b=da.exec(O.slice(o));return b?(m.Q=+b[0],o+b[0].length):-1}function qa(m,O,o){var b=da.exec(O.slice(o));return b?(m.s=+b[0],o+b[0].length):-1}function Ln(m,O){return vr(m.getDate(),O,2)}function Vn(m,O){return vr(m.getHours(),O,2)}function Na(m,O){return vr(m.getHours()%12||12,O,2)}function h2(m,O){return vr(1+_o.count(Os(m),m),O,3)}function f2(m,O){return vr(m.getMilliseconds(),O,3)}function ns(m,O){return f2(m,O)+"000"}function uc(m,O){return vr(m.getMonth()+1,O,2)}function p2(m,O){return vr(m.getMinutes(),O,2)}function y3(m,O){return vr(m.getSeconds(),O,2)}function V4(m){var O=m.getDay();return 0===O?7:O}function b3(m,O){return vr(so.count(Os(m)-1,m),O,2)}function x3(m){var O=m.getDay();return O>=4||0===O?Gs(m):Gs.ceil(m)}function m2(m,O){return m=x3(m),vr(Gs.count(Os(m),m)+(4===Os(m).getDay()),O,2)}function B4(m){return m.getDay()}function g2(m,O){return vr(El.count(Os(m)-1,m),O,2)}function U4(m,O){return vr(m.getFullYear()%100,O,2)}function G4(m,O){return vr((m=x3(m)).getFullYear()%100,O,2)}function _2(m,O){return vr(m.getFullYear()%1e4,O,4)}function Z4(m,O){var o=m.getDay();return vr((m=o>=4||0===o?Gs(m):Gs.ceil(m)).getFullYear()%1e4,O,4)}function W4(m){var O=m.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+vr(O/60|0,"0",2)+vr(O%60,"0",2)}function h1(m,O){return vr(m.getUTCDate(),O,2)}function Y4(m,O){return vr(m.getUTCHours(),O,2)}function C3(m,O){return vr(m.getUTCHours()%12||12,O,2)}function f1(m,O){return vr(1+Dl.count(rl(m),m),O,3)}function v2(m,O){return vr(m.getUTCMilliseconds(),O,3)}function j4(m,O){return v2(m,O)+"000"}function M3(m,O){return vr(m.getUTCMonth()+1,O,2)}function K4(m,O){return vr(m.getUTCMinutes(),O,2)}function Q4(m,O){return vr(m.getUTCSeconds(),O,2)}function y2(m){var O=m.getUTCDay();return 0===O?7:O}function q4(m,O){return vr(oc.count(rl(m)-1,m),O,2)}function w3(m){var O=m.getUTCDay();return O>=4||0===O?No(m):No.ceil(m)}function S3(m,O){return m=w3(m),vr(No.count(rl(m),m)+(4===rl(m).getUTCDay()),O,2)}function J4(m){return m.getUTCDay()}function X4(m,O){return vr(Il.count(rl(m)-1,m),O,2)}function b2(m,O){return vr(m.getUTCFullYear()%100,O,2)}function $4(m,O){return vr((m=w3(m)).getUTCFullYear()%100,O,2)}function eu(m,O){return vr(m.getUTCFullYear()%1e4,O,4)}function Pl(m,O){var o=m.getUTCDay();return vr((m=o>=4||0===o?No(m):No.ceil(m)).getUTCFullYear()%1e4,O,4)}function js(){return"+0000"}function tu(){return"%"}function E3(m){return+m}function x2(m){return Math.floor(+m/1e3)}function dl(m){return null===m?NaN:+m}!function T3(m){(function v3(m){var O=m.dateTime,o=m.date,b=m.time,z=m.periods,$=m.days,Ne=m.shortDays,dt=m.months,Gt=m.shortMonths,Ut=Ho(z),oi=Fo(z),yi=Ho($),xi=Fo($),Ai=Ho(Ne),tn=Fo(Ne),Mn=Ho(dt),Li=Fo(dt),_n=Ho(Gt),vn=Fo(Gt),yn={a:function sn(fn){return Ne[fn.getDay()]},A:function ps(fn){return $[fn.getDay()]},b:function Ar(fn){return Gt[fn.getMonth()]},B:function Ra(fn){return dt[fn.getMonth()]},c:null,d:Ln,e:Ln,f:ns,g:G4,G:Z4,H:Vn,I:Na,j:h2,L:f2,m:uc,M:p2,p:function $r(fn){return z[+(fn.getHours()>=12)]},q:function ma(fn){return 1+~~(fn.getMonth()/3)},Q:E3,s:x2,S:y3,u:V4,U:b3,V:m2,w:B4,W:g2,x:null,X:null,y:U4,Y:_2,Z:W4,"%":tu},Wn={a:function Yo(fn){return Ne[fn.getUTCDay()]},A:function So(fn){return $[fn.getUTCDay()]},b:function Ir(fn){return Gt[fn.getUTCMonth()]},B:function Bc(fn){return dt[fn.getUTCMonth()]},c:null,d:h1,e:h1,f:j4,g:$4,G:Pl,H:Y4,I:C3,j:f1,L:v2,m:M3,M:K4,p:function Ja(fn){return z[+(fn.getUTCHours()>=12)]},q:function Uc(fn){return 1+~~(fn.getUTCMonth()/3)},Q:E3,s:x2,S:Q4,u:y2,U:q4,V:S3,w:J4,W:X4,x:null,X:null,y:b2,Y:eu,Z:js,"%":tu},Nn={a:function Hr(fn,Qn,fr){var Yi=Ai.exec(Qn.slice(fr));return Yi?(fn.w=tn.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},A:function Hn(fn,Qn,fr){var Yi=yi.exec(Qn.slice(fr));return Yi?(fn.w=xi.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},b:function Oa(fn,Qn,fr){var Yi=_n.exec(Qn.slice(fr));return Yi?(fn.m=vn.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},B:function Cr(fn,Qn,fr){var Yi=Mn.exec(Qn.slice(fr));return Yi?(fn.m=Li.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},c:function Fr(fn,Qn,fr){return Tr(fn,O,Qn,fr)},d:Ci,e:Ci,f:cs,g:P,G:Le,H:hn,I:hn,j:ji,L:Ts,m:Ht,M:Fn,p:function fs(fn,Qn,fr){var Yi=Ut.exec(Qn.slice(fr));return Yi?(fn.p=oi.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},q:We,Q:lr,s:qa,S:ls,u:d1,U:u1,V:dc,w:c1,W:G,x:function Cs(fn,Qn,fr){return Tr(fn,o,Qn,fr)},X:function ua(fn,Qn,fr){return Tr(fn,b,Qn,fr)},y:P,Y:Le,Z:ie,"%":ds};function wn(fn,Qn){return function(fr){var ms,zn,ga,Yi=[],ea=-1,Lr=0,rs=fn.length;for(fr instanceof Date||(fr=new Date(+fr));++ea53)return null;"w"in Yi||(Yi.w=1),"Z"in Yi?(rs=(Lr=ol(ll(Yi.y,0,1))).getUTCDay(),Lr=rs>4||0===rs?Il.ceil(Lr):Il(Lr),Lr=Dl.offset(Lr,7*(Yi.V-1)),Yi.y=Lr.getUTCFullYear(),Yi.m=Lr.getUTCMonth(),Yi.d=Lr.getUTCDate()+(Yi.w+6)%7):(rs=(Lr=sl(ll(Yi.y,0,1))).getDay(),Lr=rs>4||0===rs?El.ceil(Lr):El(Lr),Lr=_o.offset(Lr,7*(Yi.V-1)),Yi.y=Lr.getFullYear(),Yi.m=Lr.getMonth(),Yi.d=Lr.getDate()+(Yi.w+6)%7)}else("W"in Yi||"U"in Yi)&&("w"in Yi||(Yi.w="u"in Yi?Yi.u%7:"W"in Yi?1:0),rs="Z"in Yi?ol(ll(Yi.y,0,1)).getUTCDay():sl(ll(Yi.y,0,1)).getDay(),Yi.m=0,Yi.d="W"in Yi?(Yi.w+6)%7+7*Yi.W-(rs+5)%7:Yi.w+7*Yi.U-(rs+6)%7);return"Z"in Yi?(Yi.H+=Yi.Z/100|0,Yi.M+=Yi.Z%100,ol(Yi)):sl(Yi)}}function Tr(fn,Qn,fr,Yi){for(var ms,zn,ea=0,Lr=Qn.length,rs=fr.length;ea=rs)return-1;if(37===(ms=Qn.charCodeAt(ea++))){if(ms=Qn.charAt(ea++),!(zn=Nn[ms in l1?Qn.charAt(ea++):ms])||(Yi=zn(fn,fr,Yi))<0)return-1}else if(ms!=fr.charCodeAt(Yi++))return-1}return Yi}return yn.x=wn(o,yn),yn.X=wn(b,yn),yn.c=wn(O,yn),Wn.x=wn(o,Wn),Wn.X=wn(b,Wn),Wn.c=wn(O,Wn),{format:function(fn){var Qn=wn(fn+="",yn);return Qn.toString=function(){return fn},Qn},parse:function(fn){var Qn=wr(fn+="",!1);return Qn.toString=function(){return fn},Qn},utcFormat:function(fn){var Qn=wn(fn+="",Wn);return Qn.toString=function(){return fn},Qn},utcParse:function(fn){var Qn=wr(fn+="",!0);return Qn.toString=function(){return fn},Qn}}})(m)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const S2=ro(tl).right,au=(ro(dl),S2);function Nl(m,O){return m=+m,O=+O,function(o){return Math.round(m*(1-o)+O*o)}}function T2(m){return+m}var L3=[0,1];function yo(m){return m}function A2(m,O){return(O-=m=+m)?function(o){return(o-m)/O}:function E2(m){return function(){return m}}(isNaN(O)?NaN:.5)}function ou(m,O,o){var b=m[0],z=m[1],$=O[0],Ne=O[1];return zO&&(o=m,m=O,O=o),function(b){return Math.max(m,Math.min(O,b))}}(m[0],m[xi-1])),dt=xi>2?D3:ou,Gt=Ut=null,yi}function yi(xi){return null==xi||isNaN(xi=+xi)?$:(Gt||(Gt=dt(m.map(b),O,o)))(b(Ne(xi)))}return yi.invert=function(xi){return Ne(z((Ut||(Ut=dt(O,m.map(b),Et)))(xi)))},yi.domain=function(xi){return arguments.length?(m=Array.from(xi,T2),oi()):m.slice()},yi.range=function(xi){return arguments.length?(O=Array.from(xi),oi()):O.slice()},yi.rangeRound=function(xi){return O=Array.from(xi),o=Nl,oi()},yi.clamp=function(xi){return arguments.length?(Ne=!!xi||yo,oi()):Ne!==yo},yi.interpolate=function(xi){return arguments.length?(o=xi,oi()):o},yi.unknown=function(xi){return arguments.length?($=xi,yi):$},function(xi,Ai){return b=xi,z=Ai,oi()}}()(yo,yo)}function ul(m,O){switch(arguments.length){case 0:break;case 1:this.range(m);break;default:this.range(O).domain(m)}return this}var R2,hl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hc(m){if(!(O=hl.exec(m)))throw new Error("invalid format: "+m);var O;return new p1({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function p1(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}function fl(m,O){if((o=(m=O?m.toExponential(O-1):m.toExponential()).indexOf("e"))<0)return null;var o,b=m.slice(0,o);return[b.length>1?b[0]+b.slice(2):b,+m.slice(o+1)]}function Rl(m){return(m=fl(Math.abs(m)))?m[1]:NaN}function pc(m,O){var o=fl(m,O);if(!o)return m+"";var b=o[0],z=o[1];return z<0?"0."+new Array(-z).join("0")+b:b.length>z+1?b.slice(0,z+1)+"."+b.slice(z+1):b+new Array(z-b.length+2).join("0")}hc.prototype=p1.prototype,p1.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 H2={"%":(m,O)=>(100*m).toFixed(O),b:m=>Math.round(m).toString(2),c:m=>m+"",d:function cu(m){return Math.abs(m=Math.round(m))>=1e21?m.toLocaleString("en").replace(/,/g,""):m.toString(10)},e:(m,O)=>m.toExponential(O),f:(m,O)=>m.toFixed(O),g:(m,O)=>m.toPrecision(O),o:m=>Math.round(m).toString(8),p:(m,O)=>pc(100*m,O),r:pc,s:function fc(m,O){var o=fl(m,O);if(!o)return m+"";var b=o[0],z=o[1],$=z-(R2=3*Math.max(-8,Math.min(8,Math.floor(z/3))))+1,Ne=b.length;return $===Ne?b:$>Ne?b+new Array($-Ne+1).join("0"):$>0?b.slice(0,$)+"."+b.slice($):"0."+new Array(1-$).join("0")+fl(m,Math.max(0,O+$-1))[0]},X:m=>Math.round(m).toString(16).toUpperCase(),x:m=>Math.round(m).toString(16)};function mc(m){return m}var g1,z2,R3,F2=Array.prototype.map,m1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function uu(m){var O=m.domain;return m.ticks=function(o){var b=O();return function J1(m,O,o){var b,$,Ne,dt,z=-1;if(o=+o,(m=+m)==(O=+O)&&o>0)return[m];if((b=O0){let Gt=Math.round(m/dt),Ut=Math.round(O/dt);for(Gt*dtO&&--Ut,Ne=new Array($=Ut-Gt+1);++z<$;)Ne[z]=(Gt+z)*dt}else{dt=-dt;let Gt=Math.round(m*dt),Ut=Math.round(O*dt);for(Gt/dtO&&--Ut,Ne=new Array($=Ut-Gt+1);++z<$;)Ne[z]=(Gt+z)/dt}return b&&Ne.reverse(),Ne}(b[0],b[b.length-1],null==o?10:o)},m.tickFormat=function(o,b){var z=O();return function F3(m,O,o,b){var $,z=Ql(m,O,o);switch((b=hc(null==b?",f":b)).type){case"s":var Ne=Math.max(Math.abs(m),Math.abs(O));return null==b.precision&&!isNaN($=function P2(m,O){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rl(O)/3)))-Rl(Math.abs(m)))}(z,Ne))&&(b.precision=$),R3(b,Ne);case"":case"e":case"g":case"p":case"r":null==b.precision&&!isNaN($=function H3(m,O){return m=Math.abs(m),O=Math.abs(O)-m,Math.max(0,Rl(O)-Rl(m))+1}(z,Math.max(Math.abs(m),Math.abs(O))))&&(b.precision=$-("e"===b.type));break;case"f":case"%":null==b.precision&&!isNaN($=function _1(m){return Math.max(0,-Rl(Math.abs(m)))}(z))&&(b.precision=$-2*("%"===b.type))}return z2(b)}(z[0],z[z.length-1],null==o?10:o,b)},m.nice=function(o){null==o&&(o=10);var Gt,Ut,b=O(),z=0,$=b.length-1,Ne=b[z],dt=b[$],oi=10;for(dt0;){if((Ut=Xc(Ne,dt,o))===Gt)return b[z]=Ne,b[$]=dt,O(b);if(Ut>0)Ne=Math.floor(Ne/Ut)*Ut,dt=Math.ceil(dt/Ut)*Ut;else{if(!(Ut<0))break;Ne=Math.ceil(Ne*Ut)/Ut,dt=Math.floor(dt*Ut)/Ut}Gt=Ut}return m},m}function zo(){var m=D2();return m.copy=function(){return I3(m,zo())},ul.apply(m,arguments),uu(m)}function V2(m,O,o){m=+m,O=+O,o=(z=arguments.length)<2?(O=m,m=0,1):z<3?1:+o;for(var b=-1,z=0|Math.max(0,Math.ceil((O-m)/o)),$=new Array(z);++b0&&dt>0&&(Gt+dt+1>b&&(dt=Math.max(1,b-Gt)),$.push(o.substring(z-=dt,z+dt)),!((Gt+=dt+1)>b));)dt=m[Ne=(Ne+1)%m.length];return $.reverse().join(O)}}(F2.call(m.grouping,Number),m.thousands+""),o=void 0===m.currency?"":m.currency[0]+"",b=void 0===m.currency?"":m.currency[1]+"",z=void 0===m.decimal?".":m.decimal+"",$=void 0===m.numerals?mc:function k2(m){return function(O){return O.replace(/[0-9]/g,function(o){return m[+o]})}}(F2.call(m.numerals,String)),Ne=void 0===m.percent?"%":m.percent+"",dt=void 0===m.minus?"\u2212":m.minus+"",Gt=void 0===m.nan?"NaN":m.nan+"";function Ut(yi){var xi=(yi=hc(yi)).fill,Ai=yi.align,tn=yi.sign,Mn=yi.symbol,Li=yi.zero,_n=yi.width,vn=yi.comma,yn=yi.precision,Wn=yi.trim,Nn=yi.type;"n"===Nn?(vn=!0,Nn="g"):H2[Nn]||(void 0===yn&&(yn=12),Wn=!0,Nn="g"),(Li||"0"===xi&&"="===Ai)&&(Li=!0,xi="0",Ai="=");var wn="$"===Mn?o:"#"===Mn&&/[boxX]/.test(Nn)?"0"+Nn.toLowerCase():"",wr="$"===Mn?b:/[%p]/.test(Nn)?Ne:"",Tr=H2[Nn],fs=/[defgprs%]/.test(Nn);function Hr(Hn){var Fr,Cs,ua,Oa=wn,Cr=wr;if("c"===Nn)Cr=Tr(Hn)+Cr,Hn="";else{var sn=(Hn=+Hn)<0||1/Hn<0;if(Hn=isNaN(Hn)?Gt:Tr(Math.abs(Hn),yn),Wn&&(Hn=function N2(m){e:for(var z,O=m.length,o=1,b=-1;o0&&(b=0)}return b>0?m.slice(0,b)+m.slice(z+1):m}(Hn)),sn&&0==+Hn&&"+"!==tn&&(sn=!1),Oa=(sn?"("===tn?tn:dt:"-"===tn||"("===tn?"":tn)+Oa,Cr=("s"===Nn?m1[8+R2/3]:"")+Cr+(sn&&"("===tn?")":""),fs)for(Fr=-1,Cs=Hn.length;++Fr(ua=Hn.charCodeAt(Fr))||ua>57){Cr=(46===ua?z+Hn.slice(Fr+1):Hn.slice(Fr))+Cr,Hn=Hn.slice(0,Fr);break}}vn&&!Li&&(Hn=O(Hn,1/0));var ps=Oa.length+Hn.length+Cr.length,Ar=ps<_n?new Array(_n-ps+1).join(xi):"";switch(vn&&Li&&(Hn=O(Ar+Hn,Ar.length?_n-Cr.length:1/0),Ar=""),Ai){case"<":Hn=Oa+Hn+Cr+Ar;break;case"=":Hn=Oa+Ar+Hn+Cr;break;case"^":Hn=Ar.slice(0,ps=Ar.length>>1)+Oa+Hn+Cr+Ar.slice(ps);break;default:Hn=Ar+Oa+Hn+Cr}return $(Hn)}return yn=void 0===yn?6:/[gprs]/.test(Nn)?Math.max(1,Math.min(21,yn)):Math.max(0,Math.min(20,yn)),Hr.toString=function(){return yi+""},Hr}return{format:Ut,formatPrefix:function oi(yi,xi){var Ai=Ut(((yi=hc(yi)).type="f",yi)),tn=3*Math.max(-8,Math.min(8,Math.floor(Rl(xi)/3))),Mn=Math.pow(10,-tn),Li=m1[8+tn/3];return function(_n){return Ai(Mn*_n)+Li}}}}(m),z2=g1.format,R3=g1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const B2=Symbol("implicit");function U2(){var m=new Map,O=[],o=[],b=B2;function z($){var Ne=$+"",dt=m.get(Ne);if(!dt){if(b!==B2)return b;m.set(Ne,dt=O.push($))}return o[(dt-1)%o.length]}return z.domain=function($){if(!arguments.length)return O.slice();O=[],m=new Map;for(const Ne of $){const dt=Ne+"";m.has(dt)||m.set(dt,O.push(Ne))}return z},z.range=function($){return arguments.length?(o=Array.from($),z):o.slice()},z.unknown=function($){return arguments.length?(b=$,z):b},z.copy=function(){return U2(O,o).unknown(b)},ul.apply(z,arguments),z}function Vo(){var $,Ne,m=U2().unknown(void 0),O=m.domain,o=m.range,b=0,z=1,dt=!1,Gt=0,Ut=0,oi=.5;function yi(){var xi=O().length,Ai=z=1)return+o(m[b-1],b-1,m);var b,z=(b-1)*O,$=Math.floor(z),Ne=+o(m[$],$,m);return Ne+(+o(m[$+1],$+1,m)-Ne)*(z-$)}}function V3(){var b,m=[],O=[],o=[];function z(){var Ne=0,dt=Math.max(1,O.length);for(o=new Array(dt-1);++Ne0?o[dt-1]:m[0],dt{return(m=er||(er={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",m.Center="center",er;var m})();function C0(m,O,o){return o===er.Top?m.top-7:o===er.Bottom?m.top+m.height-O.height+7:o===er.Center?m.top+m.height/2-O.height/2:void 0}function M0(m,O,o){return o===er.Left?m.left-7:o===er.Right?m.left+m.width-O.width+7:o===er.Center?m.left+m.width/2-O.width/2:void 0}class xs{static calculateVerticalAlignment(O,o,b){let z=C0(O,o,b);return z+o.height>window.innerHeight&&(z=window.innerHeight-o.height),z}static calculateVerticalCaret(O,o,b,z){let $;z===er.Top&&($=O.height/2-b.height/2+7),z===er.Bottom&&($=o.height-O.height/2-b.height/2-7),z===er.Center&&($=o.height/2-b.height/2);const Ne=C0(O,o,z);return Ne+o.height>window.innerHeight&&($+=Ne+o.height-window.innerHeight),$}static calculateHorizontalAlignment(O,o,b){let z=M0(O,o,b);return z+o.width>window.innerWidth&&(z=window.innerWidth-o.width),z}static calculateHorizontalCaret(O,o,b,z){let $;z===er.Left&&($=O.width/2-b.width/2+7),z===er.Right&&($=o.width-O.width/2-b.width/2-7),z===er.Center&&($=o.width/2-b.width/2);const Ne=M0(O,o,z);return Ne+o.width>window.innerWidth&&($+=Ne+o.width-window.innerWidth),$}static shouldFlip(O,o,b,z){let $=!1;return b===er.Right&&O.left+O.width+o.width+z>window.innerWidth&&($=!0),b===er.Left&&O.left-o.width-z<0&&($=!0),b===er.Top&&O.top-o.height-z<0&&($=!0),b===er.Bottom&&O.top+O.height+o.height+z>window.innerHeight&&($=!0),$}static positionCaret(O,o,b,z,$){let Ne=0,dt=0;return O===er.Right?(dt=-7,Ne=xs.calculateVerticalCaret(b,o,z,$)):O===er.Left?(dt=o.width,Ne=xs.calculateVerticalCaret(b,o,z,$)):O===er.Top?(Ne=o.height,dt=xs.calculateHorizontalCaret(b,o,z,$)):O===er.Bottom&&(Ne=-7,dt=xs.calculateHorizontalCaret(b,o,z,$)),{top:Ne,left:dt}}static positionContent(O,o,b,z,$){let Ne=0,dt=0;return O===er.Right?(dt=b.left+b.width+z,Ne=xs.calculateVerticalAlignment(b,o,$)):O===er.Left?(dt=b.left-o.width-z,Ne=xs.calculateVerticalAlignment(b,o,$)):O===er.Top?(Ne=b.top-o.height-z,dt=xs.calculateHorizontalAlignment(b,o,$)):O===er.Bottom&&(Ne=b.top+b.height+z,dt=xs.calculateHorizontalAlignment(b,o,$)),{top:Ne,left:dt}}static determinePlacement(O,o,b,z){if(xs.shouldFlip(b,o,O,z)){if(O===er.Right)return er.Left;if(O===er.Left)return er.Right;if(O===er.Top)return er.Bottom;if(O===er.Bottom)return er.Top}return O}}let w0=(()=>{class m{constructor(o,b,z){this.element=o,this.renderer=b,this.platformId=z}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const o=this.element.nativeElement,b=this.host.nativeElement.getBoundingClientRect();if(!b.height&&!b.width)return;const z=o.getBoundingClientRect();this.checkFlip(b,z),this.positionContent(o,b,z),this.showCaret&&this.positionCaret(b,z),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,b,z){const{top:$,left:Ne}=xs.positionContent(this.placement,z,b,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${$}px`),this.renderer.setStyle(o,"left",`${Ne}px`)}positionCaret(o,b){const z=this.caretElm.nativeElement,$=z.getBoundingClientRect(),{top:Ne,left:dt}=xs.positionCaret(this.placement,b,o,$,this.alignment);this.renderer.setStyle(z,"top",`${Ne}px`),this.renderer.setStyle(z,"left",`${dt}px`)}checkFlip(o,b){this.placement=xs.determinePlacement(this.placement,b,o,this.spacing)}onWindowResize(){this.position()}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,b){if(1&o&&t.Gf(mu,5),2&o){let z;t.iGM(z=t.CRH())&&(b.caretElm=z.first)}},hostVars:2,hostBindings:function(o,b){1&o&&t.NdJ("resize",function(){return b.onWindowResize()},!1,t.Jf7),2&o&&t.Tol(b.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",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(o,b){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,U3,2,4,"span",3),t.YNc(5,G3,1,1,"span",4),t.qZA()()),2&o&&(t.xp6(1),t.Gre("tooltip-caret position-",b.placement,""),t.Q6J("hidden",!b.showCaret),t.xp6(3),t.Q6J("ngIf",!b.title),t.xp6(1),t.Q6J("ngIf",b.title))},directives:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.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-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.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-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.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{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,f.gn)([Od(100)],m.prototype,"onWindowResize",null),m})(),S0=(()=>{class m{constructor(o,b,z){this.applicationRef=o,this.componentFactoryResolver=b,this.injector=z}static setGlobalRootViewContainer(o){m.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(m.globalRootViewContainer)return m.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(o){this._container=o}getComponentRootNode(o){return function Ch(m){return m.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,b){if(b){if(void 0!==b.inputs){const z=Object.getOwnPropertyNames(b.inputs);for(const $ of z)o.instance[$]=b.inputs[$]}if(void 0!==b.outputs){const z=Object.getOwnPropertyNames(b.outputs);for(const $ of z)o.instance[$]=b.outputs[$]}}return o}appendComponent(o,b={},z){z||(z=this.getRootViewContainer());const $=this.getComponentRootNode(z),Ne=new M.u0($,this.componentFactoryResolver,this.applicationRef,this.injector),dt=new M.C5(o),Gt=Ne.attach(dt);return this.projectComponentBindings(Gt,b),Gt}}return m.globalRootViewContainer=null,m.\u0275fac=function(o){return new(o||m)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})(),E0=(()=>{class m extends class Pd{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const b=this.injectComponent(O,o);return this.register(O,b),b}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const b=o.indexOf(O);b>-1&&(o[b].destroy(),o.splice(b,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let b=o.length-1;for(;b>=0;)this.destroy(o[b--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),b=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),b&&(O.outputs=Object.assign(Object.assign({},b),O.outputs)),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=w0}}return m.\u0275fac=function(o){return new(o||m)(t.LFG(S0))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})();var Ns=(()=>{return(m=Ns||(Ns={})).Right="right",m.Below="below",Ns;var m})(),gl=(()=>{return(m=gl||(gl={})).ScaleLegend="scaleLegend",m.Legend="legend",gl;var m})(),Dn=(()=>{return(m=Dn||(Dn={})).Time="time",m.Linear="linear",m.Ordinal="ordinal",m.Quantile="quantile",Dn;var m})();let T0=(()=>{class m{constructor(){this.horizontal=!1}ngOnChanges(o){const b=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${b})`}gradientString(o,b){b.push(1);const z=[];return o.reverse().forEach(($,Ne)=>{z.push(`${$} ${Math.round(100*b[Ne])}%`)}),z.join(", ")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,b){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&o&&(t.Udp("height",b.horizontal?void 0:b.height,"px")("width",b.width,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(3),t.Oqu(b.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",b.gradient),t.xp6(3),t.Oqu(b.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),m})();function Ic(m){return m instanceof Date?m.toLocaleDateString():m.toLocaleString()}let I1=(()=>{class m{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,b){1&o&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},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(o,b){1&o&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return b.select.emit(b.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return b.toggle.emit(b.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&o&&(t.ekj("active",b.isActive),t.Q6J("title",b.formattedLabel),t.xp6(1),t.Udp("background-color",b.color),t.xp6(2),t.hij(" ",b.trimmedLabel," "))},encapsulation:2,changeDetection:0}),m})(),kd=(()=>{class m{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const b of this.data){const z=Ic(b);-1===o.findIndex(Ne=>Ne.label===z)&&o.push({label:b,formattedLabel:z,color:this.colors.getColor(b)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(z=>o.label===z.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,b){return b.label}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.sBO))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.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(o,b){1&o&&(t.TgZ(0,"div"),t.YNc(1,Kn,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,Z3,2,4,"li",3),t.qZA()()()),2&o&&(t.Udp("width",b.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==b.title?null:b.title.length)>0),t.xp6(2),t.Udp("max-height",b.height-45,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(1),t.Q6J("ngForOf",b.legendEntries)("ngForTrackBy",b.trackBy))},directives:[I1,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),m})(),Nd=(()=>{class m{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Ns,this.LegendType=gl}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ns.Right)&&(o=this.legendType===gl.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ns.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===Dn.Linear?gl.ScaleLegend:gl.Legend}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([E0]),t.TTD],ngContentSelectors:_c,decls:5,vars:6,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(o,b){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,W3,1,5,"ngx-charts-scale-legend",2),t.YNc(4,Y3,1,7,"ngx-charts-legend",3),t.qZA()),2&o&&(t.Udp("width",b.view[0],"px"),t.xp6(1),t.uIk("width",b.chartWidth)("height",b.view[1]),t.xp6(2),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.Legend))},directives:[T0,kd,e.O5],encapsulation:2,changeDetection:0}),m})(),tp=(()=>{class m{constructor(o,b){this.element=o,this.zone=b,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:b,offsetWidth:z}=this.element.nativeElement;b&&z?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b))},m.\u0275dir=t.lG2({type:m,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),m})();function Mh(m){return"[object Date]"===toString.call(m)}let O1=(()=>{class m{constructor(o,b,z,$){this.chartElement=o,this.zone=b,this.cd=z,this.platformId=$,this.scheme="cool",this.schemeType=Dn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new tp(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(o){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 o=this.getContainerDims();o&&(this.width=o.width,this.height=o.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 o,b;const z=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==z.parentNode){const $=z.parentNode.getBoundingClientRect();o=$.width,b=$.height}return o&&b?{width:o,height:b}:null}formatDates(){for(let o=0;o{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=b}cloneData(o){const b=[];for(const z of o){const $={name:z.name};if(void 0!==z.value&&($.value=z.value),void 0!==z.series){$.series=[];for(const Ne of z.series){const dt=Object.assign({},Ne);$.series.push(dt)}}void 0!==z.extra&&($.extra=JSON.parse(JSON.stringify(z.extra))),b.push($)}return b}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(o,b){1&o&&t._UZ(0,"div")},encapsulation:2}),m})();var Ua=(()=>{return(m=Ua||(Ua={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",Ua;var m})();let P1=(()=>{class m{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Ua.Top:case Ua.Bottom:this.y=this.offset,this.x=this.width/2;break;case Ua.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Ua.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Qs,decls:2,vars:6,template:function(o,b){1&o&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&o&&(t.uIk("stroke-width",b.strokeWidth)("x",b.x)("y",b.y)("text-anchor",b.textAnchor)("transform",b.transform),t.xp6(1),t.hij(" ",b.label," "))},encapsulation:2,changeDetection:0}),m})();function Zo(m,O=16){return"string"!=typeof m?"number"==typeof m?m+"":"":(m=m.trim()).length<=O?m:`${m.slice(0,O)}...`}function Rd(m,O){if(m.length>O){const o=[],b=Math.floor(m.length/O);for(let z=0;z{return(m=Rs||(Rs={})).Start="start",m.Middle="middle",m.End="end",Rs;var m})();let Hd=(()=>{class m{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Rs.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(z){return"Date"===z.constructor.name?z.toLocaleDateString():z.toLocaleString()};const b=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(z){return this.scale(z)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",b&&0!==b?(this.textTransform=`rotate(${b})`,this.textAnchor=Rs.End,this.verticalSpacing=10):this.textAnchor=Rs.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let b=0;this.maxTicksLength=0;for(let Ut=0;Utthis.maxTicksLength&&(this.maxTicksLength=yi)}const Ne=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let dt=Ne;const Gt=Math.floor(this.width/o.length);for(;dt>Gt&&b>-90;)b-=30,dt=Math.cos(b*(Math.PI/180))*Ne;return this.approxHeight=Math.max(Math.abs(Math.sin(b*(Math.PI/180))*Ne),10),b}getTicks(){let o;const b=this.getMaxTicks(20),z=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[z]):(o=this.scale.domain(),o=Rd(o,b)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?Zo(o,this.maxTickLength):o}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,b){if(1&o&&t.Gf(G2,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksElement=z.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:_u,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,Z2,5,7,"g",1),t.qZA(),t.YNc(3,W2,2,2,"g",2)),2&o&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.ticks))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),A0=(()=>{class m{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Ua.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new t.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Ua}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const b=o+25+5;b!==this.labelOffset&&(this.labelOffset=b,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,b){if(1&o&&t.Gf(Hd,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksComponent=z.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:j3,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Y2,1,12,"g",0),t.YNc(2,vu,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",b.xAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},directives:[Hd,P1,e.O5],encapsulation:2,changeDetection:0}),m})();function qs(m,O,o,b,z,[$,Ne,dt,Gt]){let Ut="";return Ut=`M${[m+z,O]}`,Ut+="h"+((o=0===(o=Math.floor(o))?1:o)-2*z),Ut+=Ne?`a${[z,z]} 0 0 1 ${[z,z]}`:`h${z}v${z}`,Ut+="v"+((b=0===(b=Math.floor(b))?1:b)-2*z),Ut+=Gt?`a${[z,z]} 0 0 1 ${[-z,z]}`:`v${z}h${-z}`,Ut+="h"+(2*z-o),Ut+=dt?`a${[z,z]} 0 0 1 ${[-z,-z]}`:`h${-z}v${-z}`,Ut+="v"+(2*z-b),Ut+=$?`a${[z,z]} 0 0 1 ${[z,-z]}`:`v${-z}h${z}`,Ut+="z",Ut}let Fd=(()=>{class m{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Rs.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Ua}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const b=this.orient===Ua.Top||this.orient===Ua.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(z){return"Date"===z.constructor.name?z.toLocaleDateString():z.toLocaleString()},this.adjustedScale=o.bandwidth?function(z){return o(z)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Ua.Top:case Ua.Bottom:this.transform=function(z){return"translate("+this.adjustedScale(z)+",0)"},this.textAnchor=Rs.Middle,this.y2=this.innerTickSize*b,this.y1=this.tickSpacing*b,this.dy=b<0?"0em":".71em";break;case Ua.Left:this.transform=function(z){return"translate(0,"+this.adjustedScale(z)+")"},this.textAnchor=Rs.End,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em";break;case Ua.Right:this.transform=function(z){return"translate(0,"+this.adjustedScale(z)+")"},this.textAnchor=Rs.Start,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=qs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const b=this.getMaxTicks(20),z=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[z]):(o=this.scale.domain(),o=Rd(o,b)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?Zo(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(z=>this.tickTrim(this.tickFormat(z)).length))}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,b){if(1&o&&t.Gf(G2,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksElement=z.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:K3,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,j2,5,9,"g",1),t.qZA(),t.YNc(3,v1,1,2,"path",2),t.YNc(4,Q2,2,2,"g",3),t.YNc(5,bu,2,1,"g",3)),2&o&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngIf",b.referenceLineLength>1&&b.refMax&&b.refMin&&b.showRefLines),t.xp6(1),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.referenceLines))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),k1=(()=>{class m{constructor(){this.showGridLines=!1,this.yOrient=Ua.Left,this.yAxisOffset=0,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Ua.Right?(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:o}){o!==this.labelOffset&&this.yOrient===Ua.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,b){if(1&o&&t.Gf(Fd,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksComponent=z.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:xu,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Q3,1,14,"g",0),t.YNc(2,q3,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",b.yAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.yScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},directives:[Fd,P1,e.O5],encapsulation:2,changeDetection:0}),m})(),zd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez]]}),m})();var _l=(()=>{return(m=_l||(_l={})).popover="popover",m.tooltip="tooltip",_l;var m})(),Wo=(()=>{return(m=Wo||(Wo={}))[m.all="all"]="all",m[m.focus="focus"]="focus",m[m.mouseover="mouseover"]="mouseover",Wo;var m})();let N1=(()=>{class m{constructor(o,b,z){this.tooltipService=o,this.viewContainerRef=b,this.renderer=z,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=er.Top,this.tooltipAlignment=er.Center,this.tooltipType=_l.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Wo.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Wo.all||this.tooltipShowEvent===Wo.focus}get listensForHover(){return this.tooltipShowEvent===Wo.all||this.tooltipShowEvent===Wo.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const b=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const z=this.createBoundOptions();this.component=this.tooltipService.create(z),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},b)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",b=>{o.contains(b.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const b=()=>{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),o?b():this.timeout=setTimeout(b,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 m.\u0275fac=function(o){return new(o||m)(t.Y36(E0),t.Y36(t.s_b),t.Y36(t.Qsj))},m.\u0275dir=t.lG2({type:m,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,b){1&o&&t.NdJ("focusin",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function($){return b.onMouseLeave($.target)})("click",function(){return b.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",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),m})(),Vd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({providers:[S0,E0],imports:[[e.ez]]}),m})();const L0={};function Pc(){let m=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return m=`a${m}`,L0[m]?Pc():(L0[m]=!0,m)}var Qr=(()=>{return(m=Qr||(Qr={})).Vertical="vertical",m.Horizontal="horizontal",Qr;var m})();let kc=(()=>{class m{constructor(){this.orientation=Qr.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Qr.Horizontal?this.x2="100%":this.orientation===Qr.Vertical&&(this.y1="100%")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:_6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,b){1&o&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,J3,1,5,"stop",1),t.qZA()),2&o&&(t.Q6J("id",b.name),t.uIk("x1",b.x1)("y1",b.y1)("x2",b.x2)("y2",b.y2),t.xp6(1),t.Q6J("ngForOf",b.stops))},directives:[e.sg],encapsulation:2,changeDetection:0}),m})(),Bd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Cu,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,b){1&o&&(t.O4$(),t._UZ(0,"rect",0)),2&o&&t.uIk("height",b.height)("width",b.width)("x",b.x)("y",b.y)},encapsulation:2,changeDetection:0}),m})();var Nc=(()=>{return(m=Nc||(Nc={})).Odd="odd",m.Even="even",Nc;var m})();let Ul,vl=(()=>{class m{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let b,z,$,Ne,dt,Gt=Nc.Odd;if(this.orient===Qr.Vertical){const Ut=this.xScale(o.name);Number.parseInt((Ut/this.xScale.step()).toString(),10)%2==1&&(Gt=Nc.Even),b=this.xScale.bandwidth()*this.xScale.paddingInner(),z=this.xScale.bandwidth()+b,$=this.dims.height,Ne=this.xScale(o.name)-b/2,dt=0}else if(this.orient===Qr.Horizontal){const Ut=this.yScale(o.name);Number.parseInt((Ut/this.yScale.step()).toString(),10)%2==1&&(Gt=Nc.Even),b=this.yScale.bandwidth()*this.yScale.paddingInner(),z=this.dims.width,$=this.yScale.bandwidth()+b,Ne=0,dt=this.yScale(o.name)-b/2}return{name:o.name,class:Gt,height:$,width:z,x:Ne,y:dt}})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:b6,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(o,b){1&o&&t.YNc(0,x6,1,10,"g",0),2&o&&t.Q6J("ngForOf",b.gridPanels)},directives:[Bd,e.sg],encapsulation:2,changeDetection:0}),m})();"undefined"!=typeof window?Ul=window:"undefined"!=typeof global&&(Ul=global);let hs=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez,zd,Vd],e.ez,zd,Vd]}),m})();function k0({width:m,height:O,margins:o,showXAxis:b=!1,showYAxis:z=!1,xAxisHeight:$=0,yAxisWidth:Ne=0,showXLabel:dt=!1,showYLabel:Gt=!1,showLegend:Ut=!1,legendType:oi=Dn.Ordinal,legendPosition:yi=Ns.Right,columns:xi=12}){let Ai=o[3],tn=m,Mn=O-o[0]-o[2];return Ut&&yi===Ns.Right&&(xi-=oi===Dn.Ordinal?2:1),tn=tn*xi/12,tn=tn-o[1]-o[3],b&&(Mn-=5,Mn-=$,dt&&(Mn-=30)),z&&(tn-=5,tn-=Ne,Ai+=Ne,Ai+=10,Gt&&(tn-=30,Ai+=30)),tn=Math.max(0,tn),Mn=Math.max(0,Mn),{width:Math.floor(tn),height:Math.floor(Mn),xOffset:Math.floor(Ai)}}let N0=[{name:"vivid",selectable:!0,group:Dn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:Dn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:Dn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:Dn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:Dn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:Dn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:Dn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:Dn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:Dn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:Dn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:Dn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:Dn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:Dn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:Dn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:Dn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class z1{constructor(O,o,b,z){"string"==typeof O&&(O=N0.find($=>$.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=b,this.customColors=z,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,b){let z;switch("string"==typeof O&&(O=N0.find($=>$.name===O)),o){case Dn.Quantile:z=V3().range(O.domain).domain(b);break;case Dn.Ordinal:z=U2().range(O.domain).domain(b);break;case Dn.Linear:{const $=[...O.domain];1===$.length&&($.push($[0]),this.colorDomain=$);const Ne=V2(0,1,1/$.length);z=zo().range($).domain(Ne)}}return z}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===Dn.Linear){const o=zo().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let b;return this.customColors&&this.customColors.length>0&&(b=this.customColors.find(z=>z.name.toLowerCase()===o.toLowerCase())),b?b.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const b=zo().domain(this.domain).range([0,1]),z=Vo().domain(this.colorDomain).range([0,1]),$=this.getColor(O),Ne=b(o),dt=this.getColor(o),Gt=b(O);let Ut=1,oi=Ne;const yi=[];for(yi.push({color:dt,offset:Ne,originalOffset:Ne,opacity:1});oi=(Gt-z.bandwidth()).toFixed(4))break;yi.push({color:xi,offset:Ai,opacity:1}),oi=Ai,Ut++}}if(yi[yi.length-1].offset<100&&yi.push({color:$,offset:Gt,opacity:1}),Gt===Ne)yi[0].offset=0,yi[1].offset=100;else if(100!==yi[yi.length-1].offset)for(const xi of yi)xi.offset=(xi.offset-Ne)/(Gt-Ne)*100;return yi}}let Fc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),R0=(()=>{class m{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Pc().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 o=function on(m){return"string"==typeof m?new bi([[document.querySelector(m)]],[document.documentElement]):new bi([[m]],Bt)}(this.element).select(".bar"),b=this.getPath();this.animations?o.transition().duration(500).attr("d",b):o.attr("d",b)}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 b,o=this.getRadius();return this.roundEdges?this.orientation===Qr.Vertical?(o=Math.min(this.height,o),b=qs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Qr.Horizontal&&(o=Math.min(this.width,o),b=qs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Qr.Vertical?b=qs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Qr.Horizontal&&(b=qs(this.x,this.y,1,this.height,0,this.edges)),b}getPath(){let b,o=this.getRadius();return this.roundEdges?this.orientation===Qr.Vertical?(o=Math.min(this.height,o),b=qs(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===Qr.Horizontal&&(o=Math.min(this.width,o),b=qs(this.x,this.y,this.width,this.height,o,this.edges)):b=qs(this.x,this.y,this.width,this.height,o,this.edges),b}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Qr.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Qr.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Qr.Vertical&&0===this.height||this.orientation===Qr.Horizontal&&0===this.width)}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,b){1&o&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:Ou,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(o,b){1&o&&(t.YNc(0,bs,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return b.select.emit(b.data)}),t.qZA()),2&o&&(t.Q6J("ngIf",b.hasGradient),t.xp6(1),t.ekj("active",b.isActive)("hidden",b.hideBar),t.uIk("d",b.path)("aria-label",b.ariaLabel)("fill",b.hasGradient?b.gradientFill:b.fill))},directives:[kc,e.O5],encapsulation:2,changeDetection:0}),m})();var Js=(()=>{return(m=Js||(Js={})).Standard="standard",m.Normalized="normalized",m.Stacked="stacked",Js;var m})(),uo=(()=>{return(m=uo||(uo={})).positive="positive",m.negative="negative",uo;var m})();let Xd=(()=>{class m{constructor(o){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){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):Ic(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 m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,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:[t.TTD],attrs:Pu,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,b){1&o&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&o&&(t.uIk("text-anchor",b.textAnchor)("transform",b.transform)("x",b.x)("y",b.y),t.xp6(1),t.hij(" ",b.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),m})(),$d=(()=>{class m{constructor(o){this.platformId=o,this.type=Js.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=Qr,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const b=Math.max(this.yScale.domain()[0],0),z={[uo.positive]:0,[uo.negative]:0};let Ne,$=uo.positive;this.type===Js.Normalized&&(Ne=this.series.map(dt=>dt.value).reduce((dt,Gt)=>dt+Gt,0)),this.bars=this.series.map((dt,Gt)=>{let Ut=dt.value;const oi=this.getLabel(dt),yi=Ic(oi);$=Ut>0?uo.positive:uo.negative;const Ai={value:Ut,label:oi,roundEdges:this.roundEdges,data:dt,width:o,formattedLabel:yi,height:0,x:0,y:0};if(this.type===Js.Standard)Ai.height=Math.abs(this.yScale(Ut)-this.yScale(b)),Ai.x=this.xScale(oi),Ai.y=this.yScale(Ut<0?0:Ut);else if(this.type===Js.Stacked){const Mn=z[$],Li=Mn+Ut;z[$]+=Ut,Ai.height=this.yScale(Mn)-this.yScale(Li),Ai.x=0,Ai.y=this.yScale(Li),Ai.offset0=Mn,Ai.offset1=Li}else if(this.type===Js.Normalized){let Mn=z[$],Li=Mn+Ut;z[$]+=Ut,Ne>0?(Mn=100*Mn/Ne,Li=100*Li/Ne):(Mn=0,Li=0),Ai.height=this.yScale(Mn)-this.yScale(Li),Ai.x=0,Ai.y=this.yScale(Li),Ai.offset0=Mn,Ai.offset1=Li,Ut=(Li-Mn).toFixed(2)+"%"}this.colors.scaleType===Dn.Ordinal?Ai.color=this.colors.getColor(oi):this.type===Js.Standard?(Ai.color=this.colors.getColor(Ut),Ai.gradientStops=this.colors.getLinearGradientStops(Ut)):(Ai.color=this.colors.getColor(Ai.offset1),Ai.gradientStops=this.colors.getLinearGradientStops(Ai.offset1,Ai.offset0));let tn=yi;return Ai.ariaLabel=yi+" "+Ut.toLocaleString(),null!=this.seriesName&&(tn=`${this.seriesName} \u2022 ${yi}`,Ai.data.series=this.seriesName,Ai.ariaLabel=this.seriesName+" "+Ai.ariaLabel),Ai.tooltipText=this.tooltipDisabled?void 0:`\n ${function Oc(m){return m.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(tn)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Ut):Ut.toLocaleString()}\n `,Ai}),this.updateDataLabels()}updateDataLabels(){if(this.type===Js.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const b=this.series.map($=>$.value).reduce(($,Ne)=>Ne>0?$+Ne:$,0),z=this.series.map($=>$.value).reduce(($,Ne)=>Ne<0?$+Ne:$,0);o.total=b+z,o.x=0,o.y=0,o.height=this.yScale(o.total>0?b:z),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var b;const z={};return z.series=null!==(b=this.seriesName)&&void 0!==b?b:o.label,z.total=o.value,z.x=this.xScale(o.label),z.y=this.yScale(0),z.height=this.yScale(z.total)-this.yScale(0),z.width=this.xScale.bandwidth(),z})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:er.Top,this.tooltipType=this.tooltipDisabled?void 0:_l.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(z=>o.name===z.name&&o.value===z.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,b){return b.label}trackDataLabelBy(o,b){return o+"#"+b.series+"#"+b.total}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:l0,decls:3,vars:3,consts:[[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",4,"ngFor","ngForOf","ngForTrackBy"],["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(o,b){1&o&&(t.YNc(0,Gu,2,2,"g",0),t.YNc(1,c0,2,2,"g",0),t.YNc(2,Wu,2,2,"g",0)),2&o&&(t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR),t.xp6(1),t.Q6J("ngIf",b.showDataLabel))},directives:[R0,Xd,e.O5,e.sg,N1],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1}),(0,d.jt)(500,(0,d.oB)({opacity:0}))])])]},changeDetection:0}),m})(),Oh=(()=>{class m extends O1{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ns.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 t.vpe,this.deactivate=new t.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=k0({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 o=this.xDomain.length/(this.dims.width/this.barPadding+1);return Vo().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=zo().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map($=>$.value);let b=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(b=Math.min(b,...this.yAxisTicks));let z=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(z=Math.max(z,...this.yAxisTicks)),[b,z]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===Dn.Ordinal?this.xDomain:this.yDomain,this.colors=new z1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Dn.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,b=!1){o=this.results.find($=>b?$.label===o.name:$.name===o.name),!(this.activeEntries.findIndex($=>$.name===o.name&&$.value===o.value&&$.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,b=!1){o=this.results.find($=>b?$.label===o.name:$.name===o.name);const z=this.activeEntries.findIndex($=>$.name===o.name&&$.value===o.value&&$.series===o.series);this.activeEntries.splice(z,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(b){return(O||(O=t.n5z(m)))(b||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,b,z){if(1&o&&t.Suo(z,rd,5),2&o){let $;t.iGM($=t.CRH())&&(b.tooltipTemplate=$.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.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","showGridLines","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","showGridLines","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(o,b){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function($){return b.onClick($)})("legendLabelActivate",function($){return b.onActivate($,!0)})("legendLabelDeactivate",function($){return b.onDeactivate($,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,S1,1,11,"g",2),t.YNc(3,yc,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function($){return b.onActivate($)})("deactivate",function($){return b.onDeactivate($)})("select",function($){return b.onClick($)})("dataLabelHeightChanged",function($){return b.onDataLabelMaxHeightChanged($)}),t.qZA()()()),2&o&&(t.Q6J("view",t.WLB(22,ks,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("series",b.results)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("activeEntries",b.activeEntries)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero))},directives:[Nd,A0,k1,$d,e.O5],styles:[od],encapsulation:2,changeDetection:0}),m})(),e4=(()=>{class m extends O1{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ns.Right,this.tooltipDisabled=!1,this.scaleType=Dn.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 t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Qr,this.trackBy=(o,b)=>b.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!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=k0({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.valueDomain=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(o,b){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),b===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Vo().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),b=this.innerDomain.length/(o/this.barPadding+1);return Vo().rangeRound([0,o]).paddingInner(b).domain(this.innerDomain)}getValueScale(){const o=zo().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const b of this.results)o.includes(b.label)||o.push(b.label);return o}getInnerDomain(){const o=[];for(const b of this.results)for(const z of b.series)o.includes(z.label)||o.push(z.label);return o}getValueDomain(){const o=[];for(const $ of this.results)for(const Ne of $.series)o.includes(Ne.value)||o.push(Ne.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,b){b&&(o.series=b.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===Dn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new z1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Dn.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,b,z=!1){const $=Object.assign({},o);b&&($.series=b.name);const Ne=this.results.map(dt=>dt.series).flat().filter(dt=>z?dt.label===$.name:dt.name===$.name&&dt.series===$.series);this.activeEntries=[...Ne],this.activate.emit({value:$,entries:this.activeEntries})}onDeactivate(o,b,z=!1){const $=Object.assign({},o);b&&($.series=b.name),this.activeEntries=this.activeEntries.filter(Ne=>z?Ne.label!==$.name:!(Ne.name===$.name&&Ne.series===$.series)),this.deactivate.emit({value:$,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(b){return(O||(O=t.n5z(m)))(b||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,b,z){if(1&o&&t.Suo(z,rd,5),2&o){let $;t.iGM($=t.CRH())&&(b.tooltipTemplate=$.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["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"],[4,"ngIf"],["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",4,"ngFor","ngForOf","ngForTrackBy"],["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(o,b){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function($){return b.onActivate($,void 0,!0)})("legendLabelDeactivate",function($){return b.onDeactivate($,void 0,!0)})("legendLabelClick",function($){return b.onClick($)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,Yu,1,10,"g",3),t.YNc(4,d0,1,9,"g",4),t.YNc(5,fd,2,2,"g",5),t.qZA(),t.YNc(6,H6,2,2,"g",5),t.qZA()),2&o&&(t.Q6J("view",t.WLB(15,ks,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("xScale",b.groupScale)("yScale",b.valueScale)("data",b.results)("dims",b.dims)("orient",b.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR))},directives:[Nd,vl,A0,k1,$d,e.O5,e.sg],styles:[od],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1,transform:"*"}),(0,d.jt)(500,(0,d.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),m})(),H0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),kh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),Hh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),op=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),z0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})();Math;let Vc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),Yh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs,Vc,z0]]}),m})(),Z0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),s4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),$h=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs,Vc,H0]]}),m})(),tf=(()=>{class m{constructor(){!function ef(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[hs,Fc,H0,kh,Hh,op,z0,Yh,Z0,Vc,s4,$h]}),m})()},159:(Be,K,p)=>{"use strict";p.d(K,{OF:()=>L,uU:()=>h});var t=p(5e3),e=p(9808),f=p(655),M=p(3259);function a(w,D){if(1&w&&t._UZ(0,"canvas",1),2&w){const S=t.oxw();t.Q6J("qrCode",S.value)("qrCodeErrorCorrectionLevel",S.errorCorrectionLevel)("qrCodeCenterImageSrc",S.centerImageSrc)("qrCodeCenterImageWidth",S.centerImageSize)("qrCodeCenterImageHeight",S.centerImageSize)("qrCodeMargin",S.margin)("width",S.size)("height",S.size)("darkColor",S.darkColor)("lightColor",S.lightColor)}}const C=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class w{constructor(S){this.viewContainerRef=S,this.errorCorrectionLevel=w.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var S,k;return(0,f.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const E=this.viewContainerRef.element.nativeElement;if(!E)return;const B=E.getContext("2d");B&&B.clearRect(0,0,B.canvas.width,B.canvas.height);const Z=null!==(S=this.errorCorrectionLevel)&&void 0!==S?S:w.DEFAULT_ERROR_CORRECTION_LEVEL,Y=C.test(this.darkColor)?this.darkColor:void 0,ae=C.test(this.lightColor)?this.lightColor:void 0;(0,t.X6Q)()&&(!Y&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ae&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield M.toCanvas(E,this.value,{version:this.version,errorCorrectionLevel:Z,width:this.width,margin:this.margin,color:{dark:Y,light:ae}});const ee=this.centerImageSrc,ue=R(this.centerImageWidth,w.DEFAULT_CENTER_IMAGE_SIZE),ne=R(this.centerImageHeight,w.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&B){this.centerImage||(this.centerImage=new Image(ue,ne)),ee!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=ee),ue!==this.centerImage.width&&(this.centerImage.width=ue),ne!==this.centerImage.height&&(this.centerImage.height=ne);const re=this.centerImage;re.onload=()=>{B.drawImage(re,E.width/2-ue/2,E.height/2-ne/2,ue,ne)}}})}}return w.DEFAULT_ERROR_CORRECTION_LEVEL="M",w.DEFAULT_CENTER_IMAGE_SIZE=40,w.\u0275fac=function(S){return new(S||w)(t.Y36(t.s_b))},w.\u0275dir=t.lG2({type:w,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[t.TTD]}),w})();function R(w,D){return void 0===w||""===w?D:"string"==typeof w?parseInt(w,10):w}let h=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(S,k){1&S&&t.YNc(0,a,1,10,"canvas",0),2&S&&t.Q6J("ngIf",k.value)},directives:[e.O5,d],encapsulation:2}),w})(),L=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[e.ez]]}),w})()},8129:(Be,K,p)=>{"use strict";p.d(K,{op:()=>ti,$V:()=>ye,Xd:()=>Ft});var t=p(7579),e=p(4968),f=p(3601),M=p(2722),a=p(5e3),C=p(9808);function d(nt){return getComputedStyle(nt)}function R(nt,He){for(var rt in He){var et=He[rt];"number"==typeof et&&(et+="px"),nt.style[rt]=et}return nt}function h(nt){var He=document.createElement("div");return He.className=nt,He}var L="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function w(nt,He){if(!L)throw new Error("No element matching method supported");return L.call(nt,He)}function D(nt){nt.remove?nt.remove():nt.parentNode&&nt.parentNode.removeChild(nt)}function S(nt,He){return Array.prototype.filter.call(nt.children,function(rt){return w(rt,He)})}var k_element_thumb=function(nt){return"ps__thumb-"+nt},k_element_rail=function(nt){return"ps__rail-"+nt},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(nt){return"ps--active-"+nt},k_state_scrolling=function(nt){return"ps--scrolling-"+nt},E={x:null,y:null};function B(nt,He){var rt=nt.element.classList,et=k_state_scrolling(He);rt.contains(et)?clearTimeout(E[He]):rt.add(et)}function Z(nt,He){E[He]=setTimeout(function(){return nt.isAlive&&nt.element.classList.remove(k_state_scrolling(He))},nt.settings.scrollingThreshold)}var ae=function(He){this.element=He,this.handlers={}},ee={isEmpty:{configurable:!0}};ae.prototype.bind=function(He,rt){void 0===this.handlers[He]&&(this.handlers[He]=[]),this.handlers[He].push(rt),this.element.addEventListener(He,rt,!1)},ae.prototype.unbind=function(He,rt){var et=this;this.handlers[He]=this.handlers[He].filter(function(Ae){return!(!rt||Ae===rt)||(et.element.removeEventListener(He,Ae,!1),!1)})},ae.prototype.unbindAll=function(){for(var He in this.handlers)this.unbind(He)},ee.isEmpty.get=function(){var nt=this;return Object.keys(this.handlers).every(function(He){return 0===nt.handlers[He].length})},Object.defineProperties(ae.prototype,ee);var ue=function(){this.eventElements=[]};function ne(nt){if("function"==typeof window.CustomEvent)return new CustomEvent(nt);var He=document.createEvent("CustomEvent");return He.initCustomEvent(nt,!1,!1,void 0),He}function re(nt,He,rt,et,Ae){var Ge;if(void 0===et&&(et=!0),void 0===Ae&&(Ae=!1),"top"===He)Ge=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==He)throw new Error("A proper axis should be provided");Ge=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ge(nt,He,rt,et,Ae){var Ge=rt[0],ot=rt[1],lt=rt[2],Ct=rt[3],mi=rt[4],Jt=rt[5];void 0===et&&(et=!0),void 0===Ae&&(Ae=!1);var ei=nt.element;nt.reach[Ct]=null,ei[lt]<1&&(nt.reach[Ct]="start"),ei[lt]>nt[Ge]-nt[ot]-1&&(nt.reach[Ct]="end"),He&&(ei.dispatchEvent(ne("ps-scroll-"+Ct)),He<0?ei.dispatchEvent(ne("ps-scroll-"+mi)):He>0&&ei.dispatchEvent(ne("ps-scroll-"+Jt)),et&&function Y(nt,He){B(nt,He),Z(nt,He)}(nt,Ct)),nt.reach[Ct]&&(He||Ae)&&ei.dispatchEvent(ne("ps-"+Ct+"-reach-"+nt.reach[Ct]))}(nt,rt,Ge,et,Ae)}function q(nt){return parseInt(nt,10)||0}ue.prototype.eventElement=function(He){var rt=this.eventElements.filter(function(et){return et.element===He})[0];return rt||(rt=new ae(He),this.eventElements.push(rt)),rt},ue.prototype.bind=function(He,rt,et){this.eventElement(He).bind(rt,et)},ue.prototype.unbind=function(He,rt,et){var Ae=this.eventElement(He);Ae.unbind(rt,et),Ae.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ae),1)},ue.prototype.unbindAll=function(){this.eventElements.forEach(function(He){return He.unbindAll()}),this.eventElements=[]},ue.prototype.once=function(He,rt,et){var Ae=this.eventElement(He),Ge=function(ot){Ae.unbind(rt,Ge),et(ot)};Ae.bind(rt,Ge)};var i={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 r(nt){var He=nt.element,rt=Math.floor(He.scrollTop),et=He.getBoundingClientRect();nt.containerWidth=Math.round(et.width),nt.containerHeight=Math.round(et.height),nt.contentWidth=He.scrollWidth,nt.contentHeight=He.scrollHeight,He.contains(nt.scrollbarXRail)||(S(He,k_element_rail("x")).forEach(function(Ae){return D(Ae)}),He.appendChild(nt.scrollbarXRail)),He.contains(nt.scrollbarYRail)||(S(He,k_element_rail("y")).forEach(function(Ae){return D(Ae)}),He.appendChild(nt.scrollbarYRail)),!nt.settings.suppressScrollX&&nt.containerWidth+nt.settings.scrollXMarginOffset=nt.railXWidth-nt.scrollbarXWidth&&(nt.scrollbarXLeft=nt.railXWidth-nt.scrollbarXWidth),nt.scrollbarYTop>=nt.railYHeight-nt.scrollbarYHeight&&(nt.scrollbarYTop=nt.railYHeight-nt.scrollbarYHeight),function c(nt,He){var rt={width:He.railXWidth},et=Math.floor(nt.scrollTop);rt.left=He.isRtl?He.negativeScrollAdjustment+nt.scrollLeft+He.containerWidth-He.contentWidth:nt.scrollLeft,He.isScrollbarXUsingBottom?rt.bottom=He.scrollbarXBottom-et:rt.top=He.scrollbarXTop+et,R(He.scrollbarXRail,rt);var Ae={top:et,height:He.railYHeight};He.isScrollbarYUsingRight?Ae.right=He.isRtl?He.contentWidth-(He.negativeScrollAdjustment+nt.scrollLeft)-He.scrollbarYRight-He.scrollbarYOuterWidth-9:He.scrollbarYRight-nt.scrollLeft:Ae.left=He.isRtl?He.negativeScrollAdjustment+nt.scrollLeft+2*He.containerWidth-He.contentWidth-He.scrollbarYLeft-He.scrollbarYOuterWidth:He.scrollbarYLeft+nt.scrollLeft,R(He.scrollbarYRail,Ae),R(He.scrollbarX,{left:He.scrollbarXLeft,width:He.scrollbarXWidth-He.railBorderXWidth}),R(He.scrollbarY,{top:He.scrollbarYTop,height:He.scrollbarYHeight-He.railBorderYWidth})}(He,nt),nt.scrollbarXActive?He.classList.add(k_state_active("x")):(He.classList.remove(k_state_active("x")),nt.scrollbarXWidth=0,nt.scrollbarXLeft=0,He.scrollLeft=!0===nt.isRtl?nt.contentWidth:0),nt.scrollbarYActive?He.classList.add(k_state_active("y")):(He.classList.remove(k_state_active("y")),nt.scrollbarYHeight=0,nt.scrollbarYTop=0,He.scrollTop=0)}function u(nt,He){return nt.settings.minScrollbarLength&&(He=Math.max(He,nt.settings.minScrollbarLength)),nt.settings.maxScrollbarLength&&(He=Math.min(He,nt.settings.maxScrollbarLength)),He}function I(nt,He){var rt=He[0],et=He[1],Ae=He[2],Ge=He[3],ot=He[4],lt=He[5],Ct=He[6],mi=He[7],Jt=He[8],ei=nt.element,Qi=null,hi=null,si=null;function Ji(Ui){Ui.touches&&Ui.touches[0]&&(Ui[Ae]=Ui.touches[0].pageY),ei[Ct]=Qi+si*(Ui[Ae]-hi),B(nt,mi),r(nt),Ui.stopPropagation(),Ui.type.startsWith("touch")&&Ui.changedTouches.length>1&&Ui.preventDefault()}function Zi(){Z(nt,mi),nt[Jt].classList.remove(k_state_clicking),nt.event.unbind(nt.ownerDocument,"mousemove",Ji)}function Vi(Ui,Ue){Qi=ei[Ct],Ue&&Ui.touches&&(Ui[Ae]=Ui.touches[0].pageY),hi=Ui[Ae],si=(nt[et]-nt[rt])/(nt[Ge]-nt[lt]),Ue?nt.event.bind(nt.ownerDocument,"touchmove",Ji):(nt.event.bind(nt.ownerDocument,"mousemove",Ji),nt.event.once(nt.ownerDocument,"mouseup",Zi),Ui.preventDefault()),nt[Jt].classList.add(k_state_clicking),Ui.stopPropagation()}nt.event.bind(nt[ot],"mousedown",function(Ui){Vi(Ui)}),nt.event.bind(nt[ot],"touchstart",function(Ui){Vi(Ui,!0)})}var N={"click-rail":function v(nt){nt.event.bind(nt.scrollbarY,"mousedown",function(rt){return rt.stopPropagation()}),nt.event.bind(nt.scrollbarYRail,"mousedown",function(rt){var et=rt.pageY-window.pageYOffset-nt.scrollbarYRail.getBoundingClientRect().top;nt.element.scrollTop+=(et>nt.scrollbarYTop?1:-1)*nt.containerHeight,r(nt),rt.stopPropagation()}),nt.event.bind(nt.scrollbarX,"mousedown",function(rt){return rt.stopPropagation()}),nt.event.bind(nt.scrollbarXRail,"mousedown",function(rt){var et=rt.pageX-window.pageXOffset-nt.scrollbarXRail.getBoundingClientRect().left;nt.element.scrollLeft+=(et>nt.scrollbarXLeft?1:-1)*nt.containerWidth,r(nt),rt.stopPropagation()})},"drag-thumb":function T(nt){I(nt,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(nt,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function y(nt){var He=nt.element;nt.event.bind(nt.ownerDocument,"keydown",function(Ge){if(!(Ge.isDefaultPrevented&&Ge.isDefaultPrevented()||Ge.defaultPrevented)&&(w(He,":hover")||w(nt.scrollbarX,":focus")||w(nt.scrollbarY,":focus"))){var ot=document.activeElement?document.activeElement:nt.ownerDocument.activeElement;if(ot){if("IFRAME"===ot.tagName)ot=ot.contentDocument.activeElement;else for(;ot.shadowRoot;)ot=ot.shadowRoot.activeElement;if(function _e(nt){return w(nt,"input,[contenteditable]")||w(nt,"select,[contenteditable]")||w(nt,"textarea,[contenteditable]")||w(nt,"button,[contenteditable]")}(ot))return}var lt=0,Ct=0;switch(Ge.which){case 37:lt=Ge.metaKey?-nt.contentWidth:Ge.altKey?-nt.containerWidth:-30;break;case 38:Ct=Ge.metaKey?nt.contentHeight:Ge.altKey?nt.containerHeight:30;break;case 39:lt=Ge.metaKey?nt.contentWidth:Ge.altKey?nt.containerWidth:30;break;case 40:Ct=Ge.metaKey?-nt.contentHeight:Ge.altKey?-nt.containerHeight:-30;break;case 32:Ct=Ge.shiftKey?nt.containerHeight:-nt.containerHeight;break;case 33:Ct=nt.containerHeight;break;case 34:Ct=-nt.containerHeight;break;case 36:Ct=nt.contentHeight;break;case 35:Ct=-nt.contentHeight;break;default:return}nt.settings.suppressScrollX&&0!==lt||nt.settings.suppressScrollY&&0!==Ct||(He.scrollTop-=Ct,He.scrollLeft+=lt,r(nt),function Ae(Ge,ot){var lt=Math.floor(He.scrollTop);if(0===Ge){if(!nt.scrollbarYActive)return!1;if(0===lt&&ot>0||lt>=nt.contentHeight-nt.containerHeight&&ot<0)return!nt.settings.wheelPropagation}var Ct=He.scrollLeft;if(0===ot){if(!nt.scrollbarXActive)return!1;if(0===Ct&&Ge<0||Ct>=nt.contentWidth-nt.containerWidth&&Ge>0)return!nt.settings.wheelPropagation}return!0}(lt,Ct)&&Ge.preventDefault())}})},wheel:function n(nt){var He=nt.element;function Ge(ot){var lt=function et(ot){var lt=ot.deltaX,Ct=-1*ot.deltaY;return(void 0===lt||void 0===Ct)&&(lt=-1*ot.wheelDeltaX/6,Ct=ot.wheelDeltaY/6),ot.deltaMode&&1===ot.deltaMode&&(lt*=10,Ct*=10),lt!=lt&&Ct!=Ct&&(lt=0,Ct=ot.wheelDelta),ot.shiftKey?[-Ct,-lt]:[lt,Ct]}(ot),Ct=lt[0],mi=lt[1];if(!function Ae(ot,lt,Ct){if(!i.isWebKit&&He.querySelector("select:focus"))return!0;if(!He.contains(ot))return!1;for(var mi=ot;mi&&mi!==He;){if(mi.classList.contains(k_element_consuming))return!0;var Jt=d(mi);if(Ct&&Jt.overflowY.match(/(scroll|auto)/)){var ei=mi.scrollHeight-mi.clientHeight;if(ei>0&&(mi.scrollTop>0&&Ct<0||mi.scrollTop0))return!0}if(lt&&Jt.overflowX.match(/(scroll|auto)/)){var Qi=mi.scrollWidth-mi.clientWidth;if(Qi>0&&(mi.scrollLeft>0&<<0||mi.scrollLeft0))return!0}mi=mi.parentNode}return!1}(ot.target,Ct,mi)){var Jt=!1;nt.settings.useBothWheelAxes?nt.scrollbarYActive&&!nt.scrollbarXActive?(mi?He.scrollTop-=mi*nt.settings.wheelSpeed:He.scrollTop+=Ct*nt.settings.wheelSpeed,Jt=!0):nt.scrollbarXActive&&!nt.scrollbarYActive&&(Ct?He.scrollLeft+=Ct*nt.settings.wheelSpeed:He.scrollLeft-=mi*nt.settings.wheelSpeed,Jt=!0):(He.scrollTop-=mi*nt.settings.wheelSpeed,He.scrollLeft+=Ct*nt.settings.wheelSpeed),r(nt),Jt=Jt||function rt(ot,lt){var Ct=Math.floor(He.scrollTop),mi=0===He.scrollTop,Jt=Ct+He.offsetHeight===He.scrollHeight,ei=0===He.scrollLeft,Qi=He.scrollLeft+He.offsetWidth===He.scrollWidth;return!(Math.abs(lt)>Math.abs(ot)?mi||Jt:ei||Qi)||!nt.settings.wheelPropagation}(Ct,mi),Jt&&!ot.ctrlKey&&(ot.stopPropagation(),ot.preventDefault())}}void 0!==window.onwheel?nt.event.bind(He,"wheel",Ge):void 0!==window.onmousewheel&&nt.event.bind(He,"mousewheel",Ge)},touch:function _(nt){if(i.supportsTouch||i.supportsIePointer){var He=nt.element,Ae={},Ge=0,ot={},lt=null;i.supportsTouch?(nt.event.bind(He,"touchstart",Jt),nt.event.bind(He,"touchmove",Qi),nt.event.bind(He,"touchend",hi)):i.supportsIePointer&&(window.PointerEvent?(nt.event.bind(He,"pointerdown",Jt),nt.event.bind(He,"pointermove",Qi),nt.event.bind(He,"pointerup",hi)):window.MSPointerEvent&&(nt.event.bind(He,"MSPointerDown",Jt),nt.event.bind(He,"MSPointerMove",Qi),nt.event.bind(He,"MSPointerUp",hi)))}function et(si,Ji){He.scrollTop-=Ji,He.scrollLeft-=si,r(nt)}function Ct(si){return si.targetTouches?si.targetTouches[0]:si}function mi(si){return!(si.pointerType&&"pen"===si.pointerType&&0===si.buttons||!(si.targetTouches&&1===si.targetTouches.length||si.pointerType&&"mouse"!==si.pointerType&&si.pointerType!==si.MSPOINTER_TYPE_MOUSE))}function Jt(si){if(mi(si)){var Ji=Ct(si);Ae.pageX=Ji.pageX,Ae.pageY=Ji.pageY,Ge=(new Date).getTime(),null!==lt&&clearInterval(lt)}}function Qi(si){if(mi(si)){var Ji=Ct(si),Zi={pageX:Ji.pageX,pageY:Ji.pageY},Vi=Zi.pageX-Ae.pageX,Ui=Zi.pageY-Ae.pageY;if(function ei(si,Ji,Zi){if(!He.contains(si))return!1;for(var Vi=si;Vi&&Vi!==He;){if(Vi.classList.contains(k_element_consuming))return!0;var Ui=d(Vi);if(Zi&&Ui.overflowY.match(/(scroll|auto)/)){var Ue=Vi.scrollHeight-Vi.clientHeight;if(Ue>0&&(Vi.scrollTop>0&&Zi<0||Vi.scrollTop0))return!0}if(Ji&&Ui.overflowX.match(/(scroll|auto)/)){var Tt=Vi.scrollWidth-Vi.clientWidth;if(Tt>0&&(Vi.scrollLeft>0&&Ji<0||Vi.scrollLeft0))return!0}Vi=Vi.parentNode}return!1}(si.target,Vi,Ui))return;et(Vi,Ui),Ae=Zi;var Ue=(new Date).getTime(),Tt=Ue-Ge;Tt>0&&(ot.x=Vi/Tt,ot.y=Ui/Tt,Ge=Ue),function rt(si,Ji){var Zi=Math.floor(He.scrollTop),Vi=He.scrollLeft,Ui=Math.abs(si),Ue=Math.abs(Ji);if(Ue>Ui){if(Ji<0&&Zi===nt.contentHeight-nt.containerHeight||Ji>0&&0===Zi)return 0===window.scrollY&&Ji>0&&i.isChrome}else if(Ui>Ue&&(si<0&&Vi===nt.contentWidth-nt.containerWidth||si>0&&0===Vi))return!0;return!0}(Vi,Ui)&&si.preventDefault()}}function hi(){nt.settings.swipeEasing&&(clearInterval(lt),lt=setInterval(function(){nt.isInitialized?clearInterval(lt):ot.x||ot.y?Math.abs(ot.x)<.01&&Math.abs(ot.y)<.01?clearInterval(lt):nt.element?(et(30*ot.x,30*ot.y),ot.x*=.8,ot.y*=.8):clearInterval(lt):clearInterval(lt)},10))}}},H=function(He,rt){var et=this;if(void 0===rt&&(rt={}),"string"==typeof He&&(He=document.querySelector(He)),!He||!He.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ae in this.element=He,He.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},rt)this.settings[Ae]=rt[Ae];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Jt,mi,Ge=function(){return He.classList.add(k_state_focus)},ot=function(){return He.classList.remove(k_state_focus)};this.isRtl="rtl"===d(He).direction,!0===this.isRtl&&He.classList.add("ps__rtl"),this.isNegativeScroll=(mi=He.scrollLeft,He.scrollLeft=-1,Jt=He.scrollLeft<0,He.scrollLeft=mi,Jt),this.negativeScrollAdjustment=this.isNegativeScroll?He.scrollWidth-He.clientWidth:0,this.event=new ue,this.ownerDocument=He.ownerDocument||document,this.scrollbarXRail=h(k_element_rail("x")),He.appendChild(this.scrollbarXRail),this.scrollbarX=h(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ge),this.event.bind(this.scrollbarX,"blur",ot),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var lt=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt(lt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=q(lt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=q(lt.borderLeftWidth)+q(lt.borderRightWidth),R(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=q(lt.marginLeft)+q(lt.marginRight),R(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=h(k_element_rail("y")),He.appendChild(this.scrollbarYRail),this.scrollbarY=h(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ge),this.event.bind(this.scrollbarY,"blur",ot),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Ct=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(Ct.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=q(Ct.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function x(nt){var He=d(nt);return q(He.width)+q(He.paddingLeft)+q(He.paddingRight)+q(He.borderLeftWidth)+q(He.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=q(Ct.borderTopWidth)+q(Ct.borderBottomWidth),R(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=q(Ct.marginTop)+q(Ct.marginBottom),R(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:He.scrollLeft<=0?"start":He.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:He.scrollTop<=0?"start":He.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mi){return N[mi](et)}),this.lastScrollTop=Math.floor(He.scrollTop),this.lastScrollLeft=He.scrollLeft,this.event.bind(this.element,"scroll",function(mi){return et.onScroll(mi)}),r(this)};H.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,R(this.scrollbarXRail,{display:"block"}),R(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=q(d(this.scrollbarXRail).marginLeft)+q(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=q(d(this.scrollbarYRail).marginTop)+q(d(this.scrollbarYRail).marginBottom),R(this.scrollbarXRail,{display:"none"}),R(this.scrollbarYRail,{display:"none"}),r(this),re(this,"top",0,!1,!0),re(this,"left",0,!1,!0),R(this.scrollbarXRail,{display:""}),R(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(He){!this.isAlive||(r(this),re(this,"top",this.element.scrollTop-this.lastScrollTop),re(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),D(this.scrollbarX),D(this.scrollbarY),D(this.scrollbarXRail),D(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(He){return!He.match(/^ps([-_].+|)$/)}).join(" ")};const X=H;var he=function(){if("undefined"!=typeof Map)return Map;function nt(He,rt){var et=-1;return He.some(function(Ae,Ge){return Ae[0]===rt&&(et=Ge,!0)}),et}return function(){function He(){this.__entries__=[]}return Object.defineProperty(He.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),He.prototype.get=function(rt){var et=nt(this.__entries__,rt),Ae=this.__entries__[et];return Ae&&Ae[1]},He.prototype.set=function(rt,et){var Ae=nt(this.__entries__,rt);~Ae?this.__entries__[Ae][1]=et:this.__entries__.push([rt,et])},He.prototype.delete=function(rt){var et=this.__entries__,Ae=nt(et,rt);~Ae&&et.splice(Ae,1)},He.prototype.has=function(rt){return!!~nt(this.__entries__,rt)},He.prototype.clear=function(){this.__entries__.splice(0)},He.prototype.forEach=function(rt,et){void 0===et&&(et=null);for(var Ae=0,Ge=this.__entries__;Ae0},nt.prototype.connect_=function(){!be||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ie?(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)},nt.prototype.disconnect_=function(){!be||!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)},nt.prototype.onTransitionEnd_=function(He){var rt=He.propertyName,et=void 0===rt?"":rt;J.some(function(Ge){return!!~et.indexOf(Ge)})&&this.refresh()},nt.getInstance=function(){return this.instance_||(this.instance_=new nt),this.instance_},nt.instance_=null,nt}(),Oe=function(nt,He){for(var rt=0,et=Object.keys(He);rt0},nt}(),ui="undefined"!=typeof WeakMap?new WeakMap:new he,Ot=function nt(He){if(!(this instanceof nt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var rt=ut.getInstance(),et=new Zt(He,rt,this);ui.set(this,et)};["observe","unobserve","disconnect"].forEach(function(nt){Ot.prototype[nt]=function(){var He;return(He=ui.get(this))[nt].apply(He,arguments)}});const gt=void 0!==Pe.ResizeObserver?Pe.ResizeObserver:Ot,ti=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class Qt{constructor(He,rt,et,Ae){this.x=He,this.y=rt,this.w=et,this.h=Ae}}class Re{constructor(He,rt){this.x=He,this.y=rt}}const ke=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class de{constructor(He={}){this.assign(He)}assign(He={}){for(const rt in He)this[rt]=He[rt]}}let ye=(()=>{class nt{constructor(rt,et,Ae,Ge,ot){this.zone=rt,this.differs=et,this.elementRef=Ae,this.platformId=Ge,this.defaults=ot,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.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,C.NF)(this.platformId)){const rt=new de(this.defaults);rt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new X(this.elementRef.nativeElement,rt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new gt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ke.forEach(et=>{const Ae=et.replace(/([A-Z])/g,Ge=>`-${Ge.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Ae).pipe((0,f.e)(20),(0,M.R)(this.ngDestroy)).subscribe(Ge=>{this[et].emit(Ge)})})})}}ngOnDestroy(){(0,C.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,C.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(rt){rt.disabled&&!rt.disabled.isFirstChange()&&(0,C.NF)(this.platformId)&&rt.disabled.currentValue!==rt.disabled.previousValue&&(!0===rt.disabled.currentValue?this.ngOnDestroy():!1===rt.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(rt){}},0))}geometry(rt="scroll"){return new Qt(this.elementRef.nativeElement[rt+"Left"],this.elementRef.nativeElement[rt+"Top"],this.elementRef.nativeElement[rt+"Width"],this.elementRef.nativeElement[rt+"Height"])}position(rt=!1){return!rt&&this.instance?new Re(this.instance.reach.x||0,this.instance.reach.y||0):new Re(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(rt="any"){const et=this.elementRef.nativeElement;return"any"===rt?et.classList.contains("ps--active-x")||et.classList.contains("ps--active-y"):"both"===rt?et.classList.contains("ps--active-x")&&et.classList.contains("ps--active-y"):et.classList.contains("ps--active-"+rt)}scrollTo(rt,et,Ae){this.disabled||(null==et&&null==Ae?this.animateScrolling("scrollTop",rt,Ae):(null!=rt&&this.animateScrolling("scrollLeft",rt,Ae),null!=et&&this.animateScrolling("scrollTop",et,Ae)))}scrollToX(rt,et){this.animateScrolling("scrollLeft",rt,et)}scrollToY(rt,et){this.animateScrolling("scrollTop",rt,et)}scrollToTop(rt,et){this.animateScrolling("scrollTop",rt||0,et)}scrollToLeft(rt,et){this.animateScrolling("scrollLeft",rt||0,et)}scrollToRight(rt,et){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(rt||0),et)}scrollToBottom(rt,et){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(rt||0),et)}scrollToElement(rt,et,Ae){if("string"==typeof rt&&(rt=this.elementRef.nativeElement.querySelector(rt)),rt){const Ge=rt.getBoundingClientRect(),ot=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Ge.left-ot.left+this.elementRef.nativeElement.scrollLeft+(et||0),Ae),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Ge.top-ot.top+this.elementRef.nativeElement.scrollTop+(et||0),Ae)}}animateScrolling(rt,et,Ae){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Ae&&"undefined"!=typeof window){if(et!==this.elementRef.nativeElement[rt]){let Ge=0,ot=0,lt=performance.now(),Ct=this.elementRef.nativeElement[rt];const mi=(Ct-et)/2,Jt=ei=>{ot+=Math.PI/(Ae/(ei-lt)),Ge=Math.round(et+mi+mi*Math.cos(ot)),this.elementRef.nativeElement[rt]===Ct&&(ot>=Math.PI?this.animateScrolling(rt,et,0):(this.elementRef.nativeElement[rt]=Ge,Ct=this.elementRef.nativeElement[rt],lt=ei,this.animation=window.requestAnimationFrame(Jt)))};window.requestAnimationFrame(Jt)}}else this.elementRef.nativeElement[rt]=et}}return nt.\u0275fac=function(rt){return new(rt||nt)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(ti,8))},nt.\u0275dir=a.lG2({type:nt,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]}),nt})(),Ft=(()=>{class nt{}return nt.\u0275fac=function(rt){return new(rt||nt)},nt.\u0275mod=a.oAB({type:nt}),nt.\u0275inj=a.cJS({imports:[[C.ez],C.ez]}),nt})()},4946:Be=>{"use strict";Be.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"}}')},5207:Be=>{"use strict";Be.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"}}')},1308:Be=>{"use strict";Be.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"}')},9799:Be=>{"use strict";Be.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"}}')},8597:Be=>{"use strict";Be.exports={i8:"6.5.4"}},2562:Be=>{"use strict";Be.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"}')}},Be=>{Be(Be.s=7999)}]); \ No newline at end of file diff --git a/frontend/main.a43527725564e63e.js b/frontend/main.a43527725564e63e.js deleted file mode 100644 index acfabe7d..00000000 --- a/frontend/main.a43527725564e63e.js +++ /dev/null @@ -1 +0,0 @@ -var ES=Object.defineProperty,TS=Object.defineProperties,AS=Object.getOwnPropertyDescriptors,J9=Object.getOwnPropertySymbols,LS=Object.prototype.hasOwnProperty,DS=Object.prototype.propertyIsEnumerable,X9=(Be,K,p)=>K in Be?ES(Be,K,{enumerable:!0,configurable:!0,writable:!0,value:p}):Be[K]=p,eo=(Be,K)=>{for(var p in K||(K={}))LS.call(K,p)&&X9(Be,p,K[p]);if(J9)for(var p of J9(K))DS.call(K,p)&&X9(Be,p,K[p]);return Be},$9=(Be,K)=>TS(Be,AS(K));(self.webpackChunkRTLApp=self.webpackChunkRTLApp||[]).push([[179],{429:(Be,K,p)=>{"use strict";p.d(K,{$A:()=>X,$W:()=>ue,BL:()=>V,CN:()=>h,CX:()=>L,EG:()=>E,EK:()=>x,El:()=>re,HI:()=>r,HJ:()=>S,I8:()=>k,JK:()=>tt,Lu:()=>B,Ly:()=>ce,Ni:()=>f,Nr:()=>Ve,OG:()=>N,QJ:()=>Ee,RX:()=>D,Rd:()=>Me,SN:()=>w,Sf:()=>H,TM:()=>c,UH:()=>Te,UR:()=>I,VD:()=>W,WM:()=>j,WO:()=>v,Wi:()=>Oe,X3:()=>q,YP:()=>J,YX:()=>_,Z8:()=>ne,ZH:()=>Q,Zu:()=>Ce,_9:()=>Zt,_E:()=>ae,aL:()=>Ie,as:()=>y,cQ:()=>i,d7:()=>di,dh:()=>fe,e9:()=>Yt,eF:()=>R,eM:()=>xe,en:()=>ui,g3:()=>Z,g6:()=>ut,i9:()=>pt,kL:()=>T,n7:()=>he,oV:()=>u,oo:()=>a,pW:()=>n,pd:()=>d,u0:()=>Pe,uT:()=>Dt,v_:()=>be,wD:()=>C,xH:()=>M,xS:()=>Y,yl:()=>te,z:()=>_e});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.AB.UPDATE_API_CALL_STATUS_CLN,(0,t.Ky)()),M=(0,t.PH)(e.AB.RESET_CLN_STORE,(0,t.Ky)()),a=(0,t.PH)(e.AB.SET_CHILD_NODE_SETTINGS_CLN,(0,t.Ky)()),C=(0,t.PH)(e.AB.FETCH_PAGE_SETTINGS_CLN),d=(0,t.PH)(e.AB.SET_PAGE_SETTINGS_CLN,(0,t.Ky)()),R=(0,t.PH)(e.AB.SAVE_PAGE_SETTINGS_CLN,(0,t.Ky)()),h=(0,t.PH)(e.AB.FETCH_INFO_CLN,(0,t.Ky)()),L=(0,t.PH)(e.AB.SET_INFO_CLN,(0,t.Ky)()),w=(0,t.PH)(e.AB.FETCH_FEES_CLN),D=(0,t.PH)(e.AB.SET_FEES_CLN,(0,t.Ky)()),S=(0,t.PH)(e.AB.FETCH_FEE_RATES_CLN,(0,t.Ky)()),k=(0,t.PH)(e.AB.SET_FEE_RATES_CLN,(0,t.Ky)()),E=(0,t.PH)(e.AB.FETCH_BALANCE_CLN),B=(0,t.PH)(e.AB.SET_BALANCE_CLN,(0,t.Ky)()),Z=(0,t.PH)(e.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),Y=(0,t.PH)(e.AB.SET_LOCAL_REMOTE_BALANCE_CLN,(0,t.Ky)()),ae=(0,t.PH)(e.AB.GET_NEW_ADDRESS_CLN,(0,t.Ky)()),ue=((0,t.PH)(e.AB.SET_NEW_ADDRESS_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_PEERS_CLN)),ne=(0,t.PH)(e.AB.SET_PEERS_CLN,(0,t.Ky)()),re=(0,t.PH)(e.AB.SAVE_NEW_PEER_CLN,(0,t.Ky)()),q=((0,t.PH)(e.AB.NEWLY_ADDED_PEER_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.ADD_PEER_CLN,(0,t.Ky)())),_e=(0,t.PH)(e.AB.DETACH_PEER_CLN,(0,t.Ky)()),x=(0,t.PH)(e.AB.REMOVE_PEER_CLN,(0,t.Ky)()),i=(0,t.PH)(e.AB.FETCH_PAYMENTS_CLN),r=(0,t.PH)(e.AB.SET_PAYMENTS_CLN,(0,t.Ky)()),u=(0,t.PH)(e.AB.SEND_PAYMENT_CLN,(0,t.Ky)()),c=(0,t.PH)(e.AB.SEND_PAYMENT_STATUS_CLN,(0,t.Ky)()),v=(0,t.PH)(e.AB.GET_QUERY_ROUTES_CLN,(0,t.Ky)()),T=(0,t.PH)(e.AB.SET_QUERY_ROUTES_CLN,(0,t.Ky)()),I=(0,t.PH)(e.AB.FETCH_CHANNELS_CLN),y=(0,t.PH)(e.AB.SET_CHANNELS_CLN,(0,t.Ky)()),n=(0,t.PH)(e.AB.UPDATE_CHANNEL_CLN,(0,t.Ky)()),_=(0,t.PH)(e.AB.SAVE_NEW_CHANNEL_CLN,(0,t.Ky)()),V=(0,t.PH)(e.AB.CLOSE_CHANNEL_CLN,(0,t.Ky)()),N=(0,t.PH)(e.AB.REMOVE_CHANNEL_CLN,(0,t.Ky)()),H=(0,t.PH)(e.AB.PEER_LOOKUP_CLN,(0,t.Ky)()),X=(0,t.PH)(e.AB.CHANNEL_LOOKUP_CLN,(0,t.Ky)()),he=(0,t.PH)(e.AB.INVOICE_LOOKUP_CLN,(0,t.Ky)()),be=(0,t.PH)(e.AB.SET_LOOKUP_CLN,(0,t.Ky)()),Pe=(0,t.PH)(e.AB.GET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),Ee=(0,t.PH)(e.AB.SET_FORWARDING_HISTORY_CLN,(0,t.Ky)()),j=(0,t.PH)(e.AB.FETCH_INVOICES_CLN,(0,t.Ky)()),Ve=(0,t.PH)(e.AB.SET_INVOICES_CLN,(0,t.Ky)()),Me=(0,t.PH)(e.AB.SAVE_NEW_INVOICE_CLN,(0,t.Ky)()),J=(0,t.PH)(e.AB.ADD_INVOICE_CLN,(0,t.Ky)()),Ie=(0,t.PH)(e.AB.UPDATE_INVOICE_CLN,(0,t.Ky)()),ut=(0,t.PH)(e.AB.DELETE_EXPIRED_INVOICE_CLN,(0,t.Ky)()),Oe=(0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_CLN,(0,t.Ky)()),ce=((0,t.PH)(e.AB.SET_CHANNEL_TRANSACTION_RES_CLN,(0,t.Ky)()),(0,t.PH)(e.AB.FETCH_UTXOS_CLN)),Te=(0,t.PH)(e.AB.SET_UTXOS_CLN,(0,t.Ky)()),xe=(0,t.PH)(e.AB.FETCH_OFFER_INVOICE_CLN,(0,t.Ky)()),W=(0,t.PH)(e.AB.SET_OFFER_INVOICE_CLN,(0,t.Ky)()),te=(0,t.PH)(e.AB.FETCH_OFFERS_CLN),Ce=(0,t.PH)(e.AB.SET_OFFERS_CLN,(0,t.Ky)()),fe=(0,t.PH)(e.AB.SAVE_NEW_OFFER_CLN,(0,t.Ky)()),Q=(0,t.PH)(e.AB.ADD_OFFER_CLN,(0,t.Ky)()),pt=(0,t.PH)(e.AB.DISABLE_OFFER_CLN,(0,t.Ky)()),tt=(0,t.PH)(e.AB.UPDATE_OFFER_CLN,(0,t.Ky)()),Dt=(0,t.PH)(e.AB.FETCH_OFFER_BOOKMARKS_CLN),di=(0,t.PH)(e.AB.SET_OFFER_BOOKMARKS_CLN,(0,t.Ky)()),Yt=(0,t.PH)(e.AB.ADD_UPDATE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),Zt=(0,t.PH)(e.AB.DELETE_OFFER_BOOKMARK_CLN,(0,t.Ky)()),ui=(0,t.PH)(e.AB.REMOVE_OFFER_BOOKMARK_CLN,(0,t.Ky)())},4947:(Be,K,p)=>{"use strict";p.d(K,{J:()=>q});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),C=p(4004),d=p(262),R=p(2340),h=p(1786),L=p(5566),w=p(7731),D=p(7861),S=p(429),k=p(9828),E=p(1462),B=p(5e3),Z=p(8138),Y=p(5620),ae=p(5986),ee=p(62),ue=p(5043),ne=p(1402),re=p(7998),ge=p(9808);let q=(()=>{class _e{constructor(i,r,u,c,v,T,I,y,n){this.actions=i,this.httpClient=r,this.store=u,this.sessionService=c,this.commonService=v,this.logger=T,this.router=I,this.wsService=y,this.location=n,this.CHILD_API_URL=R.T5+"/cln",this.flgInitialized=!1,this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INFO_CLN),(0,M.z)(_=>(this.flgInitialized=!1,this.store.dispatch((0,D.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.INITIATED}})),this.store.dispatch((0,D.ac)({payload:w.m6.GET_NODE_INFO})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(w.pg.SET_SELECTED_NODE))),(0,C.U)(V=>(this.logger.info(V),V.chains&&V.chains.length&&V.chains[0]&&"object"==typeof V.chains[0]&&V.chains[0].hasOwnProperty("chain")&&(null==V?void 0:V.chains[0].chain)&&(null==V?void 0:V.chains[0].chain.toLowerCase().indexOf("bitcoin"))<0?(this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),this.store.dispatch((0,D.ts)()),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:w.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}}))},500),{type:w.pg.LOGOUT}):(this.initializeRemainingData(V,_.payload.loadPage),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInfo",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.GET_NODE_INFO})),{type:w.AB.SET_INFO_CLN,payload:V||{}}))),(0,d.K)(V=>{const N=this.commonService.extractErrorCode(V),H="ETIMEDOUT"===N?"Unable to Connect to Core Lightning Server.":this.commonService.extractErrorMessage(V);return this.router.navigate(["/error"],{state:{errorCode:N,errorMessage:H}}),this.handleErrorWithoutAlert("FetchInfo",w.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:N,error:H}),(0,f.of)({type:w.pg.VOID})})))))),this.fetchFeesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEES_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchFees",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchFees",status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEES_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchFees",w.m6.NO_SPINNER,"Fetching Fees Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchFeeRatesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_FEE_RATES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/feeRates/"+_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"FetchFeeRates"+_.payload,status:w.Bn.COMPLETED}})),{type:w.AB.SET_FEE_RATES_CLN,payload:V||{}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchFeeRates"+_.payload,w.m6.NO_SPINNER,"Fetching Fee Rates Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.fetchBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.BALANCE_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchLocalRemoteBalanceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_LOCAL_REMOTE_BALANCE_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/localRemoteBalance"))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchLocalRemoteBalance",status:w.Bn.COMPLETED}})),{type:w.AB.SET_LOCAL_REMOTE_BALANCE_CLN,payload:_||{}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchLocalRemoteBalance",w.m6.NO_SPINNER,"Fetching Balances Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.getNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_NEW_ADDRESS_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressCode).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,D.uO)({payload:w.m6.GENERATE_NEW_ADDRESS})),{type:w.AB.SET_NEW_ADDRESS_CLN,payload:V&&V.address?V.address:{}})),(0,d.K)(V=>(this.handleErrorWithAlert("GenerateNewAddress",w.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"?type="+_.payload.addressId,V),(0,f.of)({type:w.pg.VOID})))))))),this.setNewAddressCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_NEW_ADDRESS_CLN),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.peersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PEERS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPeers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPeers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PEERS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPeers",w.m6.NO_SPINNER,"Fetching Peers Failed.",_),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_PEER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API,{id:_.payload.id}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewPeer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:V||[]})),{type:w.AB.NEWLY_ADDED_PEER_CLN,payload:{peer:V.find(N=>0===_.payload.id.indexOf(N.id?N.id:""))}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewPeer",w.m6.CONNECT_PEER,"Peer Connection Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.detachPeerCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DETACH_PEER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id+"?force="+_.payload.force).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,D.uO)({payload:w.m6.DISCONNECT_PEER})),this.store.dispatch((0,D.jW)({payload:"Peer Disconnected Successfully!"})),{type:w.AB.REMOVE_PEER_CLN,payload:{id:_.payload.id}})),(0,d.K)(V=>(this.handleErrorWithAlert("PeerDisconnect",w.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+_.payload.id,V),(0,f.of)({type:w.pg.VOID})))))))),this.channelsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_CHANNELS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchChannels",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listChannels"))),(0,C.U)(_=>{this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchChannels",status:w.Bn.COMPLETED}}));const V={activeChannels:[],pendingChannels:[],inactiveChannels:[]};return _.forEach(N=>{"CHANNELD_NORMAL"===N.state?N.connected?V.activeChannels.push(N):V.inactiveChannels.push(N):V.pendingChannels.push(N)}),{type:w.AB.SET_CHANNELS_CLN,payload:V}}),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",w.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.openNewChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_CHANNEL_CLN),(0,M.z)(_=>{this.store.dispatch((0,D.ac)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.INITIATED}}));const V={id:_.payload.peerId,satoshis:_.payload.satoshis,feeRate:_.payload.feeRate,announce:_.payload.announce};return _.payload.minconf&&(V.minconf=_.payload.minconf),_.payload.utxos&&(V.utxos=_.payload.utxos),_.payload.requestAmount&&(V.request_amt=_.payload.requestAmount),_.payload.compactLease&&(V.compact_lease=_.payload.compactLease),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,V).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewChannel",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.OPEN_CHANNEL})),this.store.dispatch((0,D.jW)({payload:"Channel Added Successfully!"})),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.Ly)()),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(N=>(this.handleErrorWithoutAlert("SaveNewChannel",w.m6.OPEN_CHANNEL,"Opening Channel Failed.",N),(0,f.of)({type:w.pg.VOID}))))}))),this.updateChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.UPDATE_CHANNEL_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/setChannelFee",{id:_.payload.channelId,base:_.payload.baseFeeMsat,ppm:_.payload.feeRate}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,D.jW)("all"===_.payload.channelId?{payload:{message:"All Channels Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}}:{payload:{message:"Channel Updated Successfully. Fee policy updates may take some time to reflect on the channel.",duration:5e3}})),{type:w.AB.FETCH_CHANNELS_CLN})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannel",w.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,V),(0,f.of)({type:w.pg.VOID})))))))),this.closeChannelCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CLOSE_CHANNEL_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/"+_.payload.channelId+(_.payload.force?"?force="+_.payload.force:"")).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.g3)()),this.store.dispatch((0,D.jW)({payload:"Channel Closed Successfully!"})),{type:w.AB.REMOVE_CHANNEL_CLN,payload:_.payload})),(0,d.K)(N=>(this.handleErrorWithAlert("CloseChannel",_.payload.force?w.m6.FORCE_CLOSE_CHANNEL:w.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.paymentsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAYMENTS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPayments",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPayments",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAYMENTS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPayments",w.m6.NO_SPINNER,"Fetching Payments Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.fetchOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API+"/fetchOfferInvoice",_.payload).pipe((0,C.U)(V=>{this.logger.info(V),setTimeout(()=>{this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.FETCH_INVOICE})),this.store.dispatch((0,S.VD)({payload:V||{}}))},500)}),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferInvoice",w.m6.FETCH_INVOICE,"Offer Invoice Fetch Failed",V),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.setOfferInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_OFFER_INVOICE_CLN),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.sendPaymentCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SEND_PAYMENT_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.Ni)({payload:{action:"SendPayment",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,_.payload).pipe((0,C.U)(V=>{this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SendPayment",status:w.Bn.COMPLETED}}));let N="Payment Sent Successfully!";V.saveToDBError&&(N="Payment Sent Successfully but Offer Saving to Database Failed."),V.saveToDBResponse&&"NA"!==V.saveToDBResponse&&(this.store.dispatch((0,S.e9)({payload:V.saveToDBResponse})),N="Payment Sent Successfully and Offer Saved to Database."),setTimeout(()=>{this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.cQ)()),this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,D.jW)({payload:N})),this.store.dispatch((0,S.TM)({payload:V.paymentResponse}))},1e3)}),(0,d.K)(V=>(this.logger.error("Error: "+JSON.stringify(V)),_.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed.",V):this.handleErrorWithAlert("SendPayment",_.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,V),(0,f.of)({type:w.pg.VOID}))))))),{dispatch:!1}),this.queryRoutesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_QUERY_ROUTES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"GetQueryRoutes",status:w.Bn.COMPLETED}})),{type:w.AB.SET_QUERY_ROUTES_CLN,payload:V})),(0,d.K)(V=>(this.store.dispatch((0,S.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",w.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/getRoute/"+_.payload.destPubkey+"/"+_.payload.amount,V),(0,f.of)({type:w.pg.VOID})))))))),this.setQueryRoutesCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_QUERY_ROUTES_CLN),(0,C.U)(_=>_.payload)),{dispatch:!1}),this.peerLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.PEER_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_NODE})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_NODE})),{type:w.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithAlert("Lookup",w.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listNode/"+_.payload,V),(0,f.of)({type:w.pg.VOID})))))))),this.channelLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.CHANNEL_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),{type:w.AB.SET_LOOKUP_CLN,payload:V})),(0,d.K)(V=>(_.payload.showError?this.handleErrorWithAlert("Lookup",_.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/listChannel/"+_.payload.shortChannelID,V):this.store.dispatch((0,D.uO)({payload:_.payload.uiMessage})),this.store.dispatch((0,S.v_)({payload:[]})),(0,f.of)({type:w.pg.VOID})))))))),this.invoiceLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.INVOICE_LOOKUP_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?label="+_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"Lookup",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEARCHING_INVOICE})),V.invoices&&V.invoices.length&&V.invoices.length>0&&this.store.dispatch((0,S.aL)({payload:V.invoices[0]})),{type:w.AB.SET_LOOKUP_CLN,payload:V.invoices&&V.invoices.length&&V.invoices.length>0?V.invoices[0]:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("Lookup",w.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",V),this.store.dispatch((0,D.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:w.pg.VOID})))))))),this.setLookupCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_LOOKUP_CLN),(0,C.U)(_=>(this.logger.info(_.payload),_.payload))),{dispatch:!1}),this.fetchForwardingHistoryCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.GET_FORWARDING_HISTORY_CLN),(0,M.z)(_=>{const V=_.payload.status.charAt(0).toUpperCase();return this.store.dispatch((0,S.Ni)({payload:{action:"FetchForwardingHistory"+V,status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,S.Ni)({payload:{action:"FetchForwardingHistory"+V,status:w.Bn.COMPLETED}})),_.payload.status===w.OO.FAILED?this.store.dispatch((0,S.QJ)({payload:{status:w.OO.FAILED,totalForwards:N.length,listForwards:N}})):_.payload.status===w.OO.LOCAL_FAILED?this.store.dispatch((0,S.QJ)({payload:{status:w.OO.LOCAL_FAILED,totalForwards:N.length,listForwards:N}})):_.payload.status===w.OO.SETTLED&&this.store.dispatch((0,S.QJ)({payload:{status:w.OO.SETTLED,totalForwards:N.length,listForwards:N}})),{type:w.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("FetchForwardingHistory"+V,w.m6.NO_SPINNER,"Get "+_.payload.status+" Forwarding History Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API+"/listForwards?status="+_.payload.status,N),(0,f.of)({type:w.pg.VOID}))))}))),this.deleteExpiredInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_EXPIRED_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_INVOICE})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.INVOICES_API+(_.payload?"?maxexpiry="+_.payload:"")).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_INVOICE})),this.store.dispatch((0,D.jW)({payload:"Invoices Deleted Successfully!"})),{type:w.AB.FETCH_INVOICES_CLN,payload:{num_max_invoices:1e6,reversed:!0}})),(0,d.K)(N=>(this.handleErrorWithAlert("DeleteInvoices",w.m6.DELETE_INVOICE,"Delete Invoice Failed",this.CHILD_API_URL+R.NZ.INVOICES_API,N),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewInvoiceCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_INVOICE_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.ADD_INVOICE})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,{label:_.payload.label,amount:_.payload.amount,description:_.payload.description,expiry:_.payload.expiry,private:_.payload.private}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewInvoice",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.ADD_INVOICE})),V.msatoshi=_.payload.amount,V.label=_.payload.label,V.expires_at=Math.round((new Date).getTime()/1e3+_.payload.expiry),V.description=_.payload.description,V.status="unpaid",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{invoice:V,newlyAdded:!0,component:L.y}}}))},200),{type:w.AB.ADD_INVOICE_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewInvoice",w.m6.ADD_INVOICE,"Add Invoice Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.saveNewOfferCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_NEW_OFFER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.CREATE_OFFER})),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.OFFERS_API,{amount:_.payload.amount,description:_.payload.description,vendor:_.payload.vendor}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SaveNewOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.CREATE_OFFER})),setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{offer:V,newlyAdded:!0,component:E.k}}}))},100),{type:w.AB.ADD_OFFER_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewOffer",w.m6.CREATE_OFFER,"Create Offer Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.invoicesFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_INVOICES_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchInvoices",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"?num_max_invoices="+(_.payload.num_max_invoices?_.payload.num_max_invoices:1e6)+"&index_offset="+(_.payload.index_offset?_.payload.index_offset:0)+"&reversed="+(!_.payload.reversed||_.payload.reversed)).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,S.Ni)({payload:{action:"FetchInvoices",status:w.Bn.COMPLETED}})),{type:w.AB.SET_INVOICES_CLN,payload:X})),(0,d.K)(X=>(this.handleErrorWithoutAlert("FetchInvoices",w.m6.NO_SPINNER,"Fetching Invoices Failed.",X),(0,f.of)({type:w.pg.VOID})))))))),this.offersFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFERS_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchOffers",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOffers",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFERS_CLN,payload:V.offers?V.offers:[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOffers",w.m6.NO_SPINNER,"Fetching Offers Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.offersDisableCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DISABLE_OFFER_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,S.Ni)({payload:{action:"DisableOffer",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/"+_.payload.offer_id).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"DisableOffer",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DISABLE_OFFER})),this.store.dispatch((0,D.jW)({payload:"Offer Disabled Successfully!"})),{type:w.AB.UPDATE_OFFER_CLN,payload:{offer:V}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("DisableOffer",w.m6.DISABLE_OFFER,"Disabling Offer Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.offerBookmarksFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_OFFER_BOOKMARKS_CLN),(0,M.z)(_=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmarks").pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"FetchOfferBookmarks",status:w.Bn.COMPLETED}})),{type:w.AB.SET_OFFER_BOOKMARKS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithoutAlert("FetchOfferBookmarks",w.m6.NO_SPINNER,"Fetching Offer Bookmarks Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.peidOffersDeleteCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.DELETE_OFFER_BOOKMARK_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,S.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.INITIATED}})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"DeleteOfferBookmark",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.DELETE_OFFER_BOOKMARK})),this.store.dispatch((0,D.jW)({payload:"Offer Bookmark Deleted Successfully!"})),{type:w.AB.REMOVE_OFFER_BOOKMARK_CLN,payload:{bolt12:_.payload.bolt12}})),(0,d.K)(V=>(this.handleErrorWithAlert("DeleteOfferBookmark",w.m6.DELETE_OFFER_BOOKMARK,"Deleting Offer Bookmark Failed.",this.CHILD_API_URL+R.NZ.OFFERS_API+"/offerbookmark/"+_.payload.bolt12,V),(0,f.of)({type:w.pg.VOID})))))))),this.SetChannelTransactionCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SET_CHANNEL_TRANSACTION_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,S.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SetChannelTransaction",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.SEND_FUNDS})),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.Ly)()),{type:w.AB.SET_CHANNEL_TRANSACTION_RES_CLN,payload:V})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SetChannelTransaction",w.m6.SEND_FUNDS,"Sending Fund Failed.",V),(0,f.of)({type:w.pg.VOID})))))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_UTXOS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/utxos"))),(0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchUTXOs",status:w.Bn.COMPLETED}})),{type:w.AB.SET_UTXOS_CLN,payload:_.outputs||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchUTXOs",w.m6.NO_SPINNER,"Fetching UTXOs Failed.",_),(0,f.of)({type:w.pg.VOID}))))),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.FETCH_PAGE_SETTINGS_CLN),(0,M.z)(()=>(this.store.dispatch((0,S.Ni)({payload:{action:"FetchPageSettings",status:w.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.Ni)({payload:{action:"FetchPageSettings",status:w.Bn.COMPLETED}})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchPageSettings",w.m6.NO_SPINNER,"Fetching Page Settings Failed.",_),(0,f.of)({type:w.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(w.AB.SAVE_PAGE_SETTINGS_CLN),(0,M.z)(_=>(this.store.dispatch((0,D.ac)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.Ni)({payload:{action:"SavePageSettings",status:w.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,_.payload).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.Ni)({payload:{action:"SavePageSettings",status:w.Bn.COMPLETED}})),this.store.dispatch((0,D.uO)({payload:w.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,D.jW)({payload:"Page Layout Updated Successfully!"})),{type:w.AB.SET_PAGE_SETTINGS_CLN,payload:V||[]})),(0,d.K)(V=>(this.handleErrorWithAlert("SavePageSettings",w.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",R.NZ.PAGE_SETTINGS_API,V),(0,f.of)({type:w.pg.VOID})))))))),this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(_=>{_.FetchInfo.status!==w.Bn.COMPLETED&&_.FetchInfo.status!==w.Bn.ERROR||_.FetchFees.status!==w.Bn.COMPLETED&&_.FetchFees.status!==w.Bn.ERROR||_.FetchChannels.status!==w.Bn.COMPLETED&&_.FetchChannels.status!==w.Bn.ERROR||_.FetchBalance.status!==w.Bn.COMPLETED&&_.FetchBalance.status!==w.Bn.ERROR||_.FetchLocalRemoteBalance.status!==w.Bn.COMPLETED&&_.FetchLocalRemoteBalance.status!==w.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,D.uO)({payload:w.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.clWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(_=>{if(this.logger.info("Received new message from the service: "+JSON.stringify(_)),_)switch(_.event){case w.nM.INVOICE:this.logger.info(_),_&&_.data&&_.data.label&&this.store.dispatch((0,S.aL)({payload:_.data}));break;case w.nM.SEND_PAYMENT:case w.nM.BLOCK_HEIGHT:this.logger.info(_);break;default:this.logger.info("Received Event from WS: "+JSON.stringify(_))}})}initializeRemainingData(i,r){this.sessionService.setItem("clUnlocked","true");const u={identity_pubkey:i.id,alias:i.alias,testnet:"testnet"===i.network.toLowerCase(),chains:i.chains,uris:i.uris,version:i.version,api_version:i.api_version,numberOfPendingChannels:i.num_pending_channels};this.store.dispatch((0,D.ac)({payload:w.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,D._V)({payload:u}));let c=this.location.path();c.includes("/lnd/")?c=null==c?void 0:c.replace("/lnd/","/cln/"):c.includes("/ecl/")&&(c=null==c?void 0:c.replace("/ecl/","/cln/")),(c.includes("/login")||c.includes("/error")||""===c||"HOME"===r||c.includes("?access-key="))&&(c="/cln/home"),this.router.navigate([c]),this.store.dispatch((0,S.wD)()),this.store.dispatch((0,S.WM)({payload:{num_max_invoices:1e6,index_offset:0,reversed:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.UR)()),this.store.dispatch((0,S.EG)()),this.store.dispatch((0,S.g3)()),this.store.dispatch((0,S.HJ)({payload:"perkw"})),this.store.dispatch((0,S.HJ)({payload:"perkb"})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.Ly)()),this.store.dispatch((0,S.cQ)())}handleErrorWithoutAlert(i,r,u,c){if(this.logger.error("ERROR IN: "+i+"\n"+JSON.stringify(c)),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const v=this.commonService.extractErrorMessage(c,u);this.store.dispatch((0,S.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:c.status.toString(),message:v}}))}}handleErrorWithAlert(i,r,u,c,v){if(this.logger.error(v),401===v.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.ts)()),this.store.dispatch((0,D.kS)()),this.store.dispatch((0,D.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,D.uO)({payload:r}));const T=this.commonService.extractErrorMessage(v);this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:u,message:{code:v.status,message:T,URL:c},component:h.H}}})),this.store.dispatch((0,S.Ni)({payload:{action:i,status:w.Bn.ERROR,statusCode:v.status.toString(),message:T,URL:c}}))}}ngOnDestroy(){this.unSubs.forEach(i=>{i.next(null),i.complete()})}}return _e.\u0275fac=function(i){return new(i||_e)(B.LFG(t.eX),B.LFG(Z.eN),B.LFG(Y.yh),B.LFG(ae.m),B.LFG(ee.v),B.LFG(ue.mQ),B.LFG(ne.F0),B.LFG(re.d),B.LFG(ge.Ye))},_e.\u0275prov=B.Yz7({token:_e,factory:_e.\u0275fac}),_e})()},9828:(Be,K,p)=>{"use strict";p.d(K,{AS:()=>M,Ao:()=>re,Bo:()=>Y,EQ:()=>_e,Hz:()=>ge,JG:()=>L,OL:()=>ue,PP:()=>R,Rn:()=>B,T4:()=>k,Wi:()=>h,Wj:()=>Z,Y_:()=>q,ZW:()=>E,ey:()=>a,gc:()=>S,hx:()=>D,jK:()=>ne,lK:()=>ee,lw:()=>f,xQ:()=>ae,yA:()=>d,zm:()=>w});var t=p(5620);const e=(0,t.ZF)("cln"),f=(0,t.P1)(e,i=>i.nodeSettings),M=(0,t.P1)(e,i=>({pageSettings:i.pageSettings,apiCallStatus:i.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,i=>i.information),d=((0,t.P1)(e,i=>i.apisCallStatus.FetchInfo),(0,t.P1)(e,i=>i.apisCallStatus)),R=(0,t.P1)(e,i=>({payments:i.payments,apiCallStatus:i.apisCallStatus.FetchPayments})),h=(0,t.P1)(e,i=>({peers:i.peers,apiCallStatus:i.apisCallStatus.FetchPeers})),L=(0,t.P1)(e,i=>({fees:i.fees,apiCallStatus:i.apisCallStatus.FetchFees})),w=(0,t.P1)(e,i=>({feeRatesPerKB:i.feeRatesPerKB,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkb})),D=(0,t.P1)(e,i=>({feeRatesPerKW:i.feeRatesPerKW,apiCallStatus:i.apisCallStatus.FetchFeeRatesperkw})),S=(0,t.P1)(e,i=>({listInvoices:i.invoices,apiCallStatus:i.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,i=>({utxos:i.utxos,apiCallStatus:i.apisCallStatus.FetchUTXOs})),E=(0,t.P1)(e,i=>({activeChannels:i.activeChannels,pendingChannels:i.pendingChannels,inactiveChannels:i.inactiveChannels,apiCallStatus:i.apisCallStatus.FetchChannels})),B=(0,t.P1)(e,i=>({balance:i.balance,apiCallStatus:i.apisCallStatus.FetchBalance})),Z=(0,t.P1)(e,i=>({localRemoteBalance:i.localRemoteBalance,apiCallStatus:i.apisCallStatus.FetchLocalRemoteBalance})),Y=(0,t.P1)(e,i=>({forwardingHistory:i.forwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryS})),ae=(0,t.P1)(e,i=>({failedForwardingHistory:i.failedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryF})),ee=(0,t.P1)(e,i=>({localFailedForwardingHistory:i.localFailedForwardingHistory,apiCallStatus:i.apisCallStatus.FetchForwardingHistoryL})),ue=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,balance:i.balance})),ne=(0,t.P1)(e,i=>({information:i.information,balance:i.balance,numPeers:i.peers.length})),re=(0,t.P1)(e,i=>({information:i.information,balance:i.balance})),ge=(0,t.P1)(e,i=>({information:i.information,nodeSettings:i.nodeSettings,apisCallStatus:[i.apisCallStatus.FetchInfo,i.apisCallStatus.FetchForwardingHistoryS]})),q=(0,t.P1)(e,i=>({offers:i.offers,apiCallStatus:i.apisCallStatus.FetchOffers})),_e=(0,t.P1)(e,i=>({offersBookmarks:i.offersBookmarks,apiCallStatus:i.apisCallStatus.FetchOfferBookmarks}))},5566:(Be,K,p)=>{"use strict";p.d(K,{y:()=>ut});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(9828),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),B=p(9224),Z=p(9546),Y=p(7238),ae=p(7423),ee=p(4834),ue=p(773),ne=p(3390),re=p(6895);function ge(Oe,we){if(1&Oe&&d._UZ(0,"qr-code",33),2&Oe){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function q(Oe,we){1&Oe&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}const _e=function(Oe){return{"mr-0":Oe}};function x(Oe,we){if(1&Oe&&d._UZ(0,"span",35),2&Oe){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,_e,ce.screenSize===ce.screenSizeEnum.XS))}}function i(Oe,we){if(1&Oe&&d._UZ(0,"span",36),2&Oe){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,_e,ce.screenSize===ce.screenSizeEnum.XS))}}function r(Oe,we){if(1&Oe&&d._UZ(0,"span",37),2&Oe){const ce=d.oxw();d.Q6J("ngClass",d.VKq(1,_e,ce.screenSize===ce.screenSizeEnum.XS))}}function u(Oe,we){if(1&Oe&&d._UZ(0,"qr-code",33),2&Oe){const ce=d.oxw();d.Q6J("value",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))("size",ce.qrWidth)("errorCorrectionLevel","L")}}function c(Oe,we){1&Oe&&(d.TgZ(0,"span",38),d._uU(1,"QR Code Not Applicable"),d.qZA())}function v(Oe,we){1&Oe&&d._UZ(0,"mat-divider",39),2&Oe&&d.Q6J("inset",!0)}function T(Oe,we){if(1&Oe&&(d.TgZ(0,"div",19)(1,"div",40),d._UZ(2,"fa-icon",41),d.TgZ(3,"span"),d._uU(4),d.qZA()()()),2&Oe){const ce=d.oxw();d.xp6(2),d.Q6J("icon",ce.faExclamationTriangle),d.xp6(2),d.Oqu(null==ce.invoice?null:ce.invoice.warning_capacity)}}function I(Oe,we){1&Oe&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function y(Oe,we){1&Oe&&d._UZ(0,"span",47)}const n=function(){return[]};function _(Oe,we){if(1&Oe&&(d.TgZ(0,"div",43)(1,"div",44)(2,"span",45),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,y,1,0,"span",46),d.qZA()()),2&Oe){const ce=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,n).constructor(35))}}function V(Oe,we){if(1&Oe&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&Oe){const ce=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,(null==ce.invoice?null:ce.invoice.msatoshi_received)/1e3)," Sats")}}function N(Oe,we){if(1&Oe&&(d.ynx(0),d.YNc(1,_,6,5,"div",42),d.YNc(2,V,3,3,"div",23),d.BQk()),2&Oe){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf",ce.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!ce.flgInvoicePaid)}}function H(Oe,we){1&Oe&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function X(Oe,we){1&Oe&&d._UZ(0,"mat-spinner",49),2&Oe&&d.Q6J("diameter",20)}function he(Oe,we){if(1&Oe&&(d.ynx(0),d.YNc(1,H,2,0,"span",23),d.YNc(2,X,1,1,"mat-spinner",48),d.BQk()),2&Oe){const ce=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==ce.invoice?null:ce.invoice.status)||!ce.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==ce.invoice?null:ce.invoice.status)&&ce.flgVersionCompatible)}}function be(Oe,we){if(1&Oe&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",25),d.TgZ(2,"div",19)(3,"div",26)(4,"h4",21),d._uU(5,"Payment Hash"),d.qZA(),d.TgZ(6,"span",24),d._uU(7),d.qZA()()(),d._UZ(8,"mat-divider",25),d.TgZ(9,"div",19)(10,"div",26)(11,"h4",21),d._uU(12,"Label"),d.qZA(),d.TgZ(13,"span",24),d._uU(14),d.qZA()()(),d._UZ(15,"mat-divider",25),d.qZA()),2&Oe){const ce=d.oxw();d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.payment_hash),d.xp6(7),d.Oqu(null==ce.invoice?null:ce.invoice.label)}}function Pe(Oe,we){1&Oe&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ee(Oe,we){1&Oe&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function j(Oe,we){if(1&Oe){const ce=d.EpF();d.TgZ(0,"button",50),d.NdJ("copied",function(xe){return d.CHM(ce),d.oxw().onCopyPayment(xe)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&Oe){const ce=d.oxw();d.Q6J("payload",(null==ce.invoice?null:ce.invoice.bolt11)||(null==ce.invoice?null:ce.invoice.bolt12))}}function Ve(Oe,we){if(1&Oe){const ce=d.EpF();d.TgZ(0,"button",51),d.NdJ("click",function(){return d.CHM(ce),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Me=function(Oe){return{"display-none":Oe}},J=function(Oe){return{"xs-scroll-y":Oe}},Ie=function(Oe,we){return{"mt-2":Oe,"mt-1":we}};let ut=(()=>{class Oe{constructor(ce,Te,xe,W,te,Ce){this.dialogRef=ce,this.data=Te,this.logger=xe,this.commonService=W,this.snackBar=te,this.store=Ce,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(ce=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(ce.api_version,"0.6.0")}),this.store.select(C.gc).pipe((0,M.R)(this.unSubs[1])).subscribe(ce=>{const Te=this.invoice.status,xe=ce.listInvoices.invoices||[],W=(null==xe?void 0:xe.find(te=>te.payment_hash===this.invoice.payment_hash))||null;W&&(this.invoice=W),Te!==this.invoice.status&&"paid"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(ce)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(ce){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+ce)}ngOnDestroy(){this.unSubs.forEach(ce=>{ce.next(null),ce.complete()})}}return Oe.\u0275fac=function(ce){return new(ce||Oe)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},Oe.\u0275cmp=d.Xpm({type:Oe,selectors:[["rtl-cln-invoice-information"]],decls:72,vars:49,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,"value","size","errorCorrectionLevel",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"],["class","dot green ml-1","matTooltip","Paid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot yellow ml-1","matTooltip","Unpaid","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["class","dot red ml-1","matTooltip","Expired","matTooltipPosition","right",3,"ngClass",4,"ngIf"],["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,"overflow-wrap","foreground-secondary-text"],[1,"w-100","my-1"],["fxFlex","100"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],["matTooltip","Paid","matTooltipPosition","right",1,"dot","green","ml-1",3,"ngClass"],["matTooltip","Unpaid","matTooltipPosition","right",1,"dot","yellow","ml-1",3,"ngClass"],["matTooltip","Expired","matTooltipPosition","right",1,"dot","red","ml-1",3,"ngClass"],[1,"font-size-120"],[1,"my-1",3,"inset"],["fxFlex","100",1,"alert","alert-warn"],[1,"mr-1","alert-icon",3,"icon"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(ce,Te){if(1&ce&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,ge,1,3,"qr-code",2),d.YNc(3,q,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.YNc(10,x,1,3,"span",9),d.YNc(11,i,1,3,"span",10),d.YNc(12,r,1,3,"span",11),d.qZA()(),d.TgZ(13,"button",12),d.NdJ("click",function(){return Te.onClose()}),d._uU(14,"X"),d.qZA()(),d.TgZ(15,"mat-card-content",13)(16,"div",14)(17,"div",15),d.YNc(18,u,1,3,"qr-code",2),d.YNc(19,c,2,0,"span",16),d.qZA(),d.YNc(20,v,1,1,"mat-divider",17),d.YNc(21,T,5,2,"div",18),d.TgZ(22,"div",19)(23,"div",20)(24,"h4",21),d._uU(25),d.qZA(),d.TgZ(26,"span",22),d._uU(27),d.ALo(28,"number"),d.YNc(29,I,2,0,"ng-container",23),d.qZA()(),d.TgZ(30,"div",20)(31,"h4",21),d._uU(32,"Amount Received"),d.qZA(),d.TgZ(33,"span",24),d.YNc(34,N,3,2,"ng-container",23),d.YNc(35,he,3,2,"ng-container",23),d.qZA()()(),d._UZ(36,"mat-divider",25),d.TgZ(37,"div",19)(38,"div",20)(39,"h4",21),d._uU(40,"Date Expiry"),d.qZA(),d.TgZ(41,"span",22),d._uU(42),d.ALo(43,"date"),d.qZA()(),d.TgZ(44,"div",20)(45,"h4",21),d._uU(46,"Date Settled"),d.qZA(),d.TgZ(47,"span",22),d._uU(48),d.ALo(49,"date"),d.qZA()()(),d._UZ(50,"mat-divider",25),d.TgZ(51,"div",19)(52,"div",26)(53,"h4",21),d._uU(54,"Description"),d.qZA(),d.TgZ(55,"span",22),d._uU(56),d.qZA()()(),d._UZ(57,"mat-divider",25),d.TgZ(58,"div",19)(59,"div",26)(60,"h4",21),d._uU(61),d.qZA(),d.TgZ(62,"span",24),d._uU(63),d.qZA()()(),d.YNc(64,be,16,2,"div",23),d.TgZ(65,"div",27)(66,"button",28),d.NdJ("click",function(){return Te.onShowAdvanced()}),d.YNc(67,Pe,2,0,"p",29),d.YNc(68,Ee,2,0,"ng-template",null,30,d.W1O),d.qZA(),d.YNc(70,j,2,1,"button",31),d.YNc(71,Ve,2,0,"button",32),d.qZA()()()()()),2&ce){const xe=d.MAs(69);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(40,Me,Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(4),d.Q6J("icon",Te.faReceipt),d.xp6(2),d.hij(" ",Te.screenSize===Te.screenSizeEnum.XS?Te.newlyAdded?"Created":"Invoice":Te.newlyAdded?"Invoice Created":"Invoice Information"," "),d.xp6(1),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","expired"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(3),d.Q6J("ngClass",d.VKq(42,J,Te.screenSize===Te.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Te.invoice&&Te.invoice.bolt11&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||null!=Te.invoice&&Te.invoice.bolt12&&""!==(null==Te.invoice?null:Te.invoice.bolt12)?"center start":"center center")("ngClass",d.VKq(44,Me,Te.screenSize!==Te.screenSizeEnum.XS&&Te.screenSize!==Te.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.screenSize===Te.screenSizeEnum.XS||Te.screenSize===Te.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngIf",null==Te.invoice?null:Te.invoice.warning_capacity),d.xp6(4),d.Oqu(Te.screenSize===Te.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij(" ",d.lcZ(28,32,(null==Te.invoice?null:Te.invoice.msatoshi)/1e3||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.msatoshi)||"0"===(null==Te.invoice?null:Te.invoice.msatoshi)),d.xp6(5),d.Q6J("ngIf","paid"===(null==Te.invoice?null:Te.invoice.status)),d.xp6(1),d.Q6J("ngIf","paid"!==(null==Te.invoice?null:Te.invoice.status)),d.xp6(7),d.Oqu(d.xi3(43,34,1e3*(null==Te.invoice?null:Te.invoice.expires_at),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(49,37,1e3*(null==Te.invoice?null:Te.invoice.paid_at),"dd/MMM/y HH:mm")||"-"),d.xp6(8),d.Oqu((null==Te.invoice?null:Te.invoice.description)||"-"),d.xp6(5),d.hij("",null!=Te.invoice&&Te.invoice.bolt12?"Bolt12":null!=Te.invoice&&Te.invoice.bolt11&&!Te.invoice.label.includes("keysend-")?"Bolt11":"Keysend"," Invoice"),d.xp6(2),d.Oqu((null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",Te.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(46,Ie,!Te.showAdvanced,Te.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Te.showAdvanced)("ngIfElse",xe),d.xp6(3),d.Q6J("ngIf",(null==Te.invoice?null:Te.invoice.bolt11)&&""!==(null==Te.invoice?null:Te.invoice.bolt11)||(null==Te.invoice?null:Te.invoice.bolt12)&&""!==(null==Te.invoice?null:Te.invoice.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Te.invoice&&Te.invoice.bolt11||null!=Te.invoice&&Te.invoice.bolt12))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,B.dk,Z.BN,Y.gM,ae.lW,B.dn,ee.d,S.sg,ue.Ou,ne.h,re.y],pipes:[S.JJ,S.uU],styles:[""]}),Oe})()},1462:(Be,K,p)=>{"use strict";p.d(K,{k:()=>H});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(9828),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(8104),S=p(7093),k=p(9808),E=p(3322),B=p(159),Z=p(9224),Y=p(9546),ae=p(7423),ee=p(4834),ue=p(3390),ne=p(6895);function re(X,he){if(1&X&&d._UZ(0,"qr-code",28),2&X){const be=d.oxw();d.Q6J("value",null==be.offer?null:be.offer.bolt12)("size",be.qrWidth)("errorCorrectionLevel","L")}}function ge(X,he){1&X&&(d.TgZ(0,"span",29),d._uU(1,"N/A"),d.qZA())}function q(X,he){if(1&X&&d._UZ(0,"qr-code",28),2&X){const be=d.oxw();d.Q6J("value",null==be.offer?null:be.offer.bolt12)("size",be.qrWidth)("errorCorrectionLevel","L")}}function _e(X,he){1&X&&(d.TgZ(0,"span",30),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(X,he){1&X&&d._UZ(0,"mat-divider",31),2&X&&d.Q6J("inset",!0)}function i(X,he){1&X&&d._UZ(0,"mat-divider",19)}function r(X,he){if(1&X&&(d.TgZ(0,"div",15)(1,"div",16)(2,"h4",17),d._uU(3,"Used"),d.qZA(),d.TgZ(4,"span",18),d._uU(5),d.qZA()(),d.TgZ(6,"div",16)(7,"h4",17),d._uU(8,"Single Use"),d.qZA(),d.TgZ(9,"span",18),d._uU(10),d.qZA()()()),2&X){const be=d.oxw(2);d.xp6(5),d.hij(" ",null!=be.offer&&be.offer.used?null!=be.offer&&be.offer.used?"Yes":"No":"N/K"," "),d.xp6(5),d.hij(" ",null!=be.offer&&be.offer.single_use?null!=be.offer&&be.offer.single_use?"Yes":"No":"N/K"," ")}}function u(X,he){1&X&&d._UZ(0,"mat-divider",19)}function c(X,he){if(1&X&&(d.TgZ(0,"div",15)(1,"div",20)(2,"h4",17),d._uU(3,"Vendor"),d.qZA(),d.TgZ(4,"span",34),d._uU(5),d.qZA()()()),2&X){const be=d.oxw(2);d.xp6(5),d.Oqu((null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer))}}function v(X,he){if(1&X&&(d.TgZ(0,"div"),d.YNc(1,i,1,0,"mat-divider",32),d.YNc(2,r,11,2,"div",33),d.YNc(3,u,1,0,"mat-divider",32),d.YNc(4,c,6,1,"div",33),d._UZ(5,"mat-divider",19),d.TgZ(6,"div",15)(7,"div",20)(8,"h4",17),d._uU(9,"Offer ID"),d.qZA(),d.TgZ(10,"span",18),d._uU(11),d.qZA()()(),d._UZ(12,"mat-divider",19),d.qZA()),2&X){const be=d.oxw();d.xp6(1),d.Q6J("ngIf",(null==be.offer?null:be.offer.used)||(null==be.offer?null:be.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==be.offer?null:be.offer.used)||(null==be.offer?null:be.offer.single_use)),d.xp6(1),d.Q6J("ngIf",(null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer)),d.xp6(1),d.Q6J("ngIf",(null==be.offerDecoded?null:be.offerDecoded.vendor)||(null==be.offerDecoded?null:be.offerDecoded.issuer)),d.xp6(7),d.Oqu(be.offerDecoded.offer_id)}}function T(X,he){1&X&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function I(X,he){1&X&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function y(X,he){if(1&X){const be=d.EpF();d.TgZ(0,"button",35),d.NdJ("copied",function(Ee){return d.CHM(be),d.oxw().onCopyOffer(Ee)}),d._uU(1,"Copy Offer"),d.qZA()}if(2&X){const be=d.oxw();d.Q6J("payload",null==be.offer?null:be.offer.bolt12)}}function n(X,he){if(1&X){const be=d.EpF();d.TgZ(0,"button",36),d.NdJ("click",function(){return d.CHM(be),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const _=function(X){return{"display-none":X}},V=function(X){return{"xs-scroll-y":X}},N=function(X,he){return{"mt-2":X,"mt-1":he}};let H=(()=>{class X{constructor(be,Pe,Ee,j,Ve,Me,J){this.dialogRef=be,this.data=Pe,this.logger=Ee,this.commonService=j,this.snackBar=Ve,this.store=Me,this.dataService=J,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.offerDecoded={},this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOfferPaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.offer=this.data.offer,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.ey).pipe((0,M.R)(this.unSubs[0])).subscribe(be=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(be.api_version,"0.6.0")}),this.dataService.decodePayment(this.offer.bolt12,!0).pipe((0,M.R)(this.unSubs[1])).subscribe(be=>{var Pe;this.offerDecoded=be,this.offerDecoded.offer_id&&!this.offerDecoded.amount_msat?(this.offerDecoded.amount_msat="0msat",this.offerDecoded.amount=0):this.offerDecoded.amount=this.offerDecoded.amount?+this.offerDecoded.amount:this.offerDecoded.amount_msat?+(null===(Pe=this.offerDecoded.amount_msat)||void 0===Pe?void 0:Pe.slice(0,-4)):null})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyOffer(be){this.snackBar.open("Offer copied."),this.logger.info("Copied Text: "+be)}ngOnDestroy(){this.unSubs.forEach(be=>{be.next(null),be.complete()})}}return X.\u0275fac=function(be){return new(be||X)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh),d.Y36(D.D))},X.\u0275cmp=d.Xpm({type:X,selectors:[["rtl-cln-offer-information"]],decls:52,vars:33,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,"value","size","errorCorrectionLevel",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"],[1,"w-100","my-1"],["fxFlex","100"],[4,"ngIf"],["fxLayout","row","fxLayoutAlign","end center",3,"ngClass"],["mat-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],[1,"overflow-wrap","foreground-secondary-text"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(be,Pe){if(1&be&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,re,1,3,"qr-code",2),d.YNc(3,ge,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return Pe.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,q,1,3,"qr-code",2),d.YNc(16,_e,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested (Sats)"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.qZA()(),d.TgZ(25,"div",16)(26,"h4",17),d._uU(27,"Active"),d.qZA(),d.TgZ(28,"span",18),d._uU(29),d.qZA()()(),d._UZ(30,"mat-divider",19),d.TgZ(31,"div",15)(32,"div",20)(33,"h4",17),d._uU(34,"Description"),d.qZA(),d.TgZ(35,"span",18),d._uU(36),d.qZA()()(),d._UZ(37,"mat-divider",19),d.TgZ(38,"div",15)(39,"div",20)(40,"h4",17),d._uU(41,"Offer Request"),d.qZA(),d.TgZ(42,"span",18),d._uU(43),d.qZA()()(),d.YNc(44,v,13,5,"div",21),d.TgZ(45,"div",22)(46,"button",23),d.NdJ("click",function(){return Pe.onShowAdvanced()}),d.YNc(47,T,2,0,"p",24),d.YNc(48,I,2,0,"ng-template",null,25,d.W1O),d.qZA(),d.YNc(50,y,2,1,"button",26),d.YNc(51,n,2,0,"button",27),d.qZA()()()()()),2&be){const Ee=d.MAs(49);d.xp6(1),d.Q6J("fxLayoutAlign",null!=Pe.offer&&Pe.offer.bolt12&&""!==(null==Pe.offer?null:Pe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(24,_,Pe.screenSize===Pe.screenSizeEnum.XS||Pe.screenSize===Pe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(4),d.Q6J("icon",Pe.faReceipt),d.xp6(2),d.Oqu(Pe.screenSize===Pe.screenSizeEnum.XS?Pe.newlyAdded?"Created":"Offer":Pe.newlyAdded?"Offer Created":"Offer Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(26,V,Pe.screenSize===Pe.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=Pe.offer&&Pe.offer.bolt12&&""!==(null==Pe.offer?null:Pe.offer.bolt12)?"center start":"center center")("ngClass",d.VKq(28,_,Pe.screenSize!==Pe.screenSizeEnum.XS&&Pe.screenSize!==Pe.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",Pe.screenSize===Pe.screenSizeEnum.XS||Pe.screenSize===Pe.screenSizeEnum.SM),d.xp6(6),d.hij(" ",null!=Pe.offerDecoded&&Pe.offerDecoded.amount_msat&&0!==(null==Pe.offerDecoded?null:Pe.offerDecoded.amount)?d.lcZ(24,22,(null==Pe.offerDecoded?null:Pe.offerDecoded.amount)/1e3):"Open Offer"," "),d.xp6(6),d.hij(" ",null!=Pe.offer&&Pe.offer.active?null!=Pe.offer&&Pe.offer.active?"Active":"Inactive":"N/K"," "),d.xp6(7),d.hij(" ",null==Pe.offerDecoded?null:Pe.offerDecoded.description," "),d.xp6(7),d.Oqu(null==Pe.offer?null:Pe.offer.bolt12),d.xp6(1),d.Q6J("ngIf",Pe.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(30,N,!Pe.showAdvanced,Pe.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!Pe.showAdvanced)("ngIfElse",Ee),d.xp6(3),d.Q6J("ngIf",(null==Pe.offer?null:Pe.offer.bolt12)&&""!==(null==Pe.offer?null:Pe.offer.bolt12)),d.xp6(1),d.Q6J("ngIf",!(null!=Pe.offer&&Pe.offer.bolt12)||""===(null==Pe.offer?null:Pe.offer.bolt12))}},directives:[S.xw,S.Wh,S.yH,k.mk,E.oO,k.O5,B.uU,Z.dk,Y.BN,ae.lW,Z.dn,ee.d,ue.h,ne.y],pipes:[k.JJ],styles:[""]}),X})()},2994:(Be,K,p)=>{"use strict";p.d(K,{$W:()=>ue,BL:()=>v,Bw:()=>Y,CX:()=>L,DJ:()=>Oe,EK:()=>x,El:()=>re,Fd:()=>M,GD:()=>_e,HG:()=>ee,HI:()=>y,Iy:()=>he,Lf:()=>X,Nr:()=>Ee,OG:()=>T,On:()=>ae,QZ:()=>f,RX:()=>D,SN:()=>w,Sf:()=>J,TM:()=>N,TW:()=>E,UR:()=>S,WM:()=>Pe,WO:()=>n,YP:()=>Ve,YX:()=>u,Z$:()=>j,Z8:()=>ne,Zr:()=>a,_E:()=>i,aL:()=>Me,cQ:()=>I,eF:()=>R,eN:()=>k,i:()=>B,iL:()=>Z,iz:()=>h,kL:()=>_,mC:()=>H,n7:()=>Ie,oV:()=>V,pW:()=>c,pd:()=>d,ti:()=>we,wD:()=>C});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.lr.UPDATE_API_CALL_STATUS_ECL,(0,t.Ky)()),M=(0,t.PH)(e.lr.RESET_ECL_STORE,(0,t.Ky)()),a=(0,t.PH)(e.lr.SET_CHILD_NODE_SETTINGS_ECL,(0,t.Ky)()),C=(0,t.PH)(e.lr.FETCH_PAGE_SETTINGS_ECL),d=(0,t.PH)(e.lr.SET_PAGE_SETTINGS_ECL,(0,t.Ky)()),R=(0,t.PH)(e.lr.SAVE_PAGE_SETTINGS_ECL,(0,t.Ky)()),h=(0,t.PH)(e.lr.FETCH_INFO_ECL,(0,t.Ky)()),L=(0,t.PH)(e.lr.SET_INFO_ECL,(0,t.Ky)()),w=(0,t.PH)(e.lr.FETCH_FEES_ECL),D=(0,t.PH)(e.lr.SET_FEES_ECL,(0,t.Ky)()),S=(0,t.PH)(e.lr.FETCH_CHANNELS_ECL,(0,t.Ky)()),k=(0,t.PH)(e.lr.SET_ACTIVE_CHANNELS_ECL,(0,t.Ky)()),E=(0,t.PH)(e.lr.SET_PENDING_CHANNELS_ECL,(0,t.Ky)()),B=(0,t.PH)(e.lr.SET_INACTIVE_CHANNELS_ECL,(0,t.Ky)()),Z=(0,t.PH)(e.lr.FETCH_ONCHAIN_BALANCE_ECL),Y=(0,t.PH)(e.lr.SET_ONCHAIN_BALANCE_ECL,(0,t.Ky)()),ae=(0,t.PH)(e.lr.SET_LIGHTNING_BALANCE_ECL,(0,t.Ky)()),ee=(0,t.PH)(e.lr.SET_CHANNELS_STATUS_ECL,(0,t.Ky)()),ue=(0,t.PH)(e.lr.FETCH_PEERS_ECL),ne=(0,t.PH)(e.lr.SET_PEERS_ECL,(0,t.Ky)()),re=(0,t.PH)(e.lr.SAVE_NEW_PEER_ECL,(0,t.Ky)()),_e=((0,t.PH)(e.lr.NEWLY_ADDED_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.ADD_PEER_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.DETACH_PEER_ECL,(0,t.Ky)())),x=(0,t.PH)(e.lr.REMOVE_PEER_ECL,(0,t.Ky)()),i=(0,t.PH)(e.lr.GET_NEW_ADDRESS_ECL),u=((0,t.PH)(e.lr.SET_NEW_ADDRESS_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.SAVE_NEW_CHANNEL_ECL,(0,t.Ky)())),c=(0,t.PH)(e.lr.UPDATE_CHANNEL_ECL,(0,t.Ky)()),v=(0,t.PH)(e.lr.CLOSE_CHANNEL_ECL,(0,t.Ky)()),T=(0,t.PH)(e.lr.REMOVE_CHANNEL_ECL,(0,t.Ky)()),I=(0,t.PH)(e.lr.FETCH_PAYMENTS_ECL),y=(0,t.PH)(e.lr.SET_PAYMENTS_ECL,(0,t.Ky)()),n=(0,t.PH)(e.lr.GET_QUERY_ROUTES_ECL,(0,t.Ky)()),_=(0,t.PH)(e.lr.SET_QUERY_ROUTES_ECL,(0,t.Ky)()),V=(0,t.PH)(e.lr.SEND_PAYMENT_ECL,(0,t.Ky)()),N=(0,t.PH)(e.lr.SEND_PAYMENT_STATUS_ECL,(0,t.Ky)()),H=(0,t.PH)(e.lr.FETCH_TRANSACTIONS_ECL),X=(0,t.PH)(e.lr.SET_TRANSACTIONS_ECL,(0,t.Ky)()),he=(0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_ECL,(0,t.Ky)()),Pe=((0,t.PH)(e.lr.SEND_ONCHAIN_FUNDS_RES_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.FETCH_INVOICES_ECL)),Ee=(0,t.PH)(e.lr.SET_INVOICES_ECL,(0,t.Ky)()),j=(0,t.PH)(e.lr.CREATE_INVOICE_ECL,(0,t.Ky)()),Ve=(0,t.PH)(e.lr.ADD_INVOICE_ECL,(0,t.Ky)()),Me=(0,t.PH)(e.lr.UPDATE_INVOICE_ECL,(0,t.Ky)()),J=(0,t.PH)(e.lr.PEER_LOOKUP_ECL,(0,t.Ky)()),Ie=(0,t.PH)(e.lr.INVOICE_LOOKUP_ECL,(0,t.Ky)()),Oe=((0,t.PH)(e.lr.SET_LOOKUP_ECL,(0,t.Ky)()),(0,t.PH)(e.lr.UPDATE_CHANNEL_STATE_ECL,(0,t.Ky)())),we=(0,t.PH)(e.lr.UPDATE_RELAYED_PAYMENT_ECL,(0,t.Ky)())},3289:(Be,K,p)=>{"use strict";p.d(K,{o:()=>ge});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),C=p(4004),d=p(262),R=p(2340),h=p(1786),L=p(7731),w=p(7861),D=p(7766),S=p(2994),k=p(2501),E=p(5e3),B=p(8138),Z=p(5620),Y=p(5986),ae=p(62),ee=p(5043),ue=p(1402),ne=p(7998),re=p(9808);let ge=(()=>{class q{constructor(x,i,r,u,c,v,T,I,y){this.actions=x,this.httpClient=i,this.store=r,this.sessionService=u,this.commonService=c,this.logger=v,this.router=T,this.wsService=I,this.location=y,this.CHILD_API_URL=R.T5+"/ecl",this.flgInitialized=!1,this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.rawChannelsList=[],this.unSubs=[new e.x,new e.x,new e.x],this.infoFetchECL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_INFO_ECL),(0,M.z)(n=>(this.flgInitialized=!1,this.store.dispatch((0,w.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,w.ac)({payload:L.m6.GET_NODE_INFO})),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(L.pg.SET_SELECTED_NODE))),(0,C.U)(_=>(this.logger.info(_),this.initializeRemainingData(_,n.payload.loadPage),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInfo",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.GET_NODE_INFO})),{type:L.lr.SET_INFO_ECL,payload:_||{}})),(0,d.K)(_=>{const V=this.commonService.extractErrorCode(_),N=503===V?"Unable to Connect to Eclair Server.":this.commonService.extractErrorMessage(_);return this.router.navigate(["/error"],{state:{errorCode:V,errorMessage:N}}),this.handleErrorWithoutAlert("FetchInfo",L.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:V,error:N}),(0,f.of)({type:L.pg.VOID})})))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_FEES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/fees").pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchFees",status:L.Bn.COMPLETED}})),{type:L.lr.SET_FEES_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchFees",L.m6.NO_SPINNER,"Fetching Fees Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.fetchPayments=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PAYMENTS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.FEES_API+"/payments").pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPayments",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAYMENTS_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPayments",L.m6.NO_SPINNER,"Fetching Payments Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_CHANNELS_ECL),(0,M.z)(n=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.CHANNELS_API).pipe((0,C.U)(_=>(this.logger.info(_),this.rawChannelsList=_,this.setChannelsAndStatusAndBalances(),this.store.dispatch((0,S.QZ)({payload:{action:"FetchChannels",status:L.Bn.COMPLETED}})),n.payload&&n.payload.fetchPayments&&this.store.dispatch((0,S.cQ)()),{type:L.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithoutAlert("FetchChannels",L.m6.NO_SPINNER,"Fetching Channels Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.fetchOnchainBalance=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_ONCHAIN_BALANCE_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/balance"))),(0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchOnchainBalance",status:L.Bn.COMPLETED}})),{type:L.lr.SET_ONCHAIN_BALANCE_ECL,payload:n||{}})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchOnchainBalance",L.m6.NO_SPINNER,"Fetching Onchain Balances Failed.",n),(0,f.of)({type:L.pg.VOID}))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PEERS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.PEERS_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPeers",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PEERS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPeers",L.m6.NO_SPINNER,"Fetching Peers Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.GET_NEW_ADDRESS_ECL),(0,M.z)(()=>(this.store.dispatch((0,w.ac)({payload:L.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,w.uO)({payload:L.m6.GENERATE_NEW_ADDRESS})),{type:L.lr.SET_NEW_ADDRESS_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithAlert("GetNewAddress",L.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n),(0,f.of)({type:L.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_NEW_ADDRESS_ECL),(0,C.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_NEW_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PEERS_API+(n.payload.id.includes("@")?"?uri=":"?nodeId=")+n.payload.id,{}).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewPeer",status:L.Bn.COMPLETED}})),_=_||[],this.store.dispatch((0,w.uO)({payload:L.m6.CONNECT_PEER})),this.store.dispatch((0,S.Z8)({payload:_})),{type:L.lr.NEWLY_ADDED_PEER_ECL,payload:{peer:_.find(V=>V.nodeId===(n.payload.id.includes("@")?n.payload.id.substring(0,n.payload.id.indexOf("@")):n.payload.id))}})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SaveNewPeer",L.m6.CONNECT_PEER,"Peer Connection Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.DETACH_PEER_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,w.uO)({payload:L.m6.DISCONNECT_PEER})),this.store.dispatch((0,w.jW)({payload:"Disconnecting Peer!"})),{type:L.lr.REMOVE_PEER_ECL,payload:{nodeId:n.payload.nodeId}})),(0,d.K)(_=>(this.handleErrorWithAlert("DisconnectPeer",L.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+R.NZ.PEERS_API+"/"+n.payload.nodeId,_),(0,f.of)({type:L.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_NEW_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.INITIATED}}));const _={nodeId:n.payload.nodeId,fundingSatoshis:n.payload.amount,announceChannel:!n.payload.private};return n.payload.feeRate&&n.payload.feeRate>0&&(_.fundingFeerateSatByte=n.payload.feeRate),n.payload.channelType&&""!==n.payload.channelType&&(_.channelType=n.payload.channelType),this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API,_).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,S.QZ)({payload:{action:"SaveNewChannel",status:L.Bn.COMPLETED}})),this.store.dispatch((0,S.$W)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,w.uO)({payload:L.m6.OPEN_CHANNEL})),this.store.dispatch((0,w.jW)({payload:"Channel Added Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithoutAlert("SaveNewChannel",L.m6.OPEN_CHANNEL,"Opening Channel Failed.",V),(0,f.of)({type:L.pg.VOID}))))}))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.UPDATE_CHANNEL_ECL),(0,M.z)(n=>{this.store.dispatch((0,w.ac)({payload:L.m6.UPDATE_CHAN_POLICY}));let _="?feeBaseMsat="+n.payload.baseFeeMsat+"&feeProportionalMillionths="+n.payload.feeRate;return _=n.payload.nodeIds?_+"&nodeIds="+n.payload.nodeIds:n.payload.nodeId?_+"&nodeId="+n.payload.nodeId:n.payload.channelIds?_+"&channelIds="+n.payload.channelIds:_+"&channelId="+n.payload.channelId,this.httpClient.post(this.CHILD_API_URL+R.NZ.CHANNELS_API+"/updateRelayFee"+_,{}).pipe((0,C.U)(V=>(this.logger.info(V),this.store.dispatch((0,w.uO)({payload:L.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,w.jW)(n.payload.nodeIds||n.payload.channelIds?{payload:"Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:L.lr.FETCH_CHANNELS_ECL,payload:{fetchPayments:!1}})),(0,d.K)(V=>(this.handleErrorWithAlert("UpdateChannels",L.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+R.NZ.CHANNELS_API,V),(0,f.of)({type:L.pg.VOID}))))}))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.CLOSE_CHANNEL_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.httpClient.delete(this.CHILD_API_URL+R.NZ.CHANNELS_API+"?channelId="+n.payload.channelId+"&force="+n.payload.force).pipe((0,C.U)(_=>(this.logger.info(_),setTimeout(()=>{this.store.dispatch((0,w.uO)({payload:n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!1}})),this.store.dispatch((0,w.jW)({payload:n.payload.force?"Channel Force Closed Successfully!":"Channel Closed Successfully!"}))},2e3),{type:L.pg.VOID})),(0,d.K)(_=>(this.handleErrorWithAlert("CloseChannel",n.payload.force?L.m6.FORCE_CLOSE_CHANNEL:L.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+R.NZ.CHANNELS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.GET_QUERY_ROUTES_ECL),(0,M.z)(n=>this.httpClient.get(this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount).pipe((0,C.U)(_=>(this.logger.info(_),{type:L.lr.SET_QUERY_ROUTES_ECL,payload:_})),(0,d.K)(_=>(this.store.dispatch((0,S.kL)({payload:[]})),this.handleErrorWithAlert("GetQueryRoutes",L.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API+"/route?nodeId="+n.payload.nodeId+"&amountMsat="+n.payload.amount,_),(0,f.of)({type:L.pg.VOID}))))))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_QUERY_ROUTES_ECL),(0,C.U)(n=>n.payload)),{dispatch:!1}),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SEND_PAYMENT_ECL),(0,M.z)(n=>(this.flgReceivedPaymentUpdateFromWS=!1,this.latestPaymentRes="",this.store.dispatch((0,w.ac)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.PAYMENTS_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.latestPaymentRes=_,setTimeout(()=>{this.flgReceivedPaymentUpdateFromWS||this.handleSendPaymentStatus("Payment Submitted!")},3e3),{type:L.pg.VOID})),(0,d.K)(_=>(this.logger.error("Error: "+JSON.stringify(_)),n.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed.",_):this.handleErrorWithAlert("SendPayment",L.m6.SEND_PAYMENT,"Send Payment Failed",this.CHILD_API_URL+R.NZ.PAYMENTS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_TRANSACTIONS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.ON_CHAIN_API+"/transactions?count=1000&skip=0"))),(0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchTransactions",status:L.Bn.COMPLETED}})),{type:L.lr.SET_TRANSACTIONS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchTransactions",L.m6.NO_SPINNER,"Fetching Transactions Failed.",n),(0,f.of)({type:L.pg.VOID}))))),this.SendOnchainFunds=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SEND_ONCHAIN_FUNDS_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.ON_CHAIN_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SendOnchainFunds",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEND_FUNDS})),this.store.dispatch((0,S.iL)()),{type:L.lr.SEND_ONCHAIN_FUNDS_RES_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("SendOnchainFunds",L.m6.SEND_FUNDS,"Sending Fund Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.createInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.CREATE_INVOICE_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.CREATE_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:L.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+R.NZ.INVOICES_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"CreateInvoice",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.CREATE_INVOICE})),_.timestamp=Math.round((new Date).getTime()/1e3),_.expiresAt=Math.round(_.timestamp+n.payload.expireIn),_.description=n.payload.description,_.status="unpaid",setTimeout(()=>{this.store.dispatch((0,w.qR)({payload:{data:{invoice:_,newlyAdded:!0,component:D.R}}}))},200),{type:L.lr.ADD_INVOICE_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("CreateInvoice",L.m6.CREATE_INVOICE,"Create Invoice Failed.",_),(0,f.of)({type:L.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_INVOICES_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchInvoices",status:L.Bn.COMPLETED}})),{type:L.lr.SET_INVOICES_ECL,payload:n})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchInvoices",L.m6.NO_SPINNER,"Fetching Invoices Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.PEER_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEARCHING_NODE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEARCHING_NODE})),{type:L.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithAlert("Lookup",L.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+R.NZ.NETWORK_API+"/nodes/"+n.payload,_),(0,f.of)({type:L.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.INVOICE_LOOKUP_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+R.NZ.INVOICES_API+"/"+n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"Lookup",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEARCHING_INVOICE})),this.store.dispatch((0,S.aL)({payload:_})),{type:L.lr.SET_LOOKUP_ECL,payload:_})),(0,d.K)(_=>(this.handleErrorWithoutAlert("Lookup",L.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",_),this.store.dispatch((0,w.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:L.pg.VOID})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SET_LOOKUP_ECL),(0,C.U)(n=>(this.logger.info(n.payload),n.payload))),{dispatch:!1}),this.pageSettingsFetchCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.FETCH_PAGE_SETTINGS_ECL),(0,M.z)(()=>(this.store.dispatch((0,S.QZ)({payload:{action:"FetchPageSettings",status:L.Bn.INITIATED}})),this.httpClient.get(R.NZ.PAGE_SETTINGS_API).pipe((0,C.U)(n=>(this.logger.info(n),this.store.dispatch((0,S.QZ)({payload:{action:"FetchPageSettings",status:L.Bn.COMPLETED}})),{type:L.lr.SET_PAGE_SETTINGS_ECL,payload:n||[]})),(0,d.K)(n=>(this.handleErrorWithoutAlert("FetchPageSettings",L.m6.NO_SPINNER,"Fetching Page Settings Failed.",n),(0,f.of)({type:L.pg.VOID})))))))),this.savePageSettingsCL=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(L.lr.SAVE_PAGE_SETTINGS_ECL),(0,M.z)(n=>(this.store.dispatch((0,w.ac)({payload:L.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.QZ)({payload:{action:"SavePageSettings",status:L.Bn.INITIATED}})),this.httpClient.post(R.NZ.PAGE_SETTINGS_API,n.payload).pipe((0,C.U)(_=>(this.logger.info(_),this.store.dispatch((0,S.QZ)({payload:{action:"SavePageSettings",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,w.jW)({payload:"Page Layout Updated Successfully!"})),{type:L.lr.SET_PAGE_SETTINGS_ECL,payload:_||[]})),(0,d.K)(_=>(this.handleErrorWithAlert("SavePageSettings",L.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",R.NZ.PAGE_SETTINGS_API,_),(0,f.of)({type:L.pg.VOID})))))))),this.handleSendPaymentStatus=n=>{this.store.dispatch((0,S.QZ)({payload:{action:"SendPayment",status:L.Bn.COMPLETED}})),this.store.dispatch((0,w.uO)({payload:L.m6.SEND_PAYMENT})),this.store.dispatch((0,S.TM)({payload:this.latestPaymentRes})),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,w.jW)({payload:n}))},this.store.select(k.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(n=>{n.FetchInfo.status!==L.Bn.COMPLETED&&n.FetchInfo.status!==L.Bn.ERROR||n.FetchFees.status!==L.Bn.COMPLETED&&n.FetchFees.status!==L.Bn.ERROR||n.FetchOnchainBalance.status!==L.Bn.COMPLETED&&n.FetchOnchainBalance.status!==L.Bn.ERROR||n.FetchChannels.status!==L.Bn.COMPLETED&&n.FetchChannels.status!==L.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,w.uO)({payload:L.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.eclWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(n=>{var _;this.logger.info("Received new message from the service: "+JSON.stringify(n));let V="";if(n)switch(n.type){case L.$v.PAYMENT_SENT:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Sent: "+(n.paymentHash?"with payment hash "+n.paymentHash:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case L.$v.PAYMENT_FAILED:n&&n.id&&this.latestPaymentRes===n.id&&(this.flgReceivedPaymentUpdateFromWS=!0,V="Payment Failed: "+(n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].t?n.failures[0].t:n.failures&&n.failures.length&&n.failures.length>0&&n.failures[0].e&&n.failures[0].e.failureMessage?n.failures[0].e.failureMessage:JSON.stringify(n)),this.handleSendPaymentStatus(V));break;case L.$v.PAYMENT_RECEIVED:this.store.dispatch((0,S.aL)({payload:n}));break;case L.$v.PAYMENT_RELAYED:delete n.source,this.store.dispatch((0,S.ti)({payload:n}));break;case L.$v.CHANNEL_STATE_CHANGED:"NORMAL"===n.currentState||"CLOSED"===n.currentState?(this.rawChannelsList=null===(_=this.rawChannelsList)||void 0===_?void 0:_.map(N=>(N.channelId===n.channelId&&N.nodeId===n.remoteNodeId&&(N.state=n.currentState),N)),this.setChannelsAndStatusAndBalances()):this.store.dispatch((0,S.DJ)({payload:n}));break;default:this.logger.info("Received Event from WS: "+JSON.stringify(n))}})}setChannelsAndStatusAndBalances(){let x=0,i=0,r=0,u={localBalance:0,remoteBalance:0},c=[];const v=[],T=[],I={active:{channels:0,capacity:0},inactive:{channels:0,capacity:0},pending:{channels:0,capacity:0}};this.rawChannelsList.forEach((y,n)=>{var _,V,N,H,X;y&&("NORMAL"===y.state?(x=(y.toLocal||0)+(y.toRemote||0),i+=y.toLocal||0,r+=y.toRemote||0,y.balancedness=0===x?1:+(1-Math.abs(((y.toLocal||0)-(y.toRemote||0))/x)).toFixed(3),c.push(y),I.active.channels=I.active.channels+1,I.active.capacity=I.active.capacity+(y.toLocal||0)):(null===(_=y.state)||void 0===_?void 0:_.includes("WAIT"))||(null===(V=y.state)||void 0===V?void 0:V.includes("CLOSING"))||(null===(N=y.state)||void 0===N?void 0:N.includes("SYNCING"))?(y.state=null===(H=y.state)||void 0===H?void 0:H.replace(/_/g," "),v.push(y),I.pending.channels=I.pending.channels+1,I.pending.capacity=I.pending.capacity+(y.toLocal||0)):(y.state=null===(X=y.state)||void 0===X?void 0:X.replace(/_/g," "),T.push(y),I.inactive.channels=I.inactive.channels+1,I.inactive.capacity=I.inactive.capacity+(y.toLocal||0)))}),u={localBalance:i,remoteBalance:r},c=this.commonService.sortDescByKey(c,"balancedness"),this.logger.info("Active Channels: "+JSON.stringify(c)),this.logger.info("Pending Channels: "+JSON.stringify(v)),this.logger.info("Inactive Channels: "+JSON.stringify(T)),this.logger.info("Lightning Balances: "+JSON.stringify(u)),this.logger.info("Channels Status: "+JSON.stringify(I)),this.logger.info("Channel, status and balances: "+JSON.stringify({active:c,pending:v,inactive:T,balances:u,status:I})),this.store.dispatch((0,S.eN)({payload:c})),this.store.dispatch((0,S.TW)({payload:v})),this.store.dispatch((0,S.i)({payload:T})),this.store.dispatch((0,S.On)({payload:u})),this.store.dispatch((0,S.HG)({payload:I}))}initializeRemainingData(x,i){this.sessionService.setItem("eclUnlocked","true");const r={identity_pubkey:x.nodeId,alias:x.alias,testnet:"testnet"===x.network,chains:x.publicAddresses,uris:x.uris,version:x.version,numberOfPendingChannels:0};this.store.dispatch((0,w.ac)({payload:L.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,w._V)({payload:r}));let u=this.location.path();u.includes("/lnd/")?u=null==u?void 0:u.replace("/lnd/","/ecl/"):u.includes("/cln/")&&(u=null==u?void 0:u.replace("/cln/","/ecl/")),(u.includes("/login")||u.includes("/error")||""===u||"HOME"===i||u.includes("?access-key="))&&(u="/ecl/home"),this.router.navigate([u]),this.store.dispatch((0,S.wD)()),this.store.dispatch((0,S.WM)()),this.store.dispatch((0,S.UR)({payload:{fetchPayments:!0}})),this.store.dispatch((0,S.SN)()),this.store.dispatch((0,S.iL)()),this.store.dispatch((0,S.$W)())}handleErrorWithoutAlert(x,i,r,u){this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(u)),401===u.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,w.uO)({payload:i})),this.store.dispatch((0,S.QZ)({payload:{action:x,status:L.Bn.ERROR,statusCode:u.status.toString(),message:this.commonService.extractErrorMessage(u,r)}})))}handleErrorWithAlert(x,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,w.ts)()),this.store.dispatch((0,w.kS)()),this.store.dispatch((0,w.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,w.uO)({payload:i}));const v=this.commonService.extractErrorMessage(c);this.store.dispatch((0,w.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status,message:v,URL:u},component:h.H}}})),this.store.dispatch((0,S.QZ)({payload:{action:x,status:L.Bn.ERROR,statusCode:c.status.toString(),message:v,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return q.\u0275fac=function(x){return new(x||q)(E.LFG(t.eX),E.LFG(B.eN),E.LFG(Z.yh),E.LFG(Y.m),E.LFG(ae.v),E.LFG(ee.mQ),E.LFG(ue.F0),E.LFG(ne.d),E.LFG(re.Ye))},q.\u0275prov=E.Yz7({token:q,factory:q.\u0275fac}),q})()},2501:(Be,K,p)=>{"use strict";p.d(K,{Bo:()=>k,Ef:()=>S,JG:()=>L,LR:()=>f,PP:()=>h,T$:()=>C,Xz:()=>w,dx:()=>D,kY:()=>E,nF:()=>M,yA:()=>R,yD:()=>a});var t=p(5620);const e=(0,t.ZF)("ecl"),f=(0,t.P1)(e,B=>B.nodeSettings),M=(0,t.P1)(e,B=>({pageSettings:B.pageSettings,apiCallStatus:B.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,B=>B.information),C=(0,t.P1)(e,B=>({information:B.information,apiCallStatus:B.apisCallStatus.FetchInfo})),R=((0,t.P1)(e,B=>B.apisCallStatus.FetchInfo),(0,t.P1)(e,B=>B.apisCallStatus)),h=(0,t.P1)(e,B=>({payments:B.payments,apiCallStatus:B.apisCallStatus.FetchPayments})),L=(0,t.P1)(e,B=>({fees:B.fees,apiCallStatus:B.apisCallStatus.FetchFees})),w=(0,t.P1)(e,B=>({activeChannels:B.activeChannels,pendingChannels:B.pendingChannels,inactiveChannels:B.inactiveChannels,lightningBalance:B.lightningBalance,channelsStatus:B.channelsStatus,apiCallStatus:B.apisCallStatus.FetchChannels})),D=(0,t.P1)(e,B=>({transactions:B.transactions,apiCallStatus:B.apisCallStatus.FetchTransactions})),S=(0,t.P1)(e,B=>({invoices:B.invoices,apiCallStatus:B.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,B=>({peers:B.peers,apiCallStatus:B.apisCallStatus.FetchPeers})),E=(0,t.P1)(e,B=>({onchainBalance:B.onchainBalance,apiCallStatus:B.apisCallStatus.FetchOnchainBalance}))},7766:(Be,K,p)=>{"use strict";p.d(K,{R:()=>Ee});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(2501),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),B=p(9224),Z=p(9546),Y=p(7423),ae=p(4834),ee=p(773),ue=p(3390),ne=p(6895);function re(j,Ve){if(1&j&&d._UZ(0,"qr-code",29),2&j){const Me=d.oxw();d.Q6J("value",null==Me.invoice?null:Me.invoice.serialized)("size",Me.qrWidth)("errorCorrectionLevel","L")}}function ge(j,Ve){1&j&&(d.TgZ(0,"span",30),d._uU(1,"N/A"),d.qZA())}function q(j,Ve){if(1&j&&d._UZ(0,"qr-code",29),2&j){const Me=d.oxw();d.Q6J("value",null==Me.invoice?null:Me.invoice.serialized)("size",Me.qrWidth)("errorCorrectionLevel","L")}}function _e(j,Ve){1&j&&(d.TgZ(0,"span",31),d._uU(1,"QR Code Not Applicable"),d.qZA())}function x(j,Ve){1&j&&d._UZ(0,"mat-divider",32),2&j&&d.Q6J("inset",!0)}function i(j,Ve){1&j&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function r(j,Ve){1&j&&d._UZ(0,"span",38)}const u=function(){return[]};function c(j,Ve){if(1&j&&(d.TgZ(0,"div",34)(1,"div",35)(2,"span",36),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,r,1,0,"span",37),d.qZA()()),2&j){const Me=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==Me.invoice?null:Me.invoice.amountSettled)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,u).constructor(35))}}function v(j,Ve){if(1&j&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&j){const Me=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==Me.invoice?null:Me.invoice.amountSettled)," Sats")}}function T(j,Ve){if(1&j&&(d.ynx(0),d.YNc(1,c,6,5,"div",33),d.YNc(2,v,3,3,"div",19),d.BQk()),2&j){const Me=d.oxw();d.xp6(1),d.Q6J("ngIf",Me.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!Me.flgInvoicePaid)}}function I(j,Ve){1&j&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function y(j,Ve){1&j&&d._UZ(0,"mat-spinner",40),2&j&&d.Q6J("diameter",20)}function n(j,Ve){if(1&j&&(d.ynx(0),d.YNc(1,I,2,0,"span",19),d.YNc(2,y,1,1,"mat-spinner",39),d.BQk()),2&j){const Me=d.oxw();d.xp6(1),d.Q6J("ngIf","unpaid"!==(null==Me.invoice?null:Me.invoice.status)||!Me.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","unpaid"===(null==Me.invoice?null:Me.invoice.status)&&Me.flgVersionCompatible)}}function _(j,Ve){if(1&j&&(d.TgZ(0,"div"),d._UZ(1,"mat-divider",20),d.TgZ(2,"div",15)(3,"div",41)(4,"h4",17),d._uU(5,"Date Expiry"),d.qZA(),d.TgZ(6,"span",18),d._uU(7),d.ALo(8,"date"),d.qZA()(),d.TgZ(9,"div",42)(10,"h4",17),d._uU(11,"Date Settled"),d.qZA(),d.TgZ(12,"span",21),d._uU(13),d.ALo(14,"date"),d.qZA()()(),d._UZ(15,"mat-divider",20),d.TgZ(16,"div",15)(17,"div",22)(18,"h4",17),d._uU(19,"Payment Hash"),d.qZA(),d.TgZ(20,"span",21),d._uU(21),d.qZA()()(),d._UZ(22,"mat-divider",20),d.TgZ(23,"div",15)(24,"div",22)(25,"h4",17),d._uU(26,"Node ID"),d.qZA(),d.TgZ(27,"span",21),d._uU(28),d.qZA()()(),d._UZ(29,"mat-divider",20),d.qZA()),2&j){const Me=d.oxw();d.xp6(7),d.Oqu(d.xi3(8,4,1e3*(null==Me.invoice?null:Me.invoice.expiresAt),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.xi3(14,7,1e3*(null==Me.invoice?null:Me.invoice.receivedAt),"dd/MMM/y HH:mm")),d.xp6(8),d.Oqu(null==Me.invoice?null:Me.invoice.paymentHash),d.xp6(7),d.Oqu(null==Me.invoice?null:Me.invoice.nodeId)}}function V(j,Ve){1&j&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function N(j,Ve){1&j&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function H(j,Ve){if(1&j){const Me=d.EpF();d.TgZ(0,"button",43),d.NdJ("copied",function(Ie){return d.CHM(Me),d.oxw().onCopyPayment(Ie)}),d._uU(1,"Copy Invoice"),d.qZA()}if(2&j){const Me=d.oxw();d.Q6J("payload",null==Me.invoice?null:Me.invoice.serialized)}}function X(j,Ve){if(1&j){const Me=d.EpF();d.TgZ(0,"button",44),d.NdJ("click",function(){return d.CHM(Me),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const he=function(j){return{"display-none":j}},be=function(j){return{"xs-scroll-y":j}},Pe=function(j,Ve){return{"mt-2":j,"mt-1":Ve}};let Ee=(()=>{class j{constructor(Me,J,Ie,ut,Oe,we){this.dialogRef=Me,this.data=J,this.logger=Ie,this.commonService=ut,this.snackBar=Oe,this.store=we,this.faReceipt=e.dLy,this.faExclamationTriangle=e.eHv,this.showAdvanced=!1,this.newlyAdded=!1,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}ngOnInit(){this.invoice=this.data.invoice,this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.yD).pipe((0,M.R)(this.unSubs[0])).subscribe(Me=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(Me.version,"0.5.0")}),this.store.select(C.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(Me=>{const J=this.invoice.status,Ie=Me.invoices&&Me.invoices.length>0?Me.invoices:[],ut=(null==Ie?void 0:Ie.find(Oe=>Oe.paymentHash===this.invoice.paymentHash))||null;ut&&(this.invoice=ut),J!==this.invoice.status&&"received"===this.invoice.status&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(Me)})}onClose(){this.dialogRef.close(!1)}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onCopyPayment(Me){this.snackBar.open("Invoice copied."),this.logger.info("Copied Text: "+Me)}ngOnDestroy(){this.unSubs.forEach(Me=>{Me.next(null),Me.complete()})}}return j.\u0275fac=function(Me){return new(Me||j)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},j.\u0275cmp=d.Xpm({type:j,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,"value","size","errorCorrectionLevel",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-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],[1,"my-1",3,"inset"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],["fxFlex","40"],["fxFlex","60"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"]],template:function(Me,J){if(1&Me&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,re,1,3,"qr-code",2),d.YNc(3,ge,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return J.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,q,1,3,"qr-code",2),d.YNc(16,_e,2,0,"span",13),d.qZA(),d.YNc(17,x,1,1,"mat-divider",14),d.TgZ(18,"div",15)(19,"div",16)(20,"h4",17),d._uU(21,"Amount Requested"),d.qZA(),d.TgZ(22,"span",18),d._uU(23),d.ALo(24,"number"),d.YNc(25,i,2,0,"ng-container",19),d.qZA()(),d.TgZ(26,"div",16)(27,"h4",17),d._uU(28,"Amount Settled"),d.qZA(),d.TgZ(29,"span",18),d.YNc(30,T,3,2,"ng-container",19),d.YNc(31,n,3,2,"ng-container",19),d.qZA()()(),d._UZ(32,"mat-divider",20),d.TgZ(33,"div",15)(34,"div",16)(35,"h4",17),d._uU(36,"Date Created"),d.qZA(),d.TgZ(37,"span",21),d._uU(38),d.ALo(39,"date"),d.qZA()(),d.TgZ(40,"div",16)(41,"h4",17),d._uU(42,"Status"),d.qZA(),d.TgZ(43,"span",21),d._uU(44),d.ALo(45,"titlecase"),d.qZA()()(),d._UZ(46,"mat-divider",20),d.TgZ(47,"div",15)(48,"div",22)(49,"h4",17),d._uU(50,"Description"),d.qZA(),d.TgZ(51,"span",18),d._uU(52),d.qZA()()(),d._UZ(53,"mat-divider",20),d.TgZ(54,"div",15)(55,"div",22)(56,"h4",17),d._uU(57,"Invoice"),d.qZA(),d.TgZ(58,"span",21),d._uU(59),d.qZA()()(),d.YNc(60,_,30,10,"div",19),d.TgZ(61,"div",23)(62,"button",24),d.NdJ("click",function(){return J.onShowAdvanced()}),d.YNc(63,V,2,0,"p",25),d.YNc(64,N,2,0,"ng-template",null,26,d.W1O),d.qZA(),d.YNc(66,H,2,1,"button",27),d.YNc(67,X,2,0,"button",28),d.qZA()()()()()),2&Me){const Ie=d.MAs(65);d.xp6(1),d.Q6J("fxLayoutAlign",null!=J.invoice&&J.invoice.serialized&&""!==(null==J.invoice?null:J.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(33,he,J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==J.invoice?null:J.invoice.serialized)&&""!==(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.serialized)||""===(null==J.invoice?null:J.invoice.serialized)),d.xp6(4),d.Q6J("icon",J.faReceipt),d.xp6(2),d.Oqu(J.screenSize===J.screenSizeEnum.XS?J.newlyAdded?"Created":"Invoice":J.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(35,be,J.screenSize===J.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=J.invoice&&J.invoice.serialized&&""!==(null==J.invoice?null:J.invoice.serialized)?"center start":"center center")("ngClass",d.VKq(37,he,J.screenSize!==J.screenSizeEnum.XS&&J.screenSize!==J.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==J.invoice?null:J.invoice.serialized)&&""!==(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.serialized)||""===(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",J.screenSize===J.screenSizeEnum.XS||J.screenSize===J.screenSizeEnum.SM),d.xp6(6),d.hij("",d.lcZ(24,26,(null==J.invoice?null:J.invoice.amount)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.amount)||"0"===(null==J.invoice?null:J.invoice.amount)),d.xp6(5),d.Q6J("ngIf",null==J.invoice?null:J.invoice.amountSettled),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.amountSettled)),d.xp6(7),d.Oqu(d.xi3(39,28,1e3*(null==J.invoice?null:J.invoice.timestamp),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(d.lcZ(45,31,null==J.invoice?null:J.invoice.status)),d.xp6(8),d.Oqu((null==J.invoice?null:J.invoice.description)||"-"),d.xp6(7),d.Oqu((null==J.invoice?null:J.invoice.serialized)||"N/A"),d.xp6(1),d.Q6J("ngIf",J.showAdvanced),d.xp6(1),d.Q6J("ngClass",d.WLB(39,Pe,!J.showAdvanced,J.showAdvanced)),d.xp6(2),d.Q6J("ngIf",!J.showAdvanced)("ngIfElse",Ie),d.xp6(3),d.Q6J("ngIf",(null==J.invoice?null:J.invoice.serialized)&&""!==(null==J.invoice?null:J.invoice.serialized)),d.xp6(1),d.Q6J("ngIf",!(null!=J.invoice&&J.invoice.serialized)||""===(null==J.invoice?null:J.invoice.serialized))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,B.dk,Z.BN,Y.lW,B.dn,ae.d,S.sg,ee.Ou,ue.h,ne.y],pipes:[S.JJ,S.uU,S.rS],styles:[""]}),j})()},6523:(Be,K,p)=>{"use strict";p.d(K,{$A:()=>ui,$W:()=>w,BL:()=>I,B_:()=>X,Bl:()=>ne,CX:()=>L,Cp:()=>_,EK:()=>B,El:()=>S,Fr:()=>ke,HI:()=>we,JT:()=>a,Jl:()=>re,Jo:()=>Re,Lf:()=>J,Ll:()=>M,Ly:()=>Ie,Nr:()=>Ee,OG:()=>y,PC:()=>f,QJ:()=>bt,RX:()=>ue,Rd:()=>Z,Rv:()=>ge,SN:()=>ee,Sf:()=>Zt,TW:()=>r,UH:()=>ut,UR:()=>_e,Vv:()=>n,WM:()=>Pe,WO:()=>ti,Wi:()=>fe,YP:()=>ae,YX:()=>T,Z7:()=>i,Z8:()=>D,Zh:()=>u,_E:()=>te,_L:()=>c,aL:()=>j,as:()=>x,cQ:()=>Oe,dV:()=>xe,eF:()=>R,fu:()=>pt,kL:()=>Qt,ks:()=>q,mC:()=>Me,n7:()=>Ot,oV:()=>ce,pW:()=>v,pd:()=>d,qY:()=>Ve,sQ:()=>h,tb:()=>H,u0:()=>it,vV:()=>he,wD:()=>C,xG:()=>Yt,y2:()=>Dt,yZ:()=>Nt,z:()=>E});var t=p(5620),e=p(7731);const f=(0,t.PH)(e.uR.UPDATE_API_CALL_STATUS_LND,(0,t.Ky)()),M=(0,t.PH)(e.uR.RESET_LND_STORE,(0,t.Ky)()),a=(0,t.PH)(e.uR.SET_CHILD_NODE_SETTINGS_LND,(0,t.Ky)()),C=(0,t.PH)(e.uR.FETCH_PAGE_SETTINGS_LND),d=(0,t.PH)(e.uR.SET_PAGE_SETTINGS_LND,(0,t.Ky)()),R=(0,t.PH)(e.uR.SAVE_PAGE_SETTINGS_LND,(0,t.Ky)()),h=(0,t.PH)(e.uR.FETCH_INFO_LND,(0,t.Ky)()),L=(0,t.PH)(e.uR.SET_INFO_LND,(0,t.Ky)()),w=(0,t.PH)(e.uR.FETCH_PEERS_LND),D=(0,t.PH)(e.uR.SET_PEERS_LND,(0,t.Ky)()),S=(0,t.PH)(e.uR.SAVE_NEW_PEER_LND,(0,t.Ky)()),E=((0,t.PH)(e.uR.NEWLY_ADDED_PEER_LND,(0,t.Ky)()),(0,t.PH)(e.uR.DETACH_PEER_LND,(0,t.Ky)())),B=(0,t.PH)(e.uR.REMOVE_PEER_LND,(0,t.Ky)()),Z=(0,t.PH)(e.uR.SAVE_NEW_INVOICE_LND,(0,t.Ky)()),ae=((0,t.PH)(e.uR.NEWLY_SAVED_INVOICE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.ADD_INVOICE_LND,(0,t.Ky)())),ee=(0,t.PH)(e.uR.FETCH_FEES_LND),ue=(0,t.PH)(e.uR.SET_FEES_LND,(0,t.Ky)()),ne=(0,t.PH)(e.uR.FETCH_BLOCKCHAIN_BALANCE_LND),re=(0,t.PH)(e.uR.SET_BLOCKCHAIN_BALANCE_LND,(0,t.Ky)()),ge=(0,t.PH)(e.uR.FETCH_NETWORK_LND),q=(0,t.PH)(e.uR.SET_NETWORK_LND,(0,t.Ky)()),_e=(0,t.PH)(e.uR.FETCH_CHANNELS_LND),x=(0,t.PH)(e.uR.SET_CHANNELS_LND,(0,t.Ky)()),i=(0,t.PH)(e.uR.FETCH_PENDING_CHANNELS_LND),r=(0,t.PH)(e.uR.SET_PENDING_CHANNELS_LND,(0,t.Ky)()),u=(0,t.PH)(e.uR.FETCH_CLOSED_CHANNELS_LND),c=(0,t.PH)(e.uR.SET_CLOSED_CHANNELS_LND,(0,t.Ky)()),v=(0,t.PH)(e.uR.UPDATE_CHANNEL_LND,(0,t.Ky)()),T=(0,t.PH)(e.uR.SAVE_NEW_CHANNEL_LND,(0,t.Ky)()),I=(0,t.PH)(e.uR.CLOSE_CHANNEL_LND,(0,t.Ky)()),y=(0,t.PH)(e.uR.REMOVE_CHANNEL_LND,(0,t.Ky)()),n=(0,t.PH)(e.uR.BACKUP_CHANNELS_LND,(0,t.Ky)()),_=(0,t.PH)(e.uR.VERIFY_CHANNEL_LND,(0,t.Ky)()),H=((0,t.PH)(e.uR.BACKUP_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.VERIFY_CHANNEL_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.RESTORE_CHANNELS_LIST_LND)),X=(0,t.PH)(e.uR.SET_RESTORE_CHANNELS_LIST_LND,(0,t.Ky)()),he=(0,t.PH)(e.uR.RESTORE_CHANNELS_LND,(0,t.Ky)()),Pe=((0,t.PH)(e.uR.RESTORE_CHANNELS_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_INVOICES_LND,(0,t.Ky)())),Ee=(0,t.PH)(e.uR.SET_INVOICES_LND,(0,t.Ky)()),j=(0,t.PH)(e.uR.UPDATE_INVOICE_LND,(0,t.Ky)()),Ve=(0,t.PH)(e.uR.UPDATE_PAYMENT_LND,(0,t.Ky)()),Me=(0,t.PH)(e.uR.FETCH_TRANSACTIONS_LND),J=(0,t.PH)(e.uR.SET_TRANSACTIONS_LND,(0,t.Ky)()),Ie=(0,t.PH)(e.uR.FETCH_UTXOS_LND),ut=(0,t.PH)(e.uR.SET_UTXOS_LND,(0,t.Ky)()),Oe=(0,t.PH)(e.uR.FETCH_PAYMENTS_LND,(0,t.Ky)()),we=(0,t.PH)(e.uR.SET_PAYMENTS_LND,(0,t.Ky)()),ce=(0,t.PH)(e.uR.SEND_PAYMENT_LND,(0,t.Ky)()),xe=((0,t.PH)(e.uR.SEND_PAYMENT_STATUS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.FETCH_GRAPH_NODE_LND,(0,t.Ky)())),te=((0,t.PH)(e.uR.SET_GRAPH_NODE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_NEW_ADDRESS_LND,(0,t.Ky)())),fe=((0,t.PH)(e.uR.SET_NEW_ADDRESS_LND,(0,t.Ky)()),(0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_LND,(0,t.Ky)())),pt=((0,t.PH)(e.uR.SET_CHANNEL_TRANSACTION_RES_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GEN_SEED_LND,(0,t.Ky)())),Dt=((0,t.PH)(e.uR.GEN_SEED_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.INIT_WALLET_LND,(0,t.Ky)())),Yt=((0,t.PH)(e.uR.INIT_WALLET_RESPONSE_LND,(0,t.Ky)()),(0,t.PH)(e.uR.UNLOCK_WALLET_LND,(0,t.Ky)())),Zt=(0,t.PH)(e.uR.PEER_LOOKUP_LND,(0,t.Ky)()),ui=(0,t.PH)(e.uR.CHANNEL_LOOKUP_LND,(0,t.Ky)()),Ot=(0,t.PH)(e.uR.INVOICE_LOOKUP_LND,(0,t.Ky)()),Nt=(0,t.PH)(e.uR.PAYMENT_LOOKUP_LND,(0,t.Ky)()),it=((0,t.PH)(e.uR.SET_LOOKUP_LND,(0,t.Ky)()),(0,t.PH)(e.uR.GET_FORWARDING_HISTORY_LND,(0,t.Ky)())),bt=(0,t.PH)(e.uR.SET_FORWARDING_HISTORY_LND,(0,t.Ky)()),ti=(0,t.PH)(e.uR.GET_QUERY_ROUTES_LND,(0,t.Ky)()),Qt=(0,t.PH)(e.uR.SET_QUERY_ROUTES_LND,(0,t.Ky)()),Re=(0,t.PH)(e.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),ke=(0,t.PH)(e.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,(0,t.Ky)())},711:(Be,K,p)=>{"use strict";p.d(K,{l:()=>_e});var t=p(6642),e=p(7579),f=p(9646),M=p(5577),a=p(2722),C=p(4004),d=p(262),R=p(1365),h=p(2340),L=p(8627),w=p(1786),D=p(7731),S=p(7861),k=p(6523),E=p(6529),B=p(5e3),Z=p(8138),Y=p(5620),ae=p(5043),ee=p(62),ue=p(5986),ne=p(8966),re=p(1402),ge=p(7998),q=p(9808);let _e=(()=>{class x{constructor(r,u,c,v,T,I,y,n,_,V){this.actions=r,this.httpClient=u,this.store=c,this.logger=v,this.commonService=T,this.sessionService=I,this.dialog=y,this.router=n,this.wsService=_,this.location=V,this.CHILD_API_URL=h.T5+"/lnd",this.invoicesPageSize=D.IV,this.paymentsPageSize=D.IV,this.flgInitialized=!1,this.unSubs=[new e.x,new e.x],this.infoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INFO_LND),(0,M.z)(N=>(this.flgInitialized=!1,this.store.dispatch((0,S.lC)({payload:this.CHILD_API_URL})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.ac)({payload:D.m6.GET_NODE_INFO})),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.GETINFO_API).pipe((0,a.R)(this.actions.pipe((0,t.l4)(D.pg.SET_SELECTED_NODE))),(0,C.U)(H=>(this.logger.info(H),H.chains&&H.chains.length&&H.chains[0]&&("string"==typeof H.chains[0]&&H.chains[0].toLowerCase().indexOf("bitcoin")<0||"object"==typeof H.chains[0]&&H.chains[0].hasOwnProperty("chain")&&H.chains[0].chain&&H.chains[0].chain.toLowerCase().indexOf("bitcoin")<0)?(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.qR)({payload:{data:{type:D.n_.ERROR,alertTitle:"Shitcoin Found",titleMessage:"Sorry Not Sorry, RTL is Bitcoin Only!"}}})),{type:D.pg.LOGOUT}):H.identity_pubkey?(H.lnImplementation="LND",this.initializeRemainingData(H,N.payload.loadPage),this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),{type:D.uR.SET_INFO_LND,payload:H||{}}):(this.store.dispatch((0,k.PC)({payload:{action:"FetchInfo",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.ts)()),this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),{type:D.uR.SET_INFO_LND,payload:{}}))),(0,d.K)(H=>{if("string"==typeof H.error.error&&H.error.error.includes("Not Found")||"string"==typeof H.error.error&&H.error.error.includes("wallet locked")||502===H.status&&!H.error.message.includes("Bad or Missing Macaroon"))this.sessionService.removeItem("lndUnlocked"),this.logger.info("Redirecting to Unlock"),this.router.navigate(["/lnd/wallet"]),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",H);else if("string"==typeof H.error.error&&H.error.error.includes("starting up")&&500===H.status)setTimeout(()=>{this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},2e3);else{const X=this.commonService.extractErrorCode(H),he=503===X?"Unable to Connect to LND Server.":this.commonService.extractErrorMessage(H);this.router.navigate(["/error"],{state:{errorCode:X,errorMessage:he}}),this.handleErrorWithoutAlert("FetchInfo",D.m6.GET_NODE_INFO,"Fetching Node Info Failed.",{status:X,error:he})}return(0,f.of)({type:D.pg.VOID})})))))),this.peersFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PEERS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PEERS_API).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPeers",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PEERS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPeers",D.m6.NO_SPINNER,"Fetching Peers Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.PEERS_API,{pubkey:N.payload.pubkey,host:N.payload.host,perm:N.payload.perm}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewPeer",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.CONNECT_PEER})),this.store.dispatch((0,k.Z8)({payload:H||[]})),{type:D.uR.NEWLY_ADDED_PEER_LND,payload:{peer:H[0]}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewPeer",D.m6.CONNECT_PEER,"Peer Connection Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.detachPeer=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.DETACH_PEER_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.DISCONNECT_PEER})),this.httpClient.delete(this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.DISCONNECT_PEER})),this.store.dispatch((0,S.jW)({payload:"Peer Disconnected Successfully."})),{type:D.uR.REMOVE_PEER_LND,payload:{pubkey:N.payload.pubkey}})),(0,d.K)(H=>(this.handleErrorWithAlert("DetachPeer",D.m6.DISCONNECT_PEER,"Unable to Detach Peer. Try again later.",this.CHILD_API_URL+h.NZ.PEERS_API+"/"+N.payload.pubkey,H),(0,f.of)({type:D.pg.VOID})))))))),this.saveNewInvoice=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_INVOICE_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.INVOICES_API,{memo:N.payload.memo,amount:N.payload.invoiceValue,private:N.payload.private,expiry:N.payload.expiry}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewInvoice",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:N.payload.pageSize,reversed:!0}})),N.payload.openModal?(H.memo=N.payload.memo,H.value=N.payload.invoiceValue,H.expiry=N.payload.expiry,H.cltv_expiry="144",H.private=N.payload.private,H.creation_date=Math.round((new Date).getTime()/1e3).toString(),setTimeout(()=>{this.store.dispatch((0,S.qR)({payload:{data:{invoice:H,newlyAdded:!0,component:L.v}}}))},200),{type:D.pg.CLOSE_SPINNER,payload:N.payload.uiMessage}):{type:D.uR.NEWLY_SAVED_INVOICE_LND,payload:{paymentRequest:H.payment_request}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewInvoice",N.payload.uiMessage,"Add Invoice Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.openNewChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_NEW_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API,{node_pubkey:N.payload.selectedPeerPubkey,local_funding_amount:N.payload.fundingAmount,private:N.payload.private,trans_type:N.payload.transType,trans_type_value:N.payload.transTypeValue,spend_unconfirmed:N.payload.spendUnconfirmed}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SaveNewChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.OPEN_CHANNEL})),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:"Channel Added Successfully!"}})),{type:D.uR.FETCH_PENDING_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SaveNewChannel",D.m6.OPEN_CHANNEL,"Opening Channel Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.updateChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UPDATE_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UPDATE_CHAN_POLICY})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",{baseFeeMsat:N.payload.baseFeeMsat,feeRate:N.payload.feeRate,timeLockDelta:N.payload.timeLockDelta,max_htlc_msat:N.payload.maxHtlcMsat,min_htlc_msat:N.payload.minHtlcMsat,chanPoint:N.payload.chanPoint}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.UPDATE_CHAN_POLICY})),this.store.dispatch((0,S.jW)("all"===N.payload.chanPoint?{payload:"All Channels Updated Successfully."}:{payload:"Channel Updated Successfully!"})),{type:D.uR.FETCH_CHANNELS_LND})),(0,d.K)(H=>(this.handleErrorWithAlert("UpdateChannels",D.m6.UPDATE_CHAN_POLICY,"Update Channel Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/chanPolicy",H),(0,f.of)({type:D.pg.VOID})))))))),this.closeChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CLOSE_CHANNEL_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL}));let H=this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly;return N.payload.targetConf&&(H=H+"&target_conf="+N.payload.targetConf),N.payload.satPerByte&&(H=H+"&sat_per_byte="+N.payload.satPerByte),this.httpClient.delete(H).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,S.uO)({payload:N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Vv)({payload:{uiMessage:D.m6.NO_SPINNER,channelPoint:"ALL",showMessage:X.message}})),{type:D.pg.VOID})),(0,d.K)(X=>(this.handleErrorWithAlert("CloseChannel",N.payload.forcibly?D.m6.FORCE_CLOSE_CHANNEL:D.m6.CLOSE_CHANNEL,"Unable to Close Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/"+N.payload.channelPoint+"?force="+N.payload.forcibly,X),(0,f.of)({type:D.pg.VOID}))))}))),this.backupChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.BACKUP_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"BackupChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,S.jW)({payload:N.payload.showMessage+" "+H.message})),{type:D.uR.BACKUP_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("BackupChannels",N.payload.uiMessage,N.payload.showMessage+" Unable to Backup Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.verifyChannel=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.VERIFY_CHANNEL_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,{}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"VerifyChannel",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.VERIFY_CHANNEL})),this.store.dispatch((0,S.jW)({payload:H.message})),{type:D.uR.VERIFY_CHANNEL_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("VerifyChannel",D.m6.VERIFY_CHANNEL,"Unable to Verify Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/verify/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.restoreChannels=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,{}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannels",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.RESTORE_CHANNEL})),this.store.dispatch((0,S.jW)({payload:H.message})),this.store.dispatch((0,k.B_)({payload:H.list})),{type:D.uR.RESTORE_CHANNELS_RES_LND,payload:H.message})),(0,d.K)(H=>(this.handleErrorWithAlert("RestoreChannels",D.m6.RESTORE_CHANNEL,"Unable to Restore Channel. Try again later.",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/"+N.payload.channelPoint,H),(0,f.of)({type:D.pg.VOID})))))))),this.fetchFees=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_FEES_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.FEES_API))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchFees",status:D.Bn.COMPLETED}})),N.forwarding_events_history&&(this.store.dispatch((0,k.QJ)({payload:N.forwarding_events_history})),delete N.forwarding_events_history),{type:D.uR.SET_FEES_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchFees",D.m6.NO_SPINNER,"Fetching Fees Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.balanceBlockchainFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_BLOCKCHAIN_BALANCE_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.BALANCE_API))),(0,C.U)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchBalance",status:D.Bn.COMPLETED}})),this.logger.info(N),{type:D.uR.SET_BLOCKCHAIN_BALANCE_LND,payload:N||{total_balance:""}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchBalance",D.m6.NO_SPINNER,"Fetching Blockchain Balance Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.networkInfoFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_NETWORK_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/info"))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchNetwork",status:D.Bn.COMPLETED}})),{type:D.uR.SET_NETWORK_LND,payload:N||{}})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchNetwork",D.m6.NO_SPINNER,"Fetching Network Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.channelsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API).pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchChannels",D.m6.NO_SPINNER,"Fetching Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsPendingFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PENDING_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/pending").pipe((0,C.U)(N=>{this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPendingChannels",status:D.Bn.COMPLETED}}));const H={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 N&&(H.total_limbo_balance=N.total_limbo_balance,N.pending_closing_channels&&(H.closing.num_channels=N.pending_closing_channels.length,H.total_channels=H.total_channels+N.pending_closing_channels.length,N.pending_closing_channels.forEach(X=>{H.closing.limbo_balance=+H.closing.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.pending_force_closing_channels&&(H.force_closing.num_channels=N.pending_force_closing_channels.length,H.total_channels=H.total_channels+N.pending_force_closing_channels.length,N.pending_force_closing_channels.forEach(X=>{H.force_closing.limbo_balance=+H.force_closing.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.pending_open_channels&&(H.open.num_channels=N.pending_open_channels.length,H.total_channels=H.total_channels+N.pending_open_channels.length,N.pending_open_channels.forEach(X=>{H.open.limbo_balance=+H.open.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)})),N.waiting_close_channels&&(H.waiting_close.num_channels=N.waiting_close_channels.length,H.total_channels=H.total_channels+N.waiting_close_channels.length,N.waiting_close_channels.forEach(X=>{H.waiting_close.limbo_balance=+H.waiting_close.limbo_balance+(X.channel.local_balance?+X.channel.local_balance:0)}))),{type:D.uR.SET_PENDING_CHANNELS_LND,payload:N?{pendingChannels:N,pendingChannelsSummary:H}:{pendingChannels:{},pendingChannelsSummary:H}}}),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPendingChannels",D.m6.NO_SPINNER,"Fetching Pending Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.channelsClosedFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_CLOSED_CHANNELS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/closed").pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchClosedChannels",status:D.Bn.COMPLETED}})),{type:D.uR.SET_CLOSED_CHANNELS_LND,payload:N.channels||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchClosedChannels",D.m6.NO_SPINNER,"Fetching Closed Channels Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.invoicesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_INVOICES_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.INVOICES_API+"?num_max_invoices="+(N.payload.num_max_invoices?N.payload.num_max_invoices:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,C.U)(be=>(this.logger.info(be),this.store.dispatch((0,k.PC)({payload:{action:"FetchInvoices",status:D.Bn.COMPLETED}})),N.payload.reversed&&!N.payload.index_offset&&(be.total_invoices=+(be.last_index_offset||0)),{type:D.uR.SET_INVOICES_LND,payload:be})),(0,d.K)(be=>(this.handleErrorWithoutAlert("FetchInvoices",D.m6.NO_SPINNER,"Fetching Invoices Failed.",be),(0,f.of)({type:D.pg.VOID})))))))),this.transactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_TRANSACTIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_TRANSACTIONS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchTransactions",D.m6.NO_SPINNER,"Fetching Transactions Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.utxosFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_UTXOS_LND),(0,R.M)(this.store.select(E.Q5)),(0,M.z)(([N,H])=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/getUTXOs?max_confs="+(H&&H.block_height?H.block_height:1e9)))),(0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchUTXOs",status:D.Bn.COMPLETED}})),{type:D.uR.SET_UTXOS_LND,payload:N||[]})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchUTXOs",D.m6.NO_SPINNER,"Fetching UTXOs Failed.",N),(0,f.of)({type:D.pg.VOID}))))),this.paymentsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PAYMENTS_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"?max_payments="+(N.payload.max_payments?N.payload.max_payments:100)+"&index_offset="+(N.payload.index_offset?N.payload.index_offset:0)+"&reversed="+(!!N.payload.reversed&&N.payload.reversed)).pipe((0,C.U)(be=>(this.logger.info(be),this.store.dispatch((0,k.PC)({payload:{action:"FetchPayments",status:D.Bn.COMPLETED}})),{type:D.uR.SET_PAYMENTS_LND,payload:be})),(0,d.K)(be=>(this.handleErrorWithoutAlert("FetchPayments",D.m6.NO_SPINNER,"Fetching Payments Failed.",be),(0,f.of)({type:D.uR.SET_PAYMENTS_LND,payload:{payments:[]}})))))))),this.sendPayment=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SEND_PAYMENT_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.INITIATED}}));const H={};return H.paymentReq=N.payload.paymentReq,N.payload.paymentAmount&&(H.paymentAmount=N.payload.paymentAmount),N.payload.outgoingChannel&&(H.outgoingChannel=N.payload.outgoingChannel.chan_id),N.payload.allowSelfPayment&&(H.allowSelfPayment=N.payload.allowSelfPayment),N.payload.lastHopPubkey&&(H.lastHopPubkey=N.payload.lastHopPubkey),N.payload.feeLimitType&&N.payload.feeLimitType!==D.Vc[0].id&&(H.feeLimit={},H.feeLimit[N.payload.feeLimitType]=N.payload.feeLimit),this.httpClient.post(this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",H).pipe((0,C.U)(X=>{if(this.logger.info(X),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),X.payment_error)return N.payload.allowSelfPayment?(this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:X}):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X.payment_error):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",X.payment_error),{type:D.pg.VOID});if(this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"SendPayment",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:this.paymentsPageSize,reversed:!0}})),N.payload.allowSelfPayment)this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}));else{let he="Payment Sent Successfully.";X.payment_route&&X.payment_route.total_fees_msat&&(he="Payment sent successfully with the total fee "+X.payment_route.total_fees_msat+" (mSats)."),this.store.dispatch((0,S.jW)({payload:he}))}return{type:D.uR.SEND_PAYMENT_STATUS_LND,payload:X}}),(0,d.K)(X=>(this.logger.error("Error: "+JSON.stringify(X)),N.payload.allowSelfPayment?(this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X),this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),(0,f.of)({type:D.uR.SEND_PAYMENT_STATUS_LND,payload:{error:this.commonService.extractErrorMessage(X)}})):(N.payload.fromDialog?this.handleErrorWithoutAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed.",X):this.handleErrorWithAlert("SendPayment",N.payload.uiMessage,"Send Payment Failed",this.CHILD_API_URL+h.NZ.CHANNELS_API+"/transactions",X),(0,f.of)({type:D.pg.VOID})))))}))),this.graphNodeFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_GRAPH_NODE_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload.pubkey).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GET_NODE_ADDRESS})),this.store.dispatch((0,k.PC)({payload:{action:"FetchGraphNode",status:D.Bn.COMPLETED}})),{type:D.uR.SET_GRAPH_NODE_LND,payload:H&&H.node?{node:H.node}:{node:null}})),(0,d.K)(H=>(this.handleErrorWithoutAlert("FetchGraphNode",D.m6.GET_NODE_ADDRESS,"Fetching Graph Node Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.setGraphNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_GRAPH_NODE_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_NEW_ADDRESS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GENERATE_NEW_ADDRESS})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GENERATE_NEW_ADDRESS})),{type:D.uR.SET_NEW_ADDRESS_LND,payload:H&&H.address?H.address:{}})),(0,d.K)(H=>(this.handleErrorWithAlert("GetNewAddress",D.m6.GENERATE_NEW_ADDRESS,"Generate New Address Failed",this.CHILD_API_URL+h.NZ.NEW_ADDRESS_API+"?type="+N.payload.addressId,H),(0,f.of)({type:D.pg.VOID})))))))),this.setNewAddress=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_NEW_ADDRESS_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.SetChannelTransaction=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_CHANNEL_TRANSACTION_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.TRANSACTIONS_API,{amount:N.payload.amount,address:N.payload.address,sendAll:N.payload.sendAll,fees:N.payload.fees,blocks:N.payload.blocks}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SetChannelTransaction",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.SEND_FUNDS})),this.store.dispatch((0,k.mC)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),{type:D.uR.SET_CHANNEL_TRANSACTION_RES_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithoutAlert("SetChannelTransaction",D.m6.SEND_FUNDS,"Sending Fund Failed.",H),(0,f.of)({type:D.pg.VOID})))))))),this.fetchForwardingHistory=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_FORWARDING_HISTORY_LND),(0,M.z)(N=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.INITIATED}})),this.httpClient.post(this.CHILD_API_URL+h.NZ.SWITCH_API,{num_max_events:N.payload.num_max_events,index_offset:N.payload.index_offset,end_time:N.payload.end_time,start_time:N.payload.start_time}).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,k.PC)({payload:{action:"FetchForwardingHistory",status:D.Bn.COMPLETED}})),{type:D.uR.SET_FORWARDING_HISTORY_LND,payload:X})),(0,d.K)(X=>(this.handleErrorWithAlert("FetchForwardingHistory",D.m6.NO_SPINNER,"Get Forwarding History Failed",this.CHILD_API_URL+h.NZ.SWITCH_API,X),(0,f.of)({type:D.pg.VOID})))))))),this.queryRoutesFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_QUERY_ROUTES_LND),(0,M.z)(N=>{let H=this.CHILD_API_URL+h.NZ.NETWORK_API+"/routes/"+N.payload.destPubkey+"/"+N.payload.amount;return N.payload.outgoingChanId&&(H=H+"?outgoing_chan_id="+N.payload.outgoingChanId),this.httpClient.get(H).pipe((0,C.U)(X=>(this.logger.info(X),{type:D.uR.SET_QUERY_ROUTES_LND,payload:X})),(0,d.K)(X=>(this.store.dispatch((0,k.kL)({payload:{routes:[]}})),this.handleErrorWithAlert("GetQueryRoutes",D.m6.NO_SPINNER,"Get Query Routes Failed",this.CHILD_API_URL+h.NZ.NETWORK_API,X),(0,f.of)({type:D.pg.VOID}))))}))),this.setQueryRoutes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_QUERY_ROUTES_LND),(0,C.U)(N=>N.payload)),{dispatch:!1}),this.genSeed=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.GEN_SEED})),this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload).pipe((0,C.U)(H=>(this.logger.info("Generated GenSeed!"),this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.GEN_SEED})),{type:D.uR.GEN_SEED_RESPONSE_LND,payload:H.cipher_seed_mnemonic})),(0,d.K)(H=>(this.handleErrorWithAlert("GenSeed",D.m6.GEN_SEED,"Genseed Generation Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/genseed/"+N.payload,H),(0,f.of)({type:D.pg.VOID})))))))),this.updateSelNodeOptions=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.pg.UPDATE_SELECTED_NODE_OPTIONS),(0,M.z)(()=>this.httpClient.get(this.CHILD_API_URL+h.NZ.WALLET_API+"/updateSelNodeOptions").pipe((0,C.U)(N=>(this.logger.info("Update Sel Node Successfull"),this.logger.info(N),{type:D.pg.VOID})),(0,d.K)(N=>(this.handleErrorWithAlert("UpdateSelectedNodeOptions",D.m6.NO_SPINNER,"Update macaroon for newly initialized node failed! Please check the macaroon path and restart the server!","Update Macaroon",N),(0,f.of)({type:D.pg.VOID}))))))),this.genSeedResponse=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GEN_SEED_RESPONSE_LND),(0,C.U)(N=>N.payload)),{dispatch:!1}),this.initWalletRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_RESPONSE_LND),(0,C.U)(N=>N.payload)),{dispatch:!1}),this.initWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INIT_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.INITIALIZE_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/initwallet",{wallet_password:N.payload.pwd,cipher_seed_mnemonic:N.payload.cipher?N.payload.cipher:"",aezeed_passphrase:N.payload.passphrase?N.payload.passphrase:""}).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.INITIALIZE_WALLET})),{type:D.uR.INIT_WALLET_RESPONSE_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("InitWallet",D.m6.INITIALIZE_WALLET,"Wallet Initialization Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/initwallet",H),(0,f.of)({type:D.pg.VOID})))))))),this.unlockWallet=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.UNLOCK_WALLET_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UNLOCK_WALLET})),this.httpClient.post(this.CHILD_API_URL+h.NZ.WALLET_API+"/wallet/unlockwallet",{wallet_password:N.payload.pwd}).pipe((0,C.U)(H=>(this.logger.info(H),this.logger.info("Successfully Unlocked!"),this.sessionService.setItem("lndUnlocked","true"),this.store.dispatch((0,S.uO)({payload:D.m6.UNLOCK_WALLET})),this.store.dispatch((0,S.ac)({payload:D.m6.WAIT_SYNC_NODE})),setTimeout(()=>{this.store.dispatch((0,S.uO)({payload:D.m6.WAIT_SYNC_NODE})),this.store.dispatch((0,k.sQ)({payload:{loadPage:"HOME"}}))},5e3),{type:D.pg.VOID})),(0,d.K)(H=>(this.handleErrorWithAlert("UnlockWallet",D.m6.UNLOCK_WALLET,"Unlock Wallet Failed",this.CHILD_API_URL+h.NZ.WALLET_API+"/unlockwallet",H),(0,f.of)({type:D.pg.VOID}))))))),{dispatch:!1}),this.peerLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PEER_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_NODE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",D.m6.SEARCHING_NODE,"Peer Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/node/"+N.payload,H),(0,f.of)({type:D.pg.VOID})))))))),this.channelLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.CHANNEL_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:N.payload.uiMessage})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.handleErrorWithAlert("Lookup",N.payload.uiMessage,"Channel Lookup Failed",this.CHILD_API_URL+h.NZ.NETWORK_API+"/edge/"+N.payload.channelID,H),(0,f.of)({type:D.pg.VOID})))))))),this.invoiceLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.INVOICE_LOOKUP_LND),(0,M.z)(N=>{this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}}));let H=this.CHILD_API_URL+h.NZ.INVOICES_API+"/lookup";return H=N.payload.paymentAddress&&""!==N.payload.paymentAddress?H+"?payment_addr="+N.payload.paymentAddress:H+"?payment_hash="+N.payload.paymentHash,this.httpClient.get(H).pipe((0,C.U)(X=>(this.logger.info(X),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_INVOICE})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.aL)({payload:X})),{type:D.uR.SET_LOOKUP_LND,payload:X})),(0,d.K)(X=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_INVOICE,"Invoice Lookup Failed",X),N.payload.openSnackBar&&this.store.dispatch((0,S.jW)({payload:{message:"Invoice Refresh Failed.",type:"ERROR"}})),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:X}}))))}))),this.paymentLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.PAYMENT_LOOKUP_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/lookup/"+N.payload).pipe((0,C.U)(H=>(this.logger.info(H),this.store.dispatch((0,S.uO)({payload:D.m6.SEARCHING_PAYMENT})),this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.COMPLETED}})),this.store.dispatch((0,k.qY)({payload:H})),{type:D.uR.SET_LOOKUP_LND,payload:H})),(0,d.K)(H=>(this.store.dispatch((0,k.PC)({payload:{action:"Lookup",status:D.Bn.ERROR}})),this.handleErrorWithoutAlert("Lookup",D.m6.SEARCHING_PAYMENT,"Payment Lookup Failed",H),(0,f.of)({type:D.uR.SET_LOOKUP_LND,payload:{error:H}})))))))),this.setLookup=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_LOOKUP_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.getRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.RESTORE_CHANNELS_LIST_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API+"/restore/list").pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"RestoreChannelsList",status:D.Bn.COMPLETED}})),{type:D.uR.SET_RESTORE_CHANNELS_LIST_LND,payload:N||{all_restore_exists:!1,files:[]}})),(0,d.K)(N=>(this.handleErrorWithAlert("RestoreChannelsList",D.m6.NO_SPINNER,"Restore Channels List Failed",this.CHILD_API_URL+h.NZ.CHANNELS_BACKUP_API,N),(0,f.of)({type:D.pg.VOID})))))))),this.setRestoreChannelList=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SET_RESTORE_CHANNELS_LIST_LND),(0,C.U)(N=>(this.logger.info(N.payload),N.payload))),{dispatch:!1}),this.allLightningTransactionsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.GET_ALL_LIGHTNING_TRANSATIONS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.INITIATED}})),this.httpClient.get(this.CHILD_API_URL+h.NZ.PAYMENTS_API+"/alltransactions").pipe((0,C.U)(N=>(this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchLightningTransactions",status:D.Bn.COMPLETED}})),{type:D.uR.SET_ALL_LIGHTNING_TRANSATIONS_LND,payload:N})),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchLightningTransactions",D.m6.NO_SPINNER,"Fetching All Lightning Transaction Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.pageSettingsFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.FETCH_PAGE_SETTINGS_LND),(0,M.z)(()=>(this.store.dispatch((0,k.PC)({payload:{action:"FetchPageSettings",status:D.Bn.INITIATED}})),this.httpClient.get(h.NZ.PAGE_SETTINGS_API).pipe((0,C.U)(N=>{var H,X,he,be;return this.logger.info(N),this.store.dispatch((0,k.PC)({payload:{action:"FetchPageSettings",status:D.Bn.COMPLETED}})),this.invoicesPageSize=(N&&Object.keys(N).length>0?null===(H=N.find(Pe=>"transactions"===Pe.pageId))||void 0===H?void 0:H.tables.find(Pe=>"invoices"===Pe.tableId):null===(X=D.gK.find(Pe=>"transactions"===Pe.pageId))||void 0===X?void 0:X.tables.find(Pe=>"invoices"===Pe.tableId)).recordsPerPage,this.paymentsPageSize=(N&&Object.keys(N).length>0?null===(he=N.find(Pe=>"transactions"===Pe.pageId))||void 0===he?void 0:he.tables.find(Pe=>"payments"===Pe.tableId):null===(be=D.gK.find(Pe=>"transactions"===Pe.pageId))||void 0===be?void 0:be.tables.find(Pe=>"payments"===Pe.tableId)).recordsPerPage,this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}})),{type:D.uR.SET_PAGE_SETTINGS_LND,payload:N||[]}}),(0,d.K)(N=>(this.handleErrorWithoutAlert("FetchPageSettings",D.m6.NO_SPINNER,"Fetching Page Settings Failed.",N),(0,f.of)({type:D.pg.VOID})))))))),this.savePageSettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(D.uR.SAVE_PAGE_SETTINGS_LND),(0,M.z)(N=>(this.store.dispatch((0,S.ac)({payload:D.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,k.PC)({payload:{action:"SavePageSettings",status:D.Bn.INITIATED}})),this.httpClient.post(h.NZ.PAGE_SETTINGS_API,N.payload).pipe((0,C.U)(H=>{var X,he,be,Pe;this.logger.info(H),this.store.dispatch((0,k.PC)({payload:{action:"SavePageSettings",status:D.Bn.COMPLETED}})),this.store.dispatch((0,S.uO)({payload:D.m6.UPDATE_PAGE_SETTINGS})),this.store.dispatch((0,S.jW)({payload:"Page Layout Updated Successfully!"}));const Ee=((null===(X=H.find(Ve=>"transactions"===Ve.pageId))||void 0===X?void 0:X.tables.find(Ve=>"invoices"===Ve.tableId))||(null===(he=D.gK.find(Ve=>"transactions"===Ve.pageId))||void 0===he?void 0:he.tables.find(Ve=>"invoices"===Ve.tableId))).recordsPerPage,j=((null===(be=H.find(Ve=>"transactions"===Ve.pageId))||void 0===be?void 0:be.tables.find(Ve=>"payments"===Ve.tableId))||(null===(Pe=D.gK.find(Ve=>"transactions"===Ve.pageId))||void 0===Pe?void 0:Pe.tables.find(Ve=>"payments"===Ve.tableId))).recordsPerPage;return Ee!==this.invoicesPageSize&&(this.invoicesPageSize=Ee,this.store.dispatch((0,k.WM)({payload:{num_max_invoices:this.invoicesPageSize,reversed:!0}}))),j!==this.paymentsPageSize&&(this.paymentsPageSize=j),{type:D.uR.SET_PAGE_SETTINGS_LND,payload:H||[]}}),(0,d.K)(H=>(this.handleErrorWithAlert("SavePageSettings",D.m6.UPDATE_PAGE_SETTINGS,"Page Settings Update Failed.",h.NZ.PAGE_SETTINGS_API,H),(0,f.of)({type:D.pg.VOID})))))))),this.store.select(E.yA).pipe((0,a.R)(this.unSubs[0])).subscribe(N=>{N.FetchInfo.status!==D.Bn.COMPLETED&&N.FetchInfo.status!==D.Bn.ERROR||N.FetchFees.status!==D.Bn.COMPLETED&&N.FetchFees.status!==D.Bn.ERROR||N.FetchBalanceBlockchain.status!==D.Bn.COMPLETED&&N.FetchBalanceBlockchain.status!==D.Bn.ERROR||N.FetchAllChannels.status!==D.Bn.COMPLETED&&N.FetchAllChannels.status!==D.Bn.ERROR||N.FetchPendingChannels.status!==D.Bn.COMPLETED&&N.FetchPendingChannels.status!==D.Bn.ERROR||this.flgInitialized||(this.store.dispatch((0,S.uO)({payload:D.m6.INITALIZE_NODE_DATA})),this.flgInitialized=!0)}),this.wsService.lndWSMessages.pipe((0,a.R)(this.unSubs[1])).subscribe(N=>{this.logger.info("Received new message from the service: "+JSON.stringify(N)),N&&(N.type===D.g8.INVOICE?(this.logger.info(N),N&&N.result&&N.result.payment_request&&this.store.dispatch((0,k.aL)({payload:N.result}))):this.logger.info("Received Event from WS: "+JSON.stringify(N)))})}initializeRemainingData(r,u){this.sessionService.setItem("lndUnlocked","true");const c={identity_pubkey:r.identity_pubkey,alias:r.alias,testnet:r.testnet,chains:r.chains,uris:r.uris,version:r.version?r.version.split(" ")[0]:""};this.store.dispatch((0,S.ac)({payload:D.m6.INITALIZE_NODE_DATA})),this.store.dispatch((0,S._V)({payload:c}));let v=this.location.path();v.includes("/cln/")?v=null==v?void 0:v.replace("/cln/","/lnd/"):v.includes("/ecl/")&&(v=null==v?void 0:v.replace("/ecl/","/lnd/")),(v.includes("/unlock")||v.includes("/login")||v.includes("/error")||""===v||"HOME"===u||v.includes("?access-key="))&&(v="/lnd/home"),this.router.navigate([v]),this.store.dispatch((0,k.wD)()),this.store.dispatch((0,k.Bl)()),this.store.dispatch((0,k.UR)()),this.store.dispatch((0,k.Z7)()),this.store.dispatch((0,k.Zh)()),this.store.dispatch((0,k.$W)()),this.store.dispatch((0,k.Rv)()),this.store.dispatch((0,k.SN)()),this.store.dispatch((0,k.cQ)({payload:{max_payments:1e5,reversed:!0}}))}handleErrorWithoutAlert(r,u,c,v){this.logger.error("ERROR IN: "+r+"\n"+JSON.stringify(v)),401===v.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,S.uO)({payload:u})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:v.status.toString(),message:this.commonService.extractErrorMessage(v,c)}})))}handleErrorWithAlert(r,u,c,v,T){if(this.logger.error(T),401===T.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,S.ts)()),this.store.dispatch((0,S.kS)()),this.store.dispatch((0,S.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,S.uO)({payload:u}));const I=this.commonService.extractErrorMessage(T);this.store.dispatch((0,S.qR)({payload:{data:{type:"ERROR",alertTitle:c,message:{code:T.status,message:I,URL:v},component:w.H}}})),this.store.dispatch((0,k.PC)({payload:{action:r,status:D.Bn.ERROR,statusCode:T.status.toString(),message:I,URL:v}}))}}ngOnDestroy(){this.unSubs.forEach(r=>{r.next(null),r.complete()})}}return x.\u0275fac=function(r){return new(r||x)(B.LFG(t.eX),B.LFG(Z.eN),B.LFG(Y.yh),B.LFG(ae.mQ),B.LFG(ee.v),B.LFG(ue.m),B.LFG(ne.uw),B.LFG(re.F0),B.LFG(ge.d),B.LFG(q.Ye))},x.\u0275prov=B.Yz7({token:x,factory:x.\u0275fac}),x})()},6529:(Be,K,p)=>{"use strict";p.d(K,{$k:()=>f,Bo:()=>R,Ef:()=>S,JG:()=>L,N7:()=>ue,P2:()=>Z,PP:()=>h,Pr:()=>M,Q5:()=>a,T4:()=>ee,Wi:()=>w,ZW:()=>k,_f:()=>re,bx:()=>ge,dx:()=>D,l5:()=>ne,ni:()=>B,qU:()=>Y,yA:()=>d});var t=p(5620);const e=(0,t.ZF)("lnd"),f=(0,t.P1)(e,q=>q.nodeSettings),M=(0,t.P1)(e,q=>({pageSettings:q.pageSettings,apiCallStatus:q.apisCallStatus.FetchPageSettings})),a=(0,t.P1)(e,q=>q.information),d=((0,t.P1)(e,q=>({information:q.information,apiCallStatus:q.apisCallStatus.FetchInfo})),(0,t.P1)(e,q=>q.apisCallStatus)),R=(0,t.P1)(e,q=>({forwardingHistory:q.forwardingHistory,apiCallStatus:q.apisCallStatus.FetchForwardingHistory})),h=(0,t.P1)(e,q=>({listPayments:q.listPayments,apiCallStatus:q.apisCallStatus.FetchPayments})),L=(0,t.P1)(e,q=>({fees:q.fees,apiCallStatus:q.apisCallStatus.FetchFees})),w=(0,t.P1)(e,q=>({peers:q.peers,apiCallStatus:q.apisCallStatus.FetchPeers})),D=(0,t.P1)(e,q=>({transactions:q.transactions,apiCallStatus:q.apisCallStatus.FetchTransactions})),S=(0,t.P1)(e,q=>({listInvoices:q.listInvoices,apiCallStatus:q.apisCallStatus.FetchInvoices})),k=(0,t.P1)(e,q=>({channels:q.channels,channelsSummary:q.channelsSummary,lightningBalance:q.lightningBalance,apiCallStatus:q.apisCallStatus.FetchAllChannels})),B=((0,t.P1)(e,q=>({channelsSummary:q.channelsSummary,pendingChannels:q.pendingChannels,closedChannels:q.closedChannels,apiCallStatus:q.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,q=>({pendingChannels:q.pendingChannels,pendingChannelsSummary:q.pendingChannelsSummary,apiCallStatus:q.apisCallStatus.FetchPendingChannels}))),Z=(0,t.P1)(e,q=>({closedChannels:q.closedChannels,apiCallStatus:q.apisCallStatus.FetchClosedChannels})),Y=(0,t.P1)(e,q=>({blockchainBalance:q.blockchainBalance,apiCallStatus:q.apisCallStatus.FetchBalanceBlockchain})),ee=((0,t.P1)(e,q=>({lightningBalance:q.lightningBalance,apiCallStatus:q.apisCallStatus.FetchAllChannels})),(0,t.P1)(e,q=>({utxos:q.utxos,apiCallStatus:q.apisCallStatus.FetchUTXOs}))),ue=(0,t.P1)(e,q=>({networkInfo:q.networkInfo,apiCallStatus:q.apisCallStatus.FetchNetwork})),ne=(0,t.P1)(e,q=>({allLightningTransactions:q.allLightningTransactions,apiCallStatus:q.apisCallStatus.FetchLightningTransactions})),re=(0,t.P1)(e,q=>({channels:q.channels,pendingChannels:q.pendingChannels,closedChannels:q.closedChannels})),ge=(0,t.P1)(e,q=>({information:q.information,nodeSettings:q.nodeSettings,apiCallStatus:q.apisCallStatus.FetchInfo}))},8627:(Be,K,p)=>{"use strict";p.d(K,{v:()=>Ce});var t=p(8966),e=p(2687),f=p(7579),M=p(2722),a=p(7731),C=p(6529),d=p(5e3),R=p(5043),h=p(62),L=p(7261),w=p(5620),D=p(7093),S=p(9808),k=p(3322),E=p(159),B=p(9224),Z=p(9546),Y=p(7423),ae=p(4834),ee=p(773),ue=p(5245),ne=p(3390),re=p(6895),ge=p(1125),q=p(7238);const _e=["scrollContainer"];function x(fe,Q){if(1&fe&&d._UZ(0,"qr-code",33),2&fe){const pt=d.oxw();d.Q6J("value",null==pt.invoice?null:pt.invoice.payment_request)("size",pt.qrWidth)("errorCorrectionLevel","L")}}function i(fe,Q){1&fe&&(d.TgZ(0,"span",34),d._uU(1,"N/A"),d.qZA())}function r(fe,Q){if(1&fe&&d._UZ(0,"qr-code",33),2&fe){const pt=d.oxw();d.Q6J("value",null==pt.invoice?null:pt.invoice.payment_request)("size",pt.qrWidth)("errorCorrectionLevel","L")}}function u(fe,Q){1&fe&&(d.TgZ(0,"span",35),d._uU(1,"QR Code Not Applicable"),d.qZA())}function c(fe,Q){1&fe&&d._UZ(0,"mat-divider",22),2&fe&&d.Q6J("inset",!0)}function v(fe,Q){1&fe&&(d.ynx(0),d._uU(1," (zero amount) "),d.BQk())}function T(fe,Q){1&fe&&d._UZ(0,"span",41)}const I=function(){return[]};function y(fe,Q){if(1&fe&&(d.TgZ(0,"div",37)(1,"div",38)(2,"span",39),d._uU(3),d.ALo(4,"number"),d.qZA(),d.YNc(5,T,1,0,"span",40),d.qZA()()),2&fe){const pt=d.oxw(2);d.xp6(3),d.hij("",d.lcZ(4,2,null==pt.invoice?null:pt.invoice.amt_paid_sat)," Sats"),d.xp6(2),d.Q6J("ngForOf",d.DdM(4,I).constructor(35))}}function n(fe,Q){if(1&fe&&(d.TgZ(0,"div"),d._uU(1),d.ALo(2,"number"),d.qZA()),2&fe){const pt=d.oxw(2);d.xp6(1),d.hij("",d.lcZ(2,1,null==pt.invoice?null:pt.invoice.amt_paid_sat)," Sats")}}function _(fe,Q){if(1&fe&&(d.ynx(0),d.YNc(1,y,6,5,"div",36),d.YNc(2,n,3,3,"div",21),d.BQk()),2&fe){const pt=d.oxw();d.xp6(1),d.Q6J("ngIf",pt.flgInvoicePaid),d.xp6(1),d.Q6J("ngIf",!pt.flgInvoicePaid)}}function V(fe,Q){1&fe&&(d.TgZ(0,"span"),d._uU(1,"-"),d.qZA())}function N(fe,Q){1&fe&&d._UZ(0,"mat-spinner",43),2&fe&&d.Q6J("diameter",20)}function H(fe,Q){if(1&fe&&(d.ynx(0),d.YNc(1,V,2,0,"span",21),d.YNc(2,N,1,1,"mat-spinner",42),d.BQk()),2&fe){const pt=d.oxw();d.xp6(1),d.Q6J("ngIf","OPEN"!==(null==pt.invoice?null:pt.invoice.state)||!pt.flgVersionCompatible),d.xp6(1),d.Q6J("ngIf","OPEN"===(null==pt.invoice?null:pt.invoice.state)&&pt.flgVersionCompatible)}}function X(fe,Q){1&fe&&d.GkF(0)}function he(fe,Q){if(1&fe&&(d.TgZ(0,"div"),d.YNc(1,X,1,0,"ng-container",44),d.qZA()),2&fe){d.oxw();const pt=d.MAs(79);d.xp6(1),d.Q6J("ngTemplateOutlet",pt)}}function be(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"div",45)(1,"button",46),d.NdJ("click",function(){return d.CHM(pt),d.oxw().onScrollDown()}),d.TgZ(2,"mat-icon",47),d._uU(3,"arrow_downward"),d.qZA()()()}}function Pe(fe,Q){1&fe&&(d.TgZ(0,"p"),d._uU(1,"Show Advanced"),d.qZA())}function Ee(fe,Q){1&fe&&(d.TgZ(0,"p"),d._uU(1,"Hide Advanced"),d.qZA())}function j(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"button",48),d.NdJ("copied",function(Dt){return d.CHM(pt),d.oxw().onCopyPayment(Dt)}),d._uU(1),d.qZA()}if(2&fe){const pt=d.oxw();d.Q6J("payload",null==pt.invoice?null:pt.invoice.payment_request),d.xp6(1),d.Oqu(pt.screenSize===pt.screenSizeEnum.XS?"Copy Payment":"Copy Payment Request")}}function Ve(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"button",49),d.NdJ("click",function(){return d.CHM(pt),d.oxw().onClose()}),d._uU(1,"OK"),d.qZA()}}const Me=function(fe){return{"mr-0":fe}};function J(fe,Q){if(1&fe&&d._UZ(0,"span",66),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Me,pt.screenSize===pt.screenSizeEnum.XS))}}function Ie(fe,Q){if(1&fe&&d._UZ(0,"span",67),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Me,pt.screenSize===pt.screenSizeEnum.XS))}}function ut(fe,Q){if(1&fe&&d._UZ(0,"span",68),2&fe){const pt=d.oxw(4);d.Q6J("ngClass",d.VKq(1,Me,pt.screenSize===pt.screenSizeEnum.XS))}}function Oe(fe,Q){if(1&fe&&(d.TgZ(0,"div",55)(1,"div",60)(2,"span",61),d.YNc(3,J,1,3,"span",62),d.YNc(4,Ie,1,3,"span",63),d.YNc(5,ut,1,3,"span",64),d._uU(6),d.qZA(),d.TgZ(7,"span",65),d._uU(8),d.ALo(9,"number"),d.qZA()(),d._UZ(10,"mat-divider",22),d.qZA()),2&fe){const pt=Q.$implicit,tt=d.oxw(3);d.xp6(3),d.Q6J("ngIf","SETTLED"===pt.state),d.xp6(1),d.Q6J("ngIf","ACCEPTED"===pt.state),d.xp6(1),d.Q6J("ngIf","CANCELED"===pt.state),d.xp6(1),d.hij(" ",pt.chan_id," "),d.xp6(2),d.Oqu(d.xi3(9,6,+pt.amt_msat/1e3||0,tt.getDecimalFormat(pt))),d.xp6(2),d.Q6J("inset",!0)}}function we(fe,Q){if(1&fe){const pt=d.EpF();d.TgZ(0,"div",17)(1,"mat-expansion-panel",53),d.NdJ("opened",function(){return d.CHM(pt),d.oxw(2).flgOpened=!0})("closed",function(){return d.CHM(pt),d.oxw(2).onExpansionClosed()}),d.TgZ(2,"mat-expansion-panel-header")(3,"mat-panel-title")(4,"h4",54),d._uU(5,"HTLCs"),d.qZA()()(),d.TgZ(6,"div",55)(7,"div",56)(8,"span",57),d._uU(9,"Channel ID"),d.qZA(),d.TgZ(10,"span",58),d._uU(11,"Amount (Sats)"),d.qZA()(),d._UZ(12,"mat-divider",22),d.YNc(13,Oe,11,9,"div",59),d.qZA()()()}if(2&fe){const pt=d.oxw(2);d.xp6(12),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngForOf",null==pt.invoice?null:pt.invoice.htlcs)}}function ce(fe,Q){1&fe&&d._UZ(0,"mat-divider",22),2&fe&&d.Q6J("inset",!0)}function Te(fe,Q){if(1&fe&&(d._UZ(0,"mat-divider",22),d.TgZ(1,"div",17)(2,"div",23)(3,"h4",19),d._uU(4,"Preimage"),d.qZA(),d.TgZ(5,"span",24),d._uU(6),d.qZA()()(),d._UZ(7,"mat-divider",22),d.TgZ(8,"div",17)(9,"div",50)(10,"h4",19),d._uU(11,"State"),d.qZA(),d.TgZ(12,"span",24),d._uU(13),d.qZA()(),d.TgZ(14,"div",51)(15,"h4",19),d._uU(16,"Expiry"),d.qZA(),d.TgZ(17,"span",24),d._uU(18),d.qZA()(),d.TgZ(19,"div",51)(20,"h4",19),d._uU(21,"Private Routing Hints"),d.qZA(),d.TgZ(22,"span",24),d._uU(23),d.qZA()()(),d._UZ(24,"mat-divider",22),d.YNc(25,we,14,2,"div",52),d.YNc(26,ce,1,1,"mat-divider",14)),2&fe){const pt=d.oxw();d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==pt.invoice?null:pt.invoice.r_preimage)||"-"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==pt.invoice?null:pt.invoice.state),d.xp6(5),d.Oqu(null==pt.invoice?null:pt.invoice.expiry),d.xp6(5),d.Oqu(null!=pt.invoice&&pt.invoice.private?"Yes":"No"),d.xp6(1),d.Q6J("inset",!0),d.xp6(1),d.Q6J("ngIf",(null==pt.invoice?null:pt.invoice.htlcs)&&(null==pt.invoice?null:pt.invoice.htlcs.length)>0),d.xp6(1),d.Q6J("ngIf",(null==pt.invoice?null:pt.invoice.htlcs)&&(null==pt.invoice?null:pt.invoice.htlcs.length)>0)}}const xe=function(fe){return{"display-none":fe}},W=function(fe){return{"xs-scroll-y":fe}},te=function(fe){return{"h-50":fe}};let Ce=(()=>{class fe{constructor(pt,tt,Dt,di,Yt,Zt){this.dialogRef=pt,this.data=tt,this.logger=Dt,this.commonService=di,this.snackBar=Yt,this.store=Zt,this.faReceipt=e.dLy,this.showAdvanced=!1,this.newlyAdded=!1,this.invoice=null,this.qrWidth=240,this.screenSize="",this.screenSizeEnum=a.cu,this.flgOpened=!1,this.flgInvoicePaid=!1,this.flgVersionCompatible=!0,this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}set container(pt){pt&&(this.scrollContainer=pt)}ngOnInit(){this.invoice=JSON.parse(JSON.stringify(this.data.invoice)),this.newlyAdded=!!this.data.newlyAdded,this.screenSize=this.commonService.getScreenSize(),this.screenSize===a.cu.XS&&(this.qrWidth=220),this.store.select(C.Q5).pipe((0,M.R)(this.unSubs[0])).subscribe(tt=>{this.flgVersionCompatible=this.commonService.isVersionCompatible(tt.version,"0.11.0")});const pt=JSON.parse(JSON.stringify(this.invoice));this.store.select(C.Ef).pipe((0,M.R)(this.unSubs[1])).subscribe(tt=>{var Dt,di,Yt;const Zt=null===(Dt=this.invoice)||void 0===Dt?void 0:Dt.state,Ot=(tt.listInvoices.invoices||[]).find(Nt=>Nt.r_hash===pt.r_hash)||null;Ot&&(this.invoice=Ot),Zt!==(null===(di=this.invoice)||void 0===di?void 0:di.state)&&"SETTLED"===(null===(Yt=this.invoice)||void 0===Yt?void 0:Yt.state)&&(this.flgInvoicePaid=!0,setTimeout(()=>{this.flgInvoicePaid=!1},4e3)),this.logger.info(tt)})}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(pt){this.snackBar.open("Payment request copied."),this.logger.info("Copied Text: "+pt)}getDecimalFormat(pt){return pt.amt_msat<1e3?"1.0-4":"1.0-0"}ngOnDestroy(){this.unSubs.forEach(pt=>{pt.next(null),pt.complete()})}}return fe.\u0275fac=function(pt){return new(pt||fe)(d.Y36(t.so),d.Y36(t.WI),d.Y36(R.mQ),d.Y36(h.v),d.Y36(L.ux),d.Y36(w.yh))},fe.\u0275cmp=d.Xpm({type:fe,selectors:[["rtl-invoice-information"]],viewQuery:function(pt,tt){if(1&pt&&d.Gf(_e,5),2&pt){let Dt;d.iGM(Dt=d.CRH())&&(tt.container=Dt.first)}},decls:80,vars:49,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,"value","size","errorCorrectionLevel",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,"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-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],[4,"ngIf","ngIfElse"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click",4,"ngIf"],["advancedBlock",""],[3,"value","size","errorCorrectionLevel"],[1,"font-size-300"],[1,"font-size-120"],["class","invoice-animation-container",4,"ngIf"],[1,"invoice-animation-container"],[1,"invoice-animation-div"],[1,"wiggle"],["class","particles-circle",4,"ngFor","ngForOf"],[1,"particles-circle"],[3,"diameter",4,"ngIf"],[3,"diameter"],[4,"ngTemplateOutlet"],["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-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","button",3,"click"],["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"]],template:function(pt,tt){if(1&pt&&(d.TgZ(0,"div",0)(1,"div",1),d.YNc(2,x,1,3,"qr-code",2),d.YNc(3,i,2,0,"span",3),d.qZA(),d.TgZ(4,"div",4)(5,"mat-card-header",5)(6,"div",6),d._UZ(7,"fa-icon",7),d.TgZ(8,"span",8),d._uU(9),d.qZA()(),d.TgZ(10,"button",9),d.NdJ("click",function(){return tt.onClose()}),d._uU(11,"X"),d.qZA()(),d.TgZ(12,"mat-card-content",10)(13,"div",11)(14,"div",12),d.YNc(15,r,1,3,"qr-code",2),d.YNc(16,u,2,0,"span",13),d.qZA(),d.YNc(17,c,1,1,"mat-divider",14),d.TgZ(18,"div",15,16)(20,"div",17)(21,"div",18)(22,"h4",19),d._uU(23),d.qZA(),d.TgZ(24,"span",20),d._uU(25),d.ALo(26,"number"),d.YNc(27,v,2,0,"ng-container",21),d.qZA()(),d.TgZ(28,"div",18)(29,"h4",19),d._uU(30,"Amount Settled"),d.qZA(),d.TgZ(31,"span",20),d.YNc(32,_,3,2,"ng-container",21),d.YNc(33,H,3,2,"ng-container",21),d.qZA()()(),d._UZ(34,"mat-divider",22),d.TgZ(35,"div",17)(36,"div",18)(37,"h4",19),d._uU(38,"Date Created"),d.qZA(),d.TgZ(39,"span",20),d._uU(40),d.ALo(41,"date"),d.qZA()(),d.TgZ(42,"div",18)(43,"h4",19),d._uU(44,"Date Settled"),d.qZA(),d.TgZ(45,"span",20),d._uU(46),d.ALo(47,"date"),d.qZA()()(),d._UZ(48,"mat-divider",22),d.TgZ(49,"div",17)(50,"div",23)(51,"h4",19),d._uU(52,"Memo"),d.qZA(),d.TgZ(53,"span",20),d._uU(54),d.qZA()()(),d._UZ(55,"mat-divider",22),d.TgZ(56,"div",17)(57,"div",23)(58,"h4",19),d._uU(59,"Payment Request"),d.qZA(),d.TgZ(60,"span",24),d._uU(61),d.qZA()()(),d._UZ(62,"mat-divider",22),d.TgZ(63,"div",17)(64,"div",23)(65,"h4",19),d._uU(66,"Payment Hash"),d.qZA(),d.TgZ(67,"span",24),d._uU(68),d.qZA()()(),d.YNc(69,he,2,1,"div",21),d.qZA()()(),d.YNc(70,be,4,0,"div",25),d.TgZ(71,"div",26)(72,"button",27),d.NdJ("click",function(){return tt.onShowAdvanced()}),d.YNc(73,Pe,2,0,"p",28),d.YNc(74,Ee,2,0,"ng-template",null,29,d.W1O),d.qZA(),d.YNc(76,j,2,2,"button",30),d.YNc(77,Ve,2,0,"button",31),d.qZA()()(),d.YNc(78,Te,27,9,"ng-template",null,32,d.W1O)),2&pt){const Dt=d.MAs(75);d.xp6(1),d.Q6J("fxLayoutAlign",null!=tt.invoice&&tt.invoice.payment_request&&""!==(null==tt.invoice?null:tt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(41,xe,tt.screenSize===tt.screenSizeEnum.XS||tt.screenSize===tt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.payment_request)&&""!==(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.payment_request)||""===(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(4),d.Q6J("icon",tt.faReceipt),d.xp6(2),d.Oqu(tt.screenSize===tt.screenSizeEnum.XS?tt.newlyAdded?"Created":"Invoice":tt.newlyAdded?"Invoice Created":"Invoice Information"),d.xp6(3),d.Q6J("ngClass",d.VKq(43,W,tt.screenSize===tt.screenSizeEnum.XS)),d.xp6(2),d.Q6J("fxLayoutAlign",null!=tt.invoice&&tt.invoice.payment_request&&""!==(null==tt.invoice?null:tt.invoice.payment_request)?"center start":"center center")("ngClass",d.VKq(45,xe,tt.screenSize!==tt.screenSizeEnum.XS&&tt.screenSize!==tt.screenSizeEnum.SM)),d.xp6(1),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.payment_request)&&""!==(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.payment_request)||""===(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",tt.screenSize===tt.screenSizeEnum.XS||tt.screenSize===tt.screenSizeEnum.SM),d.xp6(1),d.Q6J("ngClass",d.VKq(47,te,(null==tt.invoice?null:tt.invoice.htlcs)&&(null==tt.invoice?null:tt.invoice.htlcs.length)>0&&tt.showAdvanced)),d.xp6(5),d.Oqu(tt.screenSize===tt.screenSizeEnum.XS?"Amount":"Amount Requested"),d.xp6(2),d.hij("",d.lcZ(26,33,(null==tt.invoice?null:tt.invoice.value)||0)," Sats"),d.xp6(2),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.value)||"0"===(null==tt.invoice?null:tt.invoice.value)),d.xp6(5),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.amt_paid_sat)&&"OPEN"!==(null==tt.invoice?null:tt.invoice.state)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.amt_paid_sat)||"0"===(null==tt.invoice?null:tt.invoice.amt_paid_sat)),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu(d.xi3(41,35,1e3*(null==tt.invoice?null:tt.invoice.creation_date),"dd/MMM/y HH:mm")),d.xp6(6),d.Oqu(0!=+(null==tt.invoice?null:tt.invoice.settle_date)?d.xi3(47,38,1e3*+(null==tt.invoice?null:tt.invoice.settle_date),"dd/MMM/y HH:mm"):"-"),d.xp6(2),d.Q6J("inset",!0),d.xp6(6),d.Oqu(null==tt.invoice?null:tt.invoice.memo),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==tt.invoice?null:tt.invoice.payment_request)||"N/A"),d.xp6(1),d.Q6J("inset",!0),d.xp6(6),d.Oqu((null==tt.invoice?null:tt.invoice.r_hash)||""),d.xp6(1),d.Q6J("ngIf",tt.showAdvanced),d.xp6(1),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.htlcs)&&(null==tt.invoice?null:tt.invoice.htlcs.length)>0&&tt.showAdvanced&&tt.flgOpened),d.xp6(3),d.Q6J("ngIf",!tt.showAdvanced)("ngIfElse",Dt),d.xp6(3),d.Q6J("ngIf",(null==tt.invoice?null:tt.invoice.payment_request)&&""!==(null==tt.invoice?null:tt.invoice.payment_request)),d.xp6(1),d.Q6J("ngIf",!(null!=tt.invoice&&tt.invoice.payment_request)||""===(null==tt.invoice?null:tt.invoice.payment_request))}},directives:[D.xw,D.Wh,D.yH,S.mk,k.oO,S.O5,E.uU,B.dk,Z.BN,Y.lW,B.dn,ae.d,S.sg,ee.Ou,S.tP,ue.Hw,ne.h,re.y,ge.ib,ge.yz,ge.yK,q.gM],pipes:[S.JJ,S.uU],styles:[""]}),fe})()},7772:(Be,K,p)=>{"use strict";p.d(K,{J:()=>f,_:()=>e});var t=p(1777);const e=[(0,t.X$)("opacityAnimation",[(0,t.eR)(":enter",[(0,t.oB)({opacity:0}),(0,t.jt)("1000ms ease-in",(0,t.oB)({opacity:1}))]),(0,t.eR)(":leave",[(0,t.jt)("0ms",(0,t.oB)({opacity:0}))])])],f=[(0,t.X$)("fadeIn",[(0,t.eR)("void => *",[]),(0,t.eR)("* => void",[]),(0,t.eR)("* => *",[(0,t.jt)(800,(0,t.F4)([(0,t.oB)({opacity:0,transform:"translateY(100%)"}),(0,t.oB)({opacity:1,transform:"translateY(0%)"})]))])])]},8878:(Be,K,p)=>{"use strict";p.d(K,{g:()=>e});var t=p(1777);const e=(0,t.X$)("routeAnimation",[(0,t.eR)("* => *",[(0,t.IO)(":enter, :leave",(0,t.oB)({position:"fixed",width:"100%"}),{optional:!0}),(0,t.ru)([(0,t.IO)(":enter",[(0,t.oB)({transform:"translateX(100%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(0%)"}))],{optional:!0}),(0,t.IO)(":leave",[(0,t.oB)({transform:"translateX(0%)"}),(0,t.jt)("1000ms ease-in-out",(0,t.oB)({transform:"translateX(-100%)"}))],{optional:!0})])])])},113:(Be,K,p)=>{"use strict";p.d(K,{l:()=>e});var t=p(1777);const e=[(0,t.X$)("sliderAnimation",[(0,t.SB)("*",(0,t.oB)({transform:"translateX(0)"})),(0,t.eR)("void => backward",[(0,t.oB)({transform:"translateX(-100%"}),(0,t.jt)("800ms")]),(0,t.eR)("backward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(100%)"}))]),(0,t.eR)("void => forward",[(0,t.oB)({transform:"translateX(100%"}),(0,t.jt)("800ms")]),(0,t.eR)("forward => void",[(0,t.jt)("0ms",(0,t.oB)({transform:"translateX(-100%)"}))])])]},1786:(Be,K,p)=>{"use strict";p.d(K,{H:()=>w});var t=p(8966),e=p(5e3),f=p(5043),M=p(7093),a=p(9224),C=p(7423),d=p(9808),R=p(4834),h=p(3390);function L(D,S){if(1&D&&(e.TgZ(0,"p",14),e._uU(1),e.qZA()),2&D){const k=e.oxw();e.xp6(1),e.Oqu(k.data.titleMessage)}}let w=(()=>{class D{constructor(k,E,B){this.dialogRef=k,this.data=E,this.logger=B,this.errorMessage=""}ngOnInit(){this.errorMessage=this.data.message&&this.data.message.message&&"object"==typeof this.data.message.message?JSON.stringify(this.data.message.message):this.data.message&&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 D.\u0275fac=function(k){return new(k||D)(e.Y36(t.so),e.Y36(t.WI),e.Y36(f.mQ))},D.\u0275cmp=e.Xpm({type:D,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-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","start center",1,"pb-1"]],template:function(k,E){1&k&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return E.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7),e.YNc(10,L,2,1,"p",8),e.TgZ(11,"h4",9),e._uU(12,"Error Code"),e.qZA(),e.TgZ(13,"span"),e._uU(14),e.qZA(),e._UZ(15,"mat-divider",10),e.TgZ(16,"h4",9),e._uU(17,"Error Message"),e.qZA(),e.TgZ(18,"span",11),e._uU(19),e.qZA(),e._UZ(20,"mat-divider",10),e.TgZ(21,"h4",9),e._uU(22,"API URL"),e.qZA(),e.TgZ(23,"span",11),e._uU(24),e.qZA(),e._UZ(25,"mat-divider",10),e.TgZ(26,"div",12)(27,"button",13),e._uU(28,"OK"),e.qZA()()()()()()),2&k&&(e.xp6(5),e.Oqu(E.data.alertTitle||"ERROR"),e.xp6(5),e.Q6J("ngIf",E.data.titleMessage),e.xp6(4),e.Oqu(E.data.message.code),e.xp6(5),e.Oqu(E.errorMessage),e.xp6(5),e.Oqu(E.data.message.URL),e.xp6(3),e.Q6J("mat-dialog-close",!1))},directives:[M.xw,M.yH,a.dk,M.Wh,C.lW,a.dn,d.O5,R.d,h.h,t.ZT],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),D})()},2615:(Be,K,p)=>{"use strict";p.d(K,{a:()=>Ui});var t=p(3075),e=p(7579),f=p(2722),M=p(8966),a=p(2687),C=p(7772),d=p(7731),R=p(6529),h=p(5e3),L=p(5620),w=p(9107),D=p(9808),S=p(5043),k=p(1402),E=p(62),B=p(7093),Z=p(9224),Y=p(7423),ae=p(5615),ee=p(1125),ue=p(3322),ne=p(5245),re=p(7238),ge=p(4834);function q(Ue,Tt){1&Ue&&h.GkF(0)}function _e(Ue,Tt){1&Ue&&h.GkF(0)}const x=function(Ue){return{"h-5":Ue}};function i(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-expansion-panel",3)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",4),h._uU(4),h.ALo(5,"number"),h.qZA()()(),h.YNc(6,_e,1,0,"ng-container",0),h.qZA()),2&Ue){const ve=h.oxw(),Qe=h.MAs(4);h.Q6J("expanded",ve.panelExpanded)("ngClass",h.VKq(7,x,!ve.flgShowPanel)),h.xp6(4),h.AsE("Quote for ",ve.termCaption," amount (",h.lcZ(5,5,ve.quote.amount)," Sats)"),h.xp6(2),h.Q6J("ngTemplateOutlet",Qe)}}function r(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",19)(1,"h4",8),h._uU(2," Prepay Amount (Sats) "),h.TgZ(3,"mat-icon",20),h._uU(4,"info_outline"),h.qZA()(),h.TgZ(5,"span",10),h._uU(6),h.ALo(7,"number"),h.qZA()()),2&Ue){const ve=h.oxw(2);h.xp6(6),h.Oqu(h.lcZ(7,1,null==ve.quote?null:ve.quote.prepay_amt_sat))}}function u(Ue,Tt){1&Ue&&h._UZ(0,"mat-divider",13)}function c(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",6)(1,"div",21)(2,"h4",8),h._uU(3," Swap Server Node Pubkey "),h.TgZ(4,"mat-icon",22),h._uU(5,"info_outline"),h.qZA()(),h.TgZ(6,"span",10),h._uU(7),h.qZA()()()),2&Ue){const ve=h.oxw(2);h.xp6(7),h.Oqu(null==ve.quote?null:ve.quote.swap_payment_dest)}}function v(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",5)(1,"div",6)(2,"div",7)(3,"h4",8),h._uU(4," Swap Fee (Sats) "),h.TgZ(5,"mat-icon",9),h._uU(6,"info_outline"),h.qZA()(),h.TgZ(7,"span",10),h._uU(8),h.ALo(9,"number"),h.qZA()(),h.TgZ(10,"div",7)(11,"h4",8),h._uU(12),h.TgZ(13,"mat-icon",11),h._uU(14,"info_outline"),h.qZA()(),h.TgZ(15,"span",10),h._uU(16),h.ALo(17,"number"),h.qZA()(),h.YNc(18,r,8,3,"div",12),h.qZA(),h._UZ(19,"mat-divider",13),h.TgZ(20,"div",6)(21,"div",14)(22,"h4",8),h._uU(23," Max Off-chain Swap Routing Fee (Sats) "),h.TgZ(24,"mat-icon",15),h._uU(25,"info_outline"),h.qZA()(),h.TgZ(26,"span",10),h._uU(27),h.ALo(28,"number"),h.qZA()(),h.TgZ(29,"div",14)(30,"h4",8),h._uU(31," Max Off-chain Prepay Routing Fee (Sats) "),h.TgZ(32,"mat-icon",16),h._uU(33,"info_outline"),h.qZA()(),h.TgZ(34,"span",10),h._uU(35,"36"),h.qZA()()(),h.YNc(36,u,1,0,"mat-divider",17),h.YNc(37,c,8,1,"div",18),h.qZA()),2&Ue){const ve=h.oxw();h.xp6(2),h.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"30":"50"),h.xp6(6),h.Oqu(h.lcZ(9,9,null==ve.quote?null:ve.quote.swap_fee_sat)),h.xp6(2),h.Q6J("fxFlex",null!=ve.quote&&ve.quote.prepay_amt_sat?"35":"50"),h.xp6(2),h.hij(" ",null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?"HTLC Sweep Fee (Sats)":null!=ve.quote&&ve.quote.htlc_publish_fee_sat?"HTLC Publish Fee (Sats)":""," "),h.xp6(4),h.Oqu(h.lcZ(17,11,null!=ve.quote&&ve.quote.htlc_sweep_fee_sat?ve.quote.htlc_sweep_fee_sat:null!=ve.quote&&ve.quote.htlc_publish_fee_sat?ve.quote.htlc_publish_fee_sat:0)),h.xp6(2),h.Q6J("ngIf",null==ve.quote?null:ve.quote.prepay_amt_sat),h.xp6(9),h.Oqu(h.lcZ(28,13,(null==ve.quote?null:ve.quote.amount)*((null!=ve.quote&&ve.quote.off_chain_swap_routing_fee_percentage?null==ve.quote?null:ve.quote.off_chain_swap_routing_fee_percentage:2)/100))),h.xp6(9),h.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest)),h.xp6(1),h.Q6J("ngIf",""!==(null==ve.quote?null:ve.quote.swap_payment_dest))}}let T=(()=>{class Ue{constructor(){this.quote={},this.termCaption="",this.showPanel=!0,this.panelExpanded=!1,this.flgShowPanel=!1}ngOnInit(){setTimeout(()=>{this.flgShowPanel=!0},1200)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=h.Xpm({type:Ue,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"],[3,"fxFlex"],["fxLayoutAlign","start center",1,"font-bold-500"],["matTooltip","Estimated fee charged by the loop server for the swap",1,"info-icon","info-icon-text"],[1,"foreground-secondary-text"],["matTooltip","An estimate of the on-chain fee that needs to be paid to sweep the HTLC",1,"info-icon","info-icon-text"],["fxFlex","35",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",1,"info-icon","info-icon-text"],["matTooltip","Maximum off-chain fee that may be paid for routing the pre-payment amount to the server","matTooltipPosition","before",1,"info-icon","info-icon-text"],["class","w-100 my-1",4,"ngIf"],["fxLayout","row",4,"ngIf"],["fxFlex","35"],["matTooltip","The part of the swap fee that is requested as a prepayment","matTooltipPosition","before",1,"info-icon","info-icon-text"],["fxFlex","100"],["matTooltip","The node pubkey, where the swap payments will be sent",1,"info-icon","info-icon-text"]],template:function(ve,Qe){if(1&ve&&(h.YNc(0,q,1,0,"ng-container",0),h.YNc(1,i,7,9,"ng-template",null,1,h.W1O),h.YNc(3,v,38,15,"ng-template",null,2,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4);h.Q6J("ngTemplateOutlet",Qe.showPanel?_t:se)}},directives:[D.tP,ee.ib,B.yH,D.mk,ue.oO,ee.yz,ee.yK,B.Wh,B.xw,ne.Hw,re.gM,D.O5,ge.d],pipes:[D.JJ],styles:[""]}),Ue})();var I=p(7322),y=p(7531),n=p(3390),_=p(2368),V=p(9814),N=p(5899);function H(Ue,Tt){1&Ue&&h.GkF(0)}function X(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",3)(1,"span",4),h._uU(2),h.qZA()()),2&Ue){const ve=h.oxw();h.xp6(2),h.Oqu(null!=ve.loopStatus&&ve.loopStatus.error?null==ve.loopStatus?null:ve.loopStatus.error:"Unknown Error.")}}function he(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",3)(1,"div",5)(2,"div",6)(3,"h4",7),h._uU(4,"ID"),h.qZA(),h.TgZ(5,"span",4),h._uU(6),h.qZA()()(),h._UZ(7,"mat-divider",8),h.TgZ(8,"div",5)(9,"div",6)(10,"h4",7),h._uU(11,"HTLC Address"),h.qZA(),h.TgZ(12,"span",4),h._uU(13),h.qZA()()()()),2&Ue){const ve=h.oxw();h.xp6(6),h.Oqu(null==ve.loopStatus?null:ve.loopStatus.id_bytes),h.xp6(7),h.Oqu(null==ve.loopStatus?null:ve.loopStatus.htlc_address)}}let be=(()=>{class Ue{constructor(){}}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=h.Xpm({type:Ue,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(ve,Qe){if(1&ve&&(h.YNc(0,H,1,0,"ng-container",0),h.YNc(1,X,3,1,"ng-template",null,1,h.W1O),h.YNc(3,he,14,2,"ng-template",null,2,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4);h.Q6J("ngTemplateOutlet",null!=Qe.loopStatus&&Qe.loopStatus.error?_t:se)}},directives:[D.tP,B.xw,B.yH,B.Wh,ge.d],styles:[""]}),Ue})();var Pe=p(113);function Ee(Ue,Tt){1&Ue&&h.GkF(0)}const j=function(Ue,Tt){return{"small-svg":Ue,"large-svg":Tt}};function Ve(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop Out explained."),h.qZA()(),h.TgZ(29,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Me(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40)(13,"g",41)(14,"g",42),h._UZ(15,"rect",43)(16,"rect",44)(17,"rect",45)(18,"circle",46)(19,"rect",47)(20,"rect",48)(21,"circle",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"rect",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56),h._UZ(29,"path",57)(30,"rect",58)(31,"polygon",59)(32,"circle",60)(33,"path",61)(34,"rect",62)(35,"rect",63)(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"path",69)(42,"path",70),h.qZA(),h._UZ(43,"path",71),h.qZA()(),h._UZ(44,"circle",72),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Step 1: Deciding to Loop Out"),h.qZA()(),h.TgZ(48,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function J(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",73)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",74),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",75)(11,"g",76),h._UZ(12,"circle",77)(13,"path",78),h.TgZ(14,"g",79),h._UZ(15,"polygon",80)(16,"polygon",81)(17,"path",82),h.qZA(),h.TgZ(18,"g",83),h._UZ(19,"polygon",84)(20,"path",85)(21,"rect",86)(22,"path",87)(23,"rect",88)(24,"rect",89)(25,"rect",90)(26,"rect",91)(27,"circle",92)(28,"path",93),h.TgZ(29,"g",94)(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)(35,"g",41)(36,"g",42),h._UZ(37,"rect",43)(38,"rect",44)(39,"rect",45)(40,"circle",46)(41,"rect",47)(42,"rect",48)(43,"circle",49)(44,"rect",50)(45,"rect",51)(46,"rect",52)(47,"rect",53)(48,"circle",100)(49,"circle",54)(50,"circle",55)(51,"circle",101),h.qZA(),h.TgZ(52,"g",56),h._UZ(53,"path",57)(54,"rect",102)(55,"polygon",103)(56,"circle",104)(57,"path",61)(58,"rect",105)(59,"rect",106)(60,"rect",107)(61,"rect",108)(62,"rect",109)(63,"rect",110)(64,"rect",68)(65,"path",69)(66,"path",70),h.qZA(),h._UZ(67,"path",111),h.qZA()()()()()(),h.kcU(),h.TgZ(68,"div",30)(69,"mat-card-title"),h._uU(70,"Step 2: Send lightning payment"),h.qZA()(),h.TgZ(71,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Ie(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",112)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",113)(6,"g",114)(7,"g",115)(8,"g",116),h._UZ(9,"circle",12)(10,"path",117),h.qZA(),h.TgZ(11,"g",14),h._UZ(12,"ellipse",118)(13,"ellipse",16)(14,"rect",17)(15,"rect",18)(16,"rect",19)(17,"rect",20)(18,"rect",21)(19,"rect",22)(20,"rect",23)(21,"rect",24)(22,"rect",25)(23,"rect",26)(24,"rect",27)(25,"rect",28)(26,"rect",29),h.qZA()(),h.TgZ(27,"g",119),h._UZ(28,"polygon",80)(29,"polygon",120)(30,"path",82),h.qZA(),h.TgZ(31,"g",121),h._UZ(32,"polygon",84)(33,"path",85)(34,"rect",86)(35,"path",87)(36,"rect",88)(37,"rect",89)(38,"rect",90)(39,"rect",91)(40,"circle",122)(41,"path",93),h.TgZ(42,"g",94)(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.kcU(),h.TgZ(47,"div",30)(48,"mat-card-title"),h._uU(49,"Step 3: Receive funds back"),h.qZA()(),h.TgZ(50,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function ut(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",124)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",125)(11,"g",126)(12,"g",42),h._UZ(13,"rect",127)(14,"rect",128)(15,"rect",129)(16,"circle",130)(17,"rect",131)(18,"rect",132)(19,"circle",133)(20,"rect",134)(21,"rect",135)(22,"rect",136)(23,"rect",137)(24,"rect",138)(25,"circle",139)(26,"circle",140)(27,"circle",141),h.qZA(),h.TgZ(28,"g",142)(29,"g",143)(30,"g",144),h._UZ(31,"path",145)(32,"rect",146)(33,"polygon",147),h.TgZ(34,"g",148),h._UZ(35,"path",149),h.qZA(),h._UZ(36,"rect",150)(37,"rect",151)(38,"rect",152)(39,"rect",153)(40,"rect",154)(41,"rect",155)(42,"rect",156)(43,"path",157)(44,"path",158),h.qZA(),h.TgZ(45,"g",159),h._UZ(46,"path",160)(47,"path",161)(48,"path",162)(49,"path",163)(50,"path",164)(51,"path",165)(52,"path",166)(53,"path",167)(54,"path",168)(55,"path",169)(56,"path",170)(57,"circle",171)(58,"circle",172),h.qZA(),h._UZ(59,"path",173),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Done!"),h.qZA()(),h.TgZ(63,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,j,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let Oe=(()=>{class Ue{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(h.Y36(E.v))},Ue.\u0275cmp=h.Xpm({type:Ue,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(ve,Qe){if(1&ve&&(h.YNc(0,Ee,1,0,"ng-container",0),h.YNc(1,Ve,32,5,"ng-template",null,1,h.W1O),h.YNc(3,Me,51,5,"ng-template",null,2,h.W1O),h.YNc(5,J,74,5,"ng-template",null,3,h.W1O),h.YNc(7,Ie,53,5,"ng-template",null,4,h.W1O),h.YNc(9,ut,66,5,"ng-template",null,5,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4),Xe=h.MAs(6),xt=h.MAs(8),Bt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Qe.stepNumber?_t:2===Qe.stepNumber?se:3===Qe.stepNumber?Xe:4===Qe.stepNumber?xt:Bt)}},directives:[D.tP,B.xw,B.yH,B.Wh,D.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:[Pe.l]}}),Ue})();function we(Ue,Tt){1&Ue&&h.GkF(0)}const ce=function(Ue,Tt){return{"small-svg":Ue,"large-svg":Tt}};function Te(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",7)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",8)(5,"g",9)(6,"g",10)(7,"g",11),h._UZ(8,"circle",12)(9,"path",13),h.qZA(),h.TgZ(10,"g",14),h._UZ(11,"ellipse",15)(12,"ellipse",16)(13,"rect",17)(14,"rect",18)(15,"rect",19)(16,"rect",20)(17,"rect",21)(18,"rect",22)(19,"rect",23)(20,"rect",24)(21,"rect",25)(22,"rect",26)(23,"rect",27)(24,"rect",28)(25,"rect",29),h.qZA()()()()(),h.kcU(),h.TgZ(26,"div",30)(27,"mat-card-title"),h._uU(28,"Loop In explained."),h.qZA()(),h.TgZ(29,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function xe(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",33)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",8)(10,"g",38)(11,"g",39)(12,"g",40),h._UZ(13,"rect",41)(14,"rect",42)(15,"rect",43)(16,"circle",44)(17,"rect",45)(18,"rect",46)(19,"circle",47)(20,"rect",48)(21,"rect",49)(22,"rect",50)(23,"rect",51)(24,"rect",52)(25,"circle",53)(26,"circle",54)(27,"circle",55),h.qZA(),h.TgZ(28,"g",56)(29,"g",57)(30,"g",58),h._UZ(31,"path",59)(32,"rect",60)(33,"polygon",61),h.TgZ(34,"g",62),h._UZ(35,"path",63),h.qZA(),h._UZ(36,"rect",64)(37,"rect",65)(38,"rect",66)(39,"rect",67)(40,"rect",68)(41,"rect",69)(42,"rect",70)(43,"path",71)(44,"path",72),h.qZA(),h.TgZ(45,"g",73),h._UZ(46,"path",74)(47,"path",75)(48,"path",76)(49,"path",77)(50,"path",78)(51,"path",79)(52,"path",80)(53,"path",81)(54,"path",82)(55,"path",83)(56,"path",84)(57,"circle",85)(58,"circle",86),h.qZA(),h._UZ(59,"path",87),h.qZA()()()()()(),h.kcU(),h.TgZ(60,"div",30)(61,"mat-card-title"),h._uU(62,"Step 1: Deciding to Loop In"),h.qZA()(),h.TgZ(63,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function W(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",88)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",89),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",91)(11,"g",92)(12,"g",93)(13,"g",94),h._UZ(14,"circle",95)(15,"path",96),h.TgZ(16,"g",97),h._UZ(17,"polygon",98)(18,"polygon",99)(19,"path",100),h.qZA(),h.TgZ(20,"g",101),h._UZ(21,"polygon",102)(22,"path",103)(23,"rect",104)(24,"path",105)(25,"rect",106)(26,"rect",107)(27,"rect",108)(28,"rect",109)(29,"circle",110)(30,"path",111),h.TgZ(31,"g",112)(32,"g",113),h._UZ(33,"g",114),h.qZA(),h._UZ(34,"g",115),h.qZA()()(),h.TgZ(35,"g",116)(36,"g",40),h._UZ(37,"rect",117)(38,"rect",42)(39,"rect",43)(40,"circle",118)(41,"rect",45)(42,"rect",46)(43,"circle",119)(44,"rect",48)(45,"rect",49)(46,"rect",50)(47,"rect",51)(48,"rect",52)(49,"circle",120)(50,"circle",54)(51,"circle",55)(52,"circle",121),h.qZA(),h.TgZ(53,"g",56)(54,"g",57)(55,"g",58),h._UZ(56,"path",59)(57,"rect",60)(58,"polygon",61),h.TgZ(59,"g",122),h._UZ(60,"path",63),h.qZA(),h._UZ(61,"rect",123)(62,"rect",124)(63,"rect",125)(64,"rect",126)(65,"rect",127)(66,"rect",128)(67,"rect",129)(68,"path",130)(69,"path",72),h.qZA(),h.TgZ(70,"g",73),h._UZ(71,"path",131)(72,"path",132)(73,"path",133)(74,"path",134)(75,"path",135)(76,"path",136)(77,"path",80)(78,"path",81)(79,"path",137)(80,"path",83)(81,"path",138)(82,"circle",85)(83,"circle",86),h.qZA(),h._UZ(84,"path",139),h.qZA()()()(),h._UZ(85,"path",140)(86,"path",141),h.qZA()()()(),h.kcU(),h.TgZ(87,"div",30)(88,"mat-card-title"),h._uU(89,"Step 2: Send payment out"),h.qZA()(),h.TgZ(90,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function te(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",142)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"g",90)(5,"g",143)(6,"g",144)(7,"g")(8,"g",145)(9,"g",146),h._UZ(10,"circle",12)(11,"path",147),h.qZA(),h.TgZ(12,"g",14),h._UZ(13,"ellipse",148)(14,"ellipse",16)(15,"rect",17)(16,"rect",18)(17,"rect",19)(18,"rect",20)(19,"rect",21)(20,"rect",22)(21,"rect",23)(22,"rect",24)(23,"rect",25)(24,"rect",26)(25,"rect",27)(26,"rect",28)(27,"rect",29),h.qZA()(),h.TgZ(28,"g",149),h._UZ(29,"polygon",150)(30,"polygon",99)(31,"path",151),h.qZA(),h.TgZ(32,"g",152),h._UZ(33,"polygon",102)(34,"path",103)(35,"rect",104)(36,"path",105)(37,"rect",106)(38,"rect",107)(39,"rect",108)(40,"rect",109)(41,"circle",110)(42,"path",111),h.TgZ(43,"g",112)(44,"g",113),h._UZ(45,"g",114),h.qZA(),h._UZ(46,"g",115),h.qZA()()(),h._UZ(47,"path",153),h.qZA()()()(),h.kcU(),h.TgZ(48,"div",30)(49,"mat-card-title"),h._uU(50,"Step 3: Recieve Funds Off-chain"),h.qZA()(),h.TgZ(51,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}function Ce(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",6),h.NdJ("swipe",function(_t){return h.CHM(ve),h.oxw().onSwipe(_t)}),h.O4$(),h.TgZ(1,"svg",154)(2,"desc"),h._uU(3,"Created with Sketch."),h.qZA(),h.TgZ(4,"defs")(5,"linearGradient",34),h._UZ(6,"stop",35)(7,"stop",36)(8,"stop",37),h.qZA()(),h.TgZ(9,"g",90)(10,"g",155)(11,"g",156)(12,"g",157)(13,"g",158)(14,"g",40),h._UZ(15,"rect",159)(16,"rect",160)(17,"rect",161)(18,"circle",162)(19,"rect",163)(20,"rect",164)(21,"circle",165)(22,"rect",166)(23,"rect",167)(24,"rect",168)(25,"rect",169)(26,"circle",170)(27,"circle",171),h.qZA(),h.TgZ(28,"g",172),h._UZ(29,"path",173)(30,"rect",174)(31,"polygon",175)(32,"circle",176)(33,"path",177)(34,"rect",178)(35,"rect",179)(36,"rect",180)(37,"rect",181)(38,"rect",182)(39,"rect",183)(40,"rect",184)(41,"path",185)(42,"path",186),h.qZA(),h._UZ(43,"path",187),h.qZA()(),h._UZ(44,"circle",188),h.qZA()()()(),h.kcU(),h.TgZ(45,"div",30)(46,"mat-card-title"),h._uU(47,"Done!"),h.qZA()(),h.TgZ(48,"div",31)(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()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@sliderAnimation",ve.animationDirection),h.xp6(1),h.Q6J("ngClass",h.WLB(2,ce,ve.screenSize===ve.screenSizeEnum.XS,ve.screenSize!==ve.screenSizeEnum.XS))}}let fe=(()=>{class Ue{constructor(ve){this.commonService=ve,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new h.vpe,this.screenSize="",this.screenSizeEnum=d.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(ve){2===ve.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===ve.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(h.Y36(E.v))},Ue.\u0275cmp=h.Xpm({type:Ue,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(ve,Qe){if(1&ve&&(h.YNc(0,we,1,0,"ng-container",0),h.YNc(1,Te,32,5,"ng-template",null,1,h.W1O),h.YNc(3,xe,66,5,"ng-template",null,2,h.W1O),h.YNc(5,W,93,5,"ng-template",null,3,h.W1O),h.YNc(7,te,54,5,"ng-template",null,4,h.W1O),h.YNc(9,Ce,51,5,"ng-template",null,5,h.W1O)),2&ve){const _t=h.MAs(2),se=h.MAs(4),Xe=h.MAs(6),xt=h.MAs(8),Bt=h.MAs(10);h.Q6J("ngTemplateOutlet",1===Qe.stepNumber?_t:2===Qe.stepNumber?se:3===Qe.stepNumber?Xe:4===Qe.stepNumber?xt:Bt)}},directives:[D.tP,B.xw,B.yH,B.Wh,D.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:[Pe.l]}}),Ue})();const Q=["stepper"];function pt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"div",48)(1,"p",49)(2,"strong"),h._uU(3,"Channel Peer:\xa0"),h.qZA(),h._uU(4),h.ALo(5,"titlecase"),h.qZA(),h.TgZ(6,"p",50)(7,"strong"),h._uU(8,"Channel ID:\xa0"),h.qZA(),h._uU(9),h.qZA(),h._UZ(10,"p",50),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(4),h.Oqu(h.lcZ(5,2,ve.channel.remote_alias)),h.xp6(5),h.Oqu(ve.channel.chan_id)}}function tt(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(2);h.Oqu(ve.inputFormLabel)}}function Dt(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Amount is required."),h.qZA())}function di(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.hij("Amount must be greater than or equal to ",h.lcZ(2,1,ve.minQuote.amount),".")}}function Yt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1),h.ALo(2,"number"),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.hij("Amount must be less than or equal to ",h.lcZ(2,1,ve.maxQuote.amount),".")}}function Zt(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target is required."),h.qZA())}function ui(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Confirmation target must be a positive number."),h.qZA())}function Ot(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage is required."),h.qZA())}function Nt(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Percentage must be a positive number."),h.qZA())}function gt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-form-field",50),h._UZ(1,"input",51),h.YNc(2,Ot,2,0,"mat-error",25),h.YNc(3,Nt,2,0,"mat-error",25),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.required),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.routingFeePercent.errors?null:ve.inputFormGroup.controls.routingFeePercent.errors.min)}}function it(Ue,Tt){1&Ue&&(h.TgZ(0,"div",52)(1,"mat-slide-toggle",53),h._uU(2,"Fast"),h.qZA(),h.TgZ(3,"mat-icon",54),h._uU(4,"info_outline"),h.qZA()())}function bt(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(2);h.Oqu(ve.quoteFormLabel)}}function ti(Ue,Tt){1&Ue&&(h.TgZ(0,"p",55)(1,"mat-icon",56),h._uU(2,"close"),h.qZA(),h._uU(3,"Local balance amount is insufficient for swap."),h.qZA())}function Qt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",57),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onValidateAmount()}),h._uU(1,"Next"),h.qZA()}}function Re(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",58),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onLoop()}),h._uU(1),h.qZA()}if(2&Ue){const ve=h.oxw(2);h.xp6(1),h.hij("Initiate ",ve.loopDirectionCaption,"")}}function ke(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(3);h.Oqu(ve.addressFormLabel)}}function de(Ue,Tt){1&Ue&&(h.TgZ(0,"mat-error"),h._uU(1,"Address is required."),h.qZA())}function ye(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"mat-step",16)(1,"form",17),h.YNc(2,ke,1,1,"ng-template",18),h.TgZ(3,"div",59)(4,"mat-radio-group",60),h.NdJ("change",function(_t){return h.CHM(ve),h.oxw(2).onAddressTypeChange(_t)}),h.TgZ(5,"mat-radio-button",61),h._uU(6,"Node Local Address"),h.qZA(),h.TgZ(7,"mat-radio-button",62),h._uU(8,"External Address"),h.qZA()(),h.TgZ(9,"mat-form-field",63),h._UZ(10,"input",64),h.YNc(11,de,2,0,"mat-error",25),h.qZA()(),h.TgZ(12,"div",29)(13,"button",65),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onLoop()}),h._uU(14),h.qZA()()()()}if(2&Ue){const ve=h.oxw(2);h.Q6J("stepControl",ve.addressFormGroup)("editable",ve.flgEditable),h.xp6(1),h.Q6J("formGroup",ve.addressFormGroup),h.xp6(9),h.Q6J("required","external"===ve.addressFormGroup.controls.addressType.value),h.xp6(1),h.Q6J("ngIf",null==ve.addressFormGroup.controls.address.errors?null:ve.addressFormGroup.controls.address.errors.required),h.xp6(3),h.hij("Initiate ",ve.loopDirectionCaption,"")}}function ht(Ue,Tt){if(1&Ue&&h._uU(0),2&Ue){const ve=h.oxw(2);h.hij("",ve.loopDirectionCaption," Status")}}function mt(Ue,Tt){if(1&Ue&&(h.TgZ(0,"mat-icon",66),h._uU(1),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.Oqu(ve.loopStatus&&null!=ve.loopStatus&&ve.loopStatus.id_bytes?"check":"close")}}function Ft(Ue,Tt){1&Ue&&h._UZ(0,"div")}function nt(Ue,Tt){1&Ue&&h._UZ(0,"mat-progress-bar",67)}function He(Ue,Tt){if(1&Ue&&(h.TgZ(0,"h4",68),h._uU(1),h.qZA()),2&Ue){const ve=h.oxw(2);h.xp6(1),h.Oqu(ve.loopStatus&&ve.loopStatus.error?ve.loopDirectionCaption+" failed.":ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel?ve.loopDirectionCaption+" request placed successfully. You can check the status of the request on the 'Loop' menu.":ve.loopDirectionCaption+" request placed successfully.")}}function rt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",69),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).goToLoop()}),h._uU(1,"Check Status"),h.qZA()}}function et(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",70),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onRestart()}),h._uU(1,"Start Again"),h.qZA()}}function Ae(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),h._uU(5),h.qZA()(),h.TgZ(6,"div",8)(7,"button",9),h.NdJ("click",function(){return h.CHM(ve),h.oxw().showInfo()}),h._uU(8,"?"),h.qZA(),h.TgZ(9,"button",10),h.NdJ("click",function(){return h.CHM(ve),h.oxw().onClose()}),h._uU(10,"X"),h.qZA()()(),h.TgZ(11,"mat-card-content",11)(12,"div",12),h.YNc(13,pt,11,4,"div",13),h.TgZ(14,"mat-vertical-stepper",14,15),h.NdJ("selectionChange",function(_t){return h.CHM(ve),h.oxw().stepSelectionChanged(_t)}),h.TgZ(16,"mat-step",16)(17,"form",17),h.YNc(18,tt,1,1,"ng-template",18),h.TgZ(19,"div",19),h._UZ(20,"rtl-loop-quote",20)(21,"rtl-loop-quote",20),h.qZA(),h.TgZ(22,"div",21)(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,Dt,2,0,"mat-error",25),h.YNc(32,di,3,3,"mat-error",25),h.YNc(33,Yt,3,3,"mat-error",25),h.qZA(),h.TgZ(34,"mat-form-field",22),h._UZ(35,"input",26),h.YNc(36,Zt,2,0,"mat-error",25),h.YNc(37,ui,2,0,"mat-error",25),h.qZA(),h.YNc(38,gt,4,3,"mat-form-field",27),h.qZA(),h.YNc(39,it,5,0,"div",28),h.TgZ(40,"div",29)(41,"button",30),h.NdJ("click",function(){return h.CHM(ve),h.oxw().onEstimateQuote()}),h._uU(42,"Estimate Quote"),h.qZA()()()(),h.TgZ(43,"mat-step",16)(44,"form",17),h.YNc(45,bt,1,1,"ng-template",18),h._UZ(46,"rtl-loop-quote",31),h.YNc(47,ti,4,0,"p",32),h.TgZ(48,"div",29),h.YNc(49,Qt,2,0,"button",33),h.YNc(50,Re,2,1,"button",34),h.qZA()()(),h.YNc(51,ye,15,6,"mat-step",35),h.TgZ(52,"mat-step",36)(53,"form",17),h.YNc(54,ht,1,1,"ng-template",18),h.TgZ(55,"div",37)(56,"mat-expansion-panel",38)(57,"mat-expansion-panel-header")(58,"mat-panel-title")(59,"span",39),h._uU(60),h.YNc(61,mt,2,1,"mat-icon",40),h.qZA()()(),h.YNc(62,Ft,1,0,"div",41),h.qZA(),h.YNc(63,nt,1,0,"mat-progress-bar",42),h.qZA(),h.YNc(64,He,2,1,"h4",43),h.TgZ(65,"div",29),h.YNc(66,rt,2,0,"button",44),h.YNc(67,et,2,0,"button",45),h.qZA()()()(),h.TgZ(68,"div",46)(69,"button",47),h._uU(70,"Close"),h.qZA()()()()()()}if(2&Ue){const ve=h.oxw(),Qe=h.MAs(2);h.Q6J("@opacityAnimation",void 0),h.xp6(3),h.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"83":"91"),h.xp6(2),h.Oqu(ve.channel?"Channel "+ve.loopDirectionCaption:ve.loopDirectionCaption),h.xp6(1),h.Q6J("fxFlex",ve.screenSize===ve.screenSizeEnum.XS||ve.screenSize===ve.screenSizeEnum.SM?"17":"9"),h.xp6(7),h.Q6J("ngIf",ve.channel),h.xp6(1),h.Q6J("linear",!0),h.xp6(2),h.Q6J("stepControl",ve.inputFormGroup)("editable",ve.flgEditable),h.xp6(1),h.Q6J("formGroup",ve.inputFormGroup),h.xp6(3),h.Q6J("quote",ve.minQuote)("termCaption","min")("panelExpanded",!1)("showPanel",!0),h.xp6(1),h.Q6J("quote",ve.maxQuote)("termCaption","max")("panelExpanded",!1)("showPanel",!0),h.xp6(2),h.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"35":"48"),h.xp6(1),h.Q6J("step",1e3),h.xp6(2),h.AsE("Range: ",h.lcZ(27,51,ve.minQuote.amount),"-",h.lcZ(28,53,ve.maxQuote.amount),""),h.xp6(5),h.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.required),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.min),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.amount.errors?null:ve.inputFormGroup.controls.amount.errors.max),h.xp6(1),h.Q6J("fxFlex",ve.direction===ve.LoopTypeEnum.LOOP_OUT?"30":"48"),h.xp6(1),h.Q6J("step",1),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.required),h.xp6(1),h.Q6J("ngIf",null==ve.inputFormGroup.controls.sweepConfTarget.errors?null:ve.inputFormGroup.controls.sweepConfTarget.errors.min),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(4),h.Q6J("stepControl",ve.quoteFormGroup)("editable",ve.flgEditable),h.xp6(1),h.Q6J("formGroup",ve.quoteFormGroup),h.xp6(2),h.Q6J("quote",ve.quote)("showPanel",!1),h.xp6(1),h.Q6J("ngIf",ve.inputFormGroup.controls.amount.value>ve.localBalanceToCompare),h.xp6(2),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("stepControl",ve.statusFormGroup),h.xp6(1),h.Q6J("formGroup",ve.statusFormGroup),h.xp6(3),h.Q6J("expanded",!!ve.loopStatus),h.xp6(4),h.Oqu(ve.loopStatus?ve.loopStatus.id_bytes?ve.loopDirectionCaption+" request details":ve.loopDirectionCaption+" error details":"Waiting for "+ve.loopDirectionCaption+" request..."),h.xp6(1),h.Q6J("ngIf",ve.loopStatus),h.xp6(1),h.Q6J("ngIf",!ve.loopStatus)("ngIfElse",Qe),h.xp6(1),h.Q6J("ngIf",!ve.loopStatus),h.xp6(1),h.Q6J("ngIf",ve.loopStatus),h.xp6(2),h.Q6J("ngIf",ve.loopStatus&&ve.loopStatus.id_bytes&&ve.channel),h.xp6(1),h.Q6J("ngIf",ve.loopStatus&&(ve.loopStatus.error||!ve.loopStatus.id_bytes)),h.xp6(2),h.Q6J("mat-dialog-close",!1)}}function Ge(Ue,Tt){if(1&Ue&&h._UZ(0,"rtl-loop-status",71),2&Ue){const ve=h.oxw();h.Q6J("loopStatus",ve.loopStatus)}}function ot(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"rtl-loop-out-info-graphics",88),h.NdJ("stepNumberChange",function(_t){return h.CHM(ve),h.oxw(2).stepNumber=_t}),h.qZA()}if(2&Ue){const ve=h.oxw(2);h.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}function lt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"rtl-loop-in-info-graphics",88),h.NdJ("stepNumberChange",function(_t){return h.CHM(ve),h.oxw(2).stepNumber=_t}),h.qZA()}if(2&Ue){const ve=h.oxw(2);h.Q6J("stepNumber",ve.stepNumber)("animationDirection",ve.animationDirection)}}const Ct=function(Ue,Tt){return{"dot-primary":Ue,"dot-primary-lighter":Tt}};function mi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"span",89),h.NdJ("click",function(){const se=h.CHM(ve).$implicit;return h.oxw(2).onStepChanged(se)}),h._UZ(1,"p",90),h.qZA()}if(2&Ue){const ve=Tt.$implicit,Qe=h.oxw(2);h.xp6(1),h.Q6J("ngClass",h.WLB(1,Ct,Qe.stepNumber===ve,Qe.stepNumber!==ve))}}function Jt(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",91),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onReadMore()}),h._uU(1,"Read More"),h.qZA()}}function ei(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",92),h.NdJ("click",function(){return h.CHM(ve),h.oxw(2).onStepChanged(4)}),h._uU(1,"Back"),h.qZA()}}function Qi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",93),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function hi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",94),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.flgShowInfo=!1,_t.stepNumber=1}),h._uU(1,"Close"),h.qZA()}}function si(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",95),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.onStepChanged(_t.stepNumber-1)}),h._uU(1,"Back"),h.qZA()}}function Ji(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"button",96),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw(2);return _t.onStepChanged(_t.stepNumber+1)}),h._uU(1,"Next"),h.qZA()}}const Zi=function(){return[1,2,3,4,5]};function Vi(Ue,Tt){if(1&Ue){const ve=h.EpF();h.TgZ(0,"div",72)(1,"div",19)(2,"mat-card-header",73)(3,"div",74),h._UZ(4,"span",7),h.qZA(),h.TgZ(5,"div",75)(6,"button",76),h.NdJ("click",function(){h.CHM(ve);const _t=h.oxw();return _t.flgShowInfo=!1,_t.stepNumber=1}),h._uU(7,"X"),h.qZA()()(),h.TgZ(8,"mat-card-content",77),h.YNc(9,ot,1,2,"rtl-loop-out-info-graphics",78),h.YNc(10,lt,1,2,"rtl-loop-in-info-graphics",78),h.qZA(),h.TgZ(11,"div",79),h.YNc(12,mi,2,4,"span",80),h.qZA(),h.TgZ(13,"div",81),h.YNc(14,Jt,2,0,"button",82),h.YNc(15,ei,2,0,"button",83),h.YNc(16,Qi,2,0,"button",84),h.YNc(17,hi,2,0,"button",85),h.YNc(18,si,2,0,"button",86),h.YNc(19,Ji,2,0,"button",87),h.qZA()()()}if(2&Ue){const ve=h.oxw();h.Q6J("@opacityAnimation",void 0),h.xp6(9),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_OUT),h.xp6(1),h.Q6J("ngIf",ve.direction===ve.LoopTypeEnum.LOOP_IN),h.xp6(2),h.Q6J("ngForOf",h.DdM(10,Zi)),h.xp6(2),h.Q6J("ngIf",5===ve.stepNumber),h.xp6(1),h.Q6J("ngIf",5===ve.stepNumber),h.xp6(1),h.Q6J("ngIf",5===ve.stepNumber),h.xp6(1),h.Q6J("ngIf",ve.stepNumber<5),h.xp6(1),h.Q6J("ngIf",ve.stepNumber>1&&ve.stepNumber<5),h.xp6(1),h.Q6J("ngIf",ve.stepNumber<5)}}let Ui=(()=>{class Ue{constructor(ve,Qe,_t,se,Xe,xt,Bt,bi,Si){this.dialogRef=ve,this.data=Qe,this.store=_t,this.loopService=se,this.formBuilder=Xe,this.decimalPipe=xt,this.logger=Bt,this.router=bi,this.commonService=Si,this.faInfoCircle=a.sqG,this.LoopTypeEnum=d.$I,this.direction=d.$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=d.cu,this.animationDirection="forward",this.flgEditable=!0,this.localBalanceToCompare=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.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||d.$I.LOOP_OUT,this.loopDirectionCaption=this.direction===d.$I.LOOP_IN?"Loop in":"Loop out",this.inputFormLabel="Amount to "+this.loopDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[this.minQuote.amount,[t.kI.required,t.kI.min(this.minQuote.amount||0),t.kI.max(this.maxQuote.amount||0)]],sweepConfTarget:[6,[t.kI.required,t.kI.min(1)]],routingFeePercent:[2,[t.kI.required,t.kI.min(0)]],fast:[!1,[t.kI.required]]}),this.quoteFormGroup=this.formBuilder.group({}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[t.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges(),this.store.select(R.ZW).pipe((0,f.R)(this.unSubs[6])).subscribe(ve=>{this.localBalanceToCompare=this.channel&&this.channel.local_balance?+this.channel.local_balance:ve.lightningBalance&&ve.lightningBalance.local?+ve.lightningBalance.local:null})}ngAfterViewInit(){this.inputFormGroup.setErrors({Invalid:!0}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.inputFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[4])).subscribe(ve=>{this.inputFormGroup.setErrors({Invalid:!0})}),this.direction===d.$I.LOOP_OUT&&this.addressFormGroup.valueChanges.pipe((0,f.R)(this.unSubs[5])).subscribe(ve=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(ve){"external"===ve.value?(this.addressFormGroup.controls.address.setValidators([t.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.localBalanceToCompare&&this.inputFormGroup.controls.amount.value<=this.localBalanceToCompare&&this.stepper.next()}onLoop(){var ve;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2||this.direction===d.$I.LOOP_OUT&&(!this.inputFormGroup.controls.routingFeePercent.value||this.inputFormGroup.controls.routingFeePercent.value<0)||this.direction===d.$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,null===(ve=this.stepper.selected)||void 0===ve||ve.stepControl.setErrors(null),this.stepper.next(),this.direction===d.$I.LOOP_IN)this.loopService.loopIn(this.inputFormGroup.controls.amount.value,+(this.quote.swap_fee_sat||0),+(this.quote.htlc_publish_fee_sat||0),"",!0).pipe((0,f.R)(this.unSubs[0])).subscribe({next:Qe=>{this.loopStatus=Qe,this.loopService.listSwaps(),this.flgEditable=!0},error:Qe=>{this.loopStatus={error:Qe},this.flgEditable=!0,this.logger.error(Qe)}});else{const Qe=Math.ceil(this.inputFormGroup.controls.amount.value*(this.inputFormGroup.controls.routingFeePercent.value/100)),_t="external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"",se=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,Qe,+(this.quote.htlc_sweep_fee_sat||0),this.prepayRoutingFee,+(this.quote.prepay_amt_sat||0),+(this.quote.swap_fee_sat||0),se,_t).pipe((0,f.R)(this.unSubs[1])).subscribe({next:Xe=>{this.loopStatus=Xe,this.loopService.listSwaps(),this.flgEditable=!0},error:Xe=>{this.loopStatus={error:Xe},this.flgEditable=!0,this.logger.error(Xe)}})}}onEstimateQuote(){var ve;if(!this.inputFormGroup.controls.amount.value||this.minQuote.amount&&this.inputFormGroup.controls.amount.valuethis.maxQuote.amount||!this.inputFormGroup.controls.sweepConfTarget.value||this.inputFormGroup.controls.sweepConfTarget.value<2)return!0;const Qe=this.inputFormGroup.controls.fast.value?0:(new Date).getTime()+18e5;this.direction===d.$I.LOOP_IN?this.loopService.getLoopInQuote(this.inputFormGroup.controls.amount.value,this.inputFormGroup.controls.sweepConfTarget.value,Qe).pipe((0,f.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,Qe).pipe((0,f.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}),null===(ve=this.stepper.selected)||void 0===ve||ve.stepControl.setErrors(null),this.stepper.next()}stepSelectionChanged(ve){switch(ve.selectedIndex){case 0:default: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===d.$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===d.$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"}(this.direction===d.$I.LOOP_OUT&&1!==ve.selectedIndex&&ve.selectedIndex{ve.next(null),ve.complete()})}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(h.Y36(M.so),h.Y36(M.WI),h.Y36(L.yh),h.Y36(w.W),h.Y36(t.qu),h.Y36(D.JJ),h.Y36(S.mQ),h.Y36(k.F0),h.Y36(E.v))},Ue.\u0275cmp=h.Xpm({type:Ue,selectors:[["rtl-loop-modal"]],viewQuery:function(ve,Qe){if(1&ve&&h.Gf(Q,5),2&ve){let _t;h.iGM(_t=h.CRH())&&(Qe.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"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center","class","mt-1",4,"ngIf"],["fxLayout","row","fxLayoutAlign","start center","fxFlex","100",1,"mt-2"],["mat-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-button","","color","primary","tabindex","6","type","button",3,"click",4,"ngIf"],["mat-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-button","","color","primary","tabindex","12","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-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"],["fxLayout","row wrap","fxFlex","100","fxLayoutAlign","start center",1,"mt-1"],["tabindex","4","color","primary","formControlName","fast","fxFlex","none"],["matTooltip","Swap immediately (Might end up paying a higher on-chain fee)","matTooltipPosition","above","fxFlex","none",1,"info-icon"],["fxFlex","100","fxLayoutAlign","start center",1,"color-warn","mt-2"],[1,"mr-1","icon-small"],["mat-button","","color","primary","tabindex","6","type","button",3,"click"],["mat-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-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-button","","color","primary","tabindex","12","type","button",3,"click"],["mat-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-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-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-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(ve,Qe){1&ve&&(h.YNc(0,Ae,71,55,"div",0),h.YNc(1,Ge,1,1,"ng-template",null,1,h.W1O),h.YNc(3,Vi,20,11,"div",2)),2&ve&&(h.Q6J("ngIf",!Qe.flgShowInfo),h.xp6(3),h.Q6J("ngIf",Qe.flgShowInfo))},directives:[D.O5,B.xw,B.yH,B.Wh,Z.dk,Y.lW,Z.dn,ae.Vq,ae.C0,t._Y,t.JL,t.sg,ae.VY,T,I.KE,y.Nt,t.wV,t.Fj,n.h,t.JJ,t.u,t.Q7,I.bx,I.R9,I.TO,_.Rr,ne.Hw,re.gM,V.VQ,V.U0,ee.ib,ee.yz,ee.yK,N.pW,M.ZT,be,Oe,fe,D.sg,D.mk,ue.oO],pipes:[D.rS,D.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[C._]}}),Ue})()},9442:(Be,K,p)=>{"use strict";p.d(K,{w:()=>R});var t=p(2687),e=p(5e3),f=p(1402),M=p(7093),a=p(9546),C=p(9224),d=p(7423);let R=(()=>{class h{constructor(w){this.router=w,this.faTimes=t.NBC}goToHelp(){this.router.navigate(["/help"])}}return h.\u0275fac=function(w){return new(w||h)(e.Y36(f.F0))},h.\u0275cmp=e.Xpm({type:h,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(w,D){1&w&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Page Not Found"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"div",5)(8,"div",6),e._uU(9,"This page does not exist!"),e.qZA(),e.TgZ(10,"span",7)(11,"button",8),e.NdJ("click",function(){return D.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()()),2&w&&(e.xp6(1),e.Q6J("icon",D.faTimes))},directives:[M.xw,M.Wh,a.BN,C.a8,C.dn,M.yH,d.lW],encapsulation:2}),h})()},3390:(Be,K,p)=>{"use strict";p.d(K,{h:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(a){this.el=a}ngAfterContentInit(){setTimeout(()=>{this.el.nativeElement.focus()},500)}}return f.\u0275fac=function(a){return new(a||f)(t.Y36(t.SBq))},f.\u0275dir=t.lG2({type:f,selectors:[["","autoFocus",""]],inputs:{appAutoFocus:"appAutoFocus"}}),f})()},6895:(Be,K,p)=>{"use strict";p.d(K,{y:()=>e});var t=p(5e3);let e=(()=>{class f{constructor(){this.copied=new t.vpe}onClick(a){a.preventDefault(),this.payload&&navigator.clipboard&&navigator.clipboard.writeText(this.payload.toString()).then(()=>{this.copied.emit(this.payload.toString())},C=>{this.copied.emit("Error could not copy text: "+JSON.stringify(C))})}}return f.\u0275fac=function(a){return new(a||f)},f.\u0275dir=t.lG2({type:f,selectors:[["","rtlClipboard",""]],hostBindings:function(a,C){1&a&&t.NdJ("click",function(R){return C.onClick(R)})},inputs:{payload:"payload"},outputs:{copied:"copied"}}),f})()},9843:(Be,K,p)=>{"use strict";p.d(K,{F:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(C){return this.max?t.kI.max(+this.max)(C):null}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","max",""]],inputs:{max:"max"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},6534:(Be,K,p)=>{"use strict";p.d(K,{q:()=>f});var t=p(3075),e=p(5e3);let f=(()=>{class M{validate(C){return this.min?t.kI.min(+this.min)(C):null}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275dir=e.lG2({type:M,selectors:[["input","min",""]],inputs:{min:"min"},features:[e._Bn([{provide:t.Cf,useExisting:M,multi:!0}])]}),M})()},9445:(Be,K,p)=>{"use strict";p.d(K,{D3:()=>a,al:()=>e,h9:()=>f,i1:()=>M});var t=p(5e3);let e=(()=>{class C{transform(R,h){return null==R?void 0:R.replace(/^[0]+/g,"")}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"removeleadingzeros",type:C,pure:!0}),C})(),f=(()=>{class C{transform(R,h){var L,w;return null===(w=null===(L=null==R?void 0:R.replace(/(?:^\w|[A-Z]|\b\w)/g,(D,S)=>D.toUpperCase()))||void 0===L?void 0:L.replace(/\s+/g,""))||void 0===w?void 0:w.replace(/-/g," ")}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"camelcase",type:C,pure:!0}),C})(),M=(()=>{class C{transform(R,h,L){return R.replace(/(?:^\w|[A-Z]|\b\w)/g,(w,D)=>" "+w.toUpperCase())}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"camelCaseWithSpaces",type:C,pure:!0}),C})(),a=(()=>{class C{transform(R,h,L){var w;return R=null===(w=null==R?void 0:R.toLowerCase().replace(/\s+/g,""))||void 0===w?void 0:w.replace(/-/g," "),h&&(R=R.replace(new RegExp(h,"g")," ")),L&&(R=R.replace(new RegExp(L,"g")," ")),R.replace(/(?:^\w|[A-Z]|\b\w)/g,(D,S)=>D.toUpperCase())}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275pipe=t.Yjl({name:"camelcaseWithReplace",type:C,pure:!0}),C})()},1643:(Be,K,p)=>{"use strict";p.d(K,{QM:()=>C,a1:()=>a,eQ:()=>d,fY:()=>R});var t=p(4004),e=p(5e3),f=p(1402),M=p(5986);let a=(()=>{class h{constructor(w,D){this.router=w,this.sessionService=D}canActivate(w){return!(!this.sessionService.getItem("token")||"settings"!==w.url[0].path&&"auth"!==w.url[0].path&&"true"===this.sessionService.getItem("defaultPassword")&&(this.router.navigate(["/settings/auth"]),1))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(f.F0),e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),C=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.lndUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),d=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.clUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})(),R=(()=>{class h{constructor(w){this.sessionService=w}canActivate(){return!!this.sessionService.watchSession().pipe((0,t.U)(w=>w.eclUnlocked))}}return h.\u0275fac=function(w){return new(w||h)(e.LFG(M.m))},h.\u0275prov=e.Yz7({token:h,factory:h.\u0275fac}),h})()},62:(Be,K,p)=>{"use strict";p.d(K,{v:()=>w});var t=p(1135),e=p(9646),f=p(2843),M=p(5698),a=p(4004),C=p(262),d=p(7731),R=p(5e3),h=p(8104),L=p(5043);let w=(()=>{class D{constructor(k,E){this.dataService=k,this.logger=E,this.currencyUnits=[],this.CurrencyUnitEnum=d.NT,this.conversionData={data:null,last_fetched:null},this.ratesAPIStatus=d.Bn.UN_INITIATED,this.screenSize=d.cu.MD,this.containerSize={width:0,height:0},this.containerSizeUpdated=new t.X(this.containerSize)}getScreenSize(){return this.screenSize}setScreenSize(k){this.screenSize=k}getContainerSize(){return this.containerSize}setContainerSize(k,E){this.containerSize={width:k,height:E},this.logger.info("Container Size: "+JSON.stringify(this.containerSize)),this.containerSizeUpdated.next(this.containerSize)}sortByKey(k,E,B,Z="asc"){return k.sort("number"===B?"desc"===Z?(Y,ae)=>+Y[E]>+ae[E]?-1:1:(Y,ae)=>+Y[E]>+ae[E]?1:-1:"desc"===Z?(Y,ae)=>Y[E]>ae[E]?-1:1:(Y,ae)=>Y[E]>ae[E]?1:-1)}sortDescByKey(k,E){return k.sort((B,Z)=>{const Y=+B[E],ae=+Z[E];return Y>ae?-1:Y{const Y=+B[E],ae=+Z[E];return Yae?1:0})}camelCase(k){var E,B;return null===(B=null===(E=null==k?void 0:k.replace(/(?:^\w|[A-Z]|\b\w)/g,(Z,Y)=>Z.toUpperCase()))||void 0===E?void 0:E.replace(/\s+/g,""))||void 0===B?void 0:B.replace(/-/g," ")}titleCase(k,E,B){var Z,Y;return E&&B&&""!==E&&""!==B&&(k=null==k?void 0:k.replace(new RegExp(E,"g"),B)),k.indexOf("!\n")>0||k.indexOf(".\n")>0?null===(Z=k.split("\n"))||void 0===Z?void 0:Z.reduce((ae,ee)=>ae+ee.charAt(0).toUpperCase()+ee.substring(1).toLowerCase()+"\n",""):k.indexOf(" ")>0?null===(Y=k.split(" "))||void 0===Y?void 0:Y.reduce((ae,ee)=>ae+ee.charAt(0).toUpperCase()+ee.substring(1).toLowerCase()+" ",""):k.charAt(0).toUpperCase()+k.substring(1).toLowerCase()}convertCurrency(k,E,B,Z,Y){const ae=(new Date).valueOf();return Y&&Z&&this.ratesAPIStatus!==d.Bn.INITIATED&&(E===d.NT.OTHER||B===d.NT.OTHER)?this.conversionData.data&&this.conversionData.last_fetched&&ae(this.ratesAPIStatus=d.Bn.COMPLETED,this.conversionData.data=ee&&"object"==typeof ee?ee:ee&&"string"==typeof ee?JSON.parse(ee):{},this.conversionData.last_fetched=ae,this.convertWithFiat(k,E,Z))),(0,C.K)(ee=>(this.ratesAPIStatus=d.Bn.ERROR,(0,f._)(()=>this.extractErrorMessage(ee,"Currency Conversion Error.")))))):(0,e.of)(this.convertWithoutFiat(k,E))}convertWithoutFiat(k,E){const B={};switch(B[d.NT.SATS]=0,B[d.NT.BTC]=0,E){case d.NT.SATS:B[d.NT.SATS]=k,B[d.NT.BTC]=1e-8*k;break;case d.NT.BTC:B[d.NT.SATS]=1e8*k,B[d.NT.BTC]=k}return B}convertWithFiat(k,E,B){const Z={unit:B,symbol:this.conversionData.data[B].symbol};switch(Z[d.NT.SATS]=0,Z[d.NT.BTC]=0,Z[d.NT.OTHER]=0,E){case d.NT.SATS:Z[d.NT.SATS]=k,Z[d.NT.BTC]=1e-8*k,Z[d.NT.OTHER]=1e-8*k*this.conversionData.data[B].last;break;case d.NT.BTC:Z[d.NT.SATS]=1e8*k,Z[d.NT.BTC]=k,Z[d.NT.OTHER]=k*this.conversionData.data[B].last;break;case d.NT.OTHER:Z[d.NT.SATS]=k/this.conversionData.data[B].last*1e8,Z[d.NT.BTC]=k/this.conversionData.data[B].last,Z[d.NT.OTHER]=k}return Z}convertTime(k,E,B){switch(E){case d.Qk.SECS:switch(B){case d.Qk.MINS:k/=60;break;case d.Qk.HOURS:k/=3600;break;case d.Qk.DAYS:k/=86400}break;case d.Qk.MINS:switch(B){case d.Qk.SECS:k*=60;break;case d.Qk.HOURS:k/=60;break;case d.Qk.DAYS:k/=1440}break;case d.Qk.HOURS:switch(B){case d.Qk.SECS:k*=3600;break;case d.Qk.MINS:k*=60;break;case d.Qk.DAYS:k/=24}break;case d.Qk.DAYS:switch(B){case d.Qk.SECS:k=3600*k*24;break;case d.Qk.MINS:k=60*k*24;break;case d.Qk.HOURS:k*=24}}return k}downloadFile(k,E,B=".json",Z=".csv"){let Y=new Blob;Y=".json"===B?new Blob(["\ufeff"+this.convertToCSV(k)],{type:"text/csv;charset=utf-8;"}):new Blob([k.toString()],{type:"text/plain;charset=utf-8"});const ae=document.createElement("a"),ee=URL.createObjectURL(Y);-1!==navigator.userAgent.indexOf("Safari")&&-1===navigator.userAgent.indexOf("Chrome")&&ae.setAttribute("target","_blank"),ae.setAttribute("href",ee),ae.setAttribute("download",E+Z),ae.style.visibility="hidden",document.body.appendChild(ae),ae.click(),document.body.removeChild(ae)}convertToCSV(k){const E=[];let B="",Z="",Y="";return"object"!=typeof k&&(k=JSON.parse(k)),k.forEach((ee,ue)=>{for(const ne in ee)E.findIndex(re=>re===ne)<0&&E.push(ne)}),Y=E.join(",")+"\r\n",k.forEach(ee=>{B="",E.forEach(ue=>{var ne;ee.hasOwnProperty(ue)?Array.isArray(ee[ue])?(Z="",ee[ue].forEach((re,ge)=>{var q;Z+="object"==typeof re?"("+(null===(q=JSON.stringify(re))||void 0===q?void 0:q.replace(/\,/g,";"))+")":"("+re+")"}),B+=Z+","):B+="object"==typeof ee[ue]?(null===(ne=JSON.stringify(ee[ue]))||void 0===ne?void 0:ne.replace(/\,/g,";"))+",":ee[ue]+",":B+=","}),Y+=B.slice(0,-1)+"\r\n"}),Y}isVersionCompatible(k,E){var B;if(k){const Z=(null===(B=k.trim())||void 0===B?void 0:B.replace("v","").split("-")[0].split("."))||[],Y=E.split(".");return+Z[0]>+Y[0]||+Z[0]==+Y[0]&&+Z[1]>+Y[1]||+Z[0]==+Y[0]&&+Z[1]==+Y[1]&&+Z[2]>=+Y[2]}return!1}extractErrorMessage(k,E="Unknown Error."){const B=this.titleCase(k.error&&k.error.text&&"string"==typeof k.error.text&&k.error.text.includes('')?"API Route Does Not Exist.":k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.error&&"string"==typeof k.error.error.error.error.error?k.error.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&"string"==typeof k.error.error.error.error?k.error.error.error.error:k.error&&k.error.error&&k.error.error.error&&"string"==typeof k.error.error.error?k.error.error.error:k.error&&k.error.error&&"string"==typeof k.error.error?k.error.error:k.error&&"string"==typeof k.error?k.error:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.error&&k.error.error.error.error.message&&"string"==typeof k.error.error.error.error.message?k.error.error.error.error.message:k.error&&k.error.error&&k.error.error.error&&k.error.error.error.message&&"string"==typeof k.error.error.error.message?k.error.error.error.message:k.error&&k.error.error&&k.error.error.message&&"string"==typeof k.error.error.message?k.error.error.message:k.error&&k.error.message&&"string"==typeof k.error.message?k.error.message:k.message&&"string"==typeof k.message?k.message:E);return this.logger.info("Error Message: "+B),B}extractErrorCode(k,E=500){const B=k.error&&k.error.error&&k.error.error.message&&k.error.error.message.code?k.error.error.message.code:k.error&&k.error.error&&k.error.error.code?k.error.error.code:k.error&&k.error.code?k.error.code:k.code?k.code:k.status?k.status:E;return this.logger.info("Error Code: "+B),B}extractErrorNumber(k,E=500){const B=k.error&&k.error.error&&k.error.error.errno?k.error.error.errno:k.error&&k.error.errno?k.error.errno:k.errno?k.errno:k.status?k.status:E;return this.logger.info("Error Number: "+B),B}ngOnDestroy(){this.containerSizeUpdated.next(null),this.containerSizeUpdated.complete()}}return D.\u0275fac=function(k){return new(k||D)(R.LFG(h.D),R.LFG(L.mQ))},D.\u0275prov=R.Yz7({token:D,factory:D.\u0275fac}),D})()},7731:(Be,K,p)=>{"use strict";p.d(K,{$I:()=>r,$v:()=>k,AB:()=>he,At:()=>xe,Bn:()=>n,Df:()=>Pe,Dr:()=>L,Er:()=>a,Fq:()=>i,Gi:()=>ne,HW:()=>ge,H_:()=>Ee,IV:()=>d,IX:()=>V,JX:()=>I,LO:()=>C,NT:()=>ue,OJ:()=>ae,OO:()=>Me,Pi:()=>we,Qk:()=>ee,Qw:()=>c,TJ:()=>R,Vc:()=>w,Xk:()=>fe,Xr:()=>N,Xz:()=>M,Zs:()=>x,_t:()=>h,c3:()=>Ce,cu:()=>re,g8:()=>B,gB:()=>Ve,gG:()=>Te,gK:()=>W,gg:()=>v,hG:()=>te,hZ:()=>j,hc:()=>u,kO:()=>y,lr:()=>be,m6:()=>_,nM:()=>E,n_:()=>Y,ol:()=>Z,op:()=>T,p7:()=>_e,pg:()=>H,pt:()=>e,uA:()=>f,uR:()=>X,vn:()=>D,wZ:()=>S,x$:()=>q,zZ:()=>ce});var t=p(6087);function e(Q){const pt=new t.ye;return pt.itemsPerPageLabel=Q+" per page:",pt}const f=["Sats","BTC"],M={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"}],C=["SECS","MINS","HOURS","DAYS"],d=10,R=[5,10,25,100],h=[{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)"},{addressId:"4",addressCode:"p2tr",addressTp:"Taproot (P2TR)",addressDetails:"Pay to taproot pubkey"}],L=[{id:"0",name:"Priority (Default)"},{id:"1",name:"Target Confirmation Blocks"},{id:"2",name:"Fee"}],w=[{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"}],D=[{feeRateId:"urgent",feeRateType:"Urgent"},{feeRateId:"normal",feeRateType:"Normal"},{feeRateId:"slow",feeRateType:"Slow"},{feeRateId:"customperkb",feeRateType:"Custom (Sats/vByte)"}],S={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 k=(()=>{return(Q=k||(k={})).PAYMENT_RECEIVED="payment-received",Q.PAYMENT_RELAYED="payment-relayed",Q.PAYMENT_SENT="payment-sent",Q.PAYMENT_SETTLING_ONCHAIN="payment-settling-onchain",Q.PAYMENT_FAILED="payment-failed",Q.CHANNEL_OPENED="channel-opened",Q.CHANNEL_STATE_CHANGED="channel-state-changed",Q.CHANNEL_CLOSED="channel-closed",k;var Q})(),E=(()=>{return(Q=E||(E={})).INVOICE="invoice",Q.BLOCK_HEIGHT="block-height",Q.SEND_PAYMENT="send-payment",E;var Q})(),B=(()=>((B||(B={})).INVOICE="invoice",B))(),Z=(()=>{return(Q=Z||(Z={})).OPERATOR="OPERATOR",Q.MERCHANT="MERCHANT",Q.ALL="ALL",Z;var Q})(),Y=(()=>{return(Q=Y||(Y={})).INFORMATION="Information",Q.WARNING="Warning",Q.ERROR="Error",Q.SUCCESS="Success",Q.CONFIRM="Confirm",Y;var Q})(),ae=(()=>{return(Q=ae||(ae={})).JWT="JWT",Q.PASSWORD="PASSWORD",ae;var Q})(),ee=(()=>{return(Q=ee||(ee={})).SECS="SECS",Q.MINS="MINS",Q.HOURS="HOURS",Q.DAYS="DAYS",ee;var Q})(),ue=(()=>{return(Q=ue||(ue={})).SATS="Sats",Q.BTC="BTC",Q.OTHER="OTHER",ue;var Q})(),ne=(()=>{return(Q=ne||(ne={})).ARRAY="ARRAY",Q.NUMBER="NUMBER",Q.STRING="STRING",Q.BOOLEAN="BOOLEAN",Q.PASSWORD="PASSWORD",Q.DATE="DATE",Q.DATE_TIME="DATE_TIME",ne;var Q})(),re=(()=>{return(Q=re||(re={})).XS="XS",Q.SM="SM",Q.MD="MD",Q.LG="LG",Q.XL="XL",re;var Q})();const ge={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"}},q={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:""},TAPROOT_PUBKEY:{name:"Taproot Pubkey Hash",tooltip:""}};var _e=(()=>{return(Q=_e||(_e={})).WIRE_INVALID_ONION_VERSION="Invalid Onion Version",Q.WIRE_INVALID_ONION_HMAC="Invalid Onion HMAC",Q.WIRE_INVALID_ONION_KEY="Invalid Onion Key",Q.WIRE_TEMPORARY_CHANNEL_FAILURE="Temporary Channel Failure",Q.WIRE_PERMANENT_CHANNEL_FAILURE="Permanent Channel Failure",Q.WIRE_REQUIRED_CHANNEL_FEATURE_MISSING="Missing Required Channel Feature",Q.WIRE_UNKNOWN_NEXT_PEER="Unknown Next Peer",Q.WIRE_AMOUNT_BELOW_MINIMUM="Amount Below Minimum",Q.WIRE_FEE_INSUFFICIENT="Insufficient Fee",Q.WIRE_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Q.WIRE_EXPIRY_TOO_FAR="Expiry Too Far",Q.WIRE_EXPIRY_TOO_SOON="Expiry Too Soon",Q.WIRE_CHANNEL_DISABLED="Channel Disabled",Q.WIRE_INVALID_ONION_PAYLOAD="Invalid Onion Payload",Q.WIRE_INVALID_REALM="Invalid Realm",Q.WIRE_PERMANENT_NODE_FAILURE="Permanent Node Failure",Q.WIRE_TEMPORARY_NODE_FAILURE="Temporary Node Failure",Q.WIRE_REQUIRED_NODE_FEATURE_MISSING="Missing Required Node Feature",Q.WIRE_INVALID_ONION_BLINDING="Invalid Onion Binding",Q.WIRE_INCORRECT_OR_UNKNOWN_PAYMENT_DETAILS="Incorrect or Unknow Payment Details",Q.WIRE_MPP_TIMEOUT="MPP Timeout",Q.WIRE_FINAL_INCORRECT_CLTV_EXPIRY="Incorrect CLTV Expiry",Q.WIRE_FINAL_INCORRECT_HTLC_AMOUNT="Incorrect HTLC Amount",_e;var Q})(),x=(()=>{return(Q=x||(x={})).CHANNELD_NORMAL="Active",Q.OPENINGD="Opening",Q.CHANNELD_AWAITING_LOCKIN="Pending Open",Q.CHANNELD_SHUTTING_DOWN="Shutting Down",Q.CLOSINGD_SIGEXCHANGE="Closing: Sig Exchange",Q.CLOSINGD_COMPLETE="Closed",Q.AWAITING_UNILATERAL="Awaiting Unilateral Close",Q.FUNDING_SPEND_SEEN="Funding Spend Seen",Q.ONCHAIN="Onchain",Q.DUALOPEND_OPEN_INIT="Dual Open Initialized",Q.DUALOPEND_AWAITING_LOCKIN="Dual Pending Open",x;var Q})(),i=(()=>{return(Q=i||(i={})).INITIATED="Initiated",Q.PREIMAGE_REVEALED="Preimage Revealed",Q.HTLC_PUBLISHED="HTLC Published",Q.SUCCESS="Successful",Q.FAILED="Failed",Q.INVOICE_SETTLED="Invoice Settled",i;var Q})(),r=(()=>{return(Q=r||(r={})).LOOP_OUT="LOOP_OUT",Q.LOOP_IN="LOOP_IN",r;var Q})(),u=(()=>{return(Q=u||(u={})).SWAP_OUT="SWAP_OUT",Q.SWAP_IN="SWAP_IN",u;var Q})(),c=(()=>{return(Q=c||(c={}))["swap.created"]="Swap Created",Q["swap.expired"]="Swap Expired",Q["invoice.set"]="Invoice Set",Q["invoice.paid"]="Invoice Paid",Q["invoice.pending"]="Invoice Pending",Q["invoice.settled"]="Invoice Settled",Q["invoice.failedToPay"]="Invoice Failed To Pay",Q["channel.created"]="Channel Created",Q["transaction.failed"]="Transaction Failed",Q["transaction.mempool"]="Transaction Mempool",Q["transaction.claimed"]="Transaction Claimed",Q["transaction.refunded"]="Transaction Refunded",Q["transaction.confirmed"]="Transaction Confirmed",Q["swap.refunded"]="Swap Refunded",Q["swap.abandoned"]="Swap Abandoned",c;var Q})();const v=[{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}],T=["MONTHLY","YEARLY"];var I=(()=>{return(Q=I||(I={})).LOOP="LOOP",Q.BOLTZ="BOLTZ",Q.OFFERS="OFFERS",Q.PEERSWAP="PEERSWAP",I;var Q})();const y=["password","changeme","moneyprintergobrrr"];var n=(()=>{return(Q=n||(n={})).UN_INITIATED="UN_INITIATED",Q.INITIATED="INITIATED",Q.COMPLETED="COMPLETED",Q.ERROR="ERROR",n;var Q})();const _={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_OFFER:"Decoding Offer...",DECODE_PAYMENTS:"Decoding Payments...",FETCH_INVOICE:"Fetching Invoice...",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...",SEARCHING_PAYMENT:"Searching Payment...",BACKUP_CHANNEL:"Backup Channels...",VERIFY_CHANNEL:"Verify Channel...",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_PEERSWAP_SETTINGS:"Updating Peerswap Service Settings...",UPDATE_SETTING:"Updating Setting...",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_FORWARDING_HISTORY:"Getting Forwarding History...",GET_LOOKUP_DETAILS:"Getting Lookup Details...",GET_RTL_CONFIG:"Getting RTL Config...",VERIFY_TOKEN:"Verify Token...",DISABLE_OFFER:"Disabling Offer...",CREATE_OFFER:"Creating Offer...",DELETE_OFFER_BOOKMARK:"Deleting Bookmark...",GET_FUNDER_POLICY:"Getting Or Updating Funder Policy...",GET_LIST_CONFIGS:"Getting Configurations List...",LIST_NETWORK_NODES:"Getting Network Nodes List...",GET_PAGE_SETTINGS:"Getting Page Settings...",SET_PAGE_SETTINGS:"Setting Page Settings...",UPDATE_PAGE_SETTINGS:"Updating Page Layout...",LOG_OUT:"Logging Out..."};var V=(()=>{return(Q=V||(V={})).INVOICE="INVOICE",Q.OFFER="OFFER",Q.KEYSEND="KEYSEND",V;var Q})(),N=(()=>{return(Q=N||(N={})).FEES="FEES",Q.EVENTS="EVENTS",N;var Q})(),H=(()=>{return(Q=H||(H={})).VOID="VOID",Q.SET_API_URL_ECL="SET_API_URL_ECL",Q.UPDATE_SELECTED_NODE_OPTIONS="UPDATE_SELECTED_NODE_OPTIONS",Q.UPDATE_API_CALL_STATUS_ROOT="UPDATE_API_CALL_STATUS_ROOT",Q.RESET_ROOT_STORE="RESET_ROOT_STORE",Q.CLOSE_ALL_DIALOGS="CLOSE_ALL_DIALOGS",Q.OPEN_SNACK_BAR="OPEN_SNACKBAR",Q.OPEN_SPINNER="OPEN_SPINNER",Q.CLOSE_SPINNER="CLOSE_SPINNER",Q.OPEN_ALERT="OPEN_ALERT",Q.CLOSE_ALERT="CLOSE_ALERT",Q.OPEN_CONFIRMATION="OPEN_CONFIRMATION",Q.CLOSE_CONFIRMATION="CLOSE_CONFIRMATION",Q.SHOW_PUBKEY="SHOW_PUBKEY",Q.FETCH_CONFIG="FETCH_CONFIG",Q.SHOW_CONFIG="SHOW_CONFIG",Q.FETCH_STORE="FETCH_STORE",Q.SET_STORE="SET_STORE",Q.FETCH_RTL_CONFIG="FETCH_RTL_CONFIG",Q.SET_RTL_CONFIG="SET_RTL_CONFIG",Q.SAVE_SSO="SAVE_SSO",Q.SAVE_SETTINGS="SAVE_SETTINGS",Q.TWO_FA_SAVE_SETTINGS="TWO_FA_SAVE_SETTINGS",Q.SET_SELECTED_NODE="SET_SELECTED_NODE",Q.UPDATE_ROOT_NODE_SETTINGS="UPDATE_ROOT_NODE_SETTINGS",Q.UPDATE_SERVICE_SETTINGS="UPDATE_SERVICE_SETTINGS",Q.SET_NODE_DATA="SET_NODE_DATA",Q.IS_AUTHORIZED="IS_AUTHORIZED",Q.IS_AUTHORIZED_RES="IS_AUTHORIZED_RES",Q.LOGIN="LOGIN",Q.VERIFY_TWO_FA="VERIFY_TWO_FA",Q.LOGOUT="LOGOUT",Q.RESET_PASSWORD="RESET_PASSWORD",Q.RESET_PASSWORD_RES="RESET_PASSWORD_RES",Q.FETCH_FILE="FETCH_FILE",Q.SHOW_FILE="SHOW_FILE",H;var Q})(),X=(()=>{return(Q=X||(X={})).RESET_LND_STORE="RESET_LND_STORE",Q.UPDATE_API_CALL_STATUS_LND="UPDATE_API_CALL_STATUS_LND",Q.SET_CHILD_NODE_SETTINGS_LND="SET_CHILD_NODE_SETTINGS_LND",Q.FETCH_PAGE_SETTINGS_LND="FETCH_PAGE_SETTINGS_LND",Q.SET_PAGE_SETTINGS_LND="SET_PAGE_SETTINGS_LND",Q.SAVE_PAGE_SETTINGS_LND="SAVE_PAGE_SETTINGS_LND",Q.FETCH_INFO_LND="FETCH_INFO_LND",Q.SET_INFO_LND="SET_INFO_LND",Q.FETCH_PEERS_LND="FETCH_PEERS_LND",Q.SET_PEERS_LND="SET_PEERS_LND",Q.SAVE_NEW_PEER_LND="SAVE_NEW_PEER_LND",Q.NEWLY_ADDED_PEER_LND="NEWLY_ADDED_PEER_LND",Q.DETACH_PEER_LND="DETACH_PEER_LND",Q.REMOVE_PEER_LND="REMOVE_PEER_LND",Q.SAVE_NEW_INVOICE_LND="SAVE_NEW_INVOICE_LND",Q.NEWLY_SAVED_INVOICE_LND="NEWLY_SAVED_INVOICE_LND",Q.ADD_INVOICE_LND="ADD_INVOICE_LND",Q.FETCH_FEES_LND="FETCH_FEES_LND",Q.SET_FEES_LND="SET_FEES_LND",Q.FETCH_BLOCKCHAIN_BALANCE_LND="FETCH_BLOCKCHAIN_BALANCE_LND",Q.SET_BLOCKCHAIN_BALANCE_LND="SET_BLOCKCHAIN_BALANCE_LND",Q.FETCH_NETWORK_LND="FETCH_NETWORK_LND",Q.SET_NETWORK_LND="SET_NETWORK_LND",Q.FETCH_CHANNELS_LND="FETCH_CHANNELS_LND",Q.FETCH_PENDING_CHANNELS_LND="FETCH_PENDING_CHANNELS_LND",Q.FETCH_CLOSED_CHANNELS_LND="FETCH_CLOSED_CHANNELS_LND",Q.SET_CHANNELS_LND="SET_CHANNELS_LND",Q.SET_PENDING_CHANNELS_LND="SET_PENDING_CHANNELS_LND",Q.SET_CLOSED_CHANNELS_LND="SET_CLOSED_CHANNELS_LND",Q.UPDATE_CHANNEL_LND="UPDATE_CHANNEL_LND",Q.SAVE_NEW_CHANNEL_LND="SAVE_NEW_CHANNEL_LND",Q.CLOSE_CHANNEL_LND="CLOSE_CHANNEL_LND",Q.REMOVE_CHANNEL_LND="REMOVE_CHANNEL_LND",Q.BACKUP_CHANNELS_LND="BACKUP_CHANNELS_LND",Q.VERIFY_CHANNEL_LND="VERIFY_CHANNEL_LND",Q.BACKUP_CHANNELS_RES_LND="BACKUP_CHANNELS_RES_LND",Q.VERIFY_CHANNEL_RES_LND="VERIFY_CHANNEL_RES_LND",Q.RESTORE_CHANNELS_LIST_LND="RESTORE_CHANNELS_LIST_LND",Q.SET_RESTORE_CHANNELS_LIST_LND="SET_RESTORE_CHANNELS_LIST_LND",Q.RESTORE_CHANNELS_LND="RESTORE_CHANNELS_LND",Q.RESTORE_CHANNELS_RES_LND="RESTORE_CHANNELS_RES_LND",Q.FETCH_INVOICES_LND="FETCH_INVOICES_LND",Q.SET_INVOICES_LND="SET_INVOICES_LND",Q.UPDATE_INVOICE_LND="UPDATE_INVOICE_LND",Q.UPDATE_PAYMENT_LND="UPDATE_PAYMENT_LND",Q.SET_TOTAL_INVOICES_LND="SET_TOTAL_INVOICES_LND",Q.FETCH_TRANSACTIONS_LND="FETCH_TRANSACTIONS_LND",Q.SET_TRANSACTIONS_LND="SET_TRANSACTIONS_LND",Q.FETCH_UTXOS_LND="FETCH_UTXOS_LND",Q.SET_UTXOS_LND="SET_UTXOS_LND",Q.FETCH_PAYMENTS_LND="FETCH_PAYMENTS_LND",Q.SET_PAYMENTS_LND="SET_PAYMENTS_LND",Q.SEND_PAYMENT_LND="SEND_PAYMENT_LND",Q.SEND_PAYMENT_STATUS_LND="SEND_PAYMENT_STATUS_LND",Q.FETCH_GRAPH_NODE_LND="FETCH_GRAPH_NODE_LND",Q.SET_GRAPH_NODE_LND="SET_GRAPH_NODE_LND",Q.GET_NEW_ADDRESS_LND="GET_NEW_ADDRESS_LND",Q.SET_NEW_ADDRESS_LND="SET_NEW_ADDRESS_LND",Q.SET_CHANNEL_TRANSACTION_LND="SET_CHANNEL_TRANSACTION_LND",Q.SET_CHANNEL_TRANSACTION_RES_LND="SET_CHANNEL_TRANSACTION_RES_LND",Q.GEN_SEED_LND="GEN_SEED_LND",Q.GEN_SEED_RESPONSE_LND="GEN_SEED_RESPONSE_LND",Q.INIT_WALLET_LND="INIT_WALLET_LND",Q.INIT_WALLET_RESPONSE_LND="INIT_WALLET_RESPONSE_LND",Q.UNLOCK_WALLET_LND="UNLOCK_WALLET_LND",Q.PEER_LOOKUP_LND="PEER_LOOKUP_LND",Q.CHANNEL_LOOKUP_LND="CHANNEL_LOOKUP_LND",Q.INVOICE_LOOKUP_LND="INVOICE_LOOKUP_LND",Q.PAYMENT_LOOKUP_LND="PAYMENT_LOOKUP_LND",Q.SET_LOOKUP_LND="SET_LOOKUP_LND",Q.GET_FORWARDING_HISTORY_LND="GET_FORWARDING_HISTORY_LND",Q.SET_FORWARDING_HISTORY_LND="SET_FORWARDING_HISTORY_LND",Q.GET_QUERY_ROUTES_LND="GET_QUERY_ROUTES_LND",Q.SET_QUERY_ROUTES_LND="SET_QUERY_ROUTES_LND",Q.GET_ALL_LIGHTNING_TRANSATIONS_LND="GET_ALL_LIGHTNING_TRANSATIONS_LND",Q.SET_ALL_LIGHTNING_TRANSATIONS_LND="SET_ALL_LIGHTNING_TRANSATIONS_LND",X;var Q})(),he=(()=>{return(Q=he||(he={})).RESET_CLN_STORE="RESET_CLN_STORE",Q.UPDATE_API_CALL_STATUS_CLN="UPDATE_API_CALL_STATUS_CLN",Q.SET_CHILD_NODE_SETTINGS_CLN="SET_CHILD_NODE_SETTINGS_CLN",Q.FETCH_PAGE_SETTINGS_CLN="FETCH_PAGE_SETTINGS_CLN",Q.SET_PAGE_SETTINGS_CLN="SET_PAGE_SETTINGS_CLN",Q.SAVE_PAGE_SETTINGS_CLN="SAVE_PAGE_SETTINGS_CLN",Q.FETCH_INFO_CLN="FETCH_INFO_CL_CLN",Q.SET_INFO_CLN="SET_INFO_CLN",Q.FETCH_FEES_CLN="FETCH_FEES_CLN",Q.SET_FEES_CLN="SET_FEES_CLN",Q.FETCH_FEE_RATES_CLN="FETCH_FEE_RATES_CLN",Q.SET_FEE_RATES_CLN="SET_FEE_RATES_CLN",Q.FETCH_BALANCE_CLN="FETCH_BALANCE_CLN",Q.SET_BALANCE_CLN="SET_BALANCE_CLN",Q.FETCH_LOCAL_REMOTE_BALANCE_CLN="FETCH_LOCAL_REMOTE_BALANCE_CLN",Q.SET_LOCAL_REMOTE_BALANCE_CLN="SET_LOCAL_REMOTE_BALANCE_CLN",Q.GET_NEW_ADDRESS_CLN="GET_NEW_ADDRESS_CLN",Q.SET_NEW_ADDRESS_CLN="SET_NEW_ADDRESS_CLN",Q.FETCH_UTXOS_CLN="FETCH_UTXOS_CLN",Q.SET_UTXOS_CLN="SET_UTXOS_CLN",Q.FETCH_PEERS_CLN="FETCH_PEERS_CLN",Q.SET_PEERS_CLN="SET_PEERS_CLN",Q.SAVE_NEW_PEER_CLN="SAVE_NEW_PEER_CLN",Q.NEWLY_ADDED_PEER_CLN="NEWLY_ADDED_PEER_CLN",Q.ADD_PEER_CLN="ADD_PEER_CLN",Q.DETACH_PEER_CLN="DETACH_PEER_CLN",Q.REMOVE_PEER_CLN="REMOVE_PEER_CLN",Q.FETCH_CHANNELS_CLN="FETCH_CHANNELS_CLN",Q.SET_CHANNELS_CLN="SET_CHANNELS_CLN",Q.UPDATE_CHANNEL_CLN="UPDATE_CHANNEL_CLN",Q.SAVE_NEW_CHANNEL_CLN="SAVE_NEW_CHANNEL_CLN",Q.CLOSE_CHANNEL_CLN="CLOSE_CHANNEL_CLN",Q.REMOVE_CHANNEL_CLN="REMOVE_CHANNEL_CLN",Q.FETCH_PAYMENTS_CLN="FETCH_PAYMENTS_CLN",Q.SET_PAYMENTS_CLN="SET_PAYMENTS_CLN",Q.SEND_PAYMENT_CLN="SEND_PAYMENT_CLN",Q.SEND_PAYMENT_STATUS_CLN="SEND_PAYMENT_STATUS_CLN",Q.GET_QUERY_ROUTES_CLN="GET_QUERY_ROUTES_CLN",Q.SET_QUERY_ROUTES_CLN="SET_QUERY_ROUTES_CLN",Q.PEER_LOOKUP_CLN="PEER_LOOKUP_CLN",Q.CHANNEL_LOOKUP_CLN="CHANNEL_LOOKUP_CLN",Q.INVOICE_LOOKUP_CLN="INVOICE_LOOKUP_CLN",Q.SET_LOOKUP_CLN="SET_LOOKUP_CLN",Q.GET_FORWARDING_HISTORY_CLN="GET_FORWARDING_HISTORY_CLN",Q.SET_FORWARDING_HISTORY_CLN="SET_FORWARDING_HISTORY_CLN",Q.GET_FAILED_FORWARDING_HISTORY_CLN="GET_FAILED_FORWARDING_HISTORY_CLN",Q.SET_FAILED_FORWARDING_HISTORY_CLN="SET_FAILED_FORWARDING_HISTORY_CLN",Q.GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="GET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Q.SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN="SET_LOCAL_FAILED_FORWARDING_HISTORY_CLN",Q.FETCH_INVOICES_CLN="FETCH_INVOICES_CLN",Q.SET_INVOICES_CLN="SET_INVOICES_CLN",Q.SAVE_NEW_INVOICE_CLN="SAVE_NEW_INVOICE_CLN",Q.ADD_INVOICE_CLN="ADD_INVOICE_CLN",Q.UPDATE_INVOICE_CLN="UPDATE_INVOICE_CLN",Q.DELETE_EXPIRED_INVOICE_CLN="DELETE_EXPIRED_INVOICE_CLN",Q.SET_CHANNEL_TRANSACTION_CLN="SET_CHANNEL_TRANSACTION_CLN",Q.SET_CHANNEL_TRANSACTION_RES_CLN="SET_CHANNEL_TRANSACTION_RES_CLN",Q.FETCH_OFFER_INVOICE_CLN="FETCH_OFFER_INVOICE_CLN",Q.SET_OFFER_INVOICE_CLN="SET_OFFER_INVOICE_CLN",Q.FETCH_OFFERS_CLN="FETCH_OFFERS_CLN",Q.SET_OFFERS_CLN="SET_OFFERS_CLN",Q.SAVE_NEW_OFFER_CLN="SAVE_NEW_OFFER_CLN",Q.ADD_OFFER_CLN="ADD_OFFER_CLN",Q.DISABLE_OFFER_CLN="DISABLE_OFFER_CLN",Q.UPDATE_OFFER_CLN="UPDATE_OFFER_CLN",Q.FETCH_OFFER_BOOKMARKS_CLN="FETCH_OFFER_BOOKMARKS_CLN",Q.SET_OFFER_BOOKMARKS_CLN="SET_OFFER_BOOKMARKS_CLN",Q.ADD_UPDATE_OFFER_BOOKMARK_CLN="ADD_UPDATE_OFFER_BOOKMARK_CLN",Q.DELETE_OFFER_BOOKMARK_CLN="DELETE_OFFER_BOOKMARK_CLN",Q.REMOVE_OFFER_BOOKMARK_CLN="REMOVE_OFFER_BOOKMARK_CL",he;var Q})(),be=(()=>{return(Q=be||(be={})).RESET_ECL_STORE="RESET_ECL_STORE",Q.UPDATE_API_CALL_STATUS_ECL="UPDATE_API_CALL_STATUS_ECL",Q.SET_CHILD_NODE_SETTINGS_ECL="SET_CHILD_NODE_SETTINGS_ECL",Q.FETCH_PAGE_SETTINGS_ECL="FETCH_PAGE_SETTINGS_ECL",Q.SET_PAGE_SETTINGS_ECL="SET_PAGE_SETTINGS_ECL",Q.SAVE_PAGE_SETTINGS_ECL="SAVE_PAGE_SETTINGS_ECL",Q.FETCH_INFO_ECL="FETCH_INFO_ECL",Q.SET_INFO_ECL="SET_INFO_ECL",Q.FETCH_FEES_ECL="FETCH_FEES_ECL",Q.SET_FEES_ECL="SET_FEES_ECL",Q.FETCH_CHANNELS_ECL="FETCH_CHANNELS_ECL",Q.SET_ACTIVE_CHANNELS_ECL="SET_ACTIVE_CHANNELS_ECL",Q.SET_PENDING_CHANNELS_ECL="SET_PENDING_CHANNELS_ECL",Q.SET_INACTIVE_CHANNELS_ECL="SET_INACTIVE_CHANNELS_ECL",Q.FETCH_ONCHAIN_BALANCE_ECL="FETCH_ONCHAIN_BALANCE_ECL",Q.SET_ONCHAIN_BALANCE_ECL="SET_ONCHAIN_BALANCE_ECL",Q.FETCH_LIGHTNING_BALANCE_ECL="FETCH_LIGHTNING_BALANCE_ECL",Q.SET_LIGHTNING_BALANCE_ECL="SET_LIGHTNING_BALANCE_ECL",Q.SET_CHANNELS_STATUS_ECL="SET_CHANNELS_STATUS_ECL",Q.FETCH_PEERS_ECL="FETCH_PEERS_ECL",Q.SET_PEERS_ECL="SET_PEERS_ECL",Q.SAVE_NEW_PEER_ECL="SAVE_NEW_PEER_ECL",Q.NEWLY_ADDED_PEER_ECL="NEWLY_ADDED_PEER_ECL",Q.ADD_PEER_ECL="ADD_PEER_ECL",Q.DETACH_PEER_ECL="DETACH_PEER_ECL",Q.REMOVE_PEER_ECL="REMOVE_PEER_ECL",Q.GET_NEW_ADDRESS_ECL="GET_NEW_ADDRESS_ECL",Q.SET_NEW_ADDRESS_ECL="SET_NEW_ADDRESS_ECL",Q.SAVE_NEW_CHANNEL_ECL="SAVE_NEW_CHANNEL_ECL",Q.UPDATE_CHANNEL_ECL="UPDATE_CHANNEL_ECL",Q.CLOSE_CHANNEL_ECL="CLOSE_CHANNEL_ECL",Q.REMOVE_CHANNEL_ECL="REMOVE_CHANNEL_ECL",Q.FETCH_PAYMENTS_ECL="FETCH_PAYMENTS_ECL",Q.SET_PAYMENTS_ECL="SET_PAYMENTS_ECL",Q.GET_QUERY_ROUTES_ECL="GET_QUERY_ROUTES_ECL",Q.SET_QUERY_ROUTES_ECL="SET_QUERY_ROUTES_ECL",Q.SEND_PAYMENT_ECL="SEND_PAYMENT_ECL",Q.SEND_PAYMENT_STATUS_ECL="SEND_PAYMENT_STATUS_ECL",Q.FETCH_TRANSACTIONS_ECL="FETCH_TRANSACTIONS_ECL",Q.SET_TRANSACTIONS_ECL="SET_TRANSACTIONS_ECL",Q.SEND_ONCHAIN_FUNDS_ECL="SEND_ONCHAIN_FUNDS_ECL",Q.SEND_ONCHAIN_FUNDS_RES_ECL="SEND_ONCHAIN_FUNDS_RES_ECL",Q.FETCH_INVOICES_ECL="FETCH_INVOICES_ECL",Q.SET_INVOICES_ECL="SET_INVOICES_ECL",Q.SET_TOTAL_INVOICES_ECL="SET_TOTAL_INVOICES_ECL",Q.CREATE_INVOICE_ECL="CREATE_INVOICE_ECL",Q.ADD_INVOICE_ECL="ADD_INVOICE_ECL",Q.UPDATE_INVOICE_ECL="UPDATE_INVOICE_ECL",Q.PEER_LOOKUP_ECL="PEER_LOOKUP_ECL",Q.INVOICE_LOOKUP_ECL="INVOICE_LOOKUP_ECL",Q.SET_LOOKUP_ECL="SET_LOOKUP_ECL",Q.UPDATE_CHANNEL_STATE_ECL="UPDATE_CHANNEL_STATE_ECL",Q.UPDATE_RELAYED_PAYMENT_ECL="UPDATE_RELAYED_PAYMENT_ECL",be;var Q})();const Pe=[{range:{min:0,max:1},description:"Requires or supports extra channel re-establish fields"},{range:{min:4,max:5},description:"Commits to a shutdown script pubkey when opening channel"},{range:{min:6,max:7},description:"More sophisticated gossip control"},{range:{min:8,max:9},description:"Requires/supports variable-length routing onion payloads"},{range:{min:10,max:11},description:"Gossip queries can include additional information"},{range:{min:12,max:13},description:"Static key for remote output"},{range:{min:14,max:15},description:"Node supports payment secret field"},{range:{min:16,max:17},description:"Node can receive basic multi-part payments"},{range:{min:18,max:19},description:"Node can create large channels"},{range:{min:20,max:21},description:"Anchor outputs"},{range:{min:22,max:23},description:"Anchor commitment type with zero fee HTLC transactions"},{range:{min:26,max:27},description:"Future segwit versions allowed in shutdown"}];var Ee=(()=>{return(Q=Ee||(Ee={})).gossip_queries_ex="Gossip queries including additional information",Q.option_anchor_outputs="Anchor outputs",Q.option_data_loss_protect="Extra channel re-establish fields",Q.var_onion_optin="Variable-length routing onion payloads",Q.option_static_remotekey="Static key for remote output",Q.option_support_large_channel="Create large channels",Q.option_anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Q.payment_secret="Payment secret field",Q.option_shutdown_anysegwit="Future segwit versions allowed in shutdown",Q.basic_mpp="Basic multi-part payments",Q.gossip_queries="More sophisticated gossip control",Q.option_upfront_shutdown_script="Shutdown script pubkey when opening channel",Q.anchors_zero_fee_htlc_tx="Anchor commitment type with zero fee HTLC transactions",Q.amp="AMP",Ee;var Q})(),j=(()=>{return(Q=j||(j={}))["data-loss-protect"]="Extra channel re-establish fields",Q["upfront-shutdown-script"]="Shutdown script pubkey when opening channel",Q["gossip-queries"]="More sophisticated gossip control",Q["tlv-onion"]="Variable-length routing onion payloads",Q["ext-gossip-queries"]="Gossip queries can include additional information",Q["static-remote-key"]="Static key for remote output",Q["payment-addr"]="Payment secret field",Q["multi-path-payments"]="Basic multi-part payments",Q["wumbo-channels"]="Wumbo Channels",Q.anchors="Anchor outputs",Q["anchors-zero-fee-htlc-tx"]="Anchor commitment type with zero fee HTLC transactions",Q.amp="AMP",j;var Q})();const Ve=[{id:"match",placeholder:"Policy Match (%age)",min:0,max:200},{id:"available",placeholder:"Policy Available (%age)",min:0,max:100},{id:"fixed",placeholder:"Fixed Policy (Sats)",min:0,max:100}];var Me=(()=>{return(Q=Me||(Me={})).OFFERED="offered",Q.SETTLED="settled",Q.FAILED="failed",Q.LOCAL_FAILED="local_failed",Me;var Q})(),we=(()=>{return(Q=we||(we={})).ASCENDING="asc",Q.DESCENDING="desc",we;var Q})();const ce=["asc","desc"],Te=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:we.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"blockheight",sortOrder:we.DESCENDING,columnSelectionSM:["txid","value"],columnSelection:["txid","output","value","blockheight"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:d,sortBy:"msatoshi_to_us",sortOrder:we.DESCENDING,columnSelectionSM:["alias","msatoshi_to_us","msatoshi_to_them"],columnSelection:["short_channel_id","alias","msatoshi_to_us","msatoshi_to_them","balancedness"]},{tableId:"pending_inactive_channels",recordsPerPage:d,sortBy:"state",sortOrder:we.DESCENDING,columnSelectionSM:["alias","state"],columnSelection:["alias","connected","state","msatoshi_total"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:we.ASCENDING,columnSelectionSM:["alias","id"],columnSelection:["alias","id","netaddr"]}]},{pageId:"liquidity_ads",tables:[{tableId:"liquidity_ads",recordsPerPage:d,sortBy:"channel_opening_fee",sortOrder:we.ASCENDING,columnSelectionSM:["alias","channel_opening_fee"],columnSelection:["alias","last_timestamp","lease_fee","routing_fee","channel_opening_fee"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"created_at",sortOrder:we.DESCENDING,columnSelectionSM:["created_at","msatoshi"],columnSelection:["created_at","type","payment_hash","msatoshi_sent","msatoshi"]},{tableId:"invoices",recordsPerPage:d,sortBy:"expires_at",sortOrder:we.DESCENDING,columnSelectionSM:["expires_at","msatoshi"],columnSelection:["expires_at","paid_at","type","description","msatoshi","msatoshi_received"]},{tableId:"offers",recordsPerPage:d,sortBy:"offer_id",sortOrder:we.DESCENDING,columnSelectionSM:["offer_id","single_use"],columnSelection:["offer_id","single_use","used"]},{tableId:"offer_bookmarks",recordsPerPage:d,sortBy:"lastUpdatedAt",sortOrder:we.DESCENDING,columnSelectionSM:["lastUpdatedAt","amountMSat"],columnSelection:["lastUpdatedAt","title","description","amountMSat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"total_fee",sortOrder:we.DESCENDING,columnSelectionSM:["alias","events","total_fee"],columnSelection:["channel_id","alias","events","total_amount","total_fee"]},{tableId:"failed",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"local_failed",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_channel_alias","in_msatoshi"],columnSelection:["received_time","in_channel_alias","in_msatoshi","style","failreason"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"received_time",sortOrder:we.DESCENDING,columnSelectionSM:["received_time","in_msatoshi","out_msatoshi"],columnSelection:["received_time","resolved_time","in_channel_alias","out_channel_alias","in_msatoshi","out_msatoshi","fee"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:we.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:d,sortBy:"msatoshi",sortOrder:we.DESCENDING,columnSelectionSM:["alias","direction","msatoshi"],columnSelection:["alias","channel","direction","delay","msatoshi"]}]},{pageId:"peerswap",tables:[{tableId:"swaps",recordsPerPage:d,sortBy:"created_at",sortOrder:we.DESCENDING,columnSelectionSM:["id","state","amount"],columnSelection:["id","alias","short_channel_id","created_at","state","amount"]}]}],xe={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"txid",label:"Transaction ID"},{column:"address"},{column:"scriptpubkey",label:"Script Pubkey"},{column:"output"},{column:"value"},{column:"blockheight"},{column:"reserved"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"short_channel_id"},{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"},{column:"balancedness",label:"Balance Score"}]},pending_inactive_channels:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"id"},{column:"channel_id"},{column:"funding_txid",label:"Funding Transaction ID"},{column:"connected"},{column:"state"},{column:"our_channel_reserve_satoshis",label:"Local Reserve"},{column:"their_channel_reserve_satoshis",label:"Remote Reserve"},{column:"msatoshi_total",label:"Total"},{column:"spendable_msatoshi",label:"Spendable"},{column:"msatoshi_to_us",label:"Local Balance"},{column:"msatoshi_to_them",label:"Remote Balance"}]},peers:{maxColumns:3,allowedColumns:[{column:"alias"},{column:"id"},{column:"netaddr",label:"Network Address"}]}},liquidity_ads:{liquidity_ads:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"nodeid",label:"Node ID"},{column:"last_timestamp",label:"Last Announcement At"},{column:"compact_lease"},{column:"lease_fee"},{column:"routing_fee"},{column:"channel_opening_fee"},{column:"funding_weight"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"created_at",label:"Created At"},{column:"type"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"destination"},{column:"memo"},{column:"label"},{column:"msatoshi_sent",label:"Sats Sent"},{column:"msatoshi",label:"Sats Received"}]},invoices:{maxColumns:7,allowedColumns:[{column:"expires_at",label:"Expiry Date"},{column:"paid_at",label:"Date Settled"},{column:"type"},{column:"description"},{column:"label"},{column:"payment_hash"},{column:"bolt11",label:"Invoice"},{column:"msatoshi",label:"Amount"},{column:"msatoshi_received",label:"Amount Settled"}]},offers:{maxColumns:4,allowedColumns:[{column:"offer_id",label:"Offer ID"},{column:"single_use"},{column:"used"},{column:"bolt12",label:"Invoice"}]},offer_bookmarks:{maxColumns:6,allowedColumns:[{column:"lastUpdatedAt",label:"Updated At"},{column:"title"},{column:"description"},{column:"vendor"},{column:"bolt12",label:"Invoice"},{column:"amountMSat",label:"Amount"}]}},routing:{forwarding_history:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channel_id"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount",label:"Amount"},{column:"total_fee",label:"Fee"}]},failed:{maxColumns:7,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},local_failed:{maxColumns:6,allowedColumns:[{column:"received_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"in_msatoshi",label:"Amount In"},{column:"style"},{column:"failreason",label:"Fail Reason"}]}},reports:{routing:{maxColumns:8,allowedColumns:[{column:"received_time"},{column:"resolved_time"},{column:"in_channel",label:"In Channel ID"},{column:"in_channel_alias",label:"In Channel"},{column:"out_channel",label:"Out Channel ID"},{column:"out_channel_alias",label:"Out Channel"},{column:"payment_hash"},{column:"in_msatoshi",label:"Amount In"},{column:"out_msatoshi",label:"Amount Out"},{column:"fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"channel"},{column:"direction"},{column:"delay"},{column:"msatoshi",label:"Amount"}]}},peerswap:{swaps:{maxColumns:6,allowedColumns:[{column:"id"},{column:"alias"},{column:"short_channel_id"},{column:"created_at"},{column:"state"},{column:"amount"}]}}},W=[{pageId:"on_chain",tables:[{tableId:"utxos",recordsPerPage:d,sortBy:"tx_id",sortOrder:we.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]},{tableId:"transactions",recordsPerPage:d,sortBy:"time_stamp",sortOrder:we.DESCENDING,columnSelectionSM:["time_stamp","amount","num_confirmations"],columnSelection:["time_stamp","label","amount","total_fees","block_height","num_confirmations"]},{tableId:"dust_utxos",recordsPerPage:d,sortBy:"tx_id",sortOrder:we.DESCENDING,columnSelectionSM:["output","amount_sat","confirmations"],columnSelection:["tx_id","output","label","amount_sat","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open",recordsPerPage:d,sortBy:"balancedness",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["remote_alias","uptime_str","total_satoshis_sent","total_satoshis_received","local_balance","remote_balance","balancedness"]},{tableId:"pending_open",sortBy:"capacity",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","commit_fee","commit_weight","capacity"]},{tableId:"pending_force_closing",sortBy:"limbo_balance",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","recovered_balance","limbo_balance","capacity"]},{tableId:"pending_closing",sortBy:"capacity",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","capacity"],columnSelection:["remote_alias","local_balance","remote_balance","capacity"]},{tableId:"pending_waiting_close",sortBy:"limbo_balance",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","limbo_balance"],columnSelection:["remote_alias","limbo_balance","local_balance","remote_balance"]},{tableId:"closed",recordsPerPage:d,sortBy:"close_type",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","settled_balance"],columnSelection:["close_type","remote_alias","capacity","close_height","settled_balance"]},{tableId:"active_HTLCs",recordsPerPage:d,sortBy:"expiration_height",sortOrder:we.DESCENDING,columnSelectionSM:["amount","incoming","expiration_height"],columnSelection:["amount","incoming","expiration_height","hash_lock"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["alias","sat_sent","sat_recv"],columnSelection:["alias","pub_key","sat_sent","sat_recv","ping_time"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"creation_date",sortOrder:we.DESCENDING,columnSelectionSM:["creation_date","fee","value"],columnSelection:["creation_date","payment_hash","fee","value","hops"]},{tableId:"invoices",recordsPerPage:d,sortBy:"creation_date",sortOrder:we.DESCENDING,columnSelectionSM:["creation_date","settle_date","value"],columnSelection:["creation_date","settle_date","memo","value","amt_paid_sat"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"total_amount",sortOrder:we.DESCENDING,columnSelectionSM:["alias","events","total_amount"],columnSelection:["chan_id","alias","events","total_amount"]},{tableId:"non_routing_peers",recordsPerPage:d,sortBy:"remote_alias",sortOrder:we.DESCENDING,columnSelectionSM:["remote_alias","local_balance","remote_balance"],columnSelection:["chan_id","remote_alias","total_satoshis_received","total_satoshis_sent","local_balance","remote_balance"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amt_in","amt_out"],columnSelection:["timestamp","alias_in","alias_out","amt_in","amt_out","fee_msat"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:we.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]},{pageId:"graph_lookup",tables:[{tableId:"query_routes",recordsPerPage:d,sortBy:"hop_sequence",sortOrder:we.ASCENDING,columnSelectionSM:["hop_sequence","pubkey_alias","fee_msat"],columnSelection:["hop_sequence","pubkey_alias","chan_capacity","amt_to_forward_msat","fee_msat"]}]},{pageId:"loop",tables:[{tableId:"loop",recordsPerPage:d,sortBy:"initiation_time",sortOrder:we.DESCENDING,columnSelectionSM:["state","amt"],columnSelection:["state","initiation_time","amt","cost_server","cost_offchain","cost_onchain"]}]},{pageId:"boltz",tables:[{tableId:"swap_out",recordsPerPage:d,sortBy:"status",sortOrder:we.DESCENDING,columnSelectionSM:["status","id","onchainAmount"],columnSelection:["status","id","claimAddress","onchainAmount","timeoutBlockHeight"]},{tableId:"swap_in",recordsPerPage:d,sortBy:"status",sortOrder:we.DESCENDING,columnSelectionSM:["status","id","expectedAmount"],columnSelection:["status","id","lockupAddress","expectedAmount","timeoutBlockHeight"]}]}],te={on_chain:{utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat",label:"Amount"},{column:"confirmations"}]},transactions:{maxColumns:7,allowedColumns:[{column:"time_stamp",label:"Date/Time"},{column:"label"},{column:"block_hash"},{column:"tx_hash",label:"Transaction Hash"},{column:"amount"},{column:"total_fees",label:"Fees"},{column:"block_height"},{column:"num_confirmations",label:"Confirmations"}]},dust_utxos:{maxColumns:7,allowedColumns:[{column:"tx_id",label:"Transaction ID"},{column:"output"},{column:"label"},{column:"address_type"},{column:"address"},{column:"amount_sat"},{column:"confirmations"}]}},peers_channels:{open:{maxColumns:8,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"initiator"},{column:"static_remote_key"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"},{column:"balancedness",label:"Balance Score"}]},pending_open:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"confirmation_height"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_force_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"maturity_height"},{column:"blocks_til_maturity",label:"Blocks till Maturity"},{column:"recovered_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_closing:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},pending_waiting_close:{maxColumns:7,disablePageSize:!0,allowedColumns:[{column:"closing_txid",label:"Closing Tx ID"},{column:"remote_alias",label:"Peer"},{column:"remote_node_pub",label:"Pubkey"},{column:"channel_point"},{column:"initiator"},{column:"commitment_type"},{column:"limbo_balance"},{column:"capacity"},{column:"local_balance"},{column:"remote_balance"}]},closed:{maxColumns:7,allowedColumns:[{column:"close_type"},{column:"remote_alias",label:"Peer"},{column:"remote_pubkey",label:"Pubkey"},{column:"channel_point"},{column:"chan_id",label:"Channel ID"},{column:"closing_tx_hash",label:"Closing Tx Hash"},{column:"chain_hash"},{column:"open_initiator"},{column:"close_initiator"},{column:"time_locked_balance",label:"Timelocked Balance"},{column:"capacity"},{column:"close_height"},{column:"settled_balance"}]},active_HTLCs:{maxColumns:7,allowedColumns:[{column:"amount"},{column:"incoming"},{column:"forwarding_channel"},{column:"htlc_index"},{column:"forwarding_htlc_index"},{column:"expiration_height"},{column:"hash_lock"}]},peers:{maxColumns:8,allowedColumns:[{column:"alias"},{column:"pub_key",label:"Public Key"},{column:"address"},{column:"sync_type"},{column:"inbound"},{column:"bytes_sent"},{column:"bytes_recv",label:"Bytes Received"},{column:"sat_sent",label:"Sats Sent"},{column:"sat_recv",label:"Sats Received"},{column:"ping_time"}]}},transactions:{payments:{maxColumns:8,allowedColumns:[{column:"creation_date"},{column:"payment_hash"},{column:"payment_request"},{column:"payment_preimage"},{column:"description"},{column:"description_hash"},{column:"failure_reason"},{column:"payment_index"},{column:"fee"},{column:"value"},{column:"hops"}]},invoices:{maxColumns:9,allowedColumns:[{column:"private"},{column:"is_keysend",label:"Keysend"},{column:"is_amp",label:"AMP"},{column:"creation_date",label:"Date Created"},{column:"settle_date",label:"Date Settled"},{column:"memo"},{column:"r_preimage",label:"Preimage"},{column:"r_hash",label:"Preimage Hash"},{column:"payment_addr",label:"Payment Address"},{column:"payment_request"},{column:"description_hash"},{column:"expiry"},{column:"cltv_expiry"},{column:"add_index"},{column:"settle_index"},{column:"value",label:"Amount"},{column:"amt_paid_sat",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},routing_peers:{maxColumns:4,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"total_amount"}]},non_routing_peers:{maxColumns:8,allowedColumns:[{column:"chan_id",label:"Channel ID"},{column:"remote_alias",label:"Peer Alias"},{column:"remote_pubkey",label:"Peer Pubkey"},{column:"channel_point"},{column:"uptime_str",label:"Uptime"},{column:"lifetime_str",label:"Lifetime"},{column:"commit_fee"},{column:"commit_weight"},{column:"fee_per_kw",label:"Fee/KW"},{column:"num_updates",label:"Updates"},{column:"unsettled_balance"},{column:"capacity"},{column:"local_chan_reserve_sat",label:"Local Reserve"},{column:"remote_chan_reserve_sat",label:"Remote Reserve"},{column:"total_satoshis_sent",label:"Sats Sent"},{column:"total_satoshis_received",label:"Sats Received"},{column:"local_balance"},{column:"remote_balance"}]}},reports:{routing:{maxColumns:6,allowedColumns:[{column:"timestamp"},{column:"alias_in",label:"Inbound Alias"},{column:"chan_id_in",label:"Inbound Channel"},{column:"alias_out",label:"Outbound Alias"},{column:"chan_id_out",label:"Outbound Channel"},{column:"amt_in",label:"Inbound Amount"},{column:"amt_out",label:"Outbound Amount"},{column:"fee_msat",label:"Fee"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}},graph_lookup:{query_routes:{maxColumns:8,disablePageSize:!0,allowedColumns:[{column:"hop_sequence",label:"Hop"},{column:"pubkey_alias",label:"Peer"},{column:"pub_key",label:"Peer Pubkey"},{column:"chan_id",label:"Channel ID"},{column:"tlv_payload"},{column:"expiry"},{column:"chan_capacity",label:"Capacity"},{column:"amt_to_forward_msat",label:"Amount To Fwd"},{column:"fee_msat",label:"Fee"}]}},loop:{loop:{maxColumns:8,allowedColumns:[{column:"state"},{column:"initiation_time"},{column:"last_update_time"},{column:"amt",label:"Amount"},{column:"cost_server"},{column:"cost_offchain"},{column:"cost_onchain"},{column:"htlc_address"},{column:"id"},{column:"id_bytes",label:"ID (Bytes)"}]}},boltz:{swap_out:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"claimAddress",label:"Claim Address"},{column:"onchainAmount",label:"Onchain Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"claimTransactionId",label:"Claim Tx ID"}]},swap_in:{maxColumns:7,allowedColumns:[{column:"status"},{column:"id",label:"Swap ID"},{column:"lockupAddress",label:"Lockup Address"},{column:"expectedAmount",label:"Expected Amount"},{column:"error"},{column:"privateKey",label:"Private Key"},{column:"preimage"},{column:"redeemScript",label:"Redeem Script"},{column:"invoice"},{column:"timeoutBlockHeight",label:"Timeout Block Height"},{column:"lockupTransactionId",label:"Lockup Tx ID"},{column:"refundTransactionId",label:"Refund Tx ID"}]}}},Ce=[{pageId:"on_chain",tables:[{tableId:"transaction",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amount"],columnSelection:["timestamp","address","amount","fees","confirmations"]}]},{pageId:"peers_channels",tables:[{tableId:"open_channels",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["alias","toLocal","toRemote"],columnSelection:["shortChannelId","alias","feeBaseMsat","feeProportionalMillionths","toLocal","toRemote","balancedness"]},{tableId:"pending_channels",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","alias","toLocal","toRemote"]},{tableId:"inactive_channels",recordsPerPage:d,sortBy:"alias",sortOrder:we.DESCENDING,columnSelectionSM:["state","alias","toLocal"],columnSelection:["state","shortChannelId","alias","toLocal","toRemote","balancedness"]},{tableId:"peers",recordsPerPage:d,sortBy:"alias",sortOrder:we.ASCENDING,columnSelectionSM:["alias","nodeId"],columnSelection:["alias","nodeId","address","channels"]}]},{pageId:"transactions",tables:[{tableId:"payments",recordsPerPage:d,sortBy:"firstPartTimestamp",sortOrder:we.DESCENDING,columnSelectionSM:["firstPartTimestamp","recipientAmount"],columnSelection:["firstPartTimestamp","id","recipientNodeAlias","recipientAmount"]},{tableId:"invoices",recordsPerPage:d,sortBy:"receivedAt",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amount","amountSettled"],columnSelection:["timestamp","receivedAt","description","amount","amountSettled"]}]},{pageId:"routing",tables:[{tableId:"forwarding_history",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"routing_peers",recordsPerPage:d,sortBy:"totalFee",sortOrder:we.DESCENDING,columnSelectionSM:["alias","events","totalFee"],columnSelection:["channelId","alias","events","totalAmount","totalFee"]}]},{pageId:"reports",tables:[{tableId:"routing",recordsPerPage:d,sortBy:"timestamp",sortOrder:we.DESCENDING,columnSelectionSM:["timestamp","amountIn","fee"],columnSelection:["timestamp","fromChannelAlias","toChannelAlias","amountIn","amountOut","fee"]},{tableId:"transactions",recordsPerPage:d,sortBy:"date",sortOrder:we.DESCENDING,columnSelectionSM:["date","amount_paid","amount_received"],columnSelection:["date","amount_paid","num_payments","amount_received","num_invoices"]}]}],fe={on_chain:{transaction:{maxColumns:6,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"address"},{column:"blockHash"},{column:"txid",label:"Transaction ID"},{column:"amount"},{column:"fees"},{column:"confirmations"}]}},peers_channels:{open_channels:{maxColumns:8,allowedColumns:[{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"feeBaseMsat",label:"Base Fee"},{column:"feeProportionalMillionths",label:"Fee Rate"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},pending_channels:{maxColumns:7,allowedColumns:[{column:"state"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"}]},inactive_channels:{maxColumns:8,allowedColumns:[{column:"state"},{column:"shortChannelId"},{column:"channelId"},{column:"alias"},{column:"nodeId"},{column:"isFunder",label:"Funder"},{column:"buried"},{column:"toLocal",label:"Local Balance"},{column:"toRemote",label:"Remote Balance"},{column:"feeRatePerKw",label:"Fee/KW"},{column:"balancedness",label:"Balance Score"}]},peers:{maxColumns:4,allowedColumns:[{column:"alias"},{column:"nodeId"},{column:"address",label:"Netwrok Address"},{column:"channels"}]}},transactions:{payments:{maxColumns:7,allowedColumns:[{column:"firstPartTimestamp",label:"Date/Time"},{column:"id"},{column:"recipientNodeId",label:"Destination Node ID"},{column:"recipientNodeAlias",label:"Destination"},{column:"description"},{column:"paymentHash"},{column:"paymentPreimage",label:"Preimage"},{column:"recipientAmount",label:"Amount"}]},invoices:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date Created"},{column:"expiresAt",label:"Date Expiry"},{column:"receivedAt",label:"Date Settled"},{column:"nodeId",label:"Node ID"},{column:"description"},{column:"paymentHash"},{column:"amount"},{column:"amountSettled",label:"Amount Settled"}]}},routing:{forwarding_history:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},routing_peers:{maxColumns:5,allowedColumns:[{column:"channelId"},{column:"alias",label:"Peer Alias"},{column:"events"},{column:"totalAmount",label:"Amount"},{column:"totalFee",label:"Fee"}]}},reports:{routing:{maxColumns:7,allowedColumns:[{column:"timestamp",label:"Date/Time"},{column:"fromChannelId",label:"In Channel ID"},{column:"fromShortChannelId",label:"In Channel Short ID"},{column:"fromChannelAlias",label:"In Channel"},{column:"toChannelId",label:"Out Channel ID"},{column:"toShortChannelId",label:"Out Channel Short ID"},{column:"toChannelAlias",label:"Out Channel"},{column:"paymentHash"},{column:"amountIn"},{column:"amountOut"},{column:"fee",label:"Fee Earned"}]},transactions:{maxColumns:5,allowedColumns:[{column:"date"},{column:"amount_paid"},{column:"num_payments",label:"# Payments"},{column:"amount_received"},{column:"num_invoices",label:"# Invoices"}]}}}},8104:(Be,K,p)=>{"use strict";p.d(K,{D:()=>ge});var t=p(8138),e=p(1135),f=p(7579),M=p(2843),a=p(9646),C=p(590),d=p(5577),R=p(2722),h=p(4004),L=p(262),w=p(1365),D=p(2340),S=p(7731),k=p(1786),E=p(7861),B=p(6523),Z=p(6529),Y=p(9828),ae=p(5e3),ee=p(5620),ue=p(5043),ne=p(7261),re=p(9808);let ge=(()=>{class q{constructor(x,i,r,u,c){this.httpClient=x,this.store=i,this.logger=r,this.snackBar=u,this.titleCasePipe=c,this.APIUrl=D.T5,this.lnImplementation="",this.lnImplementationUpdated=new e.X(null),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x,new f.x],this.mapAliases=(v,T)=>(v&&v.length>0?v.forEach((I,y)=>{var n;if(T&&T.length>0)for(let _=0;_null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.PAYMENTS_API+"/decode/"+x;return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/decode/"+x),this.store.dispatch((0,E.ac)({payload:S.m6.DECODE_PAYMENT})),this.httpClient.get(u).pipe((0,R.R)(this.unSubs[0]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:S.m6.DECODE_PAYMENT})),c)),(0,L.K)(c=>(i?this.handleErrorWithoutAlert("Decode Payment",S.m6.DECODE_PAYMENT,c):this.handleErrorWithAlert("decodePaymentData",S.m6.DECODE_PAYMENT,"Decode Payment Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}decodePayments(x){return this.lnImplementationUpdated.pipe((0,C.P)(i=>null!==i),(0,d.z)(i=>{let r="",u="";return"ecl"===i?(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API+"/getsentinfos",u=S.m6.GET_SENT_PAYMENTS):"cln"===i?(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API,u=S.m6.DECODE_PAYMENTS):(r=this.APIUrl+"/"+i+D.NZ.PAYMENTS_API,u=S.m6.DECODE_PAYMENTS),this.store.dispatch((0,E.ac)({payload:u})),this.httpClient.post(r,{payments:x}).pipe((0,R.R)(this.unSubs[1]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:u})),c)),(0,L.K)(c=>(this.handleErrorWithAlert("decodePaymentsData",u,u+" Failed",r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getAliasesFromPubkeys(x,i){return this.lnImplementationUpdated.pipe((0,C.P)(r=>null!==r),(0,d.z)(r=>{if(i){const u=(new t.LE).set("pubkeys",x);return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/nodes",{params:u})}return this.httpClient.get(this.APIUrl+"/"+r+D.NZ.NETWORK_API+"/node/"+x)}))}signMessage(x){return this.lnImplementationUpdated.pipe((0,C.P)(i=>null!==i),(0,d.z)(i=>{let r=this.APIUrl+"/"+i+D.NZ.MESSAGE_API+"/sign";return"cln"===i&&(r=this.APIUrl+"/"+i+D.NZ.UTILITY_API+"/sign"),this.store.dispatch((0,E.ac)({payload:S.m6.SIGN_MESSAGE})),this.httpClient.post(r,{message:x}).pipe((0,R.R)(this.unSubs[2]),(0,h.U)(u=>(this.store.dispatch((0,E.uO)({payload:S.m6.SIGN_MESSAGE})),u)),(0,L.K)(u=>(this.handleErrorWithAlert("signMessageData",S.m6.SIGN_MESSAGE,"Sign Message Failed",r,u),(0,M._)(()=>new Error(this.extractErrorMessage(u))))))}))}verifyMessage(x,i){return this.lnImplementationUpdated.pipe((0,C.P)(r=>null!==r),(0,d.z)(r=>{let u=this.APIUrl+"/"+r+D.NZ.MESSAGE_API+"/verify";return"cln"===r&&(u=this.APIUrl+"/"+r+D.NZ.UTILITY_API+"/verify"),this.store.dispatch((0,E.ac)({payload:S.m6.VERIFY_MESSAGE})),this.httpClient.post(u,{message:x,signature:i}).pipe((0,R.R)(this.unSubs[3]),(0,h.U)(c=>(this.store.dispatch((0,E.uO)({payload:S.m6.VERIFY_MESSAGE})),c)),(0,L.K)(c=>(this.handleErrorWithAlert("verifyMessageData",S.m6.VERIFY_MESSAGE,"Verify Message Failed",u,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}bumpFee(x,i,r,u){return this.lnImplementationUpdated.pipe((0,C.P)(c=>null!==c),(0,d.z)(c=>{const v={txid:x,outputIndex:i};return r&&(v.targetConf=r),u&&(v.satPerByte=u),this.store.dispatch((0,E.ac)({payload:S.m6.BUMP_FEE})),this.httpClient.post(this.APIUrl+"/"+c+D.NZ.WALLET_API+"/bumpfee",v).pipe((0,R.R)(this.unSubs[4]),(0,h.U)(T=>(this.store.dispatch((0,E.uO)({payload:S.m6.BUMP_FEE})),this.snackBar.open("Successfully bumped the fee. Use the block explorer to verify transaction."),T)),(0,L.K)(T=>(this.handleErrorWithoutAlert("Bump Fee",S.m6.BUMP_FEE,T),(0,M._)(()=>new Error(this.extractErrorMessage(T))))))}))}labelUTXO(x,i,r=!0){return this.lnImplementationUpdated.pipe((0,C.P)(u=>null!==u),(0,d.z)(u=>{const c={txid:x,label:i,overwrite:r};return this.store.dispatch((0,E.ac)({payload:S.m6.LABEL_UTXO})),this.httpClient.post(this.APIUrl+"/"+u+D.NZ.WALLET_API+"/label",c).pipe((0,R.R)(this.unSubs[5]),(0,h.U)(v=>(this.store.dispatch((0,E.uO)({payload:S.m6.LABEL_UTXO})),v)),(0,L.K)(v=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LABEL_UTXO,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}))}leaseUTXO(x,i){return this.lnImplementationUpdated.pipe((0,C.P)(r=>null!==r),(0,d.z)(r=>{const u={txid:x,outputIndex:i};return this.store.dispatch((0,E.ac)({payload:S.m6.LEASE_UTXO})),this.httpClient.post(this.APIUrl+"/"+r+D.NZ.WALLET_API+"/lease",u).pipe((0,R.R)(this.unSubs[6]),(0,h.U)(c=>{this.store.dispatch((0,E.uO)({payload:S.m6.LEASE_UTXO})),this.store.dispatch((0,B.mC)()),this.store.dispatch((0,B.Ly)());const v=new Date(1e3*c.expiration),T=Math.round(v.getTime())-60*v.getTimezoneOffset();this.snackBar.open("The UTXO has been leased till "+new Date(T).toString().substring(4,21).replace(" ","/").replace(" ","/").toUpperCase()+".")}),(0,L.K)(c=>(this.handleErrorWithoutAlert("Lease UTXO",S.m6.LEASE_UTXO,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))}))}getForwardingHistory(x,i,r,u){if("LND"===x){const c={end_time:r,start_time:i};return this.store.dispatch((0,E.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.post(this.APIUrl+"/lnd"+D.NZ.SWITCH_API,c).pipe((0,R.R)(this.unSubs[7]),(0,w.M)(this.store.select(Z._f)),(0,d.z)(([v,T])=>{if(v.forwarding_events){const I=[...T.channels,...T.closedChannels];v.forwarding_events.forEach(y=>{var n,_;if(I&&I.length>0)for(let V=0;V(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/lnd"+D.NZ.SWITCH_API,v),(0,M._)(()=>new Error(this.extractErrorMessage(v))))))}return"CLN"===x?(this.store.dispatch((0,E.ac)({payload:S.m6.GET_FORWARDING_HISTORY})),this.httpClient.get(this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u).pipe((0,R.R)(this.unSubs[8]),(0,w.M)(this.store.select(Y.ZW)),(0,d.z)(([c,v])=>{const T=this.mapAliases(c,[...v.activeChannels,...v.pendingChannels,...v.inactiveChannels]);return this.store.dispatch((0,E.uO)({payload:S.m6.GET_FORWARDING_HISTORY})),(0,a.of)(T)}),(0,L.K)(c=>(this.handleErrorWithAlert("getForwardingHistoryData",S.m6.GET_FORWARDING_HISTORY,"Forwarding History Failed",this.APIUrl+"/cln"+D.NZ.CHANNELS_API+"/listForwards?status="+u+"&start="+i+"&end="+r,c),(0,M._)(()=>new Error(this.extractErrorMessage(c))))))):(0,a.of)({})}listNetworkNodes(x=""){return this.lnImplementationUpdated.pipe((0,C.P)(i=>null!==i),(0,d.z)(i=>(this.store.dispatch((0,E.ac)({payload:S.m6.LIST_NETWORK_NODES})),this.httpClient.get(this.APIUrl+"/"+i+D.NZ.NETWORK_API+"/listNodes"+x).pipe((0,R.R)(this.unSubs[9]),(0,d.z)(r=>(this.store.dispatch((0,E.uO)({payload:S.m6.LIST_NETWORK_NODES})),(0,a.of)(r))),(0,L.K)(r=>(this.handleErrorWithoutAlert("List Network Nodes",S.m6.LIST_NETWORK_NODES,r),(0,M._)(()=>this.extractErrorMessage(r))))))))}listConfigs(){return this.lnImplementationUpdated.pipe((0,C.P)(x=>null!==x),(0,d.z)(x=>(this.store.dispatch((0,E.ac)({payload:S.m6.GET_LIST_CONFIGS})),this.httpClient.get(this.APIUrl+"/"+x+D.NZ.UTILITY_API+"/listConfigs").pipe((0,R.R)(this.unSubs[10]),(0,d.z)(i=>(this.store.dispatch((0,E.uO)({payload:S.m6.GET_LIST_CONFIGS})),(0,a.of)(i))),(0,L.K)(i=>(this.handleErrorWithoutAlert("List Configurations",S.m6.GET_LIST_CONFIGS,i),(0,M._)(()=>this.extractErrorMessage(i))))))))}getOrUpdateFunderPolicy(x,i,r,u,c,v){return this.lnImplementationUpdated.pipe((0,C.P)(T=>null!==T),(0,d.z)(T=>{const I=x?{policy:x,policy_mod:i,lease_fee_base_msat:r,lease_fee_basis:u,channel_fee_max_base_msat:c,channel_fee_max_proportional_thousandths:v}:null;return this.store.dispatch((0,E.ac)({payload:S.m6.GET_FUNDER_POLICY})),this.httpClient.post(this.APIUrl+"/"+T+D.NZ.CHANNELS_API+"/funderUpdate",I).pipe((0,R.R)(this.unSubs[11]),(0,h.U)(y=>(this.store.dispatch((0,E.uO)({payload:S.m6.GET_FUNDER_POLICY})),I&&this.store.dispatch((0,E.jW)({payload:"Funder Policy Updated Successfully with Compact Lease: "+y.compact_lease+"!"})),y)),(0,L.K)(y=>(this.handleErrorWithoutAlert("Funder Policy",S.m6.GET_FUNDER_POLICY,y),(0,M._)(()=>new Error(this.extractErrorMessage(y))))))}))}extractErrorMessage(x,i="Unknown Error."){return this.titleCasePipe.transform(x.error.text&&"string"==typeof x.error.text&&x.error.text.includes('')?"API Route Does Not Exist.":x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.error&&"string"==typeof x.error.error.error.error.error?x.error.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&"string"==typeof x.error.error.error.error?x.error.error.error.error:x.error&&x.error.error&&x.error.error.error&&"string"==typeof x.error.error.error?x.error.error.error:x.error&&x.error.error&&"string"==typeof x.error.error?x.error.error:x.error&&"string"==typeof x.error?x.error:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.error&&x.error.error.error.error.message&&"string"==typeof x.error.error.error.error.message?x.error.error.error.error.message:x.error&&x.error.error&&x.error.error.error&&x.error.error.error.message&&"string"==typeof x.error.error.error.message?x.error.error.error.message:x.error&&x.error.error&&x.error.error.message&&"string"==typeof x.error.error.message?x.error.error.message:x.error&&x.error.message&&"string"==typeof x.error.message?x.error.message:x.message&&"string"==typeof x.message?x.message:i)}handleErrorWithoutAlert(x,i,r){r.error.text&&"string"==typeof r.error.text&&r.error.text.includes('')&&(r={status:403,error:{message:"API Route Does Not Exist."}}),this.logger.error("ERROR IN: "+x+"\n"+JSON.stringify(r)),401===r.status?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,E.uO)({payload:i})),this.store.dispatch((0,E.qi)({payload:{action:x,status:S.Bn.ERROR,statusCode:r.status.toString(),message:this.extractErrorMessage(r)}})))}handleErrorWithAlert(x,i,r,u,c){if(this.logger.error(c),401===c.status)this.logger.info("Redirecting to Login"),this.store.dispatch((0,E.ts)()),this.store.dispatch((0,E.kS)()),this.store.dispatch((0,E.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,E.uO)({payload:i}));const v=this.extractErrorMessage(c);this.store.dispatch((0,E.qR)({payload:{data:{type:"ERROR",alertTitle:r,message:{code:c.status?c.status:"Unknown Error",message:v,URL:u},component:k.H}}})),this.store.dispatch((0,E.qi)({payload:{action:x,status:S.Bn.ERROR,statusCode:c.status.toString(),message:v,URL:u}}))}}ngOnDestroy(){this.unSubs.forEach(x=>{x.next(null),x.complete()})}}return q.\u0275fac=function(x){return new(x||q)(ae.LFG(t.eN),ae.LFG(ee.yh),ae.LFG(ue.mQ),ae.LFG(ne.ux),ae.LFG(re.rS))},q.\u0275prov=ae.Yz7({token:q,factory:q.\u0275fac}),q})()},5043:(Be,K,p)=>{"use strict";p.d(K,{LG:()=>d,mQ:()=>C});var t=p(2340),e=p(5e3);const{isDebugMode:f}=t.NZ,M=()=>null;let C=(()=>{class R{invokeConsoleMethod(L,w){}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})(),d=(()=>{class R{get info(){return f?console.log.bind(console):M}get warn(){return f?console.warn.bind(console):M}get error(){return f?console.error.bind(console):M}invokeConsoleMethod(L,w){(console[L]||console.log||M).apply(console,[w])}}return R.\u0275fac=function(L){return new(L||R)},R.\u0275prov=e.Yz7({token:R,factory:R.\u0275fac}),R})()},9107:(Be,K,p)=>{"use strict";p.d(K,{W:()=>Z});var t=p(8138),e=p(1135),f=p(7579),M=p(9646),a=p(2843),C=p(2722),d=p(262),R=p(4004),h=p(2340),L=p(7731),w=p(1786),D=p(7861),S=p(5e3),k=p(5043),E=p(5620),B=p(62);let Z=(()=>{class Y{constructor(ee,ue,ne,re){this.httpClient=ee,this.logger=ue,this.store=ne,this.commonService=re,this.loopUrl="",this.swaps=[],this.swapsChanged=new e.X([]),this.unSubs=[new f.x,new f.x,new f.x,new f.x,new f.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,D.ac)({payload:L.m6.GET_LOOP_SWAPS})),this.loopUrl=h.T5+h.NZ.LOOP_API+"/swaps",this.httpClient.get(this.loopUrl).pipe((0,C.R)(this.unSubs[0])).subscribe({next:ee=>{this.store.dispatch((0,D.uO)({payload:L.m6.GET_LOOP_SWAPS})),this.swaps=ee,this.swapsChanged.next(this.swaps)},error:ee=>this.swapsChanged.error(this.handleErrorWithAlert(L.m6.GET_LOOP_SWAPS,this.loopUrl,ee))})}loopOut(ee,ue,ne,re,ge,q,_e,x,i,r){const u={amount:ee,targetConf:ne,swapRoutingFee:re,minerFee:ge,prepayRoutingFee:q,prepayAmt:_e,swapFee:x,swapPublicationDeadline:i,destAddress:r};return""!==ue&&(u.chanId=ue),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out",this.httpClient.post(this.loopUrl,u).pipe((0,d.K)(c=>this.handleErrorWithoutAlert("Loop Out for Channel: "+ue,L.m6.NO_SPINNER,c)))}getLoopOutTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ee=>this.handleErrorWithoutAlert("Loop Out Terms",L.m6.NO_SPINNER,ee)))}getLoopOutQuote(ee,ue,ne){let re=new t.LE;return re=re.append("targetConf",ue.toString()),re=re.append("swapPublicationDeadline",ne.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/quote/"+ee,this.store.dispatch((0,D.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,C.R)(this.unSubs[1]),(0,R.U)(ge=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_QUOTE})),ge)),(0,d.K)(ge=>this.handleErrorWithoutAlert("Loop Out Quote",L.m6.GET_QUOTE,ge)))}getLoopOutTermsAndQuotes(ee){let ue=new t.LE;return ue=ue.append("targetConf",ee.toString()),ue=ue.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/out/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ue}).pipe((0,C.R)(this.unSubs[2]),(0,R.U)(ne=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_TERMS_QUOTES})),ne)),(0,d.K)(ne=>(0,M.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,ne))))}loopIn(ee,ue,ne,re,ge){const q={amount:ee,swapFee:ue,minerFee:ne,lastHop:re,externalHtlc:ge};return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in",this.httpClient.post(this.loopUrl,q).pipe((0,d.K)(_e=>this.handleErrorWithoutAlert("Loop In",L.m6.NO_SPINNER,_e)))}getLoopInTerms(){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/terms",this.httpClient.get(this.loopUrl).pipe((0,d.K)(ee=>this.handleErrorWithoutAlert("Loop In Terms",L.m6.NO_SPINNER,ee)))}getLoopInQuote(ee,ue,ne){let re=new t.LE;return re=re.append("targetConf",ue.toString()),re=re.append("swapPublicationDeadline",ne.toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/quote/"+ee,this.store.dispatch((0,D.ac)({payload:L.m6.GET_QUOTE})),this.httpClient.get(this.loopUrl,{params:re}).pipe((0,C.R)(this.unSubs[3]),(0,R.U)(ge=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_QUOTE})),ge)),(0,d.K)(ge=>this.handleErrorWithoutAlert("Loop In Qoute",L.m6.GET_QUOTE,ge)))}getLoopInTermsAndQuotes(ee){let ue=new t.LE;return ue=ue.append("targetConf",ee.toString()),ue=ue.append("swapPublicationDeadline",((new Date).getTime()+18e5).toString()),this.loopUrl=h.T5+h.NZ.LOOP_API+"/in/termsAndQuotes",this.store.dispatch((0,D.ac)({payload:L.m6.GET_TERMS_QUOTES})),this.httpClient.get(this.loopUrl,{params:ue}).pipe((0,C.R)(this.unSubs[4]),(0,R.U)(ne=>(this.store.dispatch((0,D.uO)({payload:L.m6.GET_TERMS_QUOTES})),ne)),(0,d.K)(ne=>(0,M.of)(this.handleErrorWithAlert(L.m6.GET_TERMS_QUOTES,this.loopUrl,ne))))}getSwap(ee){return this.loopUrl=h.T5+h.NZ.LOOP_API+"/swap/"+ee,this.httpClient.get(this.loopUrl).pipe((0,d.K)(ue=>this.handleErrorWithoutAlert("Loop Get Swap for ID: "+ee,L.m6.NO_SPINNER,ue)))}handleErrorWithoutAlert(ee,ue,ne){let re="";return this.logger.error("ERROR IN: "+ee+"\n"+JSON.stringify(ne)),this.store.dispatch((0,D.uO)({payload:ue})),401===ne.status?(re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)())):503===ne.status?(re="Unable to Connect to Loop Server.",this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ne.status,message:"Unable to Connect to Loop Server",URL:ee},component:w.H}}}))):re=this.commonService.extractErrorMessage(ne),(0,a._)(()=>new Error(re))}handleErrorWithAlert(ee,ue,ne){let re="";if(this.logger.error(ne),this.store.dispatch((0,D.uO)({payload:ee})),401===ne.status)re="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,D.kS)());else if(503===ne.status)re="Unable to Connect to Loop Server.",setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:"ERROR",alertTitle:"Loop Not Connected",message:{code:ne.status,message:"Unable to Connect to Loop Server",URL:ue},component:w.H}}}))},100);else{re=this.commonService.extractErrorMessage(ne);const ge=ne.error&&ne.error.error&&ne.error.error.code?ne.error.error.code:ne.error&&ne.error.code?ne.error.code:ne.code?ne.code:ne.status;setTimeout(()=>{this.store.dispatch((0,D.qR)({payload:{data:{type:L.n_.ERROR,alertTitle:"ERROR",message:{code:ge,message:re,URL:ue},component:w.H}}}))},100)}return{message:re}}ngOnDestroy(){this.unSubs.forEach(ee=>{ee.next(null),ee.complete()})}}return Y.\u0275fac=function(ee){return new(ee||Y)(S.LFG(t.eN),S.LFG(k.mQ),S.LFG(E.yh),S.LFG(B.v))},Y.\u0275prov=S.Yz7({token:Y,factory:Y.\u0275fac}),Y})()},5986:(Be,K,p)=>{"use strict";p.d(K,{m:()=>f});var t=p(7579),e=p(5e3);let f=(()=>{class M{constructor(){this.sessionSub=new t.x}watchSession(){return this.sessionSub.asObservable()}getItem(C){return sessionStorage.getItem(C)}getAllItems(){return sessionStorage}setItem(C,d){sessionStorage.setItem(C,d),this.sessionSub.next(sessionStorage)}removeItem(C){sessionStorage.removeItem(C),this.sessionSub.next(sessionStorage)}clearAll(){sessionStorage.clear(),this.sessionSub.next(sessionStorage)}}return M.\u0275fac=function(C){return new(C||M)},M.\u0275prov=e.Yz7({token:M,factory:M.\u0275fac}),M})()},7998:(Be,K,p)=>{"use strict";p.d(K,{d:()=>k});var t=p(1135),e=p(7579),f=p(2722),M=p(930),a=p(8306),C=p(727),d=p(4707);const R={url:"",deserializer:E=>JSON.parse(E.data),serializer:E=>JSON.stringify(E)};class L extends e.u{constructor(B,Z){if(super(),this._socket=null,B instanceof a.y)this.destination=Z,this.source=B;else{const Y=this._config=Object.assign({},R);if(this._output=new e.x,"string"==typeof B)Y.url=B;else for(const ae in B)B.hasOwnProperty(ae)&&(Y[ae]=B[ae]);if(!Y.WebSocketCtor&&WebSocket)Y.WebSocketCtor=WebSocket;else if(!Y.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new d.t}}lift(B){const Z=new L(this._config,this.destination);return Z.operator=B,Z.source=this,Z}_resetState(){this._socket=null,this.source||(this.destination=new d.t),this._output=new e.x}multiplex(B,Z,Y){const ae=this;return new a.y(ee=>{try{ae.next(B())}catch(ne){ee.error(ne)}const ue=ae.subscribe({next:ne=>{try{Y(ne)&&ee.next(ne)}catch(re){ee.error(re)}},error:ne=>ee.error(ne),complete:()=>ee.complete()});return()=>{try{ae.next(Z())}catch(ne){ee.error(ne)}ue.unsubscribe()}})}_connectSocket(){const{WebSocketCtor:B,protocol:Z,url:Y,binaryType:ae}=this._config,ee=this._output;let ue=null;try{ue=Z?new B(Y,Z):new B(Y),this._socket=ue,ae&&(this._socket.binaryType=ae)}catch(re){return void ee.error(re)}const ne=new C.w0(()=>{this._socket=null,ue&&1===ue.readyState&&ue.close()});ue.onopen=re=>{const{_socket:ge}=this;if(!ge)return ue.close(),void this._resetState();const{openObserver:q}=this._config;q&&q.next(re);const _e=this.destination;this.destination=M.Lv.create(x=>{if(1===ue.readyState)try{const{serializer:i}=this._config;ue.send(i(x))}catch(i){this.destination.error(i)}},x=>{const{closingObserver:i}=this._config;i&&i.next(void 0),x&&x.code?ue.close(x.code,x.reason):ee.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),this._resetState()},()=>{const{closingObserver:x}=this._config;x&&x.next(void 0),ue.close(),this._resetState()}),_e&&_e instanceof d.t&&ne.add(_e.subscribe(this.destination))},ue.onerror=re=>{this._resetState(),ee.error(re)},ue.onclose=re=>{ue===this._socket&&this._resetState();const{closeObserver:ge}=this._config;ge&&ge.next(re),re.wasClean?ee.complete():ee.error(re)},ue.onmessage=re=>{try{const{deserializer:ge}=this._config;ee.next(ge(re))}catch(ge){ee.error(ge)}}}_subscribe(B){const{source:Z}=this;return Z?Z.subscribe(B):(this._socket||this._connectSocket(),this._output.subscribe(B),B.add(()=>{const{_socket:Y}=this;0===this._output.observers.length&&(Y&&(1===Y.readyState||0===Y.readyState)&&Y.close(),this._resetState())}),B)}unsubscribe(){const{_socket:B}=this;B&&(1===B.readyState||0===B.readyState)&&B.close(),this._resetState(),super.unsubscribe()}}var w=p(5e3),D=p(5043),S=p(5986);let k=(()=>{class E{constructor(Z,Y){this.logger=Z,this.sessionService=Y,this.clWSMessages=new t.X(null),this.eclWSMessages=new t.X(null),this.lndWSMessages=new t.X(null),this.wsUrl="",this.nodeIndex="",this.RETRY_SECONDS=5,this.RECONNECT_TIMEOUT=null,this.unSubs=[new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x,new e.x]}connectWebSocket(Z,Y){(!this.socket||this.socket.closed)&&(this.wsUrl=Z,this.nodeIndex=Y,this.logger.info("Websocket Url: "+this.wsUrl),this.socket=new L({url:Z,protocol:[this.sessionService.getItem("token")||"",Y]}),this.subscribeToMessages())}reconnectOnError(){this.RECONNECT_TIMEOUT||this.socket&&!this.socket.closed||(this.RETRY_SECONDS=this.RETRY_SECONDS>=160?160:2*this.RETRY_SECONDS,this.RECONNECT_TIMEOUT=setTimeout(()=>{this.logger.info("Reconnecting Web Socket."),this.connectWebSocket(this.wsUrl,this.nodeIndex),this.RECONNECT_TIMEOUT=null},1e3*this.RETRY_SECONDS))}closeConnection(){this.socket&&(this.socket.complete(),this.socket=null)}subscribeToMessages(){var Z;null===(Z=this.socket)||void 0===Z||Z.pipe((0,f.R)(this.unSubs[1])).subscribe({next:Y=>{if((Y="string"==typeof Y?JSON.parse(Y):Y).error)this.handleError(Y.error);else switch(this.logger.info("Next Message from WS:"+JSON.stringify(Y)),Y.source){case"LND":this.lndWSMessages.next(Y);break;case"CLN":this.clWSMessages.next(Y);break;case"ECL":this.eclWSMessages.next(Y)}},error:Y=>this.handleError(Y),complete:()=>{this.logger.info("Web Socket Closed")}})}handleError(Z){this.logger.error(Z),this.clWSMessages.error(Z),this.eclWSMessages.error(Z),this.lndWSMessages.error(Z),this.reconnectOnError()}ngOnDestroy(){this.closeConnection(),this.clWSMessages.next(null),this.clWSMessages.complete(),this.eclWSMessages.next(null),this.eclWSMessages.complete(),this.lndWSMessages.next(null),this.lndWSMessages.complete()}}return E.\u0275fac=function(Z){return new(Z||E)(w.LFG(D.mQ),w.LFG(S.m))},E.\u0275prov=w.Yz7({token:E,factory:E.\u0275fac}),E})()},8750:(Be,K,p)=>{"use strict";p.d(K,{m:()=>Bn});var t=p(9808),e=p(1402),f=p(3075),M=p(8138),a=p(9546),C=p(5e3),d=p(3270),R=p(3322),h=p(7093);p(3191);let Qe=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[d.IR]]}),It})(),se=(()=>{class It{constructor(vt,jt){(0,t.PM)(jt)&&!vt&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(vt,jt=[]){return{ngModule:It,providers:vt.serverLoaded?[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),vt)},{provide:d.Bs,useValue:jt,multi:!0},{provide:d.wY,useValue:!0}]:[{provide:d.WU,useValue:Object.assign(Object.assign({},d.g5),vt)},{provide:d.Bs,useValue:jt,multi:!0}]}}}return It.\u0275fac=function(vt){return new(vt||It)(C.LFG(d.wY),C.LFG(C.Lbi))},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[h.ae,R.aT,Qe],h.ae,R.aT,Qe]}),It})();var Xe=p(5113),xt=p(508),Bt=p(8966),bi=p(1079),Si=p(7544),Xi=p(7423);p(449),p(5664);let In=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[xt.BQ,xt.si],xt.BQ]}),It})();var Rn=p(9224),tr=p(7446),gn=p(6856),Ti=p(1125),Ki=p(3954),wn=p(5245),qn=p(7531),sr=p(4623),ha=p(2181),_a=p(6087),Sr=p(5899),fa=p(773),zr=p(9814),ta=p(4107),ia=p(2638),na=p(2368);p(1159),p(6360),p(925),p(727),p(226);let ba=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({imports:[[t.ez,xt.BQ],xt.BQ]}),It})();var or=p(7261),aa=p(4847),Ha=p(5615),ir=p(2075),sa=p(3251),Yr=p(4594),Nr=p(7238),Br=p(149),Sa=p(6688),Xa=p(1210),Xn=p(159),$e=p(8129),Et=p(9776);let Je=(()=>{class It extends Et.Xj{_createContainer(){const vt=document.createElement("div");vt.classList.add("cdk-overlay-container"),document.getElementById("rtl-container").appendChild(vt),this._containerElement=vt}}return It.\u0275fac=function(){let ci;return function(jt){return(ci||(ci=C.n5z(It)))(jt||It)}}(),It.\u0275prov=C.Yz7({token:It,factory:It.\u0275fac}),It})();var kt=p(5043),Xt=p(7731),Mi=p(9445);const Pi={suppressScrollX:!1,suppressScrollY:!1};let en=(()=>{class It extends xt.LF{format(vt,jt){if("input"===jt){let Oi=vt.getDate().toString();return Oi=+Oi<10?"0"+Oi:Oi,Oi+"/"+Xt.gg[vt.getMonth()].name.toUpperCase()+"/"+vt.getFullYear()}return Xt.gg[vt.getMonth()].name.toUpperCase()+" "+vt.getFullYear()}}return It.\u0275fac=function(){let ci;return function(jt){return(ci||(ci=C.n5z(It)))(jt||It)}}(),It.\u0275prov=C.Yz7({token:It,factory:It.\u0275fac}),It})();const nr={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 Bn=(()=>{class It{}return It.\u0275fac=function(vt){return new(vt||It)},It.\u0275mod=C.oAB({type:It}),It.\u0275inj=C.cJS({providers:[{provide:kt.mQ,useClass:kt.LG},{provide:$e.op,useValue:Pi},{provide:or.Ve,useValue:{duration:2e3,verticalPosition:"bottom",panelClass:"rtl-snack-bar"}},{provide:Bt.Bq,useValue:{hasBackdrop:!0,autoFocus:!0,disableClose:!0,role:"dialog",width:"45%"}},{provide:xt._A,useClass:en},{provide:xt.sG,useValue:nr},{provide:Et.Xj,useClass:Je},t.JJ,t.rS,t.uU,Mi.al,Mi.h9,Mi.D3,Mi.i1],imports:[[t.ez,f.u5,f.UX,a.uH,se,Xe.xu,Bt.Is,Xi.ot,In,Rn.QW,tr.p9,Ti.To,Ki.N6,gn.FA,xt.XK,wn.Ps,qn.c,sr.ie,ha.Tx,Sr.Cv,fa.Cq,zr.Fk,Br.dp,Sa.Hi,ta.LD,ia.SJ,na.rP,aa.JX,ir.p0,Yr.g0,Nr.AV,Si.g,_a.TU,Ha.T5,ba,sa.Nh,or.ZX,bi.Bb,Xa.a4,Xn.OF,e.Bz,M.JF,$e.Xd],f.u5,f.UX,a.uH,se,Xe.xu,Bt.Is,Xi.ot,In,Rn.QW,tr.p9,Ti.To,Ki.N6,gn.FA,xt.XK,wn.Ps,qn.c,sr.ie,ha.Tx,Sr.Cv,fa.Cq,zr.Fk,Br.dp,Sa.Hi,ta.LD,ia.SJ,na.rP,aa.JX,ir.p0,Yr.g0,Nr.AV,Si.g,_a.TU,Ha.T5,ba,sa.Nh,or.ZX,bi.Bb,Xa.a4,Xn.OF,$e.Xd]}),It})()},7861:(Be,K,p)=>{"use strict";p.d(K,{M6:()=>w,Q2:()=>E,QO:()=>c,Tm:()=>ge,Uy:()=>ne,XT:()=>ee,_V:()=>_e,ac:()=>R,c0:()=>r,c1:()=>D,dc:()=>y,ey:()=>ae,fk:()=>re,jS:()=>q,jW:()=>d,kS:()=>i,lC:()=>M,qR:()=>L,qi:()=>a,tj:()=>k,ts:()=>C,tw:()=>Z,uO:()=>h,vI:()=>Y,x4:()=>T,yb:()=>S,zQ:()=>ue});var t=p(5620),e=p(7731);(0,t.PH)(e.pg.VOID);const M=(0,t.PH)(e.pg.SET_API_URL_ECL,(0,t.Ky)()),a=(0,t.PH)(e.pg.UPDATE_API_CALL_STATUS_ROOT,(0,t.Ky)()),C=(0,t.PH)(e.pg.CLOSE_ALL_DIALOGS),d=(0,t.PH)(e.pg.OPEN_SNACK_BAR,(0,t.Ky)()),R=(0,t.PH)(e.pg.OPEN_SPINNER,(0,t.Ky)()),h=(0,t.PH)(e.pg.CLOSE_SPINNER,(0,t.Ky)()),L=(0,t.PH)(e.pg.OPEN_ALERT,(0,t.Ky)()),w=(0,t.PH)(e.pg.CLOSE_ALERT,(0,t.Ky)()),D=(0,t.PH)(e.pg.OPEN_CONFIRMATION,(0,t.Ky)()),S=(0,t.PH)(e.pg.CLOSE_CONFIRMATION,(0,t.Ky)()),k=(0,t.PH)(e.pg.SHOW_PUBKEY),E=(0,t.PH)(e.pg.FETCH_CONFIG,(0,t.Ky)()),Z=((0,t.PH)(e.pg.SHOW_CONFIG,(0,t.Ky)()),(0,t.PH)(e.pg.UPDATE_SELECTED_NODE_OPTIONS)),Y=(0,t.PH)(e.pg.RESET_ROOT_STORE,(0,t.Ky)()),ae=(0,t.PH)(e.pg.FETCH_RTL_CONFIG),ee=(0,t.PH)(e.pg.SET_RTL_CONFIG,(0,t.Ky)()),ue=(0,t.PH)(e.pg.SAVE_SETTINGS,(0,t.Ky)()),ne=(0,t.PH)(e.pg.TWO_FA_SAVE_SETTINGS,(0,t.Ky)()),re=(0,t.PH)(e.pg.SET_SELECTED_NODE,(0,t.Ky)()),ge=(0,t.PH)(e.pg.UPDATE_ROOT_NODE_SETTINGS,(0,t.Ky)()),q=(0,t.PH)(e.pg.UPDATE_SERVICE_SETTINGS,(0,t.Ky)()),_e=(0,t.PH)(e.pg.SET_NODE_DATA,(0,t.Ky)()),i=((0,t.PH)(e.pg.SAVE_SSO,(0,t.Ky)()),(0,t.PH)(e.pg.LOGOUT)),r=(0,t.PH)(e.pg.RESET_PASSWORD,(0,t.Ky)()),c=((0,t.PH)(e.pg.RESET_PASSWORD_RES,(0,t.Ky)()),(0,t.PH)(e.pg.IS_AUTHORIZED,(0,t.Ky)())),T=((0,t.PH)(e.pg.IS_AUTHORIZED_RES,(0,t.Ky)()),(0,t.PH)(e.pg.LOGIN,(0,t.Ky)())),y=((0,t.PH)(e.pg.VERIFY_TWO_FA,(0,t.Ky)()),(0,t.PH)(e.pg.FETCH_FILE,(0,t.Ky)()));(0,t.PH)(e.pg.SHOW_FILE,(0,t.Ky)())},3093:(Be,K,p)=>{"use strict";p.d(K,{V:()=>pn});var t=p(6642),e=p(7579),f=p(9646),M=p(8306),a=p(4128),C=p(4004),d=p(5698),R=p(1365),h=p(5577),L=p(262),w=p(2722),D=p(2340),S=p(7731),k=p(8966),E=p(5e3),B=p(7093),Z=p(773);let Y=(()=>{class ii{constructor(st,Rt){this.dialogRef=st,this.data=Rt}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-spinner-dialog"]],decls:5,vars:1,consts:[[1,"spinner-container"],["fxLayout","column","fxLayoutAlign","center center",1,"spinner-circle"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E._UZ(2,"mat-spinner"),E.TgZ(3,"h1"),E._uU(4),E.qZA()()()),2&st&&(E.xp6(4),E.Oqu(Rt.data.titleMessage))},directives:[B.xw,B.Wh,Z.Ou],styles:[".spinner-container[_ngcontent-%COMP%]{position:absolute;left:40%;top:35%}"]}),ii})();var ae=p(5043),ee=p(7261),ue=p(62),ne=p(9808),re=p(3322),ge=p(159),q=p(9224),_e=p(7423),x=p(8129),i=p(5245),r=p(3390),u=p(6895),c=p(4834);const v=["scrollContainer"];function T(ii,Ri){if(1&ii&&E._UZ(0,"qr-code",15),2&ii){const st=E.oxw();E.Q6J("value",st.showQRField)("size",200)("errorCorrectionLevel","L")}}function I(ii,Ri){1&ii&&E.GkF(0)}const y=function(ii){return{"h-40":ii}};function n(ii,Ri){if(1&ii&&(E.ynx(0),E.TgZ(1,"mat-card-content",16,17),E.YNc(3,I,1,0,"ng-container",18),E.qZA(),E.BQk()),2&ii){const st=E.oxw(),Rt=E.MAs(20);E.xp6(1),E.Q6J("ngClass",E.VKq(2,y,st.data.scrollable)),E.xp6(2),E.Q6J("ngTemplateOutlet",Rt)}}function _(ii,Ri){1&ii&&E.GkF(0)}function V(ii,Ri){if(1&ii&&(E.ynx(0),E.TgZ(1,"mat-card-content",19),E.YNc(2,_,1,0,"ng-container",18),E.qZA(),E.BQk()),2&ii){E.oxw();const st=E.MAs(20);E.xp6(2),E.Q6J("ngTemplateOutlet",st)}}function N(ii,Ri){1&ii&&(E.TgZ(0,"mat-icon",23),E._uU(1,"arrow_downward"),E.qZA())}function H(ii,Ri){1&ii&&(E.TgZ(0,"mat-icon",23),E._uU(1,"arrow_upward"),E.qZA())}function X(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"div",20)(1,"button",21),E.NdJ("click",function(){return E.CHM(st),E.oxw().onScroll()}),E.YNc(2,N,2,0,"mat-icon",22),E.YNc(3,H,2,0,"mat-icon",22),E.qZA()()}if(2&ii){const st=E.oxw();E.xp6(2),E.Q6J("ngIf","DOWN"===st.scrollDirection),E.xp6(1),E.Q6J("ngIf","UP"===st.scrollDirection)}}function he(ii,Ri){1&ii&&(E.TgZ(0,"button",24),E._uU(1,"OK"),E.qZA()),2&ii&&E.Q6J("mat-dialog-close",!1)}function be(ii,Ri){1&ii&&(E.TgZ(0,"button",25),E._uU(1,"Close"),E.qZA()),2&ii&&E.Q6J("mat-dialog-close",!1)}function Pe(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",26),E.NdJ("copied",function(Wt){return E.CHM(st),E.oxw().onCopyField(Wt)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.Q6J("payload",st.showCopyField),E.xp6(1),E.hij("Copy ",st.showCopyName,"")}}function Ee(ii,Ri){1&ii&&(E.TgZ(0,"button",25),E._uU(1,"Close"),E.qZA()),2&ii&&E.Q6J("mat-dialog-close",!1)}function j(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",26),E.NdJ("copied",function(Wt){return E.CHM(st),E.oxw().onCopyField(Wt)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.Q6J("payload",st.showQRField),E.xp6(1),E.hij("Copy ",st.showQRName,"")}}function Ve(ii,Ri){if(1&ii&&E._UZ(0,"qr-code",15),2&ii){const st=E.oxw(2);E.Q6J("value",st.showQRField)("size",200)("errorCorrectionLevel","L")}}function Me(ii,Ri){if(1&ii&&(E.TgZ(0,"p",32),E._uU(1),E.qZA()),2&ii){const st=E.oxw(2);E.xp6(1),E.Oqu(st.data.titleMessage)}}function J(ii,Ri){1&ii&&E._UZ(0,"span",46),2&ii&&E.Q6J("innerHTML",Ri.$implicit,E.oJD)}function Ie(ii,Ri){if(1&ii&&(E.ynx(0),E.YNc(1,J,1,1,"span",45),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Q6J("ngForOf",st.value)}}function ut(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"date"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,1e3*st.value,"dd/MMM/y HH:mm"))}}function Oe(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"number"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,st.value,st.digitsInfo?st.digitsInfo:"1.0-3"))}}function we(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(st.value?"True":"False")}}function ce(ii,Ri){1&ii&&(E.TgZ(0,"mat-icon",51),E._uU(1,"info"),E.qZA())}const Te=function(ii){return{"failed-status":ii}};function xe(ii,Ri){if(1&ii&&(E.TgZ(0,"p",49),E._uU(1),E.YNc(2,ce,2,0,"mat-icon",50),E.qZA()),2&ii){const st=E.oxw(3).$implicit,Rt=E.oxw(4);E.Q6J("ngClass",E.VKq(3,Te,st.value===Rt.LoopStateEnum.FAILED)),E.xp6(1),E.hij(" ",st.value," "),E.xp6(1),E.Q6J("ngIf",st.value===Rt.LoopStateEnum.FAILED)}}function W(ii,Ri){if(1&ii&&E._uU(0),2&ii){const st=E.oxw(3).$implicit;E.Oqu(st.value)}}function te(ii,Ri){if(1&ii&&(E.ynx(0),E.YNc(1,xe,3,5,"p",47),E.YNc(2,W,1,1,"ng-template",null,48,E.W1O),E.BQk()),2&ii){const st=E.MAs(3),Rt=E.oxw(2).$implicit,Wt=E.oxw(4);E.xp6(1),E.Q6J("ngIf","SWAP"===Wt.data.openedBy&&"state"===Rt.key)("ngIfElse",st)}}function Ce(ii,Ri){if(1&ii&&(E.TgZ(0,"span")(1,"span",42),E.YNc(2,Ie,2,1,"ng-container",43),E.YNc(3,ut,3,4,"ng-container",43),E.YNc(4,Oe,3,4,"ng-container",43),E.YNc(5,we,2,1,"ng-container",43),E.YNc(6,te,4,2,"ng-container",44),E.qZA()()),2&ii){const st=E.oxw().$implicit,Rt=E.oxw(4);E.xp6(1),E.Q6J("ngSwitch",st.type),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.ARRAY),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.DATE_TIME),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.NUMBER),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.BOOLEAN)}}function fe(ii,Ri){1&ii&&(E.TgZ(0,"span",52),E._uU(1,"\xa0"),E.qZA())}function Q(ii,Ri){if(1&ii&&(E.TgZ(0,"div",37)(1,"h4",38),E._uU(2),E.qZA(),E.YNc(3,Ce,7,5,"span",39),E.YNc(4,fe,2,0,"ng-template",null,40,E.W1O),E._UZ(6,"mat-divider",41),E.qZA()),2&ii){const st=Ri.$implicit,Rt=E.MAs(5);E.s9C("fxFlex.gt-md",st.width),E.xp6(2),E.Oqu(st.title),E.xp6(1),E.Q6J("ngIf",st&&(!!st.value||0===st.value))("ngIfElse",Rt)}}function pt(ii,Ri){if(1&ii&&(E.TgZ(0,"div")(1,"div",35),E.YNc(2,Q,7,4,"div",36),E.qZA()()),2&ii){const st=Ri.$implicit;E.xp6(2),E.Q6J("ngForOf",st)}}function tt(ii,Ri){if(1&ii&&(E.TgZ(0,"div",33),E.YNc(1,pt,3,1,"div",34),E.qZA()),2&ii){const st=E.oxw(2);E.xp6(1),E.Q6J("ngForOf",st.messageObjs)}}const Dt=function(ii){return{"display-none":ii}};function di(ii,Ri){if(1&ii&&(E.TgZ(0,"div",27)(1,"div",28),E.YNc(2,Ve,1,3,"qr-code",2),E.qZA(),E.TgZ(3,"div",29),E.YNc(4,Me,2,1,"p",30),E.YNc(5,tt,2,1,"div",31),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("ngClass",E.VKq(4,Dt,""===st.showQRField||st.screenSize!==st.screenSizeEnum.XS&&st.screenSize!==st.screenSizeEnum.SM)),E.xp6(1),E.Q6J("ngIf",""!==st.showQRField),E.xp6(2),E.Q6J("ngIf",st.data.titleMessage),E.xp6(1),E.Q6J("ngIf",(null==st.messageObjs?null:st.messageObjs.length)>0)}}let Yt=(()=>{class ii{constructor(st,Rt,Wt,fi,Ei,Ni){this.dialogRef=st,this.data=Rt,this.logger=Wt,this.snackBar=fi,this.commonService=Ei,this.renderer=Ni,this.LoopStateEnum=S.Fq,this.showQRField="",this.showQRName="",this.showCopyName="",this.showCopyField="",this.errorMessage="",this.messageObjs=[],this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.screenSize="",this.screenSizeEnum=S.cu,this.scrollDirection="DOWN",this.shouldScroll=!0}set container(st){st&&(this.scrollContainer=st,this.scrollContainer&&this.scrollContainer.nativeElement&&(this.unlistenEnd=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-end",Rt=>{this.scrollDirection="UP"}),this.unlistenStart=this.renderer.listen(this.scrollContainer.nativeElement,"ps-y-reach-start",Rt=>{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===S.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(st){this.snackBar.open((this.showQRName?this.showQRName:this.showCopyName)+" copied."),this.logger.info("Copied Text: "+st)}onClose(){this.dialogRef.close(!1)}ngOnDestroy(){this.unlistenStart&&this.unlistenStart(),this.unlistenEnd&&this.unlistenEnd()}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ae.mQ),E.Y36(ee.ux),E.Y36(ue.v),E.Y36(E.Qsj))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-alert-message"]],viewQuery:function(st,Rt){if(1&st&&E.Gf(v,5),2&st){let Wt;E.iGM(Wt=E.CRH())&&(Rt.container=Wt.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","ml-1",3,"ngClass"],[3,"value","size","errorCorrectionLevel",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-button","","color","primary","type","submit","default","",3,"mat-dialog-close",4,"ngIf"],["class","mr-1","fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",3,"mat-dialog-close",4,"ngIf"],["autoFocus","","mat-button","","color","primary","tabindex","2","type","submit","rtlClipboard","",3,"payload","copied",4,"ngIf"],["contentBlock",""],[3,"value","size","errorCorrectionLevel"],[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-button","","color","primary","type","submit","default","",3,"mat-dialog-close"],["fxLayoutAlign","center center","tabindex","1","mat-button","","color","primary","type","button","default","",1,"mr-1",3,"mat-dialog-close"],["autoFocus","","mat-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","column","fxFlex","100"],["fxLayoutAlign","start center","class","pb-2",4,"ngIf"],["fxFlex","100",4,"ngIf"],["fxLayoutAlign","start center",1,"pb-2"],["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(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E.YNc(2,T,1,3,"qr-code",2),E.qZA(),E.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5)(6,"span",6),E._uU(7),E.qZA()(),E.TgZ(8,"button",7),E.NdJ("click",function(){return Rt.onClose()}),E._uU(9,"X"),E.qZA()(),E.YNc(10,n,4,4,"ng-container",8),E.YNc(11,V,3,1,"ng-container",8),E.YNc(12,X,4,2,"div",9),E.TgZ(13,"div",10),E.YNc(14,he,2,1,"button",11),E.YNc(15,be,2,1,"button",12),E.YNc(16,Pe,2,2,"button",13),E.YNc(17,Ee,2,1,"button",12),E.YNc(18,j,2,2,"button",13),E.qZA()()(),E.YNc(19,di,6,6,"ng-template",null,14,E.W1O)),2&st&&(E.xp6(1),E.Q6J("ngClass",E.VKq(12,Dt,""===Rt.showQRField||Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM)),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField),E.xp6(1),E.Q6J("fxFlex",""===Rt.showQRField||Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM?"100":"70"),E.xp6(4),E.Oqu(Rt.data.alertTitle||Rt.alertTypeEnum[Rt.data.type]),E.xp6(3),E.Q6J("ngIf",Rt.data.scrollable),E.xp6(1),E.Q6J("ngIf",!Rt.data.scrollable),E.xp6(1),E.Q6J("ngIf",Rt.data.scrollable&&Rt.shouldScroll),E.xp6(2),E.Q6J("ngIf",(!Rt.showQRField||""===Rt.showQRField)&&""===Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showCopyName),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField),E.xp6(1),E.Q6J("ngIf",""!==Rt.showQRField))},directives:[B.xw,B.Wh,B.yH,ne.mk,re.oO,ne.O5,ge.uU,q.dk,_e.lW,q.dn,x.$V,ne.tP,i.Hw,r.h,k.ZT,u.y,ne.sg,ne.RF,ne.n9,ne.ED,c.d],pipes:[ne.uU,ne.JJ],styles:[".display-block[_ngcontent-%COMP%]{display:block}"]}),ii})();var Zt=p(2687),ui=p(7861),Ot=p(5620),Nt=p(3075),gt=p(9546),it=p(7322),bt=p(7531),ti=p(6534);function Qt(ii,Ri){if(1&ii&&(E.TgZ(0,"div",18),E._UZ(1,"fa-icon",19),E.TgZ(2,"span"),E._uU(3),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("icon",st.faExclamationTriangle),E.xp6(2),E.Oqu(st.warningMessage)}}function Re(ii,Ri){if(1&ii&&(E.TgZ(0,"div",20),E._UZ(1,"fa-icon",19),E.TgZ(2,"span"),E._uU(3),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("icon",st.faInfoCircle),E.xp6(2),E.Oqu(st.informationMessage)}}function ke(ii,Ri){if(1&ii&&(E.TgZ(0,"p",21),E._uU(1),E.qZA()),2&ii){const st=E.oxw();E.xp6(1),E.Oqu(st.data.titleMessage)}}function de(ii,Ri){1&ii&&E._UZ(0,"div",36),2&ii&&E.Q6J("innerHTML",Ri.$implicit,E.oJD)}function ye(ii,Ri){if(1&ii&&(E.ynx(0,34),E.YNc(1,de,1,1,"div",35),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Q6J("ngForOf",st.value)}}function ht(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"date"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,1e3*st.value,"dd/MMM/y HH:mm"))}}function mt(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.ALo(2,"number"),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(E.xi3(2,1,st.value,"1.0-3"))}}function Ft(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(!0===st.value?"True":"False")}}function nt(ii,Ri){if(1&ii&&(E.ynx(0),E._uU(1),E.BQk()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.Oqu(st.value)}}function He(ii,Ri){if(1&ii&&(E.TgZ(0,"span")(1,"span",30),E.YNc(2,ye,2,1,"ng-container",31),E.YNc(3,ht,3,4,"ng-container",32),E.YNc(4,mt,3,4,"ng-container",32),E.YNc(5,Ft,2,1,"ng-container",32),E.YNc(6,nt,2,1,"ng-container",33),E.qZA()()),2&ii){const st=E.oxw().$implicit,Rt=E.oxw(3);E.xp6(1),E.Q6J("ngSwitch",st.type),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.ARRAY),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.DATE_TIME),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.NUMBER),E.xp6(1),E.Q6J("ngSwitchCase",Rt.dataTypeEnum.BOOLEAN)}}function rt(ii,Ri){1&ii&&(E.TgZ(0,"span",37),E._uU(1,"\xa0"),E.qZA())}function et(ii,Ri){if(1&ii&&(E.TgZ(0,"div",25)(1,"h4",26),E._uU(2),E.qZA(),E.YNc(3,He,7,5,"span",27),E.YNc(4,rt,2,0,"ng-template",null,28,E.W1O),E._UZ(6,"mat-divider",29),E.qZA()),2&ii){const st=Ri.$implicit,Rt=E.MAs(5);E.s9C("fxFlex.gt-md",st.width),E.xp6(2),E.Oqu(st.title),E.xp6(1),E.Q6J("ngIf",st&&(!!st.value||0===st.value))("ngIfElse",Rt)}}function Ae(ii,Ri){if(1&ii&&(E.TgZ(0,"div")(1,"div",23),E.YNc(2,et,7,4,"div",24),E.qZA()()),2&ii){const st=Ri.$implicit;E.xp6(2),E.Q6J("ngForOf",st)}}function Ge(ii,Ri){if(1&ii&&(E.TgZ(0,"div"),E.YNc(1,Ae,3,1,"div",22),E.qZA()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("ngForOf",st.messageObjs)}}function ot(ii,Ri){if(1&ii&&(E.TgZ(0,"p",21),E._uU(1),E.qZA()),2&ii){const st=E.oxw(2);E.xp6(1),E.Oqu(st.data.titleMessage)}}function lt(ii,Ri){if(1&ii&&(E.TgZ(0,"mat-error"),E._uU(1),E.qZA()),2&ii){const st=E.oxw(2).$implicit;E.xp6(1),E.hij("",st.placeholder," is required.")}}function Ct(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"mat-form-field",41)(1,"input",42),E.NdJ("ngModelChange",function(Wt){return E.CHM(st),E.oxw().$implicit.inputValue=Wt}),E.ALo(2,"lowercase"),E.qZA(),E.YNc(3,lt,2,1,"mat-error",11),E.TgZ(4,"mat-hint"),E._uU(5),E.qZA()()}if(2&ii){const st=E.oxw(),Rt=st.$implicit,Wt=st.index;E.Q6J("fxFlex",Rt.width),E.xp6(1),E.MGl("name","input",Wt,""),E.Q6J("autoFocus",0===Wt)("placeholder",Rt.placeholder)("min",Rt.min)("step",Rt.step)("type",E.lcZ(2,11,Rt.inputType))("ngModel",Rt.inputValue)("tabindex",Wt+1),E.xp6(2),E.Q6J("ngIf",!Rt.inputValue),E.xp6(2),E.Oqu(Rt.hintFunction?Rt.hintFunction(Rt.inputValue):Rt.hintText)}}function mi(ii,Ri){if(1&ii&&(E.ynx(0),E.YNc(1,Ct,6,13,"mat-form-field",40),E.BQk()),2&ii){const st=Ri.$implicit,Rt=E.oxw(2);E.xp6(1),E.Q6J("ngIf",!st.advancedField||Rt.showAdvanced)}}function Jt(ii,Ri){if(1&ii&&(E.TgZ(0,"div",38),E.YNc(1,ot,2,1,"p",10),E.TgZ(2,"div",39),E.YNc(3,mi,2,1,"ng-container",22),E.qZA()()),2&ii){const st=E.oxw();E.xp6(1),E.Q6J("ngIf",st.data.titleMessage),E.xp6(2),E.Q6J("ngForOf",st.getInputs)}}function ei(ii,Ri){1&ii&&(E.TgZ(0,"p"),E._uU(1,"Show Advanced"),E.qZA())}function Qi(ii,Ri){1&ii&&(E.TgZ(0,"p"),E._uU(1,"Hide Advanced"),E.qZA())}function hi(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",43),E.NdJ("click",function(){return E.CHM(st),E.oxw().onShowAdvanced()}),E.YNc(1,ei,2,0,"p",27),E.YNc(2,Qi,2,0,"ng-template",null,44,E.W1O),E.qZA()}if(2&ii){const st=E.MAs(3),Rt=E.oxw();E.xp6(1),E.Q6J("ngIf",!Rt.showAdvanced)("ngIfElse",st)}}function si(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",45),E.NdJ("click",function(){E.CHM(st);const Wt=E.oxw();return Wt.onClose(Wt.getInputs)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.xp6(1),E.Oqu(st.yesBtnText)}}function Ji(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"button",46),E.NdJ("click",function(){return E.CHM(st),E.oxw().onClose(!0)}),E._uU(1),E.qZA()}if(2&ii){const st=E.oxw();E.xp6(1),E.Oqu(st.yesBtnText)}}let Zi=(()=>{class ii{constructor(st,Rt,Wt,fi){this.dialogRef=st,this.data=Rt,this.logger=Wt,this.store=fi,this.faInfoCircle=Zt.sqG,this.faExclamationTriangle=Zt.eHv,this.informationMessage="",this.warningMessage="",this.noBtnText="No",this.yesBtnText="Yes",this.messageObjs=[],this.flgShowInput=!1,this.hasAdvanced=!1,this.alertTypeEnum=S.n_,this.dataTypeEnum=S.Gi,this.getInputs=[{placeholder:"",inputType:"text",inputValue:"",hintText:"",hintFunction:null,advancedField:!1}],this.showAdvanced=!1}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.hasAdvanced=!!this.data.hasAdvanced&&this.data.hasAdvanced,this.messageObjs=this.data.message,this.data.type===S.n_.ERROR&&!this.data.message&&!this.data.titleMessage&&this.messageObjs.length<=0&&(this.data.titleMessage="Please Check Server Connection")}onShowAdvanced(){this.showAdvanced=!this.showAdvanced}onClose(st){if(st&&this.getInputs&&this.getInputs.some(Rt=>void 0===Rt.inputValue))return!0;!this.showAdvanced&&st.length&&(st=null==st?void 0:st.reduce((Rt,Wt)=>(Wt.advancedField||Rt.push(Wt),Rt),[])),this.store.dispatch((0,ui.yb)({payload:st}))}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ae.mQ),E.Y36(Ot.yh))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-confirmation-message"]],decls:21,vars:10,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-button","","color","primary","type","reset","tabindex","1",1,"mr-1",3,"click"],["mat-button","","color","primary","type","button","class","mr-1","tabindex","2",3,"click",4,"ngIf"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click",4,"ngIf"],["autoFocus","","mat-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"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch",4,"ngSwitchCase"],[4,"ngSwitchCase"],[4,"ngSwitchDefault"],["fxLayout","row wrap","fxLayoutAlign","space-between stretch"],[3,"innerHTML",4,"ngFor","ngForOf"],[3,"innerHTML"],["fxFlex","100",1,"foreground-secondary-text"],["fxLayout","column",1,"bordered-box","my-2","p-2"],["fxLayout","row wrap","fxLayoutAlign","space-between center"],[3,"fxFlex",4,"ngIf"],[3,"fxFlex"],["matInput","","required","",3,"autoFocus","placeholder","name","min","step","type","ngModel","tabindex","ngModelChange"],["mat-button","","color","primary","type","button","tabindex","2",1,"mr-1",3,"click"],["hideAdvancedText",""],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","3","default","",3,"click"],["autoFocus","","mat-button","","color","primary","type","submit","tabindex","4","default","",3,"click"]],template:function(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),E._uU(5),E.qZA()(),E.TgZ(6,"button",5),E.NdJ("click",function(){return Rt.onClose(!1)}),E._uU(7,"X"),E.qZA()(),E.TgZ(8,"mat-card-content",6)(9,"form",7),E.YNc(10,Qt,4,2,"div",8),E.YNc(11,Re,4,2,"div",9),E.YNc(12,ke,2,1,"p",10),E.YNc(13,Ge,2,1,"div",11),E.YNc(14,Jt,4,2,"div",12),E.TgZ(15,"div",13)(16,"button",14),E.NdJ("click",function(){return Rt.onClose(!1)}),E._uU(17),E.qZA(),E.YNc(18,hi,4,2,"button",15),E.YNc(19,si,2,1,"button",16),E.YNc(20,Ji,2,1,"button",17),E.qZA()()()()()),2&st&&(E.xp6(5),E.Oqu(Rt.data.alertTitle||Rt.alertTypeEnum[Rt.data.type]),E.xp6(5),E.Q6J("ngIf",Rt.warningMessage&&""!==Rt.warningMessage),E.xp6(1),E.Q6J("ngIf",Rt.informationMessage&&""!==Rt.informationMessage),E.xp6(1),E.Q6J("ngIf",Rt.data.titleMessage&&!Rt.flgShowInput),E.xp6(1),E.Q6J("ngIf",(null==Rt.messageObjs?null:Rt.messageObjs.length)>0),E.xp6(1),E.Q6J("ngIf",Rt.flgShowInput),E.xp6(3),E.Oqu(Rt.noBtnText),E.xp6(1),E.Q6J("ngIf",Rt.hasAdvanced),E.xp6(1),E.Q6J("ngIf",Rt.flgShowInput),E.xp6(1),E.Q6J("ngIf",!Rt.flgShowInput))},directives:[B.xw,B.yH,q.dk,B.Wh,_e.lW,q.dn,Nt._Y,Nt.JL,Nt.F,ne.O5,gt.BN,ne.sg,ne.RF,ne.n9,ne.ED,c.d,it.KE,bt.Nt,ti.q,Nt.Fj,Nt.Q7,r.h,Nt.JJ,Nt.On,it.TO,it.bx],pipes:[ne.uU,ne.JJ,ne.i8],styles:[""]}),ii})();var Vi=p(1786),Ui=p(4107),Ue=p(508);function Tt(ii,Ri){if(1&ii&&(E.TgZ(0,"mat-option",23),E._uU(1),E.qZA()),2&ii){const st=Ri.$implicit;E.Q6J("value",st),E.xp6(1),E.hij(" ",st.infoName," ")}}function ve(ii,Ri){if(1&ii){const st=E.EpF();E.TgZ(0,"div",13)(1,"mat-form-field",20)(2,"mat-select",21),E.NdJ("valueChange",function(Wt){return E.CHM(st),E.oxw().selInfoType=Wt}),E.YNc(3,Tt,2,2,"mat-option",22),E.qZA()()()}if(2&ii){const st=E.oxw();E.xp6(2),E.Q6J("value",st.selInfoType),E.xp6(1),E.Q6J("ngForOf",st.infoTypes)}}const Qe=function(ii){return{"display-none":ii}};let _t=(()=>{class ii{constructor(st,Rt,Wt,fi,Ei){this.dialogRef=st,this.data=Rt,this.logger=Wt,this.snackBar=fi,this.commonService=Ei,this.faReceipt=Zt.dLy,this.infoTypes=[{infoID:0,infoKey:"node pubkey",infoName:"Node pubkey"}],this.selInfoType=this.infoTypes[0],this.qrWidth=210,this.screenSize="",this.screenSizeEnum=S.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((st,Rt)=>{this.infoTypes.push({infoID:Rt+1,infoKey:"node URI "+(Rt+1),infoName:"Node URI "+(Rt+1)})})),this.screenSize=this.commonService.getScreenSize()}onClose(){this.dialogRef.close(!1)}onCopyPubkey(st){this.snackBar.open(this.selInfoType.infoName+" copied."),this.logger.info("Copied Text: "+st)}}return ii.\u0275fac=function(st){return new(st||ii)(E.Y36(k.so),E.Y36(k.WI),E.Y36(ae.mQ),E.Y36(ee.ux),E.Y36(ue.v))},ii.\u0275cmp=E.Xpm({type:ii,selectors:[["rtl-show-pubkey"]],decls:26,vars:19,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,"value","size","errorCorrectionLevel"],["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-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(st,Rt){1&st&&(E.TgZ(0,"div",0)(1,"div",1),E._UZ(2,"qr-code",2),E.qZA(),E.TgZ(3,"div",3)(4,"mat-card-header",4)(5,"div",5),E._UZ(6,"fa-icon",6),E.TgZ(7,"span",7),E._uU(8),E.qZA()(),E.TgZ(9,"button",8),E.NdJ("click",function(){return Rt.onClose()}),E._uU(10,"X"),E.qZA()(),E.TgZ(11,"mat-card-content",9)(12,"div",10)(13,"div",11),E._UZ(14,"qr-code",2),E.qZA(),E.YNc(15,ve,4,2,"div",12),E.TgZ(16,"div",13)(17,"div",14)(18,"h4",15),E._uU(19),E.qZA(),E.TgZ(20,"span",16),E._uU(21),E.qZA()()(),E._UZ(22,"mat-divider",17),E.TgZ(23,"div",18)(24,"button",19),E.NdJ("copied",function(fi){return Rt.onCopyPubkey(fi)}),E._uU(25),E.qZA()()()()()()),2&st&&(E.xp6(1),E.Q6J("ngClass",E.VKq(15,Qe,Rt.screenSize===Rt.screenSizeEnum.XS||Rt.screenSize===Rt.screenSizeEnum.SM)),E.xp6(1),E.s9C("value",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.Q6J("size",Rt.qrWidth)("errorCorrectionLevel","L"),E.xp6(4),E.Q6J("icon",Rt.faReceipt),E.xp6(2),E.Oqu(Rt.selInfoType.infoName),E.xp6(5),E.Q6J("ngClass",E.VKq(17,Qe,Rt.screenSize!==Rt.screenSizeEnum.XS&&Rt.screenSize!==Rt.screenSizeEnum.SM)),E.xp6(1),E.s9C("value",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.Q6J("size",Rt.qrWidth)("errorCorrectionLevel","L"),E.xp6(1),E.Q6J("ngIf",Rt.information.uris&&Rt.information.uris.length>0),E.xp6(4),E.Oqu(Rt.selInfoType.infoName),E.xp6(2),E.Oqu(0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.xp6(3),E.s9C("payload",0===Rt.selInfoType.infoID?Rt.information.identity_pubkey:Rt.information.uris[Rt.selInfoType.infoID-1]),E.xp6(1),E.hij("Copy ",Rt.selInfoType.infoKey,""))},directives:[B.xw,B.Wh,B.yH,ne.mk,re.oO,ge.uU,q.dk,gt.BN,_e.lW,q.dn,ne.O5,it.KE,Ui.gD,ne.sg,Ue.ey,c.d,r.h,u.y],styles:[""]}),ii})();var se=p(6523),Xe=p(429),xt=p(2994),Bt=p(8377),bi=p(8138),Si=p(7998),Xi=p(5986),Wi=p(8104),on=p(1402);let pn=(()=>{class ii{constructor(st,Rt,Wt,fi,Ei,Ni,mn,In,Rn,tr,gn){this.actions=st,this.httpClient=Rt,this.store=Wt,this.logger=fi,this.wsService=Ei,this.sessionService=Ni,this.commonService=mn,this.dataService=In,this.dialog=Rn,this.snackBar=tr,this.router=gn,this.screenSize="",this.alertWidth="55%",this.confirmWidth="70%",this.unSubs=[new e.x,new e.x],this.closeAllDialogs=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALL_DIALOGS),(0,C.U)(()=>{this.dialog.closeAll()})),{dispatch:!1}),this.openSnackBar=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SNACK_BAR),(0,C.U)(Ti=>{"string"==typeof Ti.payload?this.snackBar.open(Ti.payload):this.snackBar.open(Ti.payload.message,"","ERROR"===Ti.payload.type?{duration:Ti.payload.duration?Ti.payload.duration:2e3,panelClass:"rtl-warn-snack-bar"}:"WARN"===Ti.payload.type?{duration:Ti.payload.duration?Ti.payload.duration:2e3,panelClass:"rtl-accent-snack-bar"}:{duration:Ti.payload.duration?Ti.payload.duration:2e3,panelClass:"rtl-snack-bar"})})),{dispatch:!1}),this.openSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_SPINNER),(0,C.U)(Ti=>{Ti.payload!==S.m6.NO_SPINNER&&(this.dialogRef=this.dialog.open(Y,{data:{titleMessage:Ti.payload}}))})),{dispatch:!1}),this.closeSpinner=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_SPINNER),(0,C.U)(Ti=>{if(Ti.payload!==S.m6.NO_SPINNER)try{this.dialogRef&&this.dialogRef.componentInstance&&this.dialogRef.componentInstance.data&&this.dialogRef.componentInstance.data.titleMessage&&this.dialogRef.componentInstance.data.titleMessage===Ti.payload?this.dialogRef.close():this.dialog.openDialogs.forEach(Ki=>{Ki.componentInstance&&Ki.componentInstance.data&&Ki.componentInstance.data.titleMessage&&Ki.componentInstance.data.titleMessage===Ti.payload&&Ki.close()})}catch(Ki){this.logger.error(Ki)}})),{dispatch:!1}),this.openAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_ALERT),(0,C.U)(Ti=>{const Ki=JSON.parse(JSON.stringify(Ti.payload));Ki.width||(Ki.width=this.alertWidth),this.dialogRef=this.dialog.open(Ti.payload.data.component?Ti.payload.data.component:Yt,Ki)})),{dispatch:!1}),this.closeAlert=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_ALERT),(0,C.U)(Ti=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Ti.payload),Ti.payload))),{dispatch:!1}),this.openConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.OPEN_CONFIRMATION),(0,C.U)(Ti=>{const Ki=JSON.parse(JSON.stringify(Ti.payload));Ki.width||(Ki.width=this.confirmWidth),this.dialogRef=this.dialog.open(Zi,Ki)})),{dispatch:!1}),this.closeConfirm=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.CLOSE_CONFIRMATION),(0,d.q)(1),(0,C.U)(Ti=>(this.dialogRef&&this.dialogRef.close(),this.logger.info(Ti.payload),Ti.payload))),{dispatch:!1}),this.showNodePubkey=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_PUBKEY),(0,R.M)(this.store.select(Bt.R4)),(0,h.z)(([Ti,Ki])=>(this.sessionService.getItem("token")&&Ki.identity_pubkey?this.store.dispatch((0,ui.qR)({payload:{data:{information:Ki,component:_t}}})):this.snackBar.open("Node Pubkey does not exist."),(0,f.of)({type:S.pg.VOID}))))),this.appConfigFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_RTL_CONFIG),(0,h.z)(()=>(this.screenSize=this.commonService.getScreenSize(),this.screenSize===S.cu.XS||this.screenSize===S.cu.SM?(this.alertWidth="95%",this.confirmWidth="95%"):this.screenSize===S.cu.MD?(this.alertWidth="80%",this.confirmWidth="80%"):(this.alertWidth="45%",this.confirmWidth="50%"),this.store.dispatch((0,ui.ac)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.INITIATED}})),this.sessionService.getItem("token")?this.httpClient.get(D.NZ.CONF_API+"/rtlconf"):this.httpClient.get(D.NZ.CONF_API+"/rtlconfinit"))),(0,C.U)(Ti=>{this.logger.info(Ti),this.store.dispatch((0,ui.uO)({payload:S.m6.GET_RTL_CONFIG})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchRTLConfig",status:S.Bn.COMPLETED}}));let Ki=null;return Ti.nodes.forEach(wn=>{var qn,sr;wn.settings.currencyUnits=[...S.uA,(null===(qn=wn.settings)||void 0===qn?void 0:qn.currencyUnit)?null===(sr=wn.settings)||void 0===sr?void 0:sr.currencyUnit:""],+(wn.index||-1)===Ti.selectedNodeIndex&&(Ki=wn)}),Ki?(this.store.dispatch((0,ui.fk)({payload:{uiMessage:S.m6.NO_SPINNER,prevLnNodeIndex:-1,currentLnNode:Ki,isInitialSetup:!0}})),{type:S.pg.SET_RTL_CONFIG,payload:Ti}):{type:S.pg.VOID}}),(0,L.K)(Ti=>(this.handleErrorWithAlert("FetchRTLConfig",S.m6.GET_RTL_CONFIG,"Fetch RTL Config Failed!",D.NZ.CONF_API,Ti),(0,f.of)({type:S.pg.VOID}))))),this.settingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SAVE_SETTINGS),(0,h.z)(Ti=>{this.store.dispatch((0,ui.ac)({payload:Ti.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.INITIATED}}));let Ki=new M.y;if(Ti.payload.settings&&Ti.payload.defaultNodeIndex){const wn=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Ti.payload.settings}),qn=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Ti.payload.defaultNodeIndex});Ki=(0,a.D)([wn,qn])}else Ti.payload.settings&&!Ti.payload.defaultNodeIndex?Ki=this.httpClient.post(D.NZ.CONF_API,{updatedSettings:Ti.payload.settings}):!Ti.payload.settings&&Ti.payload.defaultNodeIndex&&(Ki=this.httpClient.post(D.NZ.CONF_API+"/updateDefaultNode",{defaultNodeIndex:Ti.payload.defaultNodeIndex}));return Ki.pipe((0,C.U)(wn=>(this.logger.info(wn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ti.payload.uiMessage})),{type:S.pg.OPEN_SNACK_BAR,payload:wn.length?wn[0].message+".":wn.message+"."})),(0,L.K)(wn=>(this.handleErrorWithAlert("UpdateSettings",Ti.payload.uiMessage,"Update Settings Failed!",D.NZ.CONF_API,wn.length?wn[0]:wn),(0,f.of)({type:S.pg.VOID}))))}))),this.updateServicesettings=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.UPDATE_SERVICE_SETTINGS),(0,h.z)(Ti=>(this.store.dispatch((0,ui.ac)({payload:Ti.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/updateServiceSettings",Ti.payload).pipe((0,C.U)(Ki=>(this.logger.info(Ki),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateServiceSettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ti.payload.uiMessage})),this.store.dispatch((0,ui.Tm)({payload:Ti.payload})),{type:S.pg.OPEN_SNACK_BAR,payload:Ki.message+"."})),(0,L.K)(Ki=>(this.handleErrorWithAlert("UpdateServiceSettings",Ti.payload.uiMessage,"Update Service Settings Failed!",D.NZ.CONF_API,Ki),(0,f.of)({type:S.pg.VOID})))))))),this.twoFASettingSave=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.TWO_FA_SAVE_SETTINGS),(0,h.z)(Ti=>(this.store.dispatch((0,ui.ac)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.CONF_API+"/update2FA",{secret2fa:Ti.payload.secret2fa}))),(0,R.M)(this.store.select(Bt.Yj)),(0,C.U)(([Ti,Ki])=>{this.logger.info(Ti),Ki.enable2FA=!Ki.enable2FA,this.store.dispatch((0,ui.qi)({payload:{action:"Update2FASettings",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.UPDATE_UI_SETTINGS})),this.store.dispatch((0,ui.XT)({payload:Ki}))}),(0,L.K)(Ti=>(this.handleErrorWithAlert("Update2FASettings",S.m6.UPDATE_UI_SETTINGS,"Update 2FA Settings Failed!",D.NZ.CONF_API,Ti),(0,f.of)({type:S.pg.VOID})))),{dispatch:!1}),this.configFetch=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_CONFIG),(0,h.z)(Ti=>(this.store.dispatch((0,ui.ac)({payload:S.m6.OPEN_CONFIG_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/config/"+Ti.payload).pipe((0,C.U)(Ki=>(this.store.dispatch((0,ui.qi)({payload:{action:"fetchConfig",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.OPEN_CONFIG_FILE})),{type:S.pg.SHOW_CONFIG,payload:Ki})),(0,L.K)(Ki=>(this.handleErrorWithAlert("fetchConfig",S.m6.OPEN_CONFIG_FILE,"Fetch Config Failed!",D.NZ.CONF_API+"/config/"+Ti.payload,Ki),(0,f.of)({type:S.pg.VOID})))))))),this.showLnConfig=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_CONFIG),(0,C.U)(Ti=>Ti.payload)),{dispatch:!1}),this.isAuthorized=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED),(0,h.z)(Ti=>(this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Ti.payload&&""!==Ti.payload.trim()?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Ti.payload&&""!==Ti.payload.trim()?Ti.payload:this.sessionService.getItem("token")?this.sessionService.getItem("token"):""}).pipe((0,C.U)(Ki=>(this.logger.info(Ki),this.store.dispatch((0,ui.qi)({payload:{action:"IsAuthorized",status:S.Bn.COMPLETED}})),this.logger.info("Successfully Authorized!"),{type:S.pg.IS_AUTHORIZED_RES,payload:Ki})),(0,L.K)(Ki=>(this.handleErrorWithAlert("IsAuthorized",S.m6.NO_SPINNER,"Authorization Failed",D.NZ.AUTHENTICATE_API,Ki),(0,f.of)({type:S.pg.IS_AUTHORIZED_RES,payload:"ERROR"})))))))),this.isAuthorizedRes=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.IS_AUTHORIZED_RES),(0,C.U)(Ti=>Ti.payload)),{dispatch:!1}),this.authLogin=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGIN),(0,R.M)(this.store.select(Bt.Yj)),(0,h.z)(([Ti,Ki])=>(this.store.dispatch((0,se.Ll)({payload:null})),this.store.dispatch((0,Xe.xH)({payload:null})),this.store.dispatch((0,xt.Fd)({payload:null})),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API,{authenticateWith:Ti.payload.password?S.OJ.PASSWORD:S.OJ.JWT,authenticationValue:Ti.payload.password?Ti.payload.password:this.sessionService.getItem("token")?this.sessionService.getItem("token"):"",twoFAToken:Ti.payload.twoFAToken?Ti.payload.twoFAToken:""}).pipe((0,C.U)(wn=>{this.logger.info(wn),this.store.dispatch((0,ui.qi)({payload:{action:"Login",status:S.Bn.COMPLETED}})),this.setLoggedInDetails(Ti.payload.defaultPassword,wn)}),(0,L.K)(wn=>(this.logger.info("Redirecting to Login Error Page"),this.handleErrorWithoutAlert("Login",S.m6.NO_SPINNER,wn),+Ki.sso.rtlSSO?this.router.navigate(["/error"],{state:{errorCode:"406",errorMessage:wn.error&&wn.error.error?wn.error.error:"Single Sign On Failed!"}}):this.router.navigate(["./login"]),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.tokenVerify=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.VERIFY_TWO_FA),(0,h.z)(Ti=>(this.store.dispatch((0,ui.ac)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/token",{authentication2FA:Ti.payload.token}).pipe((0,C.U)(Ki=>{this.logger.info(Ki),this.store.dispatch((0,ui.uO)({payload:S.m6.VERIFY_TOKEN})),this.store.dispatch((0,ui.qi)({payload:{action:"VerifyToken",status:S.Bn.COMPLETED}})),this.logger.info("Token Successfully Verified!"),this.setLoggedInDetails(!1,Ti.payload.authResponse)}),(0,L.K)(Ki=>(this.handleErrorWithAlert("VerifyToken",S.m6.VERIFY_TOKEN,"Authorization Failed!",D.NZ.AUTHENTICATE_API+"/token",Ki),(0,f.of)({type:S.pg.VOID}))))))),{dispatch:!1}),this.logOut=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.LOGOUT),(0,R.M)(this.store.select(Bt.Yj)),(0,h.z)(([Ti,Ki])=>(this.store.dispatch((0,ui.ac)({payload:S.m6.LOG_OUT})),this.httpClient.get(D.NZ.AUTHENTICATE_API+"/logout").pipe((0,C.U)(wn=>{this.logger.info(wn),this.store.dispatch((0,ui.uO)({payload:S.m6.LOG_OUT})),+Ki.sso.rtlSSO?window.location.href=Ki.sso.logoutRedirectLink:this.router.navigate(["./login"]),this.sessionService.clearAll(),this.store.dispatch((0,ui._V)({payload:{}})),this.logger.warn("LOGGED OUT")}))))),{dispatch:!1}),this.resetPassword=(0,t.GW)(()=>this.actions.pipe((0,w.R)(this.unSubs[1]),(0,t.l4)(S.pg.RESET_PASSWORD),(0,h.z)(Ti=>(this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.INITIATED}})),this.httpClient.post(D.NZ.AUTHENTICATE_API+"/reset",{currPassword:Ti.payload.currPassword,newPassword:Ti.payload.newPassword}).pipe((0,w.R)(this.unSubs[0]),(0,C.U)(Ki=>(this.logger.info(Ki),this.store.dispatch((0,ui.qi)({payload:{action:"ResetPassword",status:S.Bn.COMPLETED}})),this.sessionService.setItem("defaultPassword",!1),this.logger.info("Password Reset Successful!"),this.store.dispatch((0,ui.jW)({payload:"Password Reset Successful!"})),this.SetToken(Ki.token),{type:S.pg.RESET_PASSWORD_RES,payload:Ki.token})),(0,L.K)(Ki=>(this.handleErrorWithAlert("ResetPassword",S.m6.NO_SPINNER,"Password Reset Failed!",D.NZ.AUTHENTICATE_API+"/reset",Ki),(0,f.of)({type:S.pg.VOID})))))))),this.setSelectedNode=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SET_SELECTED_NODE),(0,h.z)(Ti=>{var Ki;return this.store.dispatch((0,ui.ac)({payload:Ti.payload.uiMessage})),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.INITIATED}})),this.httpClient.get(D.NZ.CONF_API+"/updateSelNode/"+(null===(Ki=Ti.payload.currentLnNode)||void 0===Ki?void 0:Ki.index)+"/"+Ti.payload.prevLnNodeIndex).pipe((0,C.U)(wn=>(this.logger.info(wn),this.store.dispatch((0,ui.qi)({payload:{action:"UpdateSelNode",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:Ti.payload.uiMessage})),this.initializeNode(Ti.payload.currentLnNode,Ti.payload.isInitialSetup),{type:S.pg.VOID})),(0,L.K)(wn=>(this.handleErrorWithAlert("UpdateSelNode",Ti.payload.uiMessage,"Update Selected Node Failed!",D.NZ.CONF_API+"/updateSelNode",wn),(0,f.of)({type:S.pg.VOID}))))}))),this.fetchFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.FETCH_FILE),(0,h.z)(Ti=>{this.store.dispatch((0,ui.ac)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.INITIATED}}));const Ki="?channel="+Ti.payload.channelPoint+(Ti.payload.path?"&path="+Ti.payload.path:"");return this.httpClient.get(D.NZ.CONF_API+"/file"+Ki).pipe((0,C.U)(wn=>(this.store.dispatch((0,ui.qi)({payload:{action:"FetchFile",status:S.Bn.COMPLETED}})),this.store.dispatch((0,ui.uO)({payload:S.m6.DOWNLOAD_BACKUP_FILE})),{type:S.pg.SHOW_FILE,payload:wn})),(0,L.K)(wn=>(this.handleErrorWithAlert("fetchFile",S.m6.DOWNLOAD_BACKUP_FILE,"Download Backup File Failed!",D.NZ.CONF_API+"/file"+Ki,{status:this.commonService.extractErrorNumber(wn),error:{error:this.commonService.extractErrorCode(wn)}}),(0,f.of)({type:S.pg.VOID}))))}))),this.showFile=(0,t.GW)(()=>this.actions.pipe((0,t.l4)(S.pg.SHOW_FILE),(0,C.U)(Ti=>Ti.payload)),{dispatch:!1})}initializeNode(st,Rt){this.logger.info("Initializing node from RTL Effects.");const Wt=Rt?"":"HOME",fi={userPersona:st.settings.userPersona,channelBackupPath:st.settings.channelBackupPath,unannouncedChannels:!!st.settings.unannouncedChannels,selCurrencyUnit:st.settings.currencyUnit,currencyUnits:S.uA,fiatConversion:st.settings.fiatConversion,lnImplementation:st.lnImplementation,swapServerUrl:st.settings.swapServerUrl,boltzServerUrl:st.settings.boltzServerUrl,enableOffers:st.settings.enableOffers,enablePeerswap:st.settings.enablePeerswap};if(st.settings.fiatConversion&&st.settings.currencyUnit&&(fi.currencyUnits=[...S.uA,st.settings.currencyUnit]),this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("clUnlocked"),this.sessionService.removeItem("eclUnlocked"),this.store.dispatch((0,ui.vI)({payload:st})),this.store.dispatch((0,se.Ll)({payload:fi})),this.store.dispatch((0,Xe.xH)({payload:fi})),this.store.dispatch((0,xt.Fd)({payload:fi})),this.sessionService.getItem("token")){const Ei=st.lnImplementation?st.lnImplementation.toUpperCase():"LND";this.dataService.setLnImplementation(Ei);const Ni=D.NZ.production&&window.location.origin?window.location.origin+"/rtl/api":D.T5;switch(this.wsService.connectWebSocket((null==Ni?void 0:Ni.replace(/^http/,"ws"))+D.NZ.Web_SOCKET_API,st.index?st.index.toString():"-1"),Ei){case"CLN":this.store.dispatch((0,Xe.CN)({payload:{loadPage:Wt}}));break;case"ECL":this.store.dispatch((0,xt.iz)({payload:{loadPage:Wt}}));break;default:this.store.dispatch((0,se.sQ)({payload:{loadPage:Wt}}))}}}SetToken(st){st?(this.sessionService.setItem("lndUnlocked","true"),this.sessionService.setItem("token",st)):(this.sessionService.removeItem("lndUnlocked"),this.sessionService.removeItem("token"))}setLoggedInDetails(st,Rt){this.logger.info("Successfully Authorized!"),this.SetToken(Rt.token),this.sessionService.setItem("defaultPassword",st),st?(this.store.dispatch((0,ui.jW)({payload:"Reset your password."})),this.router.navigate(["/settings/auth"])):this.store.dispatch((0,ui.ey)())}handleErrorWithoutAlert(st,Rt,Wt){this.logger.error("ERROR IN: "+st+"\n"+JSON.stringify(Wt)),401===Wt.status&&"Login"!==st?(this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}))):(this.store.dispatch((0,ui.uO)({payload:Rt})),this.store.dispatch((0,ui.qi)({payload:{action:st,status:S.Bn.ERROR,statusCode:Wt.status?Wt.status.toString():"",message:this.commonService.extractErrorMessage(Wt)}})))}handleErrorWithAlert(st,Rt,Wt,fi,Ei){if(this.logger.error(Ei),0===Ei.status&&Ei.statusText&&"Unknown Error"===Ei.statusText&&(Ei={status:400,error:{message:"Unknown Error / CORS Origin Not Allowed"}}),401===Ei.status&&"Login"!==st)this.logger.info("Redirecting to Login"),this.store.dispatch((0,ui.ts)()),this.store.dispatch((0,ui.kS)()),this.store.dispatch((0,ui.jW)({payload:"Authentication Failed. Redirecting to Login."}));else{this.store.dispatch((0,ui.uO)({payload:Rt}));const Ni=this.commonService.extractErrorMessage(Ei);this.store.dispatch((0,ui.qR)({payload:{data:{type:"ERROR",alertTitle:Wt,message:{code:Ei.status?Ei.status:"Unknown Error",message:Ni,URL:fi},component:Vi.H}}})),this.store.dispatch((0,ui.qi)({payload:{action:st,status:S.Bn.ERROR,statusCode:Ei.status?Ei.status.toString():"",message:Ni,URL:fi}}))}}ngOnDestroy(){this.unSubs.forEach(st=>{st.next(null),st.complete()})}}return ii.\u0275fac=function(st){return new(st||ii)(E.LFG(t.eX),E.LFG(bi.eN),E.LFG(Ot.yh),E.LFG(ae.mQ),E.LFG(Si.d),E.LFG(Xi.m),E.LFG(ue.v),E.LFG(Wi.D),E.LFG(k.uw),E.LFG(ee.ux),E.LFG(on.F0))},ii.\u0275prov=E.Yz7({token:ii,factory:ii.\u0275fac}),ii})()},8377:(Be,K,p)=>{"use strict";p.d(K,{R4:()=>C,Sr:()=>R,Yj:()=>a,dT:()=>M,gW:()=>h,ul:()=>d});var t=p(5620);const e=(0,t.ZF)("root"),M=((0,t.P1)(e,L=>L.apiURL),(0,t.P1)(e,L=>L.selNode)),a=(0,t.P1)(e,L=>L.appConfig),C=(0,t.P1)(e,L=>L.nodeData),d=(0,t.P1)(e,L=>L.apisCallStatus.Login),R=(0,t.P1)(e,L=>L.apisCallStatus.IsAuthorized),h=(0,t.P1)(e,L=>({nodeDate:L.nodeData,selNode:L.selNode}))},2340:(Be,K,p)=>{"use strict";p.d(K,{NZ:()=>e,T5:()=>t,q4:()=>f});const t="./api",e={production:!0,isDebugMode:!1,AUTHENTICATE_API:t+"/authenticate",CONF_API:t+"/conf",PAGE_SETTINGS_API:t+"/pagesettings",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",PAYMENTS_API:"/payments",INVOICES_API:"/invoices",SWITCH_API:"/switch",ON_CHAIN_API:"/onchain",MESSAGE_API:"/message",OFFERS_API:"/offers",UTILITY_API:"/utility",LOOP_API:"/loop",BOLTZ_API:"/boltz",Web_SOCKET_API:"/ws"},f="0.13.2-beta"},7999:(Be,K,p)=>{"use strict";var t=p(2313),e=p(5e3),f=p(6360),M=p(8138),a=p(5113),C=p(5620),d=p(6642),R=p(9565),h=p(7579),L=p(6451),w=p(4968),D=p(457),S=p(4986),k=p(2805);function E(G=0,Le=S.z){return G<0&&(G=0),(0,k.H)(G,G,Le)}var B=p(9646),Z=p(727),Y=p(4482),ae=p(5403),ee=p(8737),ue=p(3269),ne=p(9672),ge=p(9300),q=p(8505),_e=p(3900),x=p(2722),i=p(8746),r=p(1884),u=p(4004);class c{}let v=(()=>{class G{constructor(P,ie){this._ngZone=ie,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,this.isTimeout=!1,this.isInactivityTimer=!1,this.isIdleDetected=!1,P&&this.setConfig(P)}startWatching(){this.activityEvents$||(this.activityEvents$=(0,L.T)((0,w.R)(window,"mousemove"),(0,w.R)(window,"resize"),(0,w.R)(document,"keydown"))),this.idle$=(0,D.D)(this.activityEvents$),this.idleSubscription&&this.idleSubscription.unsubscribe(),this.idleSubscription=this.idle$.pipe(function re(G,...Le){var P,ie;const We=null!==(P=(0,ue.yG)(Le))&&void 0!==P?P:S.z,Ht=null!==(ie=Le[0])&&void 0!==ie?ie:null,Ci=Le[1]||1/0;return(0,Y.e)((ji,hn)=>{let Fn=[],ls=!1;const Ts=lr=>{const{buffer:qa,subs:Ln}=lr;Ln.unsubscribe(),(0,ee.P)(Fn,lr),hn.next(qa),ls&&cs()},cs=()=>{if(Fn){const lr=new Z.w0;hn.add(lr);const Ln={buffer:[],subs:lr};Fn.push(Ln),(0,ne.f)(lr,We,()=>Ts(Ln),G)}};null!==Ht&&Ht>=0?(0,ne.f)(hn,We,cs,Ht,!0):ls=!0,cs();const ds=(0,ae.x)(hn,lr=>{const qa=Fn.slice();for(const Ln of qa){const{buffer:Vn}=Ln;Vn.push(lr),Ci<=Vn.length&&Ts(Ln)}},()=>{for(;null==Fn?void 0:Fn.length;)hn.next(Fn.shift().buffer);null==ds||ds.unsubscribe(),hn.complete(),hn.unsubscribe()},void 0,()=>Fn=null);ji.subscribe(ds)})}(this.idleSensitivityMillisec),(0,ge.h)(P=>!P.length&&!this.isIdleDetected&&!this.isInactivityTimer),(0,q.b)(()=>{this.isIdleDetected=!0,this.idleDetected$.next(!0)}),(0,_e.w)(()=>this._ngZone.runOutsideAngular(()=>E(1e3).pipe((0,x.R)((0,L.T)(this.activityEvents$,(0,k.H)(this.idleMillisec).pipe((0,q.b)(()=>{this.isInactivityTimer=!0,this.timerStart$.next(!0)})))),(0,i.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,r.x)(),(0,_e.w)(P=>P?this.timer$:(0,B.of)(null)))}onIdleStatusChanged(){return this.idleDetected$.asObservable()}onTimeout(){return this.timeout$.pipe((0,ge.h)(P=>!!P),(0,q.b)(()=>this.isTimeout=!0),(0,u.U)(()=>!0))}getConfigValue(){return{idle:this.idleMillisec/1e3,idleSensitivity:this.idleSensitivityMillisec/1e3,timeout:this.timeout,ping:this.pingMillisec/1e3}}setConfigValues(P){!this.idleSubscription||this.idleSubscription.closed?this.setConfig(P):console.error("Call stopWatching() before set config values")}setConfig(P){P.idle&&(this.idleMillisec=1e3*P.idle),P.ping&&(this.pingMillisec=1e3*P.ping),P.idleSensitivity&&(this.idleSensitivityMillisec=1e3*P.idleSensitivity),P.timeout&&(this.timeout=P.timeout)}setCustomActivityEvents(P){!this.idleSubscription||this.idleSubscription.closed?this.activityEvents$=P:console.error("Call stopWatching() before set custom activity events")}setupTimer(P){this._ngZone.runOutsideAngular(()=>{this.timer$=(0,B.of)(()=>new Date).pipe((0,u.U)(ie=>ie()),(0,_e.w)(ie=>E(1e3).pipe((0,u.U)(()=>Math.round(((new Date).valueOf()-ie.valueOf())/1e3)),(0,q.b)(We=>{We>=P&&this.timeout$.next(!0)}))))})}setupPing(P){this.ping$=E(P).pipe((0,ge.h)(()=>!this.isTimeout))}}return G.\u0275fac=function(P){return new(P||G)(e.LFG(c,8),e.LFG(e.R0b))},G.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac,providedIn:"root"}),G})(),T=(()=>{class G{static forRoot(P){return{ngModule:G,providers:[{provide:c,useValue:P}]}}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275mod=e.oAB({type:G}),G.\u0275inj=e.cJS({imports:[[]]}),G})();var I=p(1402),y=p(2687),n=p(8377),_=p(7093),V=p(9546),N=p(9224),H=p(3251),X=p(9808);const he=function(){return{initial:!1}};function be(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[1].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[1].link),e.Q6J("active",P.activeLink===P.links[1].link)("state",e.DdM(4,he)),e.xp6(1),e.Oqu(P.links[1].name)}}function Pe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[2].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link),e.xp6(1),e.Oqu(P.links[2].name)}}let Ee=(()=>{class G{constructor(P,ie){this.store=P,this.router=ie,this.faUserCog=y.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 P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeLink=We?We.link:this.links[0].link}}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{this.appConfig=ie}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[2])).subscribe(ie=>{this.showBitcoind=!1,this.selNode=ie,this.selNode.settings&&this.selNode.settings.bitcoindConfigPath&&""!==this.selNode.settings.bitcoindConfigPath.trim()&&(this.showBitcoind=!0)})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Settings"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return ie.activeLink=ie.links[0].link}),e._uU(9),e.qZA(),e.YNc(10,be,2,5,"div",7),e.YNc(11,Pe,2,3,"div",8),e.qZA(),e.TgZ(12,"div",9),e._UZ(13,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faUserCog),e.xp6(7),e.s9C("routerLink",ie.links[0].link),e.Q6J("active",ie.activeLink===ie.links[0].link),e.xp6(1),e.Oqu(ie.links[0].name),e.xp6(1),e.Q6J("ngIf",!+ie.appConfig.sso.rtlSSO),e.xp6(1),e.Q6J("ngIf",ie.showBitcoind))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,H.Nj,I.rH,X.O5,_.yH,I.lC],styles:[""]}),G})();var j=p(7731),Ve=p(7861),Me=p(5043),J=p(8129),Ie=p(3075),ut=p(7322),Oe=p(4107),we=p(3390),ce=p(508),Te=p(7423);function xe(G,Le){if(1&G&&(e.TgZ(0,"mat-option",16),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P.index),e.xp6(1),e.AsE(" ",P.lnNode," (",P.lnImplementation,") ")}}function W(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"form",2,3)(2,"div",4),e._UZ(3,"fa-icon",5),e.TgZ(4,"span",6),e._uU(5,"Default Node"),e.qZA()(),e.TgZ(6,"div",7)(7,"div",8),e._UZ(8,"fa-icon",9),e.TgZ(9,"span"),e._uU(10,"The setting will apply after RTL server restarts."),e.qZA()(),e.TgZ(11,"div",10)(12,"mat-form-field",10)(13,"mat-select",11),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().appConfig.defaultNodeIndex=We}),e.YNc(14,xe,2,3,"mat-option",12),e.qZA()()(),e.TgZ(15,"div",13)(16,"div",10)(17,"button",14),e.NdJ("click",function(){return e.CHM(P),e.oxw().onResetSettings()}),e._uU(18,"Reset"),e.qZA(),e.TgZ(19,"button",15),e.NdJ("click",function(){return e.CHM(P),e.oxw().onUpdateSettings()}),e._uU(20,"Update"),e.qZA()()()()()}if(2&G){const P=e.oxw();e.xp6(3),e.Q6J("icon",P.faWindowRestore),e.xp6(5),e.Q6J("icon",P.faInfoCircle),e.xp6(5),e.Q6J("ngModel",P.appConfig.defaultNodeIndex),e.xp6(1),e.Q6J("ngForOf",P.appConfig.nodes)}}let te=(()=>{class G{constructor(P,ie){this.logger=P,this.store=ie,this.faInfoCircle=y.sqG,this.faWindowRestore=y.wyP,this.faPlus=y.r8p,this.previousDefaultNode=0,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.appConfig=P,this.previousDefaultNode=this.appConfig.defaultNodeIndex,this.logger.info(P)})}onAddNewNode(){this.logger.warn("ADD NEW NODE")}onUpdateSettings(){this.store.dispatch((0,Ve.zQ)({payload:{uiMessage:j.m6.UPDATE_DEFAULT_NODE_SETTING,defaultNodeIndex:this.appConfig.defaultNodeIndex?this.appConfig.defaultNodeIndex:this.appConfig&&this.appConfig.nodes&&this.appConfig.nodes.length&&this.appConfig.nodes.length>0&&this.appConfig.nodes[0].index?+this.appConfig.nodes[0].index:-1}}))}onResetSettings(){this.appConfig.defaultNodeIndex=this.previousDefaultNode}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e.YNc(1,W,21,4,"form",1),e.qZA()),2&P&&(e.xp6(1),e.Q6J("ngIf",ie.appConfig.nodes&&ie.appConfig.nodes.length&&ie.appConfig.nodes.length>0))},directives:[_.xw,_.yH,J.$V,X.O5,Ie._Y,Ie.JL,Ie.F,_.Wh,V.BN,ut.KE,Oe.gD,we.h,Ie.JJ,Ie.On,X.sg,ce.ey,Te.lW],styles:[""]}),G})();var Ce=p(8012),fe=p(5698),Q=p(8966),pt=p(5768),tt=p(3093),Dt=p(7261),di=p(5615),Yt=p(7531),Zt=p(159),ui=p(6895);const Ot=["stepper"];function Nt(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw();e.Oqu(P.passwordFormLabel)}}function gt(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function it(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.secretFormLabel)}}function bt(G,Le){if(1&G&&e._UZ(0,"qr-code",32),2&G){const P=e.oxw(2);e.Q6J("value",P.otpauth)("size",180)("errorCorrectionLevel","L")}}function ti(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Secret Code is required."),e.qZA())}function Qt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-step",10)(1,"form",21),e.YNc(2,it,1,1,"ng-template",22),e.TgZ(3,"div",23),e.YNc(4,bt,1,3,"qr-code",24),e.qZA(),e.TgZ(5,"div",25),e._UZ(6,"fa-icon",26),e.TgZ(7,"span"),e._uU(8,"You can use a compatible authentication app to get an authentication code when you log in to RTL. e.g.: Google Authenticator."),e.qZA()(),e.TgZ(9,"div",27)(10,"mat-form-field",1),e._UZ(11,"input",28),e.TgZ(12,"fa-icon",29),e.NdJ("copied",function(We){return e.CHM(P),e.oxw().onCopySecret(We)}),e.qZA(),e.YNc(13,ti,2,0,"mat-error",14),e.qZA()(),e.TgZ(14,"div",30)(15,"button",31),e._uU(16,"Next"),e.qZA()()()()}if(2&G){const P=e.oxw();e.Q6J("stepControl",P.secretFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.secretFormGroup),e.xp6(3),e.Q6J("ngIf",P.otpauth),e.xp6(2),e.Q6J("icon",P.faInfoCircle),e.xp6(6),e.Q6J("icon",P.faCopy)("payload",null==P.secretFormGroup||null==P.secretFormGroup.controls||null==P.secretFormGroup.controls.secret?null:P.secretFormGroup.controls.secret.value),e.xp6(1),e.Q6J("ngIf",null==P.secretFormGroup||null==P.secretFormGroup.controls||null==P.secretFormGroup.controls.secret||null==P.secretFormGroup.controls.secret.errors?null:P.secretFormGroup.controls.secret.errors.required)}}function Re(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.tokenFormLabel)}}function ke(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}function de(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is invalid."),e.qZA())}function ye(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",7)(1,"div",27)(2,"mat-form-field",1),e._UZ(3,"input",36),e.YNc(4,ke,2,0,"mat-error",14),e.YNc(5,de,2,0,"mat-error",14),e.qZA()(),e.TgZ(6,"div",30)(7,"button",37),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onVerifyToken()}),e._uU(8),e.qZA()()()}if(2&G){const P=e.oxw(2);e.xp6(4),e.Q6J("ngIf",null==P.tokenFormGroup||null==P.tokenFormGroup.controls||null==P.tokenFormGroup.controls.token||null==P.tokenFormGroup.controls.token.errors?null:P.tokenFormGroup.controls.token.errors.required),e.xp6(1),e.Q6J("ngIf",null==P.tokenFormGroup||null==P.tokenFormGroup.controls||null==P.tokenFormGroup.controls.token||null==P.tokenFormGroup.controls.token.errors?null:P.tokenFormGroup.controls.token.errors.notValid),e.xp6(3),e.Oqu(null!=P.tokenFormGroup&&null!=P.tokenFormGroup.controls&&null!=P.tokenFormGroup.controls.token&&null!=P.tokenFormGroup.controls.token.errors&&P.tokenFormGroup.controls.token.errors.notValid?"Retry":"Verify")}}function ht(G,Le){1&G&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Success! You are all set."),e.qZA()())}function mt(G,Le){if(1&G&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Re,1,1,"ng-template",12),e.YNc(3,ye,9,3,"div",35),e.YNc(4,ht,3,0,"div",14),e.qZA()()),2&G){const P=e.oxw();e.Q6J("stepControl",P.tokenFormGroup),e.xp6(1),e.Q6J("formGroup",P.tokenFormGroup),e.xp6(2),e.Q6J("ngIf",!P.flgValidated||!P.isTokenValid),e.xp6(1),e.Q6J("ngIf",P.flgValidated&&P.isTokenValid)}}function Ft(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.disableFormLabel)}}function nt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",7)(1,"div",38),e._UZ(2,"fa-icon",26),e.TgZ(3,"span"),e._uU(4,"You are about to disable two-factor authentication security from RTL. Are you sure you want to turn it off?"),e.qZA()(),e.TgZ(5,"div",30)(6,"button",37),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onVerifyToken()}),e._uU(7,"Disable"),e.qZA()()()}if(2&G){const P=e.oxw(2);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle)}}function He(G,Le){1&G&&(e.TgZ(0,"div")(1,"strong"),e._uU(2,"Two factor authentication removed from RTL."),e.qZA()())}function rt(G,Le){if(1&G&&(e.TgZ(0,"mat-step",33)(1,"form",34),e.YNc(2,Ft,1,1,"ng-template",12),e.YNc(3,nt,8,1,"div",35),e.YNc(4,He,3,0,"div",14),e.qZA()()),2&G){const P=e.oxw();e.Q6J("stepControl",P.disableFormGroup),e.xp6(1),e.Q6J("formGroup",P.disableFormGroup),e.xp6(2),e.Q6J("ngIf",!P.flgValidated||!P.isTokenValid),e.xp6(1),e.Q6J("ngIf",P.flgValidated&&P.isTokenValid)}}let et=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji){this.dialogRef=P,this.data=ie,this.store=We,this.formBuilder=Ht,this.rtlEffects=Ci,this.snackBar=ji,this.faExclamationTriangle=y.eHv,this.faCopy=y.kZ_,this.faInfoCircle=y.sqG,this.flgValidated=!1,this.isTokenValid=!0,this.otpauth="",this.appConfig=null,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:["",[Ie.kI.required]],password:["",[Ie.kI.required]]}),this.secretFormGroup=this.formBuilder.group({secret:[{value:"",disabled:!0},Ie.kI.required]}),this.tokenFormGroup=this.formBuilder.group({token:["",Ie.kI.required]}),this.disableFormGroup=this.formBuilder.group({}),this.unSubs=[new h.x,new h.x]}ngOnInit(){var P,ie;this.appConfig=this.data.appConfig||null,this.showDisableStepper=!!(null===(P=this.appConfig)||void 0===P?void 0:P.enable2FA),this.secretFormGroup=this.formBuilder.group({secret:[{value:(null===(ie=this.appConfig)||void 0===ie?void 0:ie.enable2FA)?"":this.generateSecret(),disabled:!0},Ie.kI.required]})}generateSecret(){const P=pt.authenticator.generateSecret();return this.otpauth=pt.authenticator.keyuri("","Ride The Lightning (RTL)",P),P}onAuthenticate(){if(!this.passwordFormGroup.controls.password.value)return!0;this.flgValidated=!1,this.store.dispatch((0,Ve.QO)({payload:Ce(this.passwordFormGroup.controls.password.value).toString()})),this.rtlEffects.isAuthorizedRes.pipe((0,fe.q)(1)).subscribe(P=>{"ERROR"!==P?(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(P){this.snackBar.open("Secret code "+this.secretFormGroup.controls.secret.value+" copied.")}onVerifyToken(){var P,ie;if(null===(P=this.appConfig)||void 0===P?void 0:P.enable2FA)this.store.dispatch((0,Ve.Uy)({payload:{secret2fa:""}})),this.generateSecret(),this.isTokenValid=!0;else{if(!this.tokenFormGroup.controls.token.value)return!0;if(this.isTokenValid=pt.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((0,Ve.Uy)({payload:{secret2fa:this.secretFormGroup.controls.secret.value}})),this.tokenFormGroup.controls.token.setValue("")}this.flgValidated=!0,this.appConfig&&(this.appConfig.enable2FA=!(null===(ie=this.appConfig)||void 0===ie?void 0:ie.enable2FA))}stepSelectionChanged(P){switch(P.selectedIndex){case 0:default:this.passwordFormLabel="Authenticate with your RTL password";break;case 1:case 2:this.passwordFormLabel="User authenticated successfully"}P.selectedIndex{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(Q.WI),e.Y36(C.yh),e.Y36(Ie.qu),e.Y36(tt.V),e.Y36(Dt.ux))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-two-factor-auth"]],viewQuery:function(P,ie){if(1&P&&e.Gf(Ot,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.stepper=We.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-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-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,"value","size","errorCorrectionLevel",4,"ngIf"],["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-button","","color","primary","tabindex","6","type","button","matStepperNext",""],[3,"value","size","errorCorrectionLevel"],[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-button","","color","primary","tabindex","8","type","button",3,"click"],["fxFlex","100",1,"w-100","alert","alert-warn"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Setup Two Factor Authentication"),e.qZA()(),e.TgZ(6,"button",5),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"div",7)(10,"mat-vertical-stepper",8,9),e.NdJ("selectionChange",function(Ht){return ie.stepSelectionChanged(Ht)}),e.TgZ(12,"mat-step",10)(13,"form",11),e.YNc(14,Nt,1,1,"ng-template",12),e.TgZ(15,"div",0)(16,"mat-form-field",1),e._UZ(17,"input",13),e.YNc(18,gt,2,0,"mat-error",14),e.qZA()(),e.TgZ(19,"div",15)(20,"button",16),e.NdJ("click",function(){return ie.onAuthenticate()}),e._uU(21,"Confirm"),e.qZA()()()(),e.YNc(22,Qt,17,8,"mat-step",17),e.YNc(23,mt,5,4,"mat-step",18),e.YNc(24,rt,5,4,"mat-step",18),e.qZA(),e.TgZ(25,"div",19)(26,"button",20),e._uU(27),e.qZA()()()()()()),2&P&&(e.xp6(6),e.Q6J("mat-dialog-close",!1),e.xp6(4),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",ie.passwordFormGroup)("editable",ie.flgEditable),e.xp6(1),e.Q6J("formGroup",ie.passwordFormGroup),e.xp6(5),e.Q6J("ngIf",null==ie.passwordFormGroup||null==ie.passwordFormGroup.controls||null==ie.passwordFormGroup.controls.password||null==ie.passwordFormGroup.controls.password.errors?null:ie.passwordFormGroup.controls.password.errors.required),e.xp6(4),e.Q6J("ngIf",!ie.showDisableStepper),e.xp6(1),e.Q6J("ngIf",!ie.showDisableStepper),e.xp6(1),e.Q6J("ngIf",ie.showDisableStepper),e.xp6(2),e.Q6J("mat-dialog-close",!1),e.xp6(1),e.Oqu(ie.flgValidated&&ie.isTokenValid?"Close":"Cancel"))},directives:[_.xw,_.yH,N.dk,_.Wh,Te.lW,Q.ZT,N.dn,di.Vq,di.C0,Ie._Y,Ie.JL,Ie.sg,di.VY,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.JJ,Ie.u,Ie.Q7,X.O5,ut.TO,Zt.uU,V.BN,ut.R9,ui.y,di.Ic],styles:[""]}),G})();var Ae=p(5986),Ge=p(4834);const ot=["authForm"];function lt(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Current password is required."),e.qZA())}function Ct(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.errorMsg)}}function mi(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.errorConfirmMsg)}}function Jt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"form",10,11)(2,"div",12),e._UZ(3,"fa-icon",4),e.TgZ(4,"span",5),e._uU(5,"Password"),e.qZA()(),e.TgZ(6,"mat-form-field")(7,"input",13),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().currPassword=We}),e.qZA(),e.YNc(8,lt,2,0,"mat-error",14),e.qZA(),e.TgZ(9,"mat-form-field")(10,"input",15),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().newPassword=We}),e.qZA(),e.YNc(11,Ct,2,1,"mat-error",14),e.qZA(),e.TgZ(12,"mat-form-field")(13,"input",16),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw().confirmPassword=We}),e.qZA(),e.YNc(14,mi,2,1,"mat-error",14),e.qZA(),e.TgZ(15,"div",17)(16,"button",18),e.NdJ("click",function(){return e.CHM(P),e.oxw().onResetPassword()}),e._uU(17,"Reset"),e.qZA(),e.TgZ(18,"button",19),e.NdJ("click",function(){return e.CHM(P),e.oxw().onChangePassword()}),e._uU(19,"Change Password"),e.qZA()(),e.TgZ(20,"div",20),e._UZ(21,"mat-divider",21),e.qZA()()}if(2&G){const P=e.oxw();e.xp6(3),e.Q6J("icon",P.faLock),e.xp6(4),e.Q6J("ngModel",P.currPassword),e.xp6(1),e.Q6J("ngIf",!P.currPassword),e.xp6(2),e.Q6J("ngModel",P.newPassword),e.xp6(1),e.Q6J("ngIf",P.matchOldAndNewPasswords()),e.xp6(2),e.Q6J("ngModel",P.confirmPassword),e.xp6(1),e.Q6J("ngIf",P.matchNewPasswords()),e.xp6(7),e.Q6J("inset",!0)}}let ei=(()=>{class G{constructor(P,ie,We,Ht,Ci){this.logger=P,this.store=ie,this.actions=We,this.router=Ht,this.sessionService=Ci,this.faInfoCircle=y.sqG,this.faUserLock=y.FJU,this.faUserClock=y.hnx,this.faLock=y.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(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.appConfig=P,this.logger.info(this.appConfig)}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.selNode=P}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(P=>P.type===j.pg.RESET_PASSWORD_RES)).subscribe(P=>{var ie;if(j.kO.includes(this.currPassword.toLowerCase()))switch(null===(ie=this.selNode.lnImplementation)||void 0===ie?void 0:ie.toUpperCase()){case"CLN":this.router.navigate(["/cln/home"]);break;case"ECL":this.router.navigate(["/ecl/home"]);break;default:this.router.navigate(["/lnd/home"])}this.form&&this.form.resetForm()})}onChangePassword(){if(!this.currPassword||!this.newPassword||!this.confirmPassword||this.currPassword===this.newPassword||this.newPassword!==this.confirmPassword||j.kO.includes(this.newPassword.toLowerCase()))return!0;this.store.dispatch((0,Ve.c0)({payload:{currPassword:Ce(this.currPassword).toString(),newPassword:Ce(this.newPassword).toString()}}))}matchOldAndNewPasswords(){let P=!1;return this.form&&this.form.controls&&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.",P=!0):j.kO.includes(this.newPassword.toLowerCase())?(this.form.controls.newpassword.setErrors({invalid:!0}),this.errorMsg=null==j.kO?void 0:j.kO.reduce((ie,We,Ht)=>Ht{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh),e.Y36(d.eX),e.Y36(I.F0),e.Y36(Ae.m))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-auth-settings"]],viewQuery:function(P,ie){if(1&P&&e.Gf(ot,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.form=We.first)}},decls:14,vars:4,consts:[["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"padding-gap-x-large"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container mt-1",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],[1,"mb-1","settings-container","page-sub-title-container","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],[1,"alert","alert-info"],[1,"mt-1","mr-1","alert-icon",3,"icon"],[1,"mt-1"],["mat-flat-button","","color","primary","tabindex","6",1,"mb-2",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["authForm","ngForm"],["fxLayout","row","fxLayoutAlign","start start",1,"mb-2"],["autoFocus","","matInput","","placeholder","Current Password","type","password","id","currpassword","name","currpassword","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["matInput","","placeholder","New Password","type","password","id","newpassword","name","newpassword","tabindex","2","required","",3,"ngModel","ngModelChange"],["matInput","","placeholder","Confirm New Password","type","password","id","confirmpassword","name","confirmpassword","tabindex","3","required","",3,"ngModel","ngModelChange"],["fxLayout","row","fxLayoutAlign","start start",1,"mt-1"],["mat-stroked-button","","color","primary","type","reset","tabindex","4",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","5","type","submit",3,"click"],["fxLayout","column","fxFlex","100","fxLayoutAlign","end stretch",1,"my-2"],[3,"inset"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0),e.YNc(1,Jt,22,8,"form",1),e.TgZ(2,"div",2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Two Factor Authentication"),e.qZA()(),e.TgZ(7,"div",6),e._UZ(8,"fa-icon",7),e.TgZ(9,"span"),e._uU(10,"Protect your account from unauthorized access by requiring a second authentication method in addition to your password."),e.qZA()(),e.TgZ(11,"div",8)(12,"button",9),e.NdJ("click",function(){return ie.on2FAuth()}),e._uU(13),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("ngIf",null==ie.appConfig?null:ie.appConfig.allowPasswordUpdate),e.xp6(3),e.Q6J("icon",ie.faUserClock),e.xp6(4),e.Q6J("icon",ie.faInfoCircle),e.xp6(5),e.Oqu(ie.appConfig.enable2FA?"Disable 2FA":"Enable 2FA"))},directives:[_.xw,_.yH,_.Wh,X.O5,Ie._Y,Ie.JL,Ie.F,V.BN,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,ut.TO,Te.lW,Ge.d],styles:[""]}),G})();var Qi=p(4623);function hi(G,Le){1&G&&e._UZ(0,"mat-divider",7)}function si(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,hi,1,0,"mat-divider",6),e.qZA()),2&G){const P=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,P.configData)),e.xp6(2),e.Q6J("ngIf",""!==P.configData)}}function Ji(G,Le){if(1&G&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Zi(G,Le){if(1&G&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Vi(G,Le){1&G&&e._UZ(0,"mat-divider",15),2&G&&e.Q6J("inset",!0)}function Ui(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Ji,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Zi,2,1,"h4",12),e.qZA(),e.YNc(5,Vi,1,1,"mat-divider",13),e.qZA()),2&G){const P=Le.$implicit;e.xp6(2),e.Q6J("ngIf",P.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",P.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",P.indexOf("[")<0)}}function Ue(G,Le){if(1&G&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,Ui,6,3,"mat-list-item",9),e.qZA()()),2&G){const P=e.oxw();e.xp6(2),e.Q6J("ngForOf",P.configData)}}let Tt=(()=>{class G{constructor(P,ie,We){this.store=P,this.rtlEffects=ie,this.router=We,this.configData="",this.fileFormat="INI",this.faCog=y.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.dispatch((0,Ve.Q2)({payload:"bitcoind"})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{const ie=P.data;this.fileFormat=P.format,this.configData=""===ie||!ie||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==ie&&ie&&"JSON"===this.fileFormat?ie:"":ie.split("\n")})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(tt.V),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,si,5,4,"div",2),e.YNc(3,Ue,3,1,"div",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",""!==ie.configData&&"JSON"===ie.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==ie.configData&&("INI"===ie.fileFormat||"HOCON"===ie.fileFormat)))},directives:[_.xw,_.yH,_.Wh,X.O5,Ge.d,Qi.i$,X.sg,Qi.Tg,N.$j],pipes:[X.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})();function ve(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}let Qe=(()=>{class G{constructor(P,ie,We){this.dialogRef=P,this.store=ie,this.rtlEffects=We,this.password="",this.isAuthenticated=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.rtlEffects.isAuthorizedRes.pipe((0,fe.q)(1)).subscribe(P=>{"ERROR"!==P?(this.isAuthenticated=!0,this.store.dispatch((0,Ve.M6)({payload:this.isAuthenticated}))):this.isAuthenticated=!1})}onAuthenticate(){if(!this.password)return!0;this.store.dispatch((0,Ve.QO)({payload:Ce(this.password)}))}onClose(){this.store.dispatch((0,Ve.M6)({payload:this.isAuthenticated}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(C.yh),e.Y36(tt.V))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-is-authorized"]],decls:16,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","fxLayoutAlign","start stretch"],["autoFocus","","matInput","","placeholder","Password","type","password","id","password","name","password","tabindex","1","required","",3,"ngModel","ngModelChange"],[4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end center",1,"mt-1"],["mat-button","","color","primary","tabindex","2","type","submit","default","",3,"click"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Authenticate with your RTL Password"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return ie.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7)(10,"mat-form-field")(11,"input",8),e.NdJ("ngModelChange",function(Ht){return ie.password=Ht}),e.qZA(),e.YNc(12,ve,2,0,"mat-error",9),e.qZA(),e.TgZ(13,"div",10)(14,"button",11),e.NdJ("click",function(){return ie.onAuthenticate()}),e._uU(15,"Confirm"),e.qZA()()()()()()),2&P&&(e.xp6(11),e.Q6J("ngModel",ie.password),e.xp6(1),e.Q6J("ngIf",!ie.password))},directives:[_.xw,_.Wh,_.yH,N.dk,Te.lW,N.dn,Ie._Y,Ie.JL,Ie.F,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,X.O5,ut.TO],styles:[""]}),G})();const _t=function(){return{initial:!1}};function se(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",11),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[2].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link)("state",e.DdM(4,_t)),e.xp6(1),e.Oqu(P.links[2].name)}}function Xe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[3].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[3].link),e.Q6J("active",P.activeLink===P.links[3].link),e.xp6(1),e.Oqu(P.links[3].name)}}function xt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",12),e.NdJ("click",function(){return e.CHM(P),e.oxw().showLnConfigClicked()}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.Q6J("active",P.activeLink===P.links[4].link),e.xp6(1),e.Oqu(P.links[4].name)}}let Bt=(()=>{class G{constructor(P,ie,We,Ht){this.store=P,this.router=ie,this.rtlEffects=We,this.activatedRoute=Ht,this.faTools=y.CgH,this.showLnConfig=!1,this.lnImplementationStr="",this.links=[{link:"nodelayout",name:"Application Layout"},{link:"pglayout",name:"Page Layout"},{link:"services",name:"Services"},{link:"experimental",name:"Experimental"},{link:"lnconfig",name:this.lnImplementationStr}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeLink=We?We.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{var We;switch(this.showLnConfig=!1,this.selNode=ie,null===(We=this.selNode.lnImplementation)||void 0===We?void 0:We.toUpperCase()){case"CLN":this.lnImplementationStr="Core 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[4].name=this.lnImplementationStr,this.showLnConfig=!0)})}showLnConfigClicked(){this.store.dispatch((0,Ve.qR)({payload:{maxWidth:"50rem",data:{component:Qe}}})),this.rtlEffects.closeAlert.pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{P&&(this.activeLink=this.links[4].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(I.F0),e.Y36(tt.V),e.Y36(I.gz))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-node-config"]],decls:17,vars:10,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"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","click",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","space-between stretch",1,"mat-tab-body-wrapper","mb-2"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","click"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Node Config"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5)(8,"div",6),e.NdJ("click",function(){return ie.activeLink=ie.links[0].link}),e._uU(9),e.qZA(),e.TgZ(10,"div",6),e.NdJ("click",function(){return ie.activeLink=ie.links[1].link}),e._uU(11),e.qZA(),e.YNc(12,se,2,5,"div",7),e.YNc(13,Xe,2,3,"div",8),e.YNc(14,xt,2,2,"div",9),e.qZA(),e.TgZ(15,"div",10),e._UZ(16,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faTools),e.xp6(7),e.s9C("routerLink",ie.links[0].link),e.Q6J("active",ie.activeLink===ie.links[0].link),e.xp6(1),e.Oqu(ie.links[0].name),e.xp6(1),e.s9C("routerLink",ie.links[1].link),e.Q6J("active",ie.activeLink===ie.links[1].link),e.xp6(1),e.Oqu(ie.links[1].name),e.xp6(1),e.Q6J("ngIf","LND"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf",ie.showLnConfig))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,H.Nj,I.rH,X.O5,_.yH,I.lC],styles:[""]}),G})();function bi(G,Le){1&G&&e._UZ(0,"mat-divider",7)}function Si(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"pre",5),e._uU(2),e.ALo(3,"json"),e.qZA(),e.YNc(4,bi,1,0,"mat-divider",6),e.qZA()),2&G){const P=e.oxw();e.xp6(2),e.Oqu(e.lcZ(3,2,P.configData)),e.xp6(2),e.Q6J("ngIf",""!==P.configData)}}function Xi(G,Le){if(1&G&&(e.TgZ(0,"h2"),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function Wi(G,Le){if(1&G&&(e.TgZ(0,"h4",14),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P)}}function on(G,Le){1&G&&e._UZ(0,"mat-divider",15),2&G&&e.Q6J("inset",!0)}function pn(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-card-subtitle",7),e.YNc(2,Xi,2,1,"h2",10),e.qZA(),e.TgZ(3,"mat-card-subtitle",11),e.YNc(4,Wi,2,1,"h4",12),e.qZA(),e.YNc(5,on,1,1,"mat-divider",13),e.qZA()),2&G){const P=Le.$implicit;e.xp6(2),e.Q6J("ngIf",P.indexOf("[")>=0),e.xp6(2),e.Q6J("ngIf",P.indexOf("[")<0),e.xp6(1),e.Q6J("ngIf",P.indexOf("[")<0)}}function ii(G,Le){if(1&G&&(e.TgZ(0,"div",8)(1,"mat-list"),e.YNc(2,pn,6,3,"mat-list-item",9),e.qZA()()),2&G){const P=e.oxw();e.xp6(2),e.Q6J("ngForOf",P.configData)}}let Ri=(()=>{class G{constructor(P,ie,We){this.store=P,this.rtlEffects=ie,this.router=We,this.configData="",this.fileFormat="INI",this.faCog=y.b7W,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.dispatch((0,Ve.Q2)({payload:"ln"})),this.rtlEffects.showLnConfig.pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{const ie=P.data;this.fileFormat=P.format,this.configData=""===ie||!ie||"INI"!==this.fileFormat&&"HOCON"!==this.fileFormat?""!==ie&&ie&&"JSON"===this.fileFormat?ie:"":ie.split("\n")})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(tt.V),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Si,5,4,"div",2),e.YNc(3,ii,3,1,"div",3),e.qZA()()),2&P&&(e.xp6(2),e.Q6J("ngIf",""!==ie.configData&&"JSON"===ie.fileFormat),e.xp6(1),e.Q6J("ngIf",""!==ie.configData&&("INI"===ie.fileFormat||"HOCON"===ie.fileFormat)))},directives:[_.xw,_.yH,_.Wh,X.O5,Ge.d,Qi.i$,X.sg,Qi.Tg,N.$j],pipes:[X.Ts],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})();var st=p(2994),Rt=p(429),Wt=p(6523),fi=p(62),Ei=p(1125),Ni=p(2368),mn=p(9814),In=p(3322);function Rn(G,Le){if(1&G&&(e.TgZ(0,"mat-option",35),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P.id),e.xp6(1),e.hij(" ",P.id," ")}}function tr(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Currency unit is required."),e.qZA())}function gn(G,Le){if(1&G&&(e.TgZ(0,"mat-radio-button",36),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P)("checked",ie.selNode.settings.userPersona===P),e.xp6(1),e.hij(" ",e.lcZ(2,3,P)," ")}}const Ti=function(G){return{"mr-4":G}};function Ki(G,Le){if(1&G&&(e.TgZ(0,"mat-radio-button",37),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P)("ngClass",e.VKq(3,Ti,ie.screenSize===ie.screenSizeEnum.XS||ie.screenSize===ie.screenSizeEnum.SM)),e.xp6(1),e.hij("",P.name," ")}}const wn=function(G){return{skin:!0,"selected-color":G}};function qn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"span",38)(1,"div",39),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().changeThemeColor(Ht.id)}),e.ALo(2,"lowercase"),e.qZA(),e._uU(3),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Tol(e.lcZ(2,4,P.id)),e.Q6J("ngClass",e.VKq(6,wn,ie.selectedThemeColor===P.id)),e.xp6(2),e.hij(" ",P.name," ")}}let sr=(()=>{class G{constructor(P,ie,We){this.logger=P,this.commonService=ie,this.store=We,this.faExclamationTriangle=y.eHv,this.faMoneyBillAlt=y.co4,this.faPaintBrush=y.XsY,this.faInfoCircle=y.sqG,this.faEyeSlash=y.Aq,this.userPersonas=[j.ol.OPERATOR,j.ol.MERCHANT],this.currencyUnits=j.Er,this.themeModes=j.wZ.modes,this.themeColors=j.wZ.themes,this.selectedThemeMode=j.wZ.modes[0],this.selectedThemeColor=j.wZ.themes[0].id,this.currencyUnit="BTC",this.smallerCurrencyUnit="Sats",this.showSettingOption=!0,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.selectedThemeMode=this.themeModes.find(ie=>this.selNode.settings.themeMode===ie.id)||this.themeModes[0],this.selectedThemeColor=this.selNode.settings.themeColor,this.selNode.settings.fiatConversion||(this.selNode.settings.currencyUnit=""),this.previousSettings=JSON.parse(JSON.stringify(this.selNode.settings)),this.logger.info(P)})}onCurrencyChange(P){this.selNode.settings.currencyUnits=[...j.uA,P.value],this.store.dispatch((0,Wt.JT)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Rt.oo)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,st.Zr)({payload:{userPersona:this.selNode.settings.userPersona,channelBackupPath:this.selNode.settings.channelBackupPath,selCurrencyUnit:P.value,currencyUnits:this.selNode.settings.currencyUnits,fiatConversion:this.selNode.settings.fiatConversion,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}toggleSettings(P,ie){this.selNode.settings[P]=!this.selNode.settings[P]}changeThemeColor(P){this.selectedThemeColor=P,this.selNode.settings.themeColor=P}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((0,Ve.zQ)({payload:{uiMessage:j.m6.UPDATE_NODE_SETTINGS,settings:this.selNode.settings}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl}}))}onResetSettings(){const P=this.selNode.index||-1;this.selNode.settings=this.previousSettings,this.selectedThemeMode=this.themeModes.find(ie=>ie.id===this.previousSettings.themeMode)||this.themeModes[0],this.selectedThemeColor=this.previousSettings.themeColor,this.store.dispatch((0,Ve.fk)({payload:{uiMessage:j.m6.NO_SPINNER,prevLnNodeIndex:+P,currentLnNode:this.selNode,isInitialSetup:!0}}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-node-settings"]],decls:77,vars:20,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxLayout","column","fxLayoutAlign","start stretch",1,"settings-container","page-sub-title-container","mt-1"],["form","ngForm"],["displayMode","flat","multi","false"],["fxLayout","column",1,"flat-expansion-panel","mt-1"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["fxLayout","column","fxLayoutAlign","start stretch"],["fxLayout","row","fxFlex","100",1,"alert","alert-info","mb-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","row wrap","fxLayoutAlign","start center"],["tabindex","1","color","primary","name","unannouncedChannels",3,"ngModel","ngModelChange","change"],["fxFlex","100",1,"alert","alert-warn"],["href","https://www.blockchain.com/api/exchange_rates_api","target","blank"],["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","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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"mat-accordion",3)(4,"mat-expansion-panel",4)(5,"mat-expansion-panel-header")(6,"mat-panel-title"),e._UZ(7,"fa-icon",5),e.TgZ(8,"span",6),e._uU(9,"Open Unannounced Channels"),e.qZA()()(),e.TgZ(10,"div",7)(11,"div",8),e._UZ(12,"fa-icon",9),e.TgZ(13,"span"),e._uU(14,"Use this control to toggle setting which defaults to opening Unannounced Channels."),e.qZA()(),e.TgZ(15,"div",10)(16,"mat-slide-toggle",11),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.unannouncedChannels=Ht})("change",function(Ht){return ie.selNode.settings.unannouncedChannels=Ht.checked?ie.selNode.settings.unannouncedChannels:null}),e._uU(17,"Open Unannounced Channels"),e.qZA()()()(),e.TgZ(18,"mat-expansion-panel",4)(19,"mat-expansion-panel-header")(20,"mat-panel-title"),e._UZ(21,"fa-icon",5),e.TgZ(22,"span",6),e._uU(23,"Balance Display"),e.qZA()()(),e.TgZ(24,"div",7)(25,"div",12),e._UZ(26,"fa-icon",9),e.TgZ(27,"span"),e._uU(28,"Fiat conversion calls "),e.TgZ(29,"strong")(30,"a",13),e._uU(31,"Blockchain.com"),e.qZA()(),e._uU(32," API to get conversion rates."),e.qZA()(),e.TgZ(33,"div",10)(34,"mat-slide-toggle",14),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.fiatConversion=Ht})("change",function(Ht){return ie.selNode.settings.currencyUnit=Ht.checked?ie.selNode.settings.currencyUnit:null}),e._uU(35,"Enable Fiat Conversion"),e.qZA(),e.TgZ(36,"mat-form-field")(37,"mat-select",15,16),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.currencyUnit=Ht})("selectionChange",function(Ht){return ie.onCurrencyChange(Ht)}),e.YNc(39,Rn,2,2,"mat-option",17),e.qZA(),e.YNc(40,tr,2,0,"mat-error",18),e.qZA()()()(),e.TgZ(41,"mat-expansion-panel",4)(42,"mat-expansion-panel-header")(43,"mat-panel-title"),e._UZ(44,"fa-icon",5),e.TgZ(45,"span",6),e._uU(46,"Customization"),e.qZA()()(),e.TgZ(47,"div",7)(48,"div",19)(49,"div",20),e._UZ(50,"fa-icon",9),e.TgZ(51,"span"),e._uU(52,"Dashboard layout will be tailored based on the role selected to better serve its needs."),e.qZA()(),e.TgZ(53,"div",21)(54,"h4"),e._uU(55,"Dashboard Layout"),e.qZA(),e.TgZ(56,"mat-radio-group",22),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.userPersona=Ht}),e.YNc(57,gn,3,5,"mat-radio-button",23),e.qZA()()(),e._UZ(58,"mat-divider",24),e.TgZ(59,"div",25)(60,"div",26)(61,"h4"),e._uU(62,"Mode"),e.qZA(),e.TgZ(63,"mat-radio-group",27),e.NdJ("ngModelChange",function(Ht){return ie.selectedThemeMode=Ht})("change",function(){return ie.chooseThemeMode()}),e.YNc(64,Ki,2,5,"mat-radio-button",28),e.qZA()()(),e._UZ(65,"mat-divider",24),e.TgZ(66,"div",25)(67,"div",29)(68,"h4"),e._uU(69,"Themes"),e.qZA(),e.TgZ(70,"div",30),e.YNc(71,qn,4,8,"span",31),e.qZA()()()()()()(),e.TgZ(72,"div",32)(73,"button",33),e.NdJ("click",function(){return ie.onResetSettings()}),e._uU(74,"Reset"),e.qZA(),e.TgZ(75,"button",34),e.NdJ("click",function(){return ie.onUpdateSettings()}),e._uU(76,"Update"),e.qZA()()()),2&P&&(e.xp6(7),e.Q6J("icon",ie.faEyeSlash),e.xp6(5),e.Q6J("icon",ie.faInfoCircle),e.xp6(4),e.Q6J("ngModel",ie.selNode.settings.unannouncedChannels),e.xp6(5),e.Q6J("icon",ie.faMoneyBillAlt),e.xp6(5),e.Q6J("icon",ie.faExclamationTriangle),e.xp6(8),e.Q6J("ngModel",ie.selNode.settings.fiatConversion),e.xp6(3),e.Q6J("ngModel",ie.selNode.settings.currencyUnit)("disabled",!ie.selNode.settings.fiatConversion)("required",ie.selNode.settings.fiatConversion),e.xp6(2),e.Q6J("ngForOf",ie.currencyUnits),e.xp6(1),e.Q6J("ngIf",ie.selNode.settings.fiatConversion&&!ie.selNode.settings.currencyUnit),e.xp6(4),e.Q6J("icon",ie.faPaintBrush),e.xp6(6),e.Q6J("icon",ie.faInfoCircle),e.xp6(6),e.Q6J("ngModel",ie.selNode.settings.userPersona),e.xp6(1),e.Q6J("ngForOf",ie.userPersonas),e.xp6(1),e.Q6J("inset",!0),e.xp6(5),e.Q6J("ngModel",ie.selectedThemeMode),e.xp6(1),e.Q6J("ngForOf",ie.themeModes),e.xp6(1),e.Q6J("inset",!0),e.xp6(6),e.Q6J("ngForOf",ie.themeColors))},directives:[_.xw,_.yH,J.$V,Ie._Y,Ie.JL,Ie.F,_.Wh,Ei.pp,Ei.ib,Ei.yz,Ei.yK,V.BN,Ni.Rr,Ie.JJ,Ie.On,ut.KE,Oe.gD,we.h,Ie.Q7,X.sg,ce.ey,X.O5,ut.TO,mn.VQ,mn.U0,Ge.d,X.mk,In.oO,Te.lW],pipes:[X.rS,X.i8],styles:[""]}),G})();var ha=p(1365),_a=p(9828),Sr=p(6529),fa=p(2501),zr=p(7238),ta=p(5245),ia=p(9445);const na=function(G){return{error:G}};function qr(G,Le){if(1&G&&e.GkF(0,14),2&G){const P=e.oxw(),ie=e.MAs(18);e.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",e.VKq(2,na,P.errorMessage))}}function Jr(G,Le){if(1&G&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",P," ")}}function Ma(G,Le){if(1&G&&(e.TgZ(0,"mat-option",30),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw(3);e.Q6J("value",P),e.xp6(1),e.hij(" ","ECL"===ie.selNode.lnImplementation?e.lcZ(2,2,P):e.xi3(3,4,P,"_")," ")}}function pa(G,Le){if(1&G&&(e.TgZ(0,"mat-option",30),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ","desc"===P?"Descending":"Ascending"," ")}}function Za(G,Le){if(1&G&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw().$implicit,We=e.oxw(2);e.Q6J("value",P.column)("disabled",ie.columnSelectionSM.length<=1&&ie.columnSelectionSM.includes(P.column)||ie.columnSelectionSM.length>=3&&!ie.columnSelectionSM.includes(P.column)),e.xp6(1),e.hij(" ",P.label?P.label:"ECL"===We.selNode.lnImplementation?e.lcZ(2,3,P.column):e.xi3(3,5,P.column,"_")," ")}}function Pr(G,Le){if(1&G&&(e.TgZ(0,"mat-option",31),e._uU(1),e.ALo(2,"camelCaseWithSpaces"),e.ALo(3,"camelcaseWithReplace"),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw().$implicit,We=e.oxw().$implicit,Ht=e.oxw();e.Q6J("value",P.column)("disabled",ie.columnSelection.length<=2&&ie.columnSelection.includes(P.column)||ie.columnSelection.length>=Ht.nodePageDefs[We.pageId][ie.tableId].maxColumns&&!ie.columnSelection.includes(P.column)),e.xp6(1),e.hij(" ",P.label?P.label:"ECL"===Ht.selNode.lnImplementation?e.lcZ(2,3,P.column):e.xi3(3,5,P.column,"_")," ")}}function Yn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",17)(1,"div",18)(2,"span",19),e._uU(3),e.ALo(4,"camelCaseWithSpaces"),e.ALo(5,"camelcaseWithReplace"),e.qZA(),e.TgZ(6,"mat-form-field",19)(7,"mat-select",20),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.recordsPerPage=We}),e.YNc(8,Jr,2,2,"mat-option",21),e.qZA()(),e.TgZ(9,"mat-form-field",19)(10,"mat-select",22),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.sortBy=We}),e.YNc(11,Ma,4,7,"mat-option",21),e.qZA()(),e.TgZ(12,"mat-form-field",19)(13,"mat-select",23),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.sortOrder=We}),e.YNc(14,pa,2,2,"mat-option",21),e.qZA()(),e.TgZ(15,"mat-form-field",24)(16,"mat-select",25),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.columnSelectionSM=We}),e.YNc(17,Za,4,8,"mat-option",26),e.qZA(),e.TgZ(18,"mat-hint"),e._uU(19,"Column selected (mobile) should be between 1 and 3"),e.qZA()(),e.TgZ(20,"mat-form-field",27)(21,"mat-select",28),e.NdJ("ngModelChange",function(We){return e.CHM(P).$implicit.columnSelection=We})("selectionChange",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).oncolumnSelectionChange(Ht)}),e.YNc(22,Pr,4,8,"mat-option",26),e.qZA(),e.TgZ(23,"mat-hint"),e._uU(24),e.qZA()(),e.TgZ(25,"button",29),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit,Ci=e.oxw().$implicit;return e.oxw().onTableReset(Ci.pageId,Ht)}),e.TgZ(26,"mat-icon"),e._uU(27,"restore"),e.qZA()()()()}if(2&G){const P=Le.$implicit,ie=e.oxw().$implicit,We=e.oxw();e.xp6(3),e.hij("","ECL"===We.selNode.lnImplementation?e.lcZ(4,23,P.tableId):e.xi3(5,25,P.tableId,"_"),":"),e.xp6(4),e.hYB("name","",ie.pageId,"",P.tableId,"-page-size-options"),e.Q6J("disabled",We.nodePageDefs[ie.pageId][P.tableId].disablePageSize)("ngModel",P.recordsPerPage),e.xp6(1),e.Q6J("ngForOf",We.pageSizeOptions),e.xp6(2),e.hYB("name","",ie.pageId,"",P.tableId,"-sort-by"),e.Q6J("ngModel",P.sortBy),e.xp6(1),e.Q6J("ngForOf",P.columnSelection),e.xp6(2),e.hYB("name","",ie.pageId,"",P.tableId,"-sort-order"),e.Q6J("ngModel",P.sortOrder),e.xp6(1),e.Q6J("ngForOf",We.sortOrders),e.xp6(2),e.hYB("name","",ie.pageId,"",P.tableId,"-columns-selection-sm"),e.Q6J("ngModel",P.columnSelectionSM),e.xp6(1),e.Q6J("ngForOf",We.nodePageDefs[ie.pageId][P.tableId].allowedColumns),e.xp6(4),e.hYB("name","",ie.pageId,"",P.tableId,"-columns-selection"),e.Q6J("ngModel",P.columnSelection),e.xp6(1),e.Q6J("ngForOf",We.nodePageDefs[ie.pageId][P.tableId].allowedColumns),e.xp6(2),e.hij("Number of column selected should be between 2 and ",We.nodePageDefs[ie.pageId][P.tableId].maxColumns,"")}}function Vr(G,Le){if(1&G&&e.GkF(0,14),2&G){const P=e.oxw(2),ie=e.MAs(18);e.Q6J("ngTemplateOutlet",ie)("ngTemplateOutletContext",e.VKq(2,na,P.errorMessage))}}const cr=function(G){return{"error-border":G}};function Wa(G,Le){if(1&G&&(e.TgZ(0,"mat-expansion-panel",15)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.ALo(4,"camelCaseWithSpaces"),e.ALo(5,"camelcaseWithReplace"),e.qZA()(),e.YNc(6,Yn,28,28,"div",16),e.YNc(7,Vr,1,4,"ng-container",6),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("ngClass",e.VKq(9,cr,(null==ie.errorMessage?null:ie.errorMessage.page)===P.pageId)),e.xp6(3),e.Oqu("ECL"===ie.selNode.lnImplementation?e.lcZ(4,4,P.pageId):e.xi3(5,6,P.pageId,"_")),e.xp6(3),e.Q6J("ngForOf",P.tables),e.xp6(1),e.Q6J("ngIf",ie.errorMessage&&(null==ie.errorMessage?null:ie.errorMessage.page)===P.pageId)}}function Wr(G,Le){if(1&G&&(e.TgZ(0,"mat-panel-title"),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&G){const P=e.oxw().error;e.xp6(1),e.hij("Page ",e.lcZ(2,1,P.page),"")}}function Ya(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",36),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.qZA()()),2&G){const P=e.oxw().error;e.xp6(4),e.Oqu(P.message)}}function va(G,Le){if(1&G&&(e.TgZ(0,"mat-list-item")(1,"mat-icon",36),e._uU(2,"close"),e.qZA(),e.TgZ(3,"span"),e._uU(4),e.ALo(5,"titlecase"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(4),e.AsE("Table ",e.lcZ(5,2,P.table)," ",P.message,"")}}const dr=function(G){return{"error-border p-2":G}};function ya(G,Le){if(1&G&&(e.TgZ(0,"div",32),e.YNc(1,Wr,3,3,"mat-panel-title",33),e.TgZ(2,"mat-list",34),e.YNc(3,Ya,5,1,"mat-list-item",33),e.YNc(4,va,6,4,"mat-list-item",35),e.qZA()()),2&G){const P=Le.error,ie=e.oxw();e.Q6J("ngClass",e.VKq(4,dr,"unknown"===ie.errorMessage.page)),e.xp6(1),e.Q6J("ngIf","unknown"===ie.errorMessage.page),e.xp6(2),e.Q6J("ngIf",P.message),e.xp6(1),e.Q6J("ngForOf",P.tables)}}let kr=(()=>{class G{constructor(P,ie,We,Ht){this.logger=P,this.commonService=ie,this.store=We,this.actions=Ht,this.faPenRuler=y.SoD,this.faExclamationTriangle=y.eHv,this.screenSize="",this.screenSizeEnum=j.cu,this.pageSizeOptions=j.TJ,this.pageSettings=[],this.initialPageSettings=[],this.defaultSettings=[],this.nodePageDefs={},this.sortOrders=j.zZ,this.apiCallStatus=null,this.apiCallStatusEnum=j.Bn,this.errorMessage=null,this.unSubs=[new h.x,new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{switch(this.selNode=P,this.logger.info(this.selNode),this.selNode.lnImplementation){case"CLN":this.initialPageSettings=Object.assign([],j.gG),this.defaultSettings=Object.assign([],j.gG),this.nodePageDefs=j.At,this.store.select(_a.AS).pipe((0,x.R)(this.unSubs[1]),(0,ha.M)(this.store.select(_a.lw))).subscribe(([ie,We])=>{const Ht=JSON.parse(JSON.stringify(ie.pageSettings));if(this.errorMessage=null,this.apiCallStatus=ie.apiCallStatus,this.apiCallStatus.status===j.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Ht,this.initialPageSettings=Ht;else{if(!(null==We?void 0:We.enableOffers)){const Ci=Ht.find(Fn=>"transactions"===Fn.pageId),ji=null==Ci?void 0:Ci.tables.findIndex(Fn=>"offers"===Fn.tableId),hn=null==Ci?void 0:Ci.tables.findIndex(Fn=>"offer_bookmarks"===Fn.tableId);ji>-1&&(null==Ci||Ci.tables.splice(ji,1)),hn>-1&&(null==Ci||Ci.tables.splice(hn,1))}if(!(null==We?void 0:We.enablePeerswap)){const Ci=Ht.findIndex(ji=>"peerswap"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}this.pageSettings=Ht,this.initialPageSettings=Ht}this.logger.info(Ht)}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(ie=>ie.type===j.AB.UPDATE_API_CALL_STATUS_CLN||ie.type===j.AB.SAVE_PAGE_SETTINGS_CLN)).subscribe(ie=>{ie.type===j.AB.UPDATE_API_CALL_STATUS_CLN&&ie.payload.status===j.Bn.ERROR&&"SavePageSettings"===ie.payload.action&&(this.errorMessage=JSON.parse(ie.payload.message))});break;case"ECL":this.initialPageSettings=Object.assign([],j.c3),this.defaultSettings=Object.assign([],j.c3),this.nodePageDefs=j.Xk,this.store.select(fa.nF).pipe((0,x.R)(this.unSubs[1]),(0,ha.M)(this.store.select(fa.LR))).subscribe(([ie,We])=>{const Ht=JSON.parse(JSON.stringify(ie.pageSettings));this.errorMessage=null,this.apiCallStatus=ie.apiCallStatus,this.apiCallStatus.status===j.Bn.ERROR?(this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Ht,this.initialPageSettings=Ht):(this.pageSettings=Ht,this.initialPageSettings=Ht),this.logger.info(Ht)}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(ie=>ie.type===j.lr.UPDATE_API_CALL_STATUS_ECL||ie.type===j.lr.SAVE_PAGE_SETTINGS_ECL)).subscribe(ie=>{ie.type===j.lr.UPDATE_API_CALL_STATUS_ECL&&ie.payload.status===j.Bn.ERROR&&"SavePageSettings"===ie.payload.action&&(this.errorMessage=JSON.parse(ie.payload.message))});break;default:this.initialPageSettings=Object.assign([],j.gK),this.defaultSettings=Object.assign([],j.gK),this.nodePageDefs=j.hG,this.store.select(Sr.Pr).pipe((0,x.R)(this.unSubs[1]),(0,ha.M)(this.store.select(Sr.$k))).subscribe(([ie,We])=>{const Ht=JSON.parse(JSON.stringify(ie.pageSettings));if(this.errorMessage=null,this.apiCallStatus=ie.apiCallStatus,this.apiCallStatus.status===j.Bn.ERROR)this.errorMessage=this.apiCallStatus.message||null,this.pageSettings=Ht,this.initialPageSettings=Ht;else{if(!(null==We?void 0:We.swapServerUrl)||""===We.swapServerUrl.trim()){const Ci=Ht.findIndex(ji=>"loop"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}if(!(null==We?void 0:We.boltzServerUrl)||""===We.boltzServerUrl.trim()){const Ci=Ht.findIndex(ji=>"boltz"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}if(!(null==We?void 0:We.enablePeerswap)){const Ci=Ht.findIndex(ji=>"peerswap"===ji.pageId);Ci>-1&&Ht.splice(Ci,1)}this.pageSettings=Ht,this.initialPageSettings=Ht}this.logger.info(Ht)}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(ie=>ie.type===j.uR.UPDATE_API_CALL_STATUS_LND||ie.type===j.uR.SAVE_PAGE_SETTINGS_LND)).subscribe(ie=>{ie.type===j.uR.UPDATE_API_CALL_STATUS_LND&&ie.payload.status===j.Bn.ERROR&&"SavePageSettings"===ie.payload.action&&(this.errorMessage=JSON.parse(ie.payload.message))})}})}oncolumnSelectionChange(P){P.columnSelection&&(!P.sortBy||!P.columnSelection.includes(P.sortBy))&&(P.sortBy=P.columnSelection[0])}onUpdatePageSettings(){if(this.pageSettings.reduce((P,ie)=>P||ie.tables.reduce((We,Ht)=>!(Ht.recordsPerPage&&Ht.sortBy&&Ht.sortOrder&&Ht.columnSelection&&Ht.columnSelection.length>=2),!1),!1))return!0;switch(this.errorMessage="",this.selNode.lnImplementation){case"CLN":this.store.dispatch((0,Rt.eF)({payload:this.pageSettings}));break;case"ECL":this.store.dispatch((0,st.eF)({payload:this.pageSettings}));break;default:this.store.dispatch((0,Wt.eF)({payload:this.pageSettings}))}}onTableReset(P,ie){var We,Ht;const Ci=this.pageSettings.findIndex(Fn=>Fn.pageId===P),ji=this.pageSettings[Ci].tables.findIndex(Fn=>Fn.tableId===ie.tableId),hn=(null===(We=this.defaultSettings.find(Fn=>Fn.pageId===P))||void 0===We?void 0:We.tables.find(Fn=>Fn.tableId===ie.tableId))||(null===(Ht=this.pageSettings.find(Fn=>Fn.pageId===P))||void 0===Ht?void 0:Ht.tables.find(Fn=>Fn.tableId===ie.tableId));this.pageSettings[Ci].tables.splice(ji,1,hn)}onResetPageSettings(P){"current"===P?(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.initialPageSettings))):(this.errorMessage=null,this.pageSettings=JSON.parse(JSON.stringify(this.defaultSettings)))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(d.eX))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-page-settings"]],decls:19,vars:3,consts:[["fxLayout","column","fxFlex","100","id","head",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"],[3,"ngTemplateOutlet","ngTemplateOutletContext",4,"ngIf"],["displayMode","flat","multi","false"],["fxLayout","column","class","flat-expansion-panel mt-1","expanded","false",3,"ngClass",4,"ngFor","ngForOf"],["fxLayout","row",1,"mt-1"],["mat-stroked-button","","color","primary","tabindex","8",1,"mr-1",3,"click"],["mat-stroked-button","","color","primary","tabindex","9",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","10",3,"click"],["errorObjectBlock",""],[3,"ngTemplateOutlet","ngTemplateOutletContext"],["fxLayout","column","expanded","false",1,"flat-expansion-panel","mt-1",3,"ngClass"],["fxLayout","column","fxLayoutAlign","start stretch","class","padding-gap-x-large table-setting-row",4,"ngFor","ngForOf"],["fxLayout","column","fxLayoutAlign","start stretch",1,"padding-gap-x-large","table-setting-row"],["fxLayout","row","fxLayoutAlign","space-between center"],["fxFlex","10"],["placeholder","Records/Page","tabindex","2","required","",3,"disabled","ngModel","name","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["placeholder","Sort By","tabindex","3","required","",3,"ngModel","name","ngModelChange"],["placeholder","Sort Order","tabindex","4","required","",3,"ngModel","name","ngModelChange"],["fxFlex","15"],["placeholder","Column selection (Mobile)","tabindex","5","multiple","","required","",3,"ngModel","name","ngModelChange"],[3,"value","disabled",4,"ngFor","ngForOf"],["fxFlex","40"],["placeholder","Column selection (Desktop)","tabindex","6","multiple","","required","",3,"ngModel","name","ngModelChange","selectionChange"],["mat-icon-button","","color","primary","type","button","tabindex","7","matTooltip","Reset to Default",3,"click"],[3,"value"],[3,"value","disabled"],[3,"ngClass"],[4,"ngIf"],["role","list"],[4,"ngFor","ngForOf"],[1,"ml-1","icon-small","red"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"form",1,2)(3,"div",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6,"Grid Settings"),e.qZA()(),e.YNc(7,qr,1,4,"ng-container",6),e.TgZ(8,"mat-accordion",7),e.YNc(9,Wa,8,11,"mat-expansion-panel",8),e.qZA()(),e.TgZ(10,"div",9)(11,"button",10),e.NdJ("click",function(){return ie.onResetPageSettings("current")}),e._uU(12,"Reset"),e.qZA(),e.TgZ(13,"button",11),e.NdJ("click",function(){return ie.onResetPageSettings("default")}),e._uU(14,"Reset to Default"),e.qZA(),e.TgZ(15,"button",12),e.NdJ("click",function(){return ie.onUpdatePageSettings()}),e._uU(16,"Save"),e.qZA()()(),e.YNc(17,ya,5,6,"ng-template",null,13,e.W1O)),2&P&&(e.xp6(4),e.Q6J("icon",ie.faPenRuler),e.xp6(3),e.Q6J("ngIf",ie.errorMessage&&"unknown"===ie.errorMessage.page),e.xp6(2),e.Q6J("ngForOf",ie.pageSettings))},directives:[_.xw,_.yH,J.$V,Ie._Y,Ie.JL,Ie.F,_.Wh,V.BN,X.O5,X.tP,Ei.pp,X.sg,Ei.ib,X.mk,In.oO,Ei.yz,Ei.yK,ut.KE,Oe.gD,Ie.Q7,Ie.JJ,Ie.On,ce.ey,ut.bx,Te.lW,zr.gM,ta.Hw,Qi.i$,Qi.Tg],pipes:[ia.i1,ia.D3,X.rS],styles:[".table-setting-row[_ngcontent-%COMP%]:last-child{margin-bottom:3rem}.table-setting-row[_ngcontent-%COMP%]:not(:first-child){margin:3rem 0}"]}),G})();function Dr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[0].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[0].link),e.Q6J("active",P.activeLink===P.links[0].link),e.xp6(1),e.Oqu(P.links[0].name)}}const ra=function(){return{initial:!1}};function wa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[1].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[1].link),e.Q6J("active",P.activeLink===P.links[1].link)("state",e.DdM(4,ra)),e.xp6(1),e.Oqu(P.links[1].name)}}function Pa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",9),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.activeLink=We.links[2].link}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw();e.s9C("routerLink",P.links[2].link),e.Q6J("active",P.activeLink===P.links[2].link),e.xp6(1),e.Oqu(P.links[2].name)}}let ba=(()=>{class G{constructor(P,ie,We){this.store=P,this.router=ie,this.activatedRoute=We,this.faLayerGroup=y.Krp,this.links=[{link:"loop",name:"Loop"},{link:"boltz",name:"Boltz"},{link:"peerswap",name:"Peerswap"}],this.activeLink="",this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){const P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeLink=P?P.link:this.links[0].link,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeLink="CLN"===this.selNode.lnImplementation.toUpperCase()?this.links[2].link:We?We.link:this.links[0].link}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{this.selNode=ie,"CLN"===this.selNode.lnImplementation.toUpperCase()&&(this.activeLink=this.links[2].link,this.router.navigate(["./"+this.activeLink],{relativeTo:this.activatedRoute}))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(I.F0),e.Y36(I.gz))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-services-settings"]],decls:13,vars:4,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","","class","mat-tab-label",3,"active","routerLink","click",4,"ngIf"],["role","tab","mat-tab-link","","class","mat-tab-label",3,"active","routerLink","state","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","click"],["role","tab","mat-tab-link","",1,"mat-tab-label",3,"active","routerLink","state","click"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Services"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,Dr,2,3,"div",6),e.YNc(9,wa,2,5,"div",7),e.YNc(10,Pa,2,3,"div",6),e.qZA(),e.TgZ(11,"div",8),e._UZ(12,"router-outlet"),e.qZA()()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faLayerGroup),e.xp6(7),e.Q6J("ngIf","LND"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","LND"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())),e.xp6(1),e.Q6J("ngIf","CLN"===(null==ie.selNode||null==ie.selNode.lnImplementation?null:ie.selNode.lnImplementation.toUpperCase())))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,X.O5,H.Nj,I.rH,_.yH,I.lC],styles:[""]}),G})();const or=["form"];function aa(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop server URL is required."),e.qZA())}function Ha(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the loop server url with 'https://'."),e.qZA())}function ir(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Loop macaroon path is required."),e.qZA())}let sa=(()=>{class G{constructor(P,ie){this.logger=P,this.store=ie,this.faInfoCircle=y.sqG,this.enableLoop=!1,this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enableLoop=!(!P.settings.swapServerUrl||""===P.settings.swapServerUrl.trim()),this.previousSelNode=JSON.parse(JSON.stringify(this.selNode)),this.logger.info(P)})}onEnableServiceChanged(P){this.enableLoop=P.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((0,Ve.jS)({payload:{uiMessage:j.m6.UPDATE_LOOP_SETTINGS,service:j.JX.LOOP,settings:{enable:this.enableLoop,serverUrl:this.selNode.settings.swapServerUrl,macaroonPath:this.selNode.authentication.swapMacaroonPath}}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.selNode.settings.enableOffers}}))}onReset(){this.selNode=JSON.parse(JSON.stringify(this.previousSelNode)),this.enableLoop=!(!this.selNode.settings.swapServerUrl||""===this.selNode.settings.swapServerUrl.trim())}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-loop-service-settings"]],viewQuery:function(P,ie){if(1&P&&e.Gf(or,7),2&P){let We;e.iGM(We=e.CRH())&&(ie.form=We.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(P,ie){if(1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"loopd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ht){return ie.enableLoop=Ht})("change",function(Ht){return ie.onEnableServiceChanged(Ht)}),e._uU(16,"Enable Loop Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ht){return ie.selNode.settings.swapServerUrl=Ht}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for loop server REST APIs, eg. https://localhost:8081"),e.qZA(),e.YNc(22,aa,2,0,"mat-error",11),e.YNc(23,Ha,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ht){return ie.selNode.authentication.swapMacaroonPath=Ht}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing service 'loop.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Local\\\\Loop\\\\testnet"),e.qZA(),e.YNc(28,ir,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return ie.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return ie.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&P){const We=e.MAs(19);e.xp6(2),e.Q6J("icon",ie.faInfoCircle),e.xp6(13),e.Q6J("ngModel",ie.enableLoop),e.xp6(3),e.Q6J("ngModel",ie.selNode.settings.swapServerUrl)("required",ie.enableLoop)("disabled",!ie.enableLoop),e.xp6(4),e.Q6J("ngIf",!ie.selNode.settings.swapServerUrl&&ie.enableLoop),e.xp6(1),e.Q6J("ngIf",(null==We||null==We.errors?null:We.errors.invalid)&&ie.enableLoop),e.xp6(2),e.Q6J("ngModel",ie.selNode.authentication.swapMacaroonPath)("required",ie.enableLoop)("disabled",!ie.enableLoop),e.xp6(3),e.Q6J("ngIf",!ie.selNode.authentication.swapMacaroonPath&&ie.enableLoop)}},directives:[_.xw,_.yH,J.$V,V.BN,Ie._Y,Ie.JL,Ie.F,_.Wh,Ni.Rr,we.h,Ie.JJ,Ie.On,ut.KE,Yt.Nt,Ie.Fj,Ie.Q7,ut.bx,X.O5,ut.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})();const Yr=["form"];function Nr(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz server URL is required."),e.qZA())}function Br(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Specify the boltz server url with 'https://'."),e.qZA())}function Sa(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Boltz macaroon path is required."),e.qZA())}let Xa=(()=>{class G{constructor(P,ie){this.logger=P,this.store=ie,this.faInfoCircle=y.sqG,this.enableBoltz=!1,this.serverUrl="",this.macaroonPath="",this.unSubs=[new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.enableBoltz=!(!P.settings.boltzServerUrl||""===P.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(P)})}onEnableServiceChanged(P){this.enableBoltz=P.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((0,Ve.jS)({payload:{uiMessage:j.m6.UPDATE_BOLTZ_SETTINGS,service:j.JX.BOLTZ,settings:{enable:this.enableBoltz,serverUrl:this.serverUrl,macaroonPath:this.macaroonPath}}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.serverUrl,enableOffers:this.selNode.settings.enableOffers}}))}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(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-boltz-service-settings"]],viewQuery:function(P,ie){if(1&P&&e.Gf(Yr,7),2&P){let We;e.iGM(We=e.CRH())&&(ie.form=We.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(P,ie){if(1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"boltzd"),e.qZA(),e._uU(7," is running and accessible to RTL before enabling this service. Click "),e.TgZ(8,"strong")(9,"a",3),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about the installation."),e.qZA()(),e.TgZ(12,"form",4,5)(14,"div",6)(15,"mat-slide-toggle",7),e.NdJ("ngModelChange",function(Ht){return ie.enableBoltz=Ht})("change",function(Ht){return ie.onEnableServiceChanged(Ht)}),e._uU(16,"Enable Boltz Service"),e.qZA(),e.TgZ(17,"mat-form-field",8)(18,"input",9,10),e.NdJ("ngModelChange",function(Ht){return ie.serverUrl=Ht}),e.qZA(),e.TgZ(20,"mat-hint"),e._uU(21,"Service url for boltz server REST APIs, eg. https://localhost:9003"),e.qZA(),e.YNc(22,Nr,2,0,"mat-error",11),e.YNc(23,Br,2,0,"mat-error",11),e.qZA(),e.TgZ(24,"mat-form-field")(25,"input",12),e.NdJ("ngModelChange",function(Ht){return ie.macaroonPath=Ht}),e.qZA(),e.TgZ(26,"mat-hint"),e._uU(27,"Path for the folder containing boltz 'admin.macaroon', eg. D:\\\\xyz\\\\AppData\\\\Boltz\\\\testnet"),e.qZA(),e.YNc(28,Sa,2,0,"mat-error",11),e.qZA()()(),e.TgZ(29,"div",13)(30,"button",14),e.NdJ("click",function(){return ie.onReset()}),e._uU(31,"Reset"),e.qZA(),e.TgZ(32,"button",15),e.NdJ("click",function(){return ie.onUpdateService()}),e._uU(33,"Update"),e.qZA()()()),2&P){const We=e.MAs(19);e.xp6(2),e.Q6J("icon",ie.faInfoCircle),e.xp6(13),e.Q6J("ngModel",ie.enableBoltz),e.xp6(3),e.Q6J("ngModel",ie.serverUrl)("required",ie.enableBoltz)("disabled",!ie.enableBoltz),e.xp6(4),e.Q6J("ngIf",(!ie.serverUrl||""===ie.serverUrl.trim())&&ie.enableBoltz),e.xp6(1),e.Q6J("ngIf",(null==We||null==We.errors?null:We.errors.invalid)&&ie.enableBoltz),e.xp6(2),e.Q6J("ngModel",ie.macaroonPath)("required",ie.enableBoltz)("disabled",!ie.enableBoltz),e.xp6(3),e.Q6J("ngIf",!ie.macaroonPath&&ie.enableBoltz)}},directives:[_.xw,_.yH,J.$V,V.BN,Ie._Y,Ie.JL,Ie.F,_.Wh,Ni.Rr,we.h,Ie.JJ,Ie.On,ut.KE,Yt.Nt,Ie.Fj,Ie.Q7,ut.bx,X.O5,ut.TO,Te.lW],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})(),Xn=(()=>{class G{constructor(){}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-ln-services"]],decls:1,vars:0,template:function(P,ie){1&P&&e._UZ(0,"router-outlet")},directives:[I.lC],styles:[""]}),G})();var $e=p(2615),Et=p(9107),Je=p(6087),kt=p(4847),Xt=p(2075),Mi=p(5899);function Pi(G,Le){if(1&G&&(e.TgZ(0,"mat-option",37),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P),e.xp6(1),e.Oqu(ie.getLabel(P))}}function en(G,Le){1&G&&e._UZ(0,"mat-progress-bar",38)}function nr(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"State"),e.qZA())}function Bn(G,Le){if(1&G&&(e.TgZ(0,"td",40),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Oqu(ie.LoopStateEnum[null==P?null:P.state])}}function It(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"Initiation Time"),e.qZA())}function ci(G,Le){if(1&G&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==P?null:P.initiation_time)/1e6,"dd/MMM/y HH:mm"))}}function vt(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"Last Update Time"),e.qZA())}function jt(G,Le){if(1&G&&(e.TgZ(0,"td",40),e._uU(1),e.ALo(2,"date"),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(e.xi3(2,1,(null==P?null:P.last_update_time)/1e6,"dd/MMM/y HH:mm"))}}function Oi(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Amount (Sats)"),e.qZA())}function je(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.amt))}}function Ye(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Cost Server (Sats)"),e.qZA())}function Fe(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.cost_server))}}function At(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Cost Offchain (Sats)"),e.qZA())}function wi(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.cost_offchain))}}function Gi(G,Le){1&G&&(e.TgZ(0,"th",41),e._uU(1,"Cost Onchain (Sats)"),e.qZA())}function Un(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",42),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.hij(" ",e.lcZ(3,1,null==P?null:P.cost_onchain)," ")}}function br(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"HTLC Address"),e.qZA())}const Fa=function(G){return{width:G}};function xa(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Fa,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.htlc_address)}}function Ea(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"ID"),e.qZA())}function Fi(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Fa,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.id)}}function jn(G,Le){1&G&&(e.TgZ(0,"th",39),e._uU(1,"ID (Bytes)"),e.qZA())}function Hs(G,Le){if(1&G&&(e.TgZ(0,"td",40)(1,"span",43)(2,"span",44),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,Fa,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.id_bytes)}}function Er(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"th",45)(1,"div",46)(2,"mat-select",47),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",48),e.NdJ("click",function(){return e.CHM(P),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function to(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"td",49)(1,"button",50),e.NdJ("click",function(We){const Ci=e.CHM(P).$implicit;return e.oxw().onSwapClick(Ci,We)}),e._uU(2,"View Info"),e.qZA()()}}function gs(G,Le){if(1&G&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.emptyTableMessage)}}function Ta(G,Le){if(1&G&&(e.TgZ(0,"td",51),e.YNc(1,gs,2,1,"p",52),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=P.listSwaps&&P.listSwaps.data)||(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)<1)}}const Ls=function(G){return{"display-none":G}};function Ds(G,Le){if(1&G&&e._UZ(0,"tr",53),2&G){const P=e.oxw();e.Q6J("ngClass",e.VKq(1,Ls,(null==P.listSwaps?null:P.listSwaps.data)&&(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)>0))}}function Fs(G,Le){1&G&&e._UZ(0,"tr",54)}function zs(G,Le){1&G&&e._UZ(0,"tr",55)}const Vs=function(){return["all"]},as=function(G){return{"overflow-auto error-border":G,"overflow-auto":!0}},Ur=function(){return["no_swap"]};let ka=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji){this.logger=P,this.commonService=ie,this.store=We,this.loopService=Ht,this.datePipe=Ci,this.camelCaseWithReplace=ji,this.selectedSwapType=j.$I.LOOP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=j.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="loop",this.tableSetting={tableId:"loop",recordsPerPage:j.IV,sortBy:"initiation_time",sortOrder:j.Pi.DESCENDING},this.LoopStateEnum=j.Fq,this.faHistory=y.qO$,this.swapCaption="Loop Out",this.displayedColumns=[],this.listSwaps=new Xt.by([]),this.selFilter="",this.pageSize=j.IV,this.pageSizeOptions=j.TJ,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Sr.Pr).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{var ie,We;this.tableSetting=(null===(ie=P.pageSettings.find(Ht=>Ht.pageId===this.PAGE_ID))||void 0===ie?void 0:ie.tables.find(Ht=>Ht.tableId===this.tableSetting.tableId))||(null===(We=j.gK.find(Ht=>Ht.pageId===this.PAGE_ID))||void 0===We?void 0:We.tables.find(Ht=>Ht.tableId===this.tableSetting.tableId)),this.displayedColumns=this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?JSON.parse(JSON.stringify(this.tableSetting.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSetting.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSetting.recordsPerPage?+this.tableSetting.recordsPerPage:j.IV,this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(P){this.swapCaption=this.selectedSwapType===j.$I.LOOP_IN?"Loop In":"Loop Out",this.loadSwapsTable(this.swapsData)}applyFilter(){this.listSwaps.filter=this.selFilter.trim().toLowerCase()}getLabel(P){const ie=this.nodePageDefs[this.PAGE_ID][this.tableSetting.tableId].allowedColumns.find(We=>We.column===P);return ie?ie.label?ie.label:this.camelCaseWithReplace.transform(ie.column,"_"):this.commonService.titleCase(P)}setFilterPredicate(){this.listSwaps.filterPredicate=(P,ie)=>{var We;let Ht="";switch(this.selFilterBy){case"all":Ht=JSON.stringify(P).toLowerCase();break;case"state":Ht=(null==P?void 0:P.state)?this.LoopStateEnum[null==P?void 0:P.state]:"";break;case"initiation_time":case"last_update_time":Ht=(null===(We=this.datePipe.transform(new Date((P[this.selFilterBy]||0)/1e6),"dd/MMM/y HH:mm"))||void 0===We?void 0:We.toLowerCase())||"";break;default:Ht=void 0===P[this.selFilterBy]?"":"string"==typeof P[this.selFilterBy]?P[this.selFilterBy].toLowerCase():"boolean"==typeof P[this.selFilterBy]?P[this.selFilterBy]?"yes":"no":P[this.selFilterBy].toString()}return"state"===this.selFilterBy?0===Ht.indexOf(ie):Ht.includes(ie)}}onSwapClick(P,ie){var We,Ht;this.loopService.getSwap((null===(Ht=null===(We=P.id_bytes)||void 0===We?void 0:We.replace(/\//g,"_"))||void 0===Ht?void 0:Ht.replace(/\+/g,"-"))||"").pipe((0,x.R)(this.unSubs[1])).subscribe(Ci=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"state",value:j.Fq[Ci.state||""],title:"Status",width:50,type:j.Gi.STRING},{key:"amt",value:Ci.amt,title:"Amount (Sats)",width:50,type:j.Gi.NUMBER}],[{key:"initiation_time",value:(Ci.initiation_time||0)/1e9,title:"Initiation Time",width:50,type:j.Gi.DATE_TIME},{key:"last_update_time",value:(Ci.last_update_time||0)/1e9,title:"Last Update Time",width:50,type:j.Gi.DATE_TIME}],[{key:"cost_server",value:Ci.cost_server,title:"Server Cost (Sats)",width:33,type:j.Gi.NUMBER},{key:"cost_offchain",value:Ci.cost_offchain,title:"Offchain Cost (Sats)",width:33,type:j.Gi.NUMBER},{key:"cost_onchain",value:Ci.cost_onchain,title:"Onchain Cost (Sats)",width:34,type:j.Gi.NUMBER}],[{key:"id_bytes",value:Ci.id_bytes,title:"ID",width:100,type:j.Gi.STRING}],[{key:"htlc_address",value:Ci.htlc_address,title:"HTLC Address",width:100,type:j.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(P){var ie;this.listSwaps=new Xt.by([...P]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(We,Ht)=>We[Ht]&&isNaN(We[Ht])?We[Ht].toLocaleLowerCase():We[Ht]?+We[Ht]:null,null===(ie=this.listSwaps.sort)||void 0===ie||ie.sort({id:this.tableSetting.sortBy,start:this.tableSetting.sortOrder,disableClear:!0}),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===j.$I.LOOP_IN?"Loop in":"Loop out")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(Et.W),e.Y36(X.uU),e.Y36(ia.D3))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-swaps"]],viewQuery:function(P,ie){if(1&P&&(e.Gf(kt.YE,5),e.Gf(Je.NW,5)),2&P){let We;e.iGM(We=e.CRH())&&(ie.sort=We.first),e.iGM(We=e.CRH())&&(ie.paginator=We.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Je.ye,useValue:(0,j.pt)("Swaps")}]),e.TTD],decls:56,vars:18,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","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","state"],["mat-header-cell","","mat-sort-header","",4,"matHeaderCellDef"],["mat-cell","",4,"matCellDef"],["matColumnDef","initiation_time"],["matColumnDef","last_update_time"],["matColumnDef","amt"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","cost_server"],["matColumnDef","cost_offchain"],["matColumnDef","cost_onchain"],["matColumnDef","htlc_address"],["matColumnDef","id"],["matColumnDef","id_bytes"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),e.NdJ("ngModelChange",function(Ht){return ie.selFilterBy=Ht})("selectionChange",function(){return ie.selFilter="",ie.applyFilter()}),e.YNc(9,Pi,2,2,"mat-option",8),e.qZA()(),e.TgZ(10,"mat-form-field",6)(11,"input",9),e.NdJ("ngModelChange",function(Ht){return ie.selFilter=Ht})("input",function(){return ie.applyFilter()})("keyup",function(){return ie.applyFilter()}),e.qZA()()()(),e.TgZ(12,"div",10)(13,"div",11),e.YNc(14,en,1,0,"mat-progress-bar",12),e.TgZ(15,"table",13,14),e.ynx(17,15),e.YNc(18,nr,2,0,"th",16),e.YNc(19,Bn,2,1,"td",17),e.BQk(),e.ynx(20,18),e.YNc(21,It,2,0,"th",16),e.YNc(22,ci,3,4,"td",17),e.BQk(),e.ynx(23,19),e.YNc(24,vt,2,0,"th",16),e.YNc(25,jt,3,4,"td",17),e.BQk(),e.ynx(26,20),e.YNc(27,Oi,2,0,"th",21),e.YNc(28,je,4,3,"td",17),e.BQk(),e.ynx(29,22),e.YNc(30,Ye,2,0,"th",21),e.YNc(31,Fe,4,3,"td",17),e.BQk(),e.ynx(32,23),e.YNc(33,At,2,0,"th",21),e.YNc(34,wi,4,3,"td",17),e.BQk(),e.ynx(35,24),e.YNc(36,Gi,2,0,"th",21),e.YNc(37,Un,4,3,"td",17),e.BQk(),e.ynx(38,25),e.YNc(39,br,2,0,"th",16),e.YNc(40,xa,4,4,"td",17),e.BQk(),e.ynx(41,26),e.YNc(42,Ea,2,0,"th",16),e.YNc(43,Fi,4,4,"td",17),e.BQk(),e.ynx(44,27),e.YNc(45,jn,2,0,"th",16),e.YNc(46,Hs,4,4,"td",17),e.BQk(),e.ynx(47,28),e.YNc(48,Er,6,0,"th",29),e.YNc(49,to,3,0,"td",30),e.BQk(),e.ynx(50,31),e.YNc(51,Ta,2,1,"td",32),e.BQk(),e.YNc(52,Ds,1,3,"tr",33),e.YNc(53,Fs,1,0,"tr",34),e.YNc(54,zs,1,0,"tr",35),e.qZA(),e._UZ(55,"mat-paginator",36),e.qZA()()()),2&P&&(e.xp6(3),e.Q6J("icon",ie.faHistory),e.xp6(2),e.hij("",ie.swapCaption," History"),e.xp6(3),e.Q6J("ngModel",ie.selFilterBy),e.xp6(1),e.Q6J("ngForOf",e.DdM(14,Vs).concat(ie.displayedColumns.slice(0,-1))),e.xp6(2),e.Q6J("ngModel",ie.selFilter),e.xp6(3),e.Q6J("ngIf",!0===ie.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",ie.listSwaps)("ngClass",e.VKq(15,as,"error"===ie.flgLoading[0])),e.xp6(37),e.Q6J("matFooterRowDef",e.DdM(17,Ur)),e.xp6(1),e.Q6J("matHeaderRowDef",ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ie.displayedColumns),e.xp6(1),e.Q6J("pageSize",ie.pageSize)("pageSizeOptions",ie.pageSizeOptions)("showFirstLastButtons",ie.screenSize!==ie.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,V.BN,ut.KE,Oe.gD,Ie.JJ,Ie.On,X.sg,ce.ey,Yt.Nt,Ie.Fj,J.$V,X.O5,Mi.pW,Xt.BZ,kt.YE,X.mk,In.oO,Xt.w1,Xt.fO,Xt.ge,kt.nU,Xt.Dz,Xt.ev,X.PC,In.Zl,Oe.$L,Te.lW,Xt.mD,Xt.yh,Xt.Ke,Xt.Q2,Xt.as,Xt.XQ,Xt.nj,Xt.Gk,Je.NW],pipes:[X.uU,X.JJ],styles:[""]}),G})();const yt=function(G){return["../",G]};function oe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",10),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().onSelectedIndexChange(Ht)}),e._uU(1),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("active",ie.activeTab.link===P.link)("routerLink",e.VKq(3,yt,P.link)),e.xp6(1),e.Oqu(P.name)}}let pe=(()=>{class G{constructor(P,ie,We){this.router=P,this.loopService=ie,this.store=We,this.faInfinity=y.vqe,this.targetConf=2,this.inAmount=25e4,this.quotes=[],this.LoopTypeEnum=j.$I,this.selectedSwapType=j.$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 P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeTab=P||this.links[0],this.selectedSwapType=P&&"loopin"===P.link?j.$I.LOOP_IN:j.$I.LOOP_OUT,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeTab=We||this.links[0],this.selectedSwapType=We&&"loopin"===We.link?j.$I.LOOP_IN:j.$I.LOOP_OUT}}),this.loopService.swapsChanged.pipe((0,x.R)(this.unSubs[1])).subscribe({next:ie=>{var We;this.flgLoading[0]=!1,this.storedSwaps=ie,this.filteredSwaps=null===(We=this.storedSwaps)||void 0===We?void 0:We.filter(Ht=>Ht.type===this.selectedSwapType)},error:ie=>{this.flgLoading[0]="error",this.emptyTableMessage=ie.message?ie.message:"No loop "+(this.selectedSwapType===j.$I.LOOP_IN?"in":"out")+" available."}})}onSelectedIndexChange(P){var ie;this.selectedSwapType="loopin"===P.link?j.$I.LOOP_IN:j.$I.LOOP_OUT,this.filteredSwaps=null===(ie=this.storedSwaps)||void 0===ie?void 0:ie.filter(We=>We.type===this.selectedSwapType)}onLoop(P){P===j.$I.LOOP_IN?this.loopService.getLoopInTermsAndQuotes(this.targetConf).pipe((0,x.R)(this.unSubs[2])).subscribe({next:ie=>{this.store.dispatch((0,Ve.qR)({payload:{data:{minQuote:ie[0],maxQuote:ie[1],direction:P,component:$e.a}}}))}}):this.loopService.getLoopOutTermsAndQuotes(this.targetConf).pipe((0,x.R)(this.unSubs[3])).subscribe({next:ie=>{this.store.dispatch((0,Ve.qR)({payload:{data:{minQuote:ie[0],maxQuote:ie[1],direction:P,component:$e.a}}}))}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(I.F0),e.Y36(Et.W),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e._UZ(1,"fa-icon",1),e.TgZ(2,"span",2),e._uU(3,"Loop"),e.qZA()(),e.TgZ(4,"div",3)(5,"mat-card")(6,"mat-card-content",4)(7,"nav",5),e.YNc(8,oe,2,5,"div",6),e.qZA(),e.TgZ(9,"div",7)(10,"button",8),e.NdJ("click",function(){return ie.onLoop(ie.selectedSwapType)}),e._uU(11),e.qZA()(),e._UZ(12,"rtl-swaps",9),e.qZA()()()),2&P&&(e.xp6(1),e.Q6J("icon",ie.faInfinity),e.xp6(7),e.Q6J("ngForOf",ie.links),e.xp6(3),e.hij("Start ",ie.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",ie.selectedSwapType)("swapsData",ie.filteredSwaps)("flgLoading",ie.flgLoading)("emptyTableMessage",ie.emptyTableMessage))},directives:[_.xw,_.Wh,V.BN,N.a8,N.dn,H.BU,X.sg,H.Nj,I.rH,Te.lW,ka,_.yH],styles:[""]}),G})();var Ke=p(7772),Mt=p(1135),Vt=p(2843),ri=p(262),ni=p(2340),gi=p(1786);let ki=(()=>{class G{constructor(P,ie,We,Ht){this.httpClient=P,this.logger=ie,this.store=We,this.commonService=Ht,this.swapUrl="",this.swaps={},this.swapsChanged=new Mt.X({}),this.unSubs=[new h.x,new h.x,new h.x]}getSwapsList(){return this.swaps}listSwaps(){this.store.dispatch((0,Ve.ac)({payload:j.m6.GET_BOLTZ_SWAPS})),this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/listSwaps",this.httpClient.get(this.swapUrl).pipe((0,x.R)(this.unSubs[0])).subscribe({next:P=>{this.store.dispatch((0,Ve.uO)({payload:j.m6.GET_BOLTZ_SWAPS})),this.swaps=P,this.swapsChanged.next(this.swaps)},error:P=>this.swapsChanged.error(this.handleErrorWithAlert(j.m6.GET_BOLTZ_SWAPS,this.swapUrl,P))})}swapInfo(P){return this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/swapInfo/"+P,this.httpClient.get(this.swapUrl).pipe((0,ri.K)(ie=>(0,B.of)(this.handleErrorWithAlert(j.m6.NO_SPINNER,this.swapUrl,ie))))}serviceInfo(){return this.store.dispatch((0,Ve.ac)({payload:j.m6.GET_SERVICE_INFO})),this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/serviceInfo",this.httpClient.get(this.swapUrl).pipe((0,x.R)(this.unSubs[1]),(0,u.U)(P=>(this.store.dispatch((0,Ve.uO)({payload:j.m6.GET_SERVICE_INFO})),P)),(0,ri.K)(P=>(0,B.of)(this.handleErrorWithAlert(j.m6.GET_SERVICE_INFO,this.swapUrl,P))))}swapOut(P,ie){const We={amount:P,address:ie};return this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/createreverseswap",this.httpClient.post(this.swapUrl,We).pipe((0,ri.K)(Ht=>this.handleErrorWithoutAlert("Swap Out for Address: "+ie,j.m6.NO_SPINNER,Ht)))}swapIn(P){const ie={amount:P};return this.swapUrl=ni.T5+ni.NZ.BOLTZ_API+"/createswap",this.httpClient.post(this.swapUrl,ie).pipe((0,ri.K)(We=>this.handleErrorWithoutAlert("Swap In for Amount: "+P,j.m6.NO_SPINNER,We)))}handleErrorWithoutAlert(P,ie,We){let Ht="";return this.logger.error("ERROR IN: "+P+"\n"+JSON.stringify(We)),this.store.dispatch((0,Ve.uO)({payload:ie})),401===We.status?(Ht="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ve.kS)())):503===We.status?(Ht="Unable to Connect to Boltz Server.",this.store.dispatch((0,Ve.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:We.status,message:"Unable to Connect to Boltz Server",URL:P},component:gi.H}}}))):Ht=this.commonService.extractErrorMessage(We),(0,Vt._)(()=>new Error(Ht))}handleErrorWithAlert(P,ie,We){let Ht="";if(401===We.status&&(this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ve.kS)())),this.logger.error(We),this.store.dispatch((0,Ve.uO)({payload:P})),401===We.status)Ht="Unauthorized User.",this.logger.info("Redirecting to Login"),this.store.dispatch((0,Ve.kS)());else if(503===We.status)Ht="Unable to Connect to Boltz Server.",setTimeout(()=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:"ERROR",alertTitle:"Boltz Not Connected",message:{code:We.status,message:"Unable to Connect to Boltz Server",URL:ie},component:gi.H}}}))},100);else{Ht=this.commonService.extractErrorMessage(We);const Ci=We.error&&We.error.error&&We.error.error.code?We.error.error.code:We.error&&We.error.code?We.error.code:We.code?We.code:We.status;setTimeout(()=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.ERROR,alertTitle:"ERROR",message:{code:Ci,message:Ht,URL:ie},component:gi.H}}}))},100)}return{message:Ht}}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.LFG(M.eN),e.LFG(Me.mQ),e.LFG(C.yh),e.LFG(fi.v))},G.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac}),G})(),$i=(()=>{class G{constructor(){this.serviceInfo={},this.direction=j.hc.SWAP_OUT,this.swapTypeEnum=j.hc}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"mat-expansion-panel",0)(1,"mat-expansion-panel-header")(2,"mat-panel-title")(3,"span",1),e._uU(4,"Service Information"),e.qZA()()(),e.TgZ(5,"div",2)(6,"div",3)(7,"div",4)(8,"h4",5),e._uU(9,"Minimum Amount (Sats)"),e.qZA(),e.TgZ(10,"span",6),e._uU(11),e.ALo(12,"number"),e.qZA()(),e.TgZ(13,"div",4)(14,"h4",5),e._uU(15,"Maximum Amount (Sats)"),e.qZA(),e.TgZ(16,"span",6),e._uU(17),e.ALo(18,"number"),e.qZA()()(),e._UZ(19,"mat-divider",7),e.TgZ(20,"div",3)(21,"div",4)(22,"h4",5),e._uU(23,"Fee Percentage"),e.qZA(),e.TgZ(24,"span",6),e._uU(25),e.ALo(26,"number"),e.qZA()(),e.TgZ(27,"div",4)(28,"h4",5),e._uU(29,"Miner Fee (Sats)"),e.qZA(),e.TgZ(30,"span",6),e._uU(31),e.ALo(32,"number"),e.qZA()()()()()),2&P&&(e.Q6J("expanded",!0),e.xp6(11),e.Oqu(e.lcZ(12,5,null==ie.serviceInfo||null==ie.serviceInfo.limits?null:ie.serviceInfo.limits.minimal)),e.xp6(6),e.Oqu(e.lcZ(18,7,null==ie.serviceInfo||null==ie.serviceInfo.limits?null:ie.serviceInfo.limits.maximal)),e.xp6(8),e.Oqu(e.lcZ(26,9,null==ie.serviceInfo||null==ie.serviceInfo.fees?null:ie.serviceInfo.fees.percentage)),e.xp6(6),e.Oqu(e.lcZ(32,11,ie.direction===ie.swapTypeEnum.SWAP_OUT?null==ie.serviceInfo||null==ie.serviceInfo.fees||null==ie.serviceInfo.fees.miner?null:ie.serviceInfo.fees.miner.reverse:null==ie.serviceInfo||null==ie.serviceInfo.fees||null==ie.serviceInfo.fees.miner?null:ie.serviceInfo.fees.miner.normal)))},directives:[Ei.ib,_.yH,Ei.yz,Ei.yK,_.Wh,_.xw,Ge.d],pipes:[X.JJ],styles:[""]}),G})();function dn(G,Le){1&G&&e.GkF(0)}function An(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"span",5),e._uU(2),e.qZA()()),2&G){const P=e.oxw();e.xp6(2),e.Oqu(null!=P.swapStatus&&P.swapStatus.error?null==P.swapStatus?null:P.swapStatus.error:"Unknown Error.")}}function Gn(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Routing Fee (mSats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",7)(16,"h4",8),e._uU(17,"Claim Transaction ID"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()(),e.TgZ(20,"div",7)(21,"h4",8),e._uU(22,"Lockup Address"),e.qZA(),e.TgZ(23,"span",5),e._uU(24),e.qZA()()()()),2&G){const P=e.oxw();e.xp6(6),e.Oqu(null==P.swapStatus?null:P.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==P.swapStatus?null:P.swapStatus.routingFeeMilliSat)),e.xp6(8),e.Oqu(null==P.swapStatus?null:P.swapStatus.claimTransactionId),e.xp6(5),e.Oqu(null==P.swapStatus?null:P.swapStatus.lockupAddress)}}function En(G,Le){if(1&G&&(e.TgZ(0,"div",4)(1,"div",6)(2,"div",7)(3,"h4",8),e._uU(4,"ID"),e.qZA(),e.TgZ(5,"span",5),e._uU(6),e.qZA()(),e.TgZ(7,"div",7)(8,"h4",8),e._uU(9,"Expected Amount (Sats)"),e.qZA(),e.TgZ(10,"span",5),e._uU(11),e.ALo(12,"number"),e.qZA()()(),e._UZ(13,"mat-divider",9),e.TgZ(14,"div",6)(15,"div",10)(16,"h4",8),e._uU(17,"Address"),e.qZA(),e.TgZ(18,"span",5),e._uU(19),e.qZA()()(),e._UZ(20,"mat-divider",9),e.TgZ(21,"div",6)(22,"div",10)(23,"h4",8),e._uU(24,"BIP 21"),e.qZA(),e.TgZ(25,"span",5),e._uU(26),e.qZA()()()()),2&G){const P=e.oxw();e.xp6(6),e.Oqu(null==P.swapStatus?null:P.swapStatus.id),e.xp6(5),e.Oqu(e.lcZ(12,4,null==P.swapStatus?null:P.swapStatus.expectedAmount)),e.xp6(8),e.Oqu(null==P.swapStatus?null:P.swapStatus.address),e.xp6(7),e.Oqu(null==P.swapStatus?null:P.swapStatus.bip21)}}let kn=(()=>{class G{constructor(){this.swapStatus=null,this.direction=j.hc.SWAP_OUT,this.swapTypeEnum=j.hc}}return G.\u0275fac=function(P){return new(P||G)},G.\u0275cmp=e.Xpm({type:G,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(P,ie){if(1&P&&(e.YNc(0,dn,1,0,"ng-container",0),e.YNc(1,An,3,1,"ng-template",null,1,e.W1O),e.YNc(3,Gn,25,6,"ng-template",null,2,e.W1O),e.YNc(5,En,27,6,"ng-template",null,3,e.W1O)),2&P){const We=e.MAs(2),Ht=e.MAs(4),Ci=e.MAs(6);e.Q6J("ngTemplateOutlet",null!=ie.swapStatus&&ie.swapStatus.error?We:ie.direction===ie.swapTypeEnum.SWAP_OUT?Ht:Ci)}},directives:[X.tP,_.xw,_.yH,_.Wh,Ge.d],pipes:[X.JJ],styles:[""]}),G})();var ar=p(113);function Rr(G,Le){1&G&&e.GkF(0)}const yr=function(G,Le){return{"small-svg":G,"large-svg":Le}};function oa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Reverse Submarine Swap explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Xr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",21)(2,"g",22),e._UZ(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e._UZ(9,"path",29),e.TgZ(10,"defs")(11,"clipPath",30),e._UZ(12,"rect",31),e.qZA()()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 1: Deciding to Reverse Submarine Swap"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Mr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",32),e._UZ(2,"path",33)(3,"path",34)(4,"path",35)(5,"path",36)(6,"path",37)(7,"circle",38)(8,"rect",39),e.TgZ(9,"defs")(10,"pattern",40),e._UZ(11,"use",41),e.qZA(),e._UZ(12,"image",42),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Paying the Lightning Invoice"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function jr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",43)(2,"g",22),e._UZ(3,"path",44)(4,"path",45)(5,"path",46)(6,"path",47)(7,"path",48),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",30),e._UZ(10,"rect",49),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on-chain"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Zn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",50),e._UZ(2,"path",51)(3,"path",52)(4,"path",53)(5,"path",54)(6,"path",55),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,yr,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}let xr=(()=>{class G{constructor(P){this.commonService=P,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=j.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(P){2===P.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===P.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){if(1&P&&(e.YNc(0,Rr,1,0,"ng-container",0),e.YNc(1,oa,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Xr,19,5,"ng-template",null,2,e.W1O),e.YNc(5,Mr,19,5,"ng-template",null,3,e.W1O),e.YNc(7,jr,17,5,"ng-template",null,4,e.W1O),e.YNc(9,Zn,13,5,"ng-template",null,5,e.W1O)),2&P){const We=e.MAs(2),Ht=e.MAs(4),Ci=e.MAs(6),ji=e.MAs(8),hn=e.MAs(10);e.Q6J("ngTemplateOutlet",1===ie.stepNumber?We:2===ie.stepNumber?Ht:3===ie.stepNumber?Ci:4===ie.stepNumber?ji:hn)}},directives:[X.tP,_.xw,_.yH,_.Wh,X.mk,In.oO,N.n5,N.$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:[ar.l]}}),G})();function ja(G,Le){1&G&&e.GkF(0)}const la=function(G,Le){return{"small-svg":G,"large-svg":Le}};function ws(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",8)(3,"path",9)(4,"path",10)(5,"path",11)(6,"path",12)(7,"path",13)(8,"path",14)(9,"path",15)(10,"path",16)(11,"path",17),e.qZA(),e.kcU(),e.TgZ(12,"div",18)(13,"mat-card-title"),e._uU(14,"Boltz Submarine Swaps explained."),e.qZA()(),e.TgZ(15,"div",19)(16,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Ka(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",21),e._UZ(2,"path",22)(3,"path",23)(4,"path",24)(5,"path",25)(6,"path",26)(7,"path",27)(8,"path",28),e.qZA(),e.kcU(),e.TgZ(9,"div",18)(10,"mat-card-title"),e._uU(11,"Step 1: Deciding to Submarine Swap"),e.qZA()(),e.TgZ(12,"div",19)(13,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function Aa(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",29),e._UZ(2,"path",30)(3,"path",31)(4,"path",32)(5,"path",33)(6,"path",34)(7,"circle",35)(8,"rect",36),e.TgZ(9,"defs")(10,"pattern",37),e._UZ(11,"use",38),e.qZA(),e._UZ(12,"image",39),e.qZA()(),e.kcU(),e.TgZ(13,"div",18)(14,"mat-card-title"),e._uU(15,"Step 2: Sending the on-chain funds"),e.qZA()(),e.TgZ(16,"div",19)(17,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function _s(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",40)(2,"g",41),e._UZ(3,"path",42)(4,"path",43)(5,"path",44)(6,"path",45)(7,"path",46),e.qZA(),e.TgZ(8,"defs")(9,"clipPath",47),e._UZ(10,"rect",48),e.qZA()()(),e.kcU(),e.TgZ(11,"div",18)(12,"mat-card-title"),e._uU(13,"Step 3: Receiving the funds on Lightning"),e.qZA()(),e.TgZ(14,"div",19)(15,"mat-card-subtitle",20),e._uU(16," Boltz pays the Lightning invoice to your node and claims the on-chain funds locked in the previous step. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}function vs(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",6),e.NdJ("swipe",function(We){return e.CHM(P),e.oxw().onSwipe(We)}),e.O4$(),e.TgZ(1,"svg",49),e._UZ(2,"path",50)(3,"path",51)(4,"path",52)(5,"path",53)(6,"path",54),e.qZA(),e.kcU(),e.TgZ(7,"div",18)(8,"mat-card-title"),e._uU(9,"Done!"),e.qZA()(),e.TgZ(10,"div",19)(11,"mat-card-subtitle",20),e._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. "),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@sliderAnimation",P.animationDirection),e.xp6(1),e.Q6J("ngClass",e.WLB(2,la,P.screenSize===P.screenSizeEnum.XS,P.screenSize!==P.screenSizeEnum.XS))}}let cn=(()=>{class G{constructor(P){this.commonService=P,this.animationDirection="forward",this.stepNumber=1,this.stepNumberChange=new e.vpe,this.screenSize="",this.screenSizeEnum=j.cu}ngOnInit(){this.screenSize=this.commonService.getScreenSize()}onSwipe(P){2===P.direction&&this.stepNumber<5?(this.stepNumber++,this.animationDirection="forward",this.stepNumberChange.emit(this.stepNumber)):4===P.direction&&this.stepNumber>1&&(this.stepNumber--,this.animationDirection="backward",this.stepNumberChange.emit(this.stepNumber))}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){if(1&P&&(e.YNc(0,ja,1,0,"ng-container",0),e.YNc(1,ws,18,5,"ng-template",null,1,e.W1O),e.YNc(3,Ka,15,5,"ng-template",null,2,e.W1O),e.YNc(5,Aa,19,5,"ng-template",null,3,e.W1O),e.YNc(7,_s,17,5,"ng-template",null,4,e.W1O),e.YNc(9,vs,13,5,"ng-template",null,5,e.W1O)),2&P){const We=e.MAs(2),Ht=e.MAs(4),Ci=e.MAs(6),ji=e.MAs(8),hn=e.MAs(10);e.Q6J("ngTemplateOutlet",1===ie.stepNumber?We:2===ie.stepNumber?Ht:3===ie.stepNumber?Ci:4===ie.stepNumber?ji:hn)}},directives:[X.tP,_.xw,_.yH,_.Wh,X.mk,In.oO,N.n5,N.$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:[ar.l]}}),G})();const xn=["stepper"];function Tn(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.Oqu(P.inputFormLabel)}}function $n(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Amount is required."),e.qZA())}function mr(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.hij("Amount must be greater than or equal to ",e.lcZ(2,1,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.minimal),".")}}function La(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.ALo(2,"number"),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.hij("Amount must be less than or equal to ",e.lcZ(2,1,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.maximal),".")}}function Gr(G,Le){1&G&&(e.TgZ(0,"button",40),e._uU(1,"Next"),e.qZA())}function $a(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",41),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onSwap()}),e._uU(1),e.qZA()}if(2&G){const P=e.oxw(2);e.xp6(1),e.hij("Initiate ",P.swapDirectionCaption,"")}}function ur(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(3);e.Oqu(P.addressFormLabel)}}function at(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Address is required."),e.qZA())}function St(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-step",15)(1,"form",16),e.YNc(2,ur,1,1,"ng-template",17),e.TgZ(3,"div",42)(4,"mat-radio-group",43),e.NdJ("change",function(We){return e.CHM(P),e.oxw(2).onAddressTypeChange(We)}),e.TgZ(5,"mat-radio-button",44),e._uU(6,"Node Local Address"),e.qZA(),e.TgZ(7,"mat-radio-button",45),e._uU(8,"External Address"),e.qZA()(),e.TgZ(9,"mat-form-field",46),e._UZ(10,"input",47),e.YNc(11,at,2,0,"mat-error",24),e.qZA()(),e.TgZ(12,"div",25)(13,"button",48),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onSwap()}),e._uU(14),e.qZA()()()()}if(2&G){const P=e.oxw(2);e.Q6J("stepControl",P.addressFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.addressFormGroup),e.xp6(9),e.Q6J("required","external"===P.addressFormGroup.controls.addressType.value),e.xp6(1),e.Q6J("ngIf",null==P.addressFormGroup.controls.address.errors?null:P.addressFormGroup.controls.address.errors.required),e.xp6(3),e.hij("Initiate ",P.swapDirectionCaption,"")}}function wt(G,Le){if(1&G&&e._uU(0),2&G){const P=e.oxw(2);e.hij("",P.swapDirectionCaption," Status")}}function zt(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",49),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.swapStatus&&null!=P.swapStatus&&P.swapStatus.id?"check":"close")}}function $t(G,Le){1&G&&e._UZ(0,"div")}function pi(G,Le){1&G&&e._UZ(0,"mat-progress-bar",50)}function _i(G,Le){if(1&G&&(e.TgZ(0,"h4",51),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.swapStatus&&P.swapStatus.error?P.swapDirectionCaption+" failed.":P.swapStatus&&P.swapStatus.id?P.swapDirectionCaption+" request placed successfully. You can check the status of the request on the 'Boltz' menu.":P.swapDirectionCaption+" request placed successfully.")}}function Ii(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",52),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onRestart()}),e._uU(1,"Start Again"),e.qZA()}}function zi(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",3)(1,"div",4)(2,"mat-card-header",5)(3,"div",6)(4,"span",7),e._uU(5),e.qZA()(),e.TgZ(6,"div",8)(7,"button",9),e.NdJ("click",function(){return e.CHM(P),e.oxw().showInfo()}),e._uU(8,"?"),e.qZA(),e.TgZ(9,"button",10),e.NdJ("click",function(){return e.CHM(P),e.oxw().onClose()}),e._uU(10,"X"),e.qZA()()(),e.TgZ(11,"mat-card-content",11)(12,"div",12)(13,"mat-vertical-stepper",13,14),e.NdJ("selectionChange",function(We){return e.CHM(P),e.oxw().stepSelectionChanged(We)}),e.TgZ(15,"mat-step",15)(16,"form",16),e.YNc(17,Tn,1,1,"ng-template",17),e.TgZ(18,"div",18),e._UZ(19,"rtl-boltz-service-info",19),e.qZA(),e.TgZ(20,"div",20)(21,"mat-form-field",21),e._UZ(22,"input",22),e.TgZ(23,"mat-hint"),e._uU(24),e.ALo(25,"number"),e.ALo(26,"number"),e.qZA(),e.TgZ(27,"span",23),e._uU(28,"Sats"),e.qZA(),e.YNc(29,$n,2,0,"mat-error",24),e.YNc(30,mr,3,3,"mat-error",24),e.YNc(31,La,3,3,"mat-error",24),e.qZA()(),e.TgZ(32,"div",25),e.YNc(33,Gr,2,0,"button",26),e.YNc(34,$a,2,1,"button",27),e.qZA()()(),e.YNc(35,St,15,6,"mat-step",28),e.TgZ(36,"mat-step",29)(37,"form",16),e.YNc(38,wt,1,1,"ng-template",17),e.TgZ(39,"div",30)(40,"mat-expansion-panel",31)(41,"mat-expansion-panel-header")(42,"mat-panel-title")(43,"span",32),e._uU(44),e.YNc(45,zt,2,1,"mat-icon",33),e.qZA()()(),e.YNc(46,$t,1,0,"div",34),e.qZA(),e.YNc(47,pi,1,0,"mat-progress-bar",35),e.qZA(),e.YNc(48,_i,2,1,"h4",36),e.TgZ(49,"div",25),e.YNc(50,Ii,2,0,"button",37),e.qZA()()()(),e.TgZ(51,"div",38)(52,"button",39),e._uU(53,"Close"),e.qZA()()()()()()}if(2&G){const P=e.oxw(),ie=e.MAs(2);e.Q6J("@opacityAnimation",void 0),e.xp6(3),e.Q6J("fxFlex",P.screenSize===P.screenSizeEnum.XS||P.screenSize===P.screenSizeEnum.SM?"83":"91"),e.xp6(2),e.Oqu(P.swapDirectionCaption),e.xp6(1),e.Q6J("fxFlex",P.screenSize===P.screenSizeEnum.XS||P.screenSize===P.screenSizeEnum.SM?"17":"9"),e.xp6(7),e.Q6J("linear",!0),e.xp6(2),e.Q6J("stepControl",P.inputFormGroup)("editable",P.flgEditable),e.xp6(1),e.Q6J("formGroup",P.inputFormGroup),e.xp6(3),e.Q6J("serviceInfo",P.serviceInfo)("direction",P.direction),e.xp6(3),e.Q6J("step",1e3),e.xp6(2),e.AsE("Range: ",e.lcZ(25,30,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.minimal),"-",e.lcZ(26,32,null==P.serviceInfo||null==P.serviceInfo.limits?null:P.serviceInfo.limits.maximal),""),e.xp6(5),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.required),e.xp6(1),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.min),e.xp6(1),e.Q6J("ngIf",null==P.inputFormGroup||null==P.inputFormGroup.controls||null==P.inputFormGroup.controls.amount||null==P.inputFormGroup.controls.amount.errors?null:P.inputFormGroup.controls.amount.errors.max),e.xp6(2),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_IN),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("stepControl",P.statusFormGroup),e.xp6(1),e.Q6J("formGroup",P.statusFormGroup),e.xp6(3),e.Q6J("expanded",!!P.swapStatus),e.xp6(4),e.Oqu(P.swapStatus?P.swapStatus.id?P.swapDirectionCaption+" request details":P.swapDirectionCaption+" error details":"Waiting for "+P.swapDirectionCaption+" request..."),e.xp6(1),e.Q6J("ngIf",P.swapStatus),e.xp6(1),e.Q6J("ngIf",!P.swapStatus)("ngIfElse",ie),e.xp6(1),e.Q6J("ngIf",!P.swapStatus),e.xp6(1),e.Q6J("ngIf",P.swapStatus),e.xp6(2),e.Q6J("ngIf",P.swapStatus&&(P.swapStatus.error||!P.swapStatus.id)),e.xp6(2),e.Q6J("mat-dialog-close",!1)}}function ln(G,Le){if(1&G&&e._UZ(0,"rtl-boltz-swap-status",53),2&G){const P=e.oxw();e.Q6J("swapStatus",P.swapStatus)("direction",P.direction)}}function nn(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"rtl-boltz-swapout-info-graphics",70),e.NdJ("stepNumberChange",function(We){return e.CHM(P),e.oxw(2).stepNumber=We}),e.qZA()}if(2&G){const P=e.oxw(2);e.Q6J("stepNumber",P.stepNumber)("animationDirection",P.animationDirection)}}function un(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"rtl-boltz-swapin-info-graphics",70),e.NdJ("stepNumberChange",function(We){return e.CHM(P),e.oxw(2).stepNumber=We}),e.qZA()}if(2&G){const P=e.oxw(2);e.Q6J("stepNumber",P.stepNumber)("animationDirection",P.animationDirection)}}const Jn=function(G,Le){return{"dot-primary":G,"dot-primary-lighter":Le}};function rr(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"span",71),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).onStepChanged(Ht)}),e._UZ(1,"p",72),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw(2);e.xp6(1),e.Q6J("ngClass",e.WLB(1,Jn,ie.stepNumber===P,ie.stepNumber!==P))}}function ca(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",73),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onReadMore()}),e._uU(1,"Read More"),e.qZA()}}function ze(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",74),e.NdJ("click",function(){return e.CHM(P),e.oxw(2).onStepChanged(4)}),e._uU(1,"Back"),e.qZA()}}function Se(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",75),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.flgShowInfo=!1,We.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function me(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",76),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.flgShowInfo=!1,We.stepNumber=1}),e._uU(1,"Close"),e.qZA()}}function qe(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",77),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.onStepChanged(We.stepNumber-1)}),e._uU(1,"Back"),e.qZA()}}function ct(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",78),e.NdJ("click",function(){e.CHM(P);const We=e.oxw(2);return We.onStepChanged(We.stepNumber+1)}),e._uU(1,"Next"),e.qZA()}}const Pt=function(){return[1,2,3,4,5]};function qt(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",54)(1,"div",18)(2,"mat-card-header",55)(3,"div",56),e._UZ(4,"span",7),e.qZA(),e.TgZ(5,"div",57)(6,"button",58),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.flgShowInfo=!1,We.stepNumber=1}),e._uU(7,"X"),e.qZA()()(),e.TgZ(8,"mat-card-content",59),e.YNc(9,nn,1,2,"rtl-boltz-swapout-info-graphics",60),e.YNc(10,un,1,2,"rtl-boltz-swapin-info-graphics",60),e.qZA(),e.TgZ(11,"div",61),e.YNc(12,rr,2,4,"span",62),e.qZA(),e.TgZ(13,"div",63),e.YNc(14,ca,2,0,"button",64),e.YNc(15,ze,2,0,"button",65),e.YNc(16,Se,2,0,"button",66),e.YNc(17,me,2,0,"button",67),e.YNc(18,qe,2,0,"button",68),e.YNc(19,ct,2,0,"button",69),e.qZA()()()}if(2&G){const P=e.oxw();e.Q6J("@opacityAnimation",void 0),e.xp6(9),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_OUT),e.xp6(1),e.Q6J("ngIf",P.direction===P.swapTypeEnum.SWAP_IN),e.xp6(2),e.Q6J("ngForOf",e.DdM(10,Pt)),e.xp6(2),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",5===P.stepNumber),e.xp6(1),e.Q6J("ngIf",P.stepNumber<5),e.xp6(1),e.Q6J("ngIf",P.stepNumber>1&&P.stepNumber<5),e.xp6(1),e.Q6J("ngIf",P.stepNumber<5)}}let ai=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji,hn){this.dialogRef=P,this.data=ie,this.boltzService=We,this.formBuilder=Ht,this.decimalPipe=Ci,this.logger=ji,this.commonService=hn,this.faInfoCircle=y.sqG,this.serviceInfo={fees:{percentage:null,miner:{normal:null,reverse:null}},limits:{minimal:1e4,maximal:5e7}},this.swapTypeEnum=j.hc,this.direction=j.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=j.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(){var P,ie,We;this.screenSize=this.commonService.getScreenSize(),this.serviceInfo=this.data.serviceInfo,this.direction=this.data.direction||j.hc.SWAP_OUT,this.swapDirectionCaption=this.direction===j.hc.SWAP_OUT?"Swap Out":"Swap in",this.inputFormLabel="Amount to "+this.swapDirectionCaption,this.inputFormGroup=this.formBuilder.group({amount:[null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal,[Ie.kI.required,Ie.kI.min((null===(ie=this.serviceInfo.limits)||void 0===ie?void 0:ie.minimal)||0),Ie.kI.max((null===(We=this.serviceInfo.limits)||void 0===We?void 0:We.maximal)||0)]]}),this.addressFormGroup=this.formBuilder.group({addressType:["local",[Ie.kI.required]],address:[{value:"",disabled:!0}]}),this.statusFormGroup=this.formBuilder.group({}),this.onFormValueChanges()}ngAfterViewInit(){this.direction===j.hc.SWAP_OUT&&this.addressFormGroup.setErrors({Invalid:!0})}onFormValueChanges(){this.direction===j.hc.SWAP_OUT&&this.addressFormGroup.valueChanges.pipe((0,x.R)(this.unSubs[2])).subscribe(P=>{this.addressFormGroup.setErrors({Invalid:!0})})}onAddressTypeChange(P){"external"===P.value?(this.addressFormGroup.controls.address.setValidators([Ie.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(){var P,ie,We;if(!this.inputFormGroup.controls.amount.value||(null===(P=this.serviceInfo.limits)||void 0===P?void 0:P.minimal)&&this.inputFormGroup.controls.amount.value<+this.serviceInfo.limits.minimal||(null===(ie=this.serviceInfo.limits)||void 0===ie?void 0:ie.maximal)&&this.inputFormGroup.controls.amount.value>+this.serviceInfo.limits.maximal||this.direction===j.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,null===(We=this.stepper.selected)||void 0===We||We.stepControl.setErrors(null),this.stepper.next(),this.direction===j.hc.SWAP_IN?this.boltzService.swapIn(this.inputFormGroup.controls.amount.value).pipe((0,x.R)(this.unSubs[3])).subscribe({next:Ht=>{this.swapStatus=Ht,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ht=>{this.swapStatus={error:Ht},this.flgEditable=!0,this.logger.error(Ht)}}):this.boltzService.swapOut(this.inputFormGroup.controls.amount.value,"external"===this.addressFormGroup.controls.addressType.value?this.addressFormGroup.controls.address.value:"").pipe((0,x.R)(this.unSubs[4])).subscribe({next:Ci=>{this.swapStatus=Ci,this.boltzService.listSwaps(),this.flgEditable=!0},error:Ci=>{this.swapStatus={error:Ci},this.flgEditable=!0,this.logger.error(Ci)}})}stepSelectionChanged(P){switch(P.selectedIndex){case 0:default: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"}P.selectedIndex{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(Q.WI),e.Y36(ki),e.Y36(Ie.qu),e.Y36(X.JJ),e.Y36(Me.mQ),e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-boltz-swap-modal"]],viewQuery:function(P,ie){if(1&P&&e.Gf(xn,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.stepper=We.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-button","","color","primary","tabindex","2","type","button","matStepperNext","",4,"ngIf"],["mat-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-button","","color","primary","tabindex","13","type","button",3,"click",4,"ngIf"],["fxLayout","row","fxFlex","100","fxLayoutAlign","end end"],["mat-button","","color","primary","tabindex","14","type","button","default","",3,"mat-dialog-close"],["mat-button","","color","primary","tabindex","2","type","button","matStepperNext",""],["mat-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-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-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-button","","class","mr-1","color","primary","tabindex","15","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","16","type","button",3,"click",4,"ngIf"],["mat-button","","color","primary","tabindex","17","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","18","type","button",3,"click",4,"ngIf"],["mat-button","","class","mr-1","color","primary","tabindex","19","type","button",3,"click",4,"ngIf"],["mat-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-button","","color","primary","tabindex","15","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","16","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","17","type","button",3,"click"],["mat-button","","color","primary","tabindex","18","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","19","type","button",1,"mr-1",3,"click"],["mat-button","","color","primary","tabindex","20","type","button",3,"click"]],template:function(P,ie){1&P&&(e.YNc(0,zi,54,34,"div",0),e.YNc(1,ln,1,2,"ng-template",null,1,e.W1O),e.YNc(3,qt,20,11,"div",2)),2&P&&(e.Q6J("ngIf",!ie.flgShowInfo),e.xp6(3),e.Q6J("ngIf",ie.flgShowInfo))},directives:[X.O5,_.xw,_.yH,_.Wh,N.dk,Te.lW,N.dn,di.Vq,di.C0,Ie._Y,Ie.JL,Ie.sg,di.VY,$i,ut.KE,Yt.Nt,Ie.wV,Ie.Fj,we.h,Ie.JJ,Ie.u,Ie.Q7,ut.bx,ut.R9,ut.TO,di.Ic,mn.VQ,mn.U0,Ei.ib,Ei.yz,Ei.yK,ta.Hw,Mi.pW,Q.ZT,kn,xr,cn,X.sg,X.mk,In.oO],pipes:[X.JJ],styles:[".dots-stepper-block[_ngcontent-%COMP%]{width:3rem}.info-graphics-container[_ngcontent-%COMP%]{max-height:60rem;min-height:60rem}"],data:{animation:[Ke._]}}),G})();function Di(G,Le){if(1&G&&(e.TgZ(0,"mat-option",42),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("value",P),e.xp6(1),e.Oqu(ie.getLabel(P))}}function an(G,Le){1&G&&e._UZ(0,"mat-progress-bar",43)}function Pn(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Status"),e.qZA())}function Cn(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Oqu(ie.swapStateEnum[null==P?null:P.status])}}function gr(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Swap ID"),e.qZA())}function hr(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.id)}}function ss(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Claim Address"),e.qZA())}const za=function(G){return{width:G}};function Qo(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.claimAddress)}}function qo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Address"),e.qZA())}function Da(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.lockupAddress)}}function Bs(G,Le){1&G&&(e.TgZ(0,"th",48),e._uU(1,"Onchain Amount (Sats)"),e.qZA())}function Kc(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.onchainAmount))}}function io(G,Le){1&G&&(e.TgZ(0,"th",48),e._uU(1,"Expected Amount (Sats)"),e.qZA())}function W1(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.expectedAmount))}}function Jo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Error"),e.qZA())}function Zl(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.error)}}function yl(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Private Key"),e.qZA())}function Wl(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.privateKey)}}function mo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Preimage"),e.qZA())}function Eo(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.preimage)}}function Xo(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Redeem Script"),e.qZA())}function bl(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.redeemScript)}}function Yl(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Invoice"),e.qZA())}function To(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",46)(2,"span",47),e._uU(3),e.qZA()()()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngStyle",e.VKq(2,za,ie.screenSize===ie.screenSizeEnum.XS?"10rem":ie.colWidth)),e.xp6(2),e.Oqu(null==P?null:P.invoice)}}function Qc(G,Le){1&G&&(e.TgZ(0,"th",48),e._uU(1,"Timeout Block Height"),e.qZA())}function qc(G,Le){if(1&G&&(e.TgZ(0,"td",45)(1,"span",49),e._uU(2),e.ALo(3,"number"),e.qZA()()),2&G){const P=Le.$implicit;e.xp6(2),e.Oqu(e.lcZ(3,1,null==P?null:P.timeoutBlockHeight))}}function Zr(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Lockup Tx ID"),e.qZA())}function go(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.lockupTransactionId)}}function $o(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Claim Tx ID"),e.qZA())}function Y1(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.claimTransactionId)}}function Va(G,Le){1&G&&(e.TgZ(0,"th",44),e._uU(1,"Refund Tx ID"),e.qZA())}function Qa(G,Le){if(1&G&&(e.TgZ(0,"td",45),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.xp6(1),e.Oqu(null==P?null:P.refundTransactionId)}}function j1(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"th",50)(1,"div",51)(2,"mat-select",52),e._UZ(3,"mat-select-trigger"),e.TgZ(4,"mat-option",53),e.NdJ("click",function(){return e.CHM(P),e.oxw().onDownloadCSV()}),e._uU(5,"Download CSV"),e.qZA()()()()}}function jl(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"td",54)(1,"button",55),e.NdJ("click",function(We){const Ci=e.CHM(P).$implicit;return e.oxw().onSwapClick(Ci,We)}),e._uU(2,"View Info"),e.qZA()()}}function no(G,Le){if(1&G&&(e.TgZ(0,"p"),e._uU(1),e.qZA()),2&G){const P=e.oxw(2);e.xp6(1),e.Oqu(P.emptyTableMessage)}}function Ao(G,Le){if(1&G&&(e.TgZ(0,"td",56),e.YNc(1,no,2,1,"p",57),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("ngIf",!(null!=P.listSwaps&&P.listSwaps.data)||(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)<1)}}const Ca=function(G){return{"display-none":G}};function Ss(G,Le){if(1&G&&e._UZ(0,"tr",58),2&G){const P=e.oxw();e.Q6J("ngClass",e.VKq(1,Ca,(null==P.listSwaps?null:P.listSwaps.data)&&(null==P.listSwaps||null==P.listSwaps.data?null:P.listSwaps.data.length)>0))}}function Lo(G,Le){1&G&&e._UZ(0,"tr",59)}function K1(G,Le){1&G&&e._UZ(0,"tr",60)}const Q1=function(){return["all"]},os=function(G){return{"overflow-auto error-border":G,"overflow-auto":!0}},es=function(){return["no_swap"]};let Jc=(()=>{class G{constructor(P,ie,We,Ht,Ci){this.logger=P,this.commonService=ie,this.store=We,this.boltzService=Ht,this.camelCaseWithReplace=Ci,this.selectedSwapType=j.hc.SWAP_OUT,this.swapsData=[],this.flgLoading=[!0],this.emptyTableMessage="No swaps available.",this.nodePageDefs=j.hG,this.selFilterBy="all",this.colWidth="20rem",this.PAGE_ID="boltz",this.tableSettingSwapOut={tableId:"swap_out",recordsPerPage:j.IV,sortBy:"status",sortOrder:j.Pi.DESCENDING},this.tableSettingSwapIn={tableId:"swap_in",recordsPerPage:j.IV,sortBy:"status",sortOrder:j.Pi.DESCENDING},this.swapStateEnum=j.Qw,this.faHistory=y.qO$,this.swapCaption="Swap Out",this.displayedColumns=[],this.listSwaps=new Xt.by([]),this.selFilter="",this.pageSize=j.IV,this.pageSizeOptions=j.TJ,this.screenSize="",this.screenSizeEnum=j.cu,this.unSubs=[new h.x,new h.x,new h.x],this.screenSize=this.commonService.getScreenSize()}ngOnInit(){this.store.select(Sr.Pr).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{var ie,We,Ht,Ci;this.tableSettingSwapOut=(null===(ie=P.pageSettings.find(ji=>ji.pageId===this.PAGE_ID))||void 0===ie?void 0:ie.tables.find(ji=>ji.tableId===this.tableSettingSwapOut.tableId))||(null===(We=j.gK.find(ji=>ji.pageId===this.PAGE_ID))||void 0===We?void 0:We.tables.find(ji=>ji.tableId===this.tableSettingSwapOut.tableId)),this.tableSettingSwapIn=(null===(Ht=P.pageSettings.find(ji=>ji.pageId===this.PAGE_ID))||void 0===Ht?void 0:Ht.tables.find(ji=>ji.tableId===this.tableSettingSwapIn.tableId))||(null===(Ci=j.gK.find(ji=>ji.pageId===this.PAGE_ID))||void 0===Ci?void 0:Ci.tables.find(ji=>ji.tableId===this.tableSettingSwapIn.tableId)),this.setTableColumns(),this.swapsData&&this.swapsData.length>0&&this.sort&&this.paginator&&this.displayedColumns.length>0&&this.loadSwapsTable(this.swapsData),this.colWidth=this.displayedColumns.length?this.commonService.getContainerSize().width/this.displayedColumns.length/10+"rem":"20rem",this.logger.info(this.displayedColumns)})}ngAfterViewInit(){this.swapsData&&this.swapsData.length>0&&this.loadSwapsTable(this.swapsData)}ngOnChanges(P){P.selectedSwapType&&!P.selectedSwapType.firstChange&&this.setTableColumns(),this.swapCaption=this.selectedSwapType===j.hc.SWAP_IN?"Swap In":"Swap Out",this.loadSwapsTable(this.swapsData)}setTableColumns(){this.selectedSwapType===j.hc.SWAP_IN?(this.displayedColumns=this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapIn.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapIn.recordsPerPage?+this.tableSettingSwapIn.recordsPerPage:j.IV):(this.displayedColumns=this.screenSize===j.cu.XS||this.screenSize===j.cu.SM?JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelectionSM)):JSON.parse(JSON.stringify(this.tableSettingSwapOut.columnSelection)),this.displayedColumns.push("actions"),this.pageSize=this.tableSettingSwapOut.recordsPerPage?+this.tableSettingSwapOut.recordsPerPage:j.IV)}applyFilter(){this.listSwaps&&""!==this.selFilter&&(this.listSwaps.filter=this.selFilter.trim().toLowerCase())}getLabel(P){const We=this.nodePageDefs[this.PAGE_ID][this.selectedSwapType===j.hc.SWAP_IN?this.tableSettingSwapIn.tableId:this.tableSettingSwapOut.tableId].allowedColumns.find(Ht=>Ht.column===P);return We?We.label?We.label:this.camelCaseWithReplace.transform(We.column,"_"):this.commonService.titleCase(P)}setFilterPredicate(){this.listSwaps.filterPredicate=(P,ie)=>{let We="";switch(this.selFilterBy){case"all":We=JSON.stringify(P).toLowerCase();break;case"status":We=(null==P?void 0:P.status)?this.swapStateEnum[null==P?void 0:P.status]:"";break;default:We=void 0===P[this.selFilterBy]?"":"string"==typeof P[this.selFilterBy]?P[this.selFilterBy].toLowerCase():"boolean"==typeof P[this.selFilterBy]?P[this.selFilterBy]?"yes":"no":P[this.selFilterBy].toString()}return"status"===this.selFilterBy?0===We.indexOf(ie):We.includes(ie)}}onSwapClick(P,ie){this.boltzService.swapInfo(P.id||"").pipe((0,x.R)(this.unSubs[1])).subscribe(We=>{this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.INFORMATION,alertTitle:this.swapCaption+" Status",message:[[{key:"status",value:j.Qw[(We=this.selectedSwapType===j.hc.SWAP_IN?We.swap:We.reverseSwap).status],title:"Status",width:50,type:j.Gi.STRING},{key:"id",value:We.id,title:"ID",width:50,type:j.Gi.STRING}],[{key:"amount",value:We.onchainAmount?We.onchainAmount:We.expectedAmount?We.expectedAmount:0,title:We.onchainAmount?"Onchain Amount (Sats)":We.expectedAmount?"Expected Amount (Sats)":"Amount (Sats)",width:50,type:j.Gi.NUMBER},{key:"timeoutBlockHeight",value:We.timeoutBlockHeight,title:"Timeout Block Height",width:50,type:j.Gi.NUMBER}],[{key:"address",value:We.claimAddress?We.claimAddress:We.lockupAddress?We.lockupAddress:"",title:We.claimAddress?"Claim Address":We.lockupAddress?"Lockup Address":"Address",width:100,type:j.Gi.STRING}],[{key:"invoice",value:We.invoice,title:"Invoice",width:100,type:j.Gi.STRING}],[{key:"privateKey",value:We.privateKey,title:"Private Key",width:100,type:j.Gi.STRING}],[{key:"preimage",value:We.preimage,title:"Preimage",width:100,type:j.Gi.STRING}],[{key:"redeemScript",value:We.redeemScript,title:"Redeem Script",width:100,type:j.Gi.STRING}],[{key:"lockupTransactionId",value:We.lockupTransactionId,title:"Lockup Transaction ID",width:50,type:j.Gi.STRING},{key:"transactionId",value:We.claimTransactionId?We.claimTransactionId:We.refundTransactionId?We.refundTransactionId:"",title:We.claimTransactionId?"Claim Transaction ID":We.refundTransactionId?"Refund Transaction ID":"Transaction ID",width:50,type:j.Gi.STRING}]],openedBy:"SWAP"}}}))})}loadSwapsTable(P){var ie,We;this.listSwaps=new Xt.by(P?[...P]:[]),this.listSwaps.sort=this.sort,this.listSwaps.sortingDataAccessor=(Ht,Ci)=>Ht[Ci]&&isNaN(Ht[Ci])?Ht[Ci].toLocaleLowerCase():Ht[Ci]?+Ht[Ci]:null,this.selectedSwapType===j.hc.SWAP_IN?null===(ie=this.listSwaps.sort)||void 0===ie||ie.sort({id:this.tableSettingSwapIn.sortBy,start:this.tableSettingSwapIn.sortOrder,disableClear:!0}):null===(We=this.listSwaps.sort)||void 0===We||We.sort({id:this.tableSettingSwapOut.sortBy,start:this.tableSettingSwapOut.sortOrder,disableClear:!0}),this.paginator&&this.paginator.firstPage(),this.listSwaps.paginator=this.paginator,this.setFilterPredicate(),this.applyFilter(),this.logger.info(this.listSwaps)}onDownloadCSV(){this.listSwaps.data&&this.listSwaps.data.length>0&&this.commonService.downloadFile(this.listSwaps.data,this.selectedSwapType===j.hc.SWAP_IN?"Swap in":"Swap out")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(ki),e.Y36(ia.D3))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-boltz-swaps"]],viewQuery:function(P,ie){if(1&P&&(e.Gf(kt.YE,5),e.Gf(Je.NW,5)),2&P){let We;e.iGM(We=e.CRH())&&(ie.sort=We.first),e.iGM(We=e.CRH())&&(ie.paginator=We.first)}},inputs:{selectedSwapType:"selectedSwapType",swapsData:"swapsData",flgLoading:"flgLoading",emptyTableMessage:"emptyTableMessage"},features:[e._Bn([{provide:Je.ye,useValue:(0,j.pt)("Swaps")}]),e.TTD],decls:71,vars:18,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","fxLayoutAlign.gt-xs","space-between center","fxLayout","row","fxLayoutAlign","space-between stretch"],["fxFlex","49"],["placeholder","Filter By","tabindex","1","name","filterBy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["matInput","","name","filter","placeholder","Filter",3,"ngModel","ngModelChange","input","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","lockupAddress"],["matColumnDef","onchainAmount"],["mat-header-cell","","mat-sort-header","","arrowPosition","before",4,"matHeaderCellDef"],["matColumnDef","expectedAmount"],["matColumnDef","error"],["matColumnDef","privateKey"],["matColumnDef","preimage"],["matColumnDef","redeemScript"],["matColumnDef","invoice"],["matColumnDef","timeoutBlockHeight"],["matColumnDef","lockupTransactionId"],["matColumnDef","claimTransactionId"],["matColumnDef","refundTransactionId"],["matColumnDef","actions"],["mat-header-cell","",4,"matHeaderCellDef"],["mat-cell","","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"],["mat-row","",4,"matRowDef","matRowDefColumns"],[1,"mb-1",3,"pageSize","pageSizeOptions","showFirstLastButtons"],[3,"value"],["mode","indeterminate"],["mat-header-cell","","mat-sort-header",""],["mat-cell",""],["fxLayout","row",1,"ellipsis-parent",3,"ngStyle"],[1,"ellipsis-child"],["mat-header-cell","","mat-sort-header","","arrowPosition","before"],["fxLayoutAlign","end center"],["mat-header-cell",""],["fxLayoutAlign","center center",1,"bordered-box","table-actions-select"],["placeholder","Actions","tabindex","1",1,"mr-0"],[3,"click"],["mat-cell","","fxLayoutAlign","end center"],["mat-stroked-button","","color","primary","type","button","tabindex","4",1,"table-actions-button",3,"click"],["mat-footer-cell","","colspan","4"],[4,"ngIf"],["mat-footer-row","",3,"ngClass"],["mat-header-row",""],["mat-row",""]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"div",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span",4),e._uU(5),e.qZA()(),e.TgZ(6,"div",5)(7,"mat-form-field",6)(8,"mat-select",7),e.NdJ("ngModelChange",function(Ht){return ie.selFilterBy=Ht})("selectionChange",function(){return ie.selFilter="",ie.applyFilter()}),e.YNc(9,Di,2,2,"mat-option",8),e.qZA()(),e.TgZ(10,"mat-form-field",6)(11,"input",9),e.NdJ("ngModelChange",function(Ht){return ie.selFilter=Ht})("input",function(){return ie.applyFilter()})("keyup",function(){return ie.applyFilter()}),e.qZA()()()(),e.TgZ(12,"div",10)(13,"div",11),e.YNc(14,an,1,0,"mat-progress-bar",12),e.TgZ(15,"table",13,14),e.ynx(17,15),e.YNc(18,Pn,2,0,"th",16),e.YNc(19,Cn,2,1,"td",17),e.BQk(),e.ynx(20,18),e.YNc(21,gr,2,0,"th",16),e.YNc(22,hr,2,1,"td",17),e.BQk(),e.ynx(23,19),e.YNc(24,ss,2,0,"th",16),e.YNc(25,Qo,4,4,"td",17),e.BQk(),e.ynx(26,20),e.YNc(27,qo,2,0,"th",16),e.YNc(28,Da,4,4,"td",17),e.BQk(),e.ynx(29,21),e.YNc(30,Bs,2,0,"th",22),e.YNc(31,Kc,4,3,"td",17),e.BQk(),e.ynx(32,23),e.YNc(33,io,2,0,"th",22),e.YNc(34,W1,4,3,"td",17),e.BQk(),e.ynx(35,24),e.YNc(36,Jo,2,0,"th",16),e.YNc(37,Zl,4,4,"td",17),e.BQk(),e.ynx(38,25),e.YNc(39,yl,2,0,"th",16),e.YNc(40,Wl,4,4,"td",17),e.BQk(),e.ynx(41,26),e.YNc(42,mo,2,0,"th",16),e.YNc(43,Eo,4,4,"td",17),e.BQk(),e.ynx(44,27),e.YNc(45,Xo,2,0,"th",16),e.YNc(46,bl,4,4,"td",17),e.BQk(),e.ynx(47,28),e.YNc(48,Yl,2,0,"th",16),e.YNc(49,To,4,4,"td",17),e.BQk(),e.ynx(50,29),e.YNc(51,Qc,2,0,"th",22),e.YNc(52,qc,4,3,"td",17),e.BQk(),e.ynx(53,30),e.YNc(54,Zr,2,0,"th",16),e.YNc(55,go,2,1,"td",17),e.BQk(),e.ynx(56,31),e.YNc(57,$o,2,0,"th",16),e.YNc(58,Y1,2,1,"td",17),e.BQk(),e.ynx(59,32),e.YNc(60,Va,2,0,"th",16),e.YNc(61,Qa,2,1,"td",17),e.BQk(),e.ynx(62,33),e.YNc(63,j1,6,0,"th",34),e.YNc(64,jl,3,0,"td",35),e.BQk(),e.ynx(65,36),e.YNc(66,Ao,2,1,"td",37),e.BQk(),e.YNc(67,Ss,1,3,"tr",38),e.YNc(68,Lo,1,0,"tr",39),e.YNc(69,K1,1,0,"tr",40),e.qZA(),e._UZ(70,"mat-paginator",41),e.qZA()()()),2&P&&(e.xp6(3),e.Q6J("icon",ie.faHistory),e.xp6(2),e.hij("",ie.swapCaption," History"),e.xp6(3),e.Q6J("ngModel",ie.selFilterBy),e.xp6(1),e.Q6J("ngForOf",e.DdM(14,Q1).concat(ie.displayedColumns.slice(0,-1))),e.xp6(2),e.Q6J("ngModel",ie.selFilter),e.xp6(3),e.Q6J("ngIf",!0===ie.flgLoading[0]),e.xp6(1),e.Q6J("dataSource",ie.listSwaps)("ngClass",e.VKq(15,os,"error"===ie.flgLoading[0])),e.xp6(52),e.Q6J("matFooterRowDef",e.DdM(17,es)),e.xp6(1),e.Q6J("matHeaderRowDef",ie.displayedColumns),e.xp6(1),e.Q6J("matRowDefColumns",ie.displayedColumns),e.xp6(1),e.Q6J("pageSize",ie.pageSize)("pageSizeOptions",ie.pageSizeOptions)("showFirstLastButtons",ie.screenSize!==ie.screenSizeEnum.XS))},directives:[_.xw,_.yH,_.Wh,V.BN,ut.KE,Oe.gD,Ie.JJ,Ie.On,X.sg,ce.ey,Yt.Nt,Ie.Fj,J.$V,X.O5,Mi.pW,Xt.BZ,kt.YE,X.mk,In.oO,Xt.w1,Xt.fO,Xt.ge,kt.nU,Xt.Dz,Xt.ev,X.PC,In.Zl,Oe.$L,Te.lW,Xt.mD,Xt.yh,Xt.Ke,Xt.Q2,Xt.as,Xt.XQ,Xt.nj,Xt.Gk,Je.NW],pipes:[X.JJ],styles:[""]}),G})();const xl=function(G){return["../",G]};function el(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",15),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().onSelectedIndexChange(Ht)}),e._uU(1),e.qZA()}if(2&G){const P=Le.$implicit,ie=e.oxw();e.Q6J("active",ie.activeTab.link===P.link)("routerLink",e.VKq(3,xl,P.link)),e.xp6(1),e.Oqu(P.name)}}let Cl=(()=>{class G{constructor(P,ie,We){this.router=P,this.store=ie,this.boltzService=We,this.swapTypeEnum=j.hc,this.selectedSwapType=j.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 P=this.links.find(ie=>this.router.url.includes(ie.link));this.activeTab=P||this.links[0],this.selectedSwapType=P&&"swapin"===P.link?j.hc.SWAP_IN:j.hc.SWAP_OUT,this.router.events.pipe((0,x.R)(this.unSubs[0]),(0,ge.h)(ie=>ie instanceof I.Av)).subscribe({next:ie=>{const We=this.links.find(Ht=>ie.urlAfterRedirects.includes(Ht.link));this.activeTab=We||this.links[0],this.selectedSwapType=We&&"swapin"===We.link?j.hc.SWAP_IN:j.hc.SWAP_OUT}}),this.boltzService.swapsChanged.pipe((0,x.R)(this.unSubs[1])).subscribe({next:ie=>{this.swaps=ie,this.swapsData=this.selectedSwapType===j.hc.SWAP_IN&&ie.swaps?ie.swaps:this.selectedSwapType===j.hc.SWAP_OUT&&ie.reverseSwaps?ie.reverseSwaps:[],this.flgLoading[0]=!1},error:ie=>{this.flgLoading[0]="error",this.emptyTableMessage=ie.message?ie.message:"No swap "+(this.selectedSwapType===j.hc.SWAP_IN?"in":"out")+" available."}})}onSelectedIndexChange(P){"swapin"===P.link?(this.selectedSwapType=j.hc.SWAP_IN,this.swapsData=this.swaps.swaps||[]):(this.selectedSwapType=j.hc.SWAP_OUT,this.swapsData=this.swaps.reverseSwaps||[])}onSwap(P){this.boltzService.serviceInfo().pipe((0,x.R)(this.unSubs[2])).subscribe({next:ie=>{this.store.dispatch((0,Ve.qR)({payload:{data:{serviceInfo:ie,direction:P,component:ai}}}))}})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(I.F0),e.Y36(C.yh),e.Y36(ki))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0),e.O4$(),e.TgZ(1,"svg",1)(2,"g",2)(3,"g",3),e._UZ(4,"circle",4)(5,"path",5)(6,"path",6),e.qZA()()(),e.kcU(),e.TgZ(7,"span",7),e._uU(8,"Boltz"),e.qZA()(),e.TgZ(9,"div",8)(10,"mat-card")(11,"mat-card-content",9)(12,"nav",10),e.YNc(13,el,2,5,"div",11),e.qZA(),e.TgZ(14,"div",12)(15,"button",13),e.NdJ("click",function(){return ie.onSwap(ie.selectedSwapType)}),e._uU(16),e.qZA()(),e._UZ(17,"rtl-boltz-swaps",14),e.qZA()()()),2&P&&(e.xp6(13),e.Q6J("ngForOf",ie.links),e.xp6(3),e.hij("Start ",ie.activeTab.name,""),e.xp6(1),e.Q6J("selectedSwapType",ie.selectedSwapType)("swapsData",ie.swapsData)("flgLoading",ie.flgLoading)("emptyTableMessage",ie.emptyTableMessage))},directives:[_.xw,_.Wh,N.a8,N.dn,_.yH,H.BU,X.sg,H.Nj,I.rH,Te.lW,Jc],styles:[""]}),G})();class _r{constructor(Le){this.help=Le}}function tl(G,Le){if(1&G&&(e.TgZ(0,"mat-expansion-panel",8)(1,"mat-expansion-panel-header")(2,"mat-panel-title"),e._uU(3),e.qZA()(),e.TgZ(4,"mat-panel-description",9),e._UZ(5,"span",10),e.TgZ(6,"a",11),e._uU(7),e.qZA()()()),2&G){const P=e.oxw().$implicit,ie=e.oxw();e.xp6(3),e.Oqu(P.help.question),e.xp6(2),e.Q6J("innerHTML",P.help.answer,e.oJD),e.xp6(1),e.Q6J("routerLink",ie.flgLoggedIn?P.help.link:"/login"),e.xp6(1),e.Oqu(ie.flgLoggedIn?P.help.linkCaption:"Login to go to the page")}}function ro(G,Le){if(1&G&&(e.TgZ(0,"div",6),e.YNc(1,tl,8,4,"mat-expansion-panel",7),e.qZA()),2&G){const P=Le.$implicit,ie=e.oxw();e.xp6(1),e.Q6J("ngIf","ALL"===P.help.lnImplementation||P.help.lnImplementation===ie.selNode.lnImplementation)}}let o3=(()=>{class G{constructor(P,ie){this.store=P,this.sessionService=ie,this.helpTopics=[],this.faQuestion=y.Psp,this.LNPLink="/lnd/",this.flgLoggedIn=!1,this.unSubs=[new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.store.select(n.dT).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{this.selNode=P,this.selNode.lnImplementation&&""!==this.selNode.lnImplementation.trim()&&(this.LNPLink="/"+this.selNode.lnImplementation.toLowerCase()+"/",this.addHelpTopics())}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.flgLoggedIn=!!P.token}),this.sessionService.getItem("token")&&(this.flgLoggedIn=!0)}addHelpTopics(){this.helpTopics=[],this.helpTopics.push(new _r({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:this.LNPLink+"onchain/receive/utxos",linkCaption:"On-Chain",lnImplementation:"ALL"})),this.helpTopics.push(new _r({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:this.LNPLink+"connections/peers",linkCaption:"Peers",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Opening Channels",answer:'Open channels with a connected peer.\nGo to "Peer/Channels" page under the "Lightning" menu:\n1. On the "Channels" section, click on "Open Channel"\n2. On the "Open Channel" modal, 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:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new _r({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. Circular Rebalance - Off-chain rebalance channels by making a payment to yourself across a circular path of chained payment channels.\n e. 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:this.LNPLink+"connections/channels/open",linkCaption:"Channels",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Buying Liquidity",answer:'Buying liquidity for your node.\nGo to "Liquidity Ads" page under the "Lightning" menu:\n 1. Filter ads by liquidity amount and channel opening fee rate.\n 2. Research additionally on liquidity provider nodes before selecting.\n 3. Select the best liquidity node peer for your need and click on "Open Channel" from "Actions" drop-down.\n 4. Confirm amount, rates and total cost on the modal and click on "Execute" to buy liquidity.\n',link:this.LNPLink+"liquidityads",linkCaption:"Liquidity Ads",lnImplementation:"CLN"})),this.helpTopics.push(new _r({question:"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:this.LNPLink+"transactions/payments",linkCaption:"Payments",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"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:this.LNPLink+"transactions/invoices",linkCaption:"Invoices",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Offers",answer:'Send offer payments, create offer invoices and bookmark paid offers on your node.\nGo to the "Transactions" page under the "Lightning" menu :\nPayment for bolt12 offer invoice can be done on "Payments" tab:\n 1. Click on "Send Payment" button.\n 2. Select "Offer" option on the modal.\n 2. Offer Request - Input offer request (Bolt12 format) in the input box.\n 3. Bookmark - Select the checkbox to bookmark this offer for future use.\nOffers tab is for creating bolt12 offer invoice on your node:\n 1. Click on "Create Offer" button.\n 2. Description - Description you want to provide on the offer invoice.\n 3. Amount - Amount for the offer invoice.\n 4. Vendor - Vendor of the offer.\nPaid offer bookmarks shows the list of paid offers saved for future payments.\n',link:this.LNPLink+"transactions/offers",linkCaption:"Offers",lnImplementation:"CLN"})),this.helpTopics.push(new _r({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:this.LNPLink+"channelbackup/bckup",linkCaption:"Channel Backups",lnImplementation:"LND"})),this.helpTopics.push(new _r({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:this.LNPLink+"channelbackup/restore",linkCaption:"Channel Restore",lnImplementation:"LND"})),this.helpTopics.push(new _r({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:this.LNPLink+"routing/forwardinghistory",linkCaption:"Forwarding History",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Lightning Reports",answer:'Routing and transactions data reports.\nGo to "Reports" page under the "Lightning" menu :\nReport can be generated on monthly/yearly basis by selecting the reporting period, month, and year.\n',link:this.LNPLink+"reports/routingreport",linkCaption:"Reports",lnImplementation:"ALL"})),this.helpTopics.push(new _r({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:this.LNPLink+"graph/lookups",linkCaption:"Graph Lookup",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Query Route",answer:'Querying Payment Routes.\nGo to the "Graph Lookup" 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:this.LNPLink+"graph/queryroutes",linkCaption:"Query Routes",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"LND"})),this.helpTopics.push(new _r({question:"Sign & Verify Messages",answer:'Messages signing and verification.\nGo to the "Sign/Verify" page under the "Lightning" menu :\n 1. Sign your message on "Sign" tab.\n 2. Go to "Verify" tab to verify a message.\n',link:this.LNPLink+"messages/sign",linkCaption:"Messages",lnImplementation:"CLN"})),this.helpTopics.push(new _r({question:"Node Settings",answer:'RTL offers certain customizations on the UI to personalize your experience on the app\nGo to "Node Config" 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. Other customizations include day and night mode and a choice of color themes to select from.\nServices Options\n Loop (LND only), Boltz (LND only) & Peerswap (CLN only) services can be configured.\nExperimental Options (CLN only)\n Offers and Liquidity Ads can be enabled/disabled.\nShow LN Config (if configured)\n Shows lightning config file.\n',link:"../config/layout",linkCaption:"Node Settings",lnImplementation:"ALL"})),this.helpTopics.push(new _r({question:"Application Settings",answer:'RTL also offers certain customizations on the application level\nGo to top right menu "Settings" page to access these options.\nDefault Node Option\nIf you are managing multiple nodes via RTL UI, you can select the default node to load upon login.\nAuthentication Option\nPassword and 2FA update options are available here.\nShow Bitcoin Config (if configured)\n Shows bitcoin config file.\n',link:"../settings/app",linkCaption:"Application Settings",lnImplementation:"ALL"}))}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(C.yh),e.Y36(Ae.m))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span",3),e._uU(4,"Help"),e.qZA()(),e.TgZ(5,"div",4)(6,"div",0),e.YNc(7,ro,2,1,"div",5),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",ie.faQuestion),e.xp6(5),e.Q6J("ngForOf",ie.helpTopics))},directives:[_.xw,_.yH,_.Wh,V.BN,X.sg,X.O5,Ei.ib,Ei.yz,Ei.yK,Ei.u4,I.yS],styles:[".mat-card-content[_ngcontent-%COMP%]{margin-bottom:4px}"]}),G})();var Ml=p(9841);function Do(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Token is required."),e.qZA())}let Kl=(()=>{class G{constructor(P,ie){this.dialogRef=P,this.store=ie,this.token=""}onClose(){this.dialogRef.close(null)}onVerifyToken(){if(!this.token)return!0;this.dialogRef.close(),this.store.dispatch((0,Ve.M6)({payload:{twoFAToken:this.token}}))}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Q.so),e.Y36(C.yh))},G.\u0275cmp=e.Xpm({type:G,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-button","","color","primary","tabindex","4","type","submit"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card-header",2)(3,"div",3)(4,"span",4),e._uU(5,"Two Factor Token"),e.qZA()(),e.TgZ(6,"button",5),e.NdJ("click",function(){return ie.onClose()}),e._uU(7,"X"),e.qZA()(),e.TgZ(8,"mat-card-content",6)(9,"form",7,8),e.NdJ("ngSubmit",function(){return ie.onVerifyToken()}),e.TgZ(11,"mat-form-field")(12,"input",9),e.NdJ("ngModelChange",function(Ht){return ie.token=Ht}),e.qZA(),e.YNc(13,Do,2,0,"mat-error",10),e.qZA(),e.TgZ(14,"div",11)(15,"button",12),e._uU(16,"Verify Token"),e.qZA()()()()()()),2&P&&(e.xp6(12),e.Q6J("ngModel",ie.token),e.xp6(1),e.Q6J("ngIf",!ie.token))},directives:[_.xw,_.Wh,_.yH,N.dk,Te.lW,N.dn,Ie._Y,Ie.JL,Ie.F,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,X.O5,ut.TO],styles:[""]}),G})();function J1(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Password is required."),e.qZA())}function Xc(G,Le){if(1&G&&(e.TgZ(0,"p",21)(1,"mat-icon",22),e._uU(2,"close"),e.qZA(),e._uU(3),e.qZA()),2&G){const P=e.oxw();e.xp6(3),e.hij(" ",P.loginErrorMessage," ")}}const Ql=function(G){return{"padding-gap-large":G}},Es=function(G,Le){return{"font-size-200":G,"font-size-300":Le}};let ts=(()=>{class G{constructor(P,ie,We,Ht){this.logger=P,this.store=ie,this.rtlEffects=We,this.commonService=Ht,this.faUnlockAlt=y.B$L,this.password="",this.rtlSSO=0,this.rtlCookiePath="",this.accessKey="",this.flgShow=!1,this.screenSize="",this.screenSizeEnum=j.cu,this.loginErrorMessage="",this.apiCallStatusEnum=j.Bn,this.unSubs=[new h.x,new h.x,new h.x]}ngOnInit(){this.screenSize=this.commonService.getScreenSize(),(0,Ml.a)([this.store.select(n.ul),this.store.select(n.Sr)]).pipe((0,x.R)(this.unSubs[0])).subscribe(([P,ie])=>{this.loginErrorMessage="",P.status===j.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof P.message?JSON.stringify(P.message):P.message),this.logger.error(P.message)),ie.status===j.Bn.ERROR&&(this.loginErrorMessage=this.loginErrorMessage+("object"==typeof ie.message?JSON.stringify(ie.message):ie.message),this.logger.error(ie.message))}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.appConfig=P,this.logger.info(P)})}onLogin(){if(!this.password)return!0;this.loginErrorMessage="",this.appConfig.enable2FA?(this.store.dispatch((0,Ve.qR)({payload:{maxWidth:"35rem",data:{component:Kl}}})),this.rtlEffects.closeAlert.pipe((0,fe.q)(1)).subscribe(P=>{P&&this.store.dispatch((0,Ve.x4)({payload:{password:Ce(this.password),defaultPassword:j.kO.includes(this.password.toLowerCase()),twoFAToken:P.twoFAToken}}))})):this.store.dispatch((0,Ve.x4)({payload:{password:Ce(this.password),defaultPassword:j.kO.includes(this.password.toLowerCase())}}))}resetData(){this.password="",this.loginErrorMessage="",this.flgShow=!1}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh),e.Y36(tt.V),e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,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","row","fxFlex","45","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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1)(2,"mat-card",2)(3,"div",3)(4,"div",4),e._UZ(5,"img",5),e.qZA(),e.TgZ(6,"div",6)(7,"mat-card-header",7)(8,"mat-card-title",8)(9,"span",9),e._uU(10,"Welcome"),e.qZA()()(),e.TgZ(11,"mat-card-content",10)(12,"form",11,12)(14,"mat-form-field",13)(15,"input",14),e.NdJ("ngModelChange",function(Ht){return ie.password=Ht}),e.qZA(),e.TgZ(16,"mat-icon",15),e.NdJ("click",function(){return ie.flgShow=!ie.flgShow}),e._uU(17),e.qZA(),e.YNc(18,J1,2,0,"mat-error",16),e.qZA(),e.YNc(19,Xc,4,1,"p",17),e.TgZ(20,"div",18)(21,"button",19),e.NdJ("click",function(){return ie.resetData()}),e._uU(22,"Clear"),e.qZA(),e.TgZ(23,"button",20),e.NdJ("click",function(){return ie.onLogin()}),e._uU(24,"Login"),e.qZA()()()()()()()()()),2&P&&(e.xp6(6),e.Q6J("ngClass",e.VKq(7,Ql,ie.screenSize===ie.screenSizeEnum.XS)),e.xp6(2),e.Q6J("ngClass",e.WLB(9,Es,ie.screenSize===ie.screenSizeEnum.XS,ie.screenSize!==ie.screenSizeEnum.XS)),e.xp6(7),e.Q6J("type",ie.flgShow?"text":"password")("ngModel",ie.password),e.xp6(2),e.Oqu(ie.flgShow?"visibility_off":"visibility"),e.xp6(1),e.Q6J("ngIf",!ie.password),e.xp6(1),e.Q6J("ngIf",""!==ie.loginErrorMessage))},directives:[_.xw,_.yH,_.Wh,N.a8,X.mk,In.oO,N.dk,N.n5,N.dn,Ie._Y,Ie.JL,Ie.F,ut.KE,Yt.Nt,Ie.Fj,we.h,Ie.Q7,Ie.JJ,Ie.On,ta.Hw,ut.R9,X.O5,ut.TO,Te.lW],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}"]}),G})();var ys=p(9442);let Io=(()=>{class G{constructor(P,ie){this.activatedRoute=P,this.router=ie,this.error={errorCode:"",errorMessage:""},this.faTimes=y.NBC,this.unsubs=[new h.x,new h.x]}ngOnInit(){this.router.routeReuseStrategy.shouldReuseRoute=()=>!1,this.router.onSameUrlNavigation="reload",this.activatedRoute.paramMap.pipe((0,x.R)(this.unsubs[0])).subscribe(P=>{this.error=window.history.state})}goToHelp(){this.router.navigate(["/help"])}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(I.gz),e.Y36(I.F0))},G.\u0275cmp=e.Xpm({type:G,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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"mat-card",1)(2,"mat-card-header",2)(3,"mat-card-title",3),e._UZ(4,"fa-icon",4),e.TgZ(5,"span",5),e._uU(6),e.qZA()()(),e.TgZ(7,"mat-card-content",6)(8,"div",7),e._uU(9),e.qZA(),e.TgZ(10,"span",8)(11,"button",9),e.NdJ("click",function(){return ie.goToHelp()}),e._uU(12,"Go To Help"),e.qZA()()()()()),2&P&&(e.xp6(4),e.Q6J("icon",ie.faTimes),e.xp6(2),e.hij("Error ",ie.error.errorCode,""),e.xp6(3),e.Oqu(ie.error.errorMessage))},directives:[_.xw,_.yH,_.Wh,N.a8,N.dk,N.n5,V.BN,N.dn,Te.lW],encapsulation:2}),G})();var Kr=p(1643),il=p(8104),Oo=p(6534),ql=p(9843);function Jl(G,Le){1&G&&e._UZ(0,"span",16)}function Ia(G,Le){1&G&&e._UZ(0,"span",17)}function nl(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"form",18,4)(2,"div",19),e._UZ(3,"fa-icon",2),e.TgZ(4,"span"),e._uU(5,"Please ensure that "),e.TgZ(6,"strong"),e._uU(7,"experimental-offers"),e.qZA(),e._uU(8," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(9,"strong")(10,"a",20),e._uU(11,"here"),e.qZA()(),e._uU(12," to learn more about Core Lightning offers."),e.qZA()(),e.TgZ(13,"h4",21),e._uU(14,"Description"),e.qZA(),e.TgZ(15,"span"),e._uU(16,"Offers is a draft specification (also referred as BOLT12) for Lightning nodes and wallets, with experimental support in Core Lightning."),e.qZA(),e.TgZ(17,"h4",21),e._uU(18,"Links"),e.qZA(),e.TgZ(19,"span")(20,"a",22),e._uU(21,"Core lightning Bolt12"),e.qZA()(),e._UZ(22,"mat-divider",23),e.TgZ(23,"div",24),e._UZ(24,"fa-icon",2),e.TgZ(25,"span"),e._uU(26,"Do not get an Offer tattoo until spec is fully ratified!"),e.qZA()(),e.TgZ(27,"mat-slide-toggle",25),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(2).enableOffers=We})("change",function(){return e.CHM(P),e.oxw(2).onUpdateFeature()}),e._uU(28),e.qZA()()}if(2&G){const P=e.oxw(2);e.xp6(3),e.Q6J("icon",P.faInfoCircle),e.xp6(19),e.Q6J("inset",!0),e.xp6(2),e.Q6J("icon",P.faExclamationTriangle),e.xp6(3),e.Q6J("ngModel",P.enableOffers),e.xp6(1),e.hij("Enable Offers ",P.enableOffers?"(You can find Offers under Lightning -> Transactions -> Offers)":"","")}}function X1(G,Le){if(1&G&&(e.TgZ(0,"div")(1,"div",28),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Please ensure that "),e.TgZ(5,"strong"),e._uU(6,"experimental-dual-fund"),e.qZA(),e._uU(7," flag is set to true in the Core Lightning config before enabling it in RTL. Click "),e.TgZ(8,"strong")(9,"a",29),e._uU(10,"here"),e.qZA()(),e._uU(11," to learn more about Core Lightning Liquidity Ads."),e.qZA()()()),2&G){const P=e.oxw(3);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle)}}function wl(G,Le){if(1&G&&(e.TgZ(0,"mat-option",47),e._uU(1),e.ALo(2,"titlecase"),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P),e.xp6(1),e.hij(" ",e.lcZ(2,2,P.id)," ")}}function Xl(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(4);e.xp6(1),e.hij("",P.selPolicyType.placeholder," is required.")}}function ao(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(4);e.xp6(1),e.AsE("",P.selPolicyType.placeholder," must be greater than or equal to ",P.selPolicyType.min,".")}}function Ba(G,Le){if(1&G&&(e.TgZ(0,"mat-error"),e._uU(1),e.qZA()),2&G){const P=e.oxw(4);e.xp6(1),e.AsE("",P.selPolicyType.placeholder," must be less than or equal to ",P.selPolicyType.max,".")}}function $l(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base fee is required."),e.qZA())}function ec(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Lease base basis is required."),e.qZA())}function $c(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing base fee is required."),e.qZA())}function Po(G,Le){1&G&&(e.TgZ(0,"mat-error"),e._uU(1,"Max channel routing fee rate is required."),e.qZA())}const tc=function(G,Le){return{"alert-danger":G,"alert-info":Le}};function l3(G,Le){if(1&G&&(e.TgZ(0,"h4",48)(1,"span",49),e._uU(2),e.qZA()()),2&G){const P=e.oxw(4);e.xp6(1),e.Q6J("ngClass",e.WLB(2,tc,!!P.updateMsg.error,!!P.updateMsg.data)),e.xp6(1),e.hij(" ",P.updateMsg.error&&""!==P.updateMsg.error?"Error: "+P.updateMsg.error||0:P.updateMsg.data&&""!==P.updateMsg.data?P.updateMsg.data:"Successfully Updated the Funding Policy!"," ")}}function ic(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"div",30)(1,"div",31),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"These config changes should be configured permanently via the config file on your CLN node otherwise the policy would need to be configured again, if your node restarts."),e.qZA()(),e.TgZ(5,"div",32)(6,"mat-form-field",33)(7,"mat-select",34),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).selPolicyType=We})("selectionChange",function(){return e.CHM(P),e.oxw(3).policyMod=null}),e.YNc(8,wl,3,4,"mat-option",35),e.qZA()(),e.TgZ(9,"mat-form-field",36)(10,"input",37,38),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).policyMod=We}),e.qZA(),e.TgZ(12,"mat-hint"),e._uU(13),e.qZA(),e.YNc(14,Xl,2,1,"mat-error",26),e.YNc(15,ao,2,2,"mat-error",26),e.YNc(16,Ba,2,2,"mat-error",26),e.qZA()(),e.TgZ(17,"div",32)(18,"mat-form-field",36)(19,"input",39),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).lease_fee_base_sat=We}),e.qZA(),e.YNc(20,$l,2,0,"mat-error",26),e.qZA(),e.TgZ(21,"mat-form-field",36)(22,"input",40),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).lease_fee_basis=We}),e.qZA(),e.YNc(23,ec,2,0,"mat-error",26),e.qZA()(),e.TgZ(24,"div",32)(25,"mat-form-field",36)(26,"input",41),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).channelFeeMaxBaseSat=We}),e.qZA(),e.YNc(27,$c,2,0,"mat-error",26),e.qZA(),e.TgZ(28,"mat-form-field",36)(29,"input",42),e.NdJ("ngModelChange",function(We){return e.CHM(P),e.oxw(3).channelFeeMaxProportional=We}),e.qZA(),e.YNc(30,Po,2,0,"mat-error",26),e.qZA()(),e.YNc(31,l3,3,5,"h4",43),e.TgZ(32,"div",44)(33,"button",45),e.NdJ("click",function(){return e.CHM(P),e.oxw(3).onResetPolicy()}),e._uU(34,"Reset"),e.qZA(),e.TgZ(35,"button",46),e.NdJ("click",function(){return e.CHM(P),e.oxw(3).onUpdateFundingPolicy()}),e._uU(36,"Update"),e.qZA()()()}if(2&G){const P=e.oxw(3);e.xp6(2),e.Q6J("icon",P.faExclamationTriangle),e.xp6(5),e.Q6J("ngModel",P.selPolicyType),e.xp6(1),e.Q6J("ngForOf",P.policyTypes),e.xp6(2),e.Q6J("ngModel",P.policyMod)("placeholder",P.selPolicyType.placeholder)("step","fixed"===P.selPolicyType.id?1e3:10)("min",P.selPolicyType.min)("max",P.selPolicyType.max),e.xp6(3),e.lnq("",P.selPolicyType.placeholder," should be between ",P.selPolicyType.min," and ",P.selPolicyType.max,""),e.xp6(1),e.Q6J("ngIf",!P.policyMod),e.xp6(1),e.Q6J("ngIf",P.policyModP.selPolicyType.max),e.xp6(3),e.Q6J("ngModel",P.lease_fee_base_sat),e.xp6(1),e.Q6J("ngIf",!P.lease_fee_base_sat),e.xp6(2),e.Q6J("ngModel",P.lease_fee_basis),e.xp6(1),e.Q6J("ngIf",!P.lease_fee_basis),e.xp6(3),e.Q6J("ngModel",P.channelFeeMaxBaseSat),e.xp6(1),e.Q6J("ngIf",!P.channelFeeMaxBaseSat),e.xp6(2),e.Q6J("ngModel",P.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",!P.channelFeeMaxProportional),e.xp6(1),e.Q6J("ngIf",P.flgUpdateCalled)}}function _o(G,Le){if(1&G&&(e.TgZ(0,"form",18,4),e.YNc(2,X1,12,1,"div",26),e.YNc(3,ic,37,23,"div",27),e.qZA()),2&G){const P=e.oxw(2);e.xp6(2),e.Q6J("ngIf",!P.features[1].enabled),e.xp6(1),e.Q6J("ngIf",P.features[1].enabled)}}function Sl(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-expansion-panel",9),e.NdJ("opened",function(){const Ht=e.CHM(P).index;return e.oxw().onPanelExpanded(Ht)}),e.TgZ(1,"mat-expansion-panel-header")(2,"mat-panel-title",10)(3,"h4",11),e._uU(4),e.qZA(),e.TgZ(5,"h4",11),e.YNc(6,Jl,1,0,"span",12),e.YNc(7,Ia,1,0,"span",13),e._uU(8),e.qZA()()(),e.TgZ(9,"div",14),e.YNc(10,nl,29,5,"form",15),e.YNc(11,_o,4,2,"form",15),e.qZA()()}if(2&G){const P=Le.$implicit,ie=Le.index;e.Q6J("expanded",!1),e.xp6(4),e.Oqu(P.name),e.xp6(2),e.Q6J("ngIf",P.enabled),e.xp6(1),e.Q6J("ngIf",!P.enabled),e.xp6(1),e.hij(" ",P.enabled?"Enabled":"Disabled"," "),e.xp6(2),e.Q6J("ngIf",0===ie),e.xp6(1),e.Q6J("ngIf",1===ie)}}const El=I.Bz.forRoot([{path:"",pathMatch:"full",redirectTo:"login"},{path:"lnd",loadChildren:()=>Promise.all([p.e(267),p.e(636)]).then(p.bind(p,1636)).then(G=>G.LNDModule),canActivate:[Kr.a1]},{path:"cln",loadChildren:()=>Promise.all([p.e(267),p.e(564)]).then(p.bind(p,9564)).then(G=>G.CLNModule),canActivate:[Kr.a1]},{path:"ecl",loadChildren:()=>Promise.all([p.e(267),p.e(258)]).then(p.bind(p,7258)).then(G=>G.ECLModule),canActivate:[Kr.a1]},{path:"settings",component:Ee,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"app"},{path:"app",component:te,canActivate:[Kr.a1]},{path:"auth",component:ei,canActivate:[Kr.a1]},{path:"bconfig",component:Tt,canActivate:[Kr.a1]}]},{path:"config",component:Bt,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"nodelayout"},{path:"nodelayout",component:sr,canActivate:[Kr.a1]},{path:"pglayout",component:kr,canActivate:[Kr.a1]},{path:"services",component:ba,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",component:sa,canActivate:[Kr.a1]},{path:"boltz",component:Xa,canActivate:[Kr.a1]}]},{path:"experimental",component:(()=>{class G{constructor(P,ie,We,Ht){this.logger=P,this.store=ie,this.dataService=We,this.commonService=Ht,this.faInfoCircle=y.sqG,this.faExclamationTriangle=y.eHv,this.faCode=y.dT$,this.features=[{name:"Offers",enabled:!1},{name:"Channel Funding Policy",enabled:!1}],this.enableOffers=!1,this.fundingPolicy={},this.policyTypes=j.gB,this.selPolicyType=j.gB[0],this.flgUpdateCalled=!1,this.updateMsg={},this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x]}ngOnInit(){this.dataService.listConfigs().pipe((0,x.R)(this.unSubs[0])).subscribe({next:P=>{this.logger.info("Received List Configs: "+JSON.stringify(P)),this.features[1].enabled=!!P["experimental-dual-fund"]},error:P=>{this.logger.error("List Configs Error: "+JSON.stringify(P)),this.features[1].enabled=!1}}),this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.selNode=P,this.enableOffers=this.selNode.settings.enableOffers||!1,this.features[0].enabled=this.enableOffers,this.logger.info(this.selNode)}),this.store.select(_a.Rn).pipe((0,x.R)(this.unSubs[2])).subscribe(P=>{this.policyTypes[2].max=P.balance.totalBalance||1e3})}onPanelExpanded(P){1===P&&!this.fundingPolicy.policy&&this.dataService.getOrUpdateFunderPolicy().pipe((0,x.R)(this.unSubs[3])).subscribe(ie=>{this.logger.info("Received Funder Update Policy: "+JSON.stringify(ie)),this.fundingPolicy=ie,this.fundingPolicy.policy&&(this.selPolicyType=j.gB.find(We=>We.id===this.fundingPolicy.policy)||this.policyTypes[0]),this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null})}onUpdateFeature(){this.logger.info(this.selNode),this.selNode.settings.enableOffers=this.enableOffers,this.features[0].enabled=this.enableOffers,this.store.dispatch((0,Ve.jS)({payload:{uiMessage:j.m6.UPDATE_SETTING,service:j.JX.OFFERS,settings:{enableOffers:this.enableOffers}}})),this.store.dispatch((0,Wt.JT)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,Rt.oo)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}})),this.store.dispatch((0,st.Zr)({payload:{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,unannouncedChannels:this.selNode.settings.unannouncedChannels,lnImplementation:this.selNode.lnImplementation,swapServerUrl:this.selNode.settings.swapServerUrl,boltzServerUrl:this.selNode.settings.boltzServerUrl,enableOffers:this.enableOffers}}))}onUpdateFundingPolicy(){this.flgUpdateCalled=!0,this.updateMsg={},this.dataService.getOrUpdateFunderPolicy(this.selPolicyType.id,this.policyMod,1e3*(this.lease_fee_base_sat||0),this.lease_fee_basis,1e3*(this.channelFeeMaxBaseSat||0),this.channelFeeMaxProportional?this.channelFeeMaxProportional/1e3:0).pipe((0,x.R)(this.unSubs[4])).subscribe({next:P=>{this.logger.info(P),this.fundingPolicy=P,this.updateMsg={data:"Compact Lease: "+P.compact_lease},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)},error:P=>{this.logger.error(P),this.updateMsg={error:this.commonService.extractErrorMessage(P,"Error in updating funder policy")},setTimeout(()=>{this.flgUpdateCalled=!1},5e3)}})}onResetPolicy(){this.flgUpdateCalled=!1,this.updateMsg={},this.selPolicyType=this.fundingPolicy.policy?j.gB.find(P=>P.id===this.fundingPolicy.policy)||this.policyTypes[0]:j.gB[0],this.policyMod=this.fundingPolicy.policy_mod||0===this.fundingPolicy.policy_mod?this.fundingPolicy.policy_mod:null,this.lease_fee_base_sat=this.fundingPolicy.lease_fee_base_msat?this.fundingPolicy.lease_fee_base_msat/1e3:0===this.fundingPolicy.lease_fee_base_msat?0:null,this.lease_fee_basis=this.fundingPolicy.lease_fee_basis||0===this.fundingPolicy.lease_fee_basis?this.fundingPolicy.lease_fee_basis:null,this.channelFeeMaxBaseSat=this.fundingPolicy.channel_fee_max_base_msat?this.fundingPolicy.channel_fee_max_base_msat/1e3:0===this.fundingPolicy.channel_fee_max_base_msat?0:null,this.channelFeeMaxProportional=this.fundingPolicy.channel_fee_max_proportional_thousandths||0===this.fundingPolicy.channel_fee_max_proportional_thousandths?1e3*this.fundingPolicy.channel_fee_max_proportional_thousandths:null}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(C.yh),e.Y36(il.D),e.Y36(fi.v))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-experimental-settings"]],decls:13,vars:3,consts:[["fxLayout","column","fxFlex","100",3,"perfectScrollbar"],["fxFlex","100",1,"alert","alert-info","mt-1"],[1,"mr-1","alert-icon",3,"icon"],["fxLayout","column","fxLayoutAlign","start stretch",1,"page-sub-title-container","mt-1"],["form","ngForm"],["fxLayout","row"],[1,"page-title-img","mr-1",3,"icon"],[1,"page-title"],["class","flat-expansion-panel my-1",3,"expanded","opened",4,"ngFor","ngForOf"],[1,"flat-expansion-panel","my-1",3,"expanded","opened"],["fxFlex","100","fxLayoutAlign","space-between center"],[1,"font-bold-500"],["class","dot green",4,"ngIf"],["class","dot yellow",4,"ngIf"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch","class","page-sub-title-container",4,"ngIf"],[1,"dot","green"],[1,"dot","yellow"],["fxLayout","column","fxFlex","100","fxLayoutAlign","start stretch",1,"page-sub-title-container"],["fxFlex","100",1,"alert","alert-info"],["href","http://bolt12.org","target","_blank"],[1,"mt-2"],["href","https://github.com/lightningnetwork/lightning-rfc/pull/798 ","target","blank"],[1,"my-2",3,"inset"],[1,"alert","alert-warn"],["autoFocus","","tabindex","1","color","primary","name","enableOfr",1,"my-1",3,"ngModel","ngModelChange","change"],[4,"ngIf"],["fxLayout","column",4,"ngIf"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn"],["href","https://medium.com/blockstream/setting-up-liquidity-ads-in-c-lightning-54e4c59c091d","target","_blank"],["fxLayout","column"],["fxFlex","100","fxLayout","row",1,"alert","alert-warn","mb-2"],["fxLayout","column","fxLayout.gt-sm","row","fxFlex","100","fxLayoutAlign.gt-sm","space-between center","fxLayoutAlign","start stretch"],["fxFlex","49","fxLayoutAlign","start end"],["autofocus","","tabindex","1","placeholder","Policy","name","policy",3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],["fxFlex","49"],["matInput","","type","number","tabindex","2","required","","name","plcMod",3,"ngModel","placeholder","step","min","max","ngModelChange"],["plcMod","ngModel"],["matInput","","placeholder","Lease Base Fee (Sats)","type","number","step","100","min","0","tabindex","3","required","","name","lease_fee_base_sat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Lease Base Basis (bps)","type","number","step","1","min","0","tabindex","4","required","","name","lease_fee_basis",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Base Fee (Sats)","type","number","step","100","min","0","tabindex","5","required","","name","channelFeeMaxBaseSat",3,"ngModel","ngModelChange"],["matInput","","placeholder","Max Channel Routing Fee Rate (ppm)","type","number","step","1000","min","0","tabindex","6","required","","name","channelFeeMaxProportional",3,"ngModel","ngModelChange"],["fxLayoutAlign","start stretch","class","font-bold-500 mt-2",4,"ngIf"],["fxLayout","row",1,"my-1"],["mat-stroked-button","","color","primary","tabindex","7",1,"mr-1",3,"click"],["mat-flat-button","","color","primary","tabindex","8",3,"click"],[3,"value"],["fxLayoutAlign","start stretch",1,"font-bold-500","mt-2"],["fxFlex","100",1,"alert",3,"ngClass"]],template:function(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e._UZ(2,"fa-icon",2),e.TgZ(3,"span"),e._uU(4,"Experimental features should be enabled with caution. Many such features may be implementation specific and not ratified for the BOLT spec. Enabling these may still result in a broken experience. Referencing relevant feature documentation is highly advised before enabling."),e.qZA()(),e.TgZ(5,"form",3,4)(7,"div",5),e._UZ(8,"fa-icon",6),e.TgZ(9,"span",7),e._uU(10,"Features"),e.qZA()(),e.TgZ(11,"mat-accordion"),e.YNc(12,Sl,12,7,"mat-expansion-panel",8),e.qZA()()()),2&P&&(e.xp6(2),e.Q6J("icon",ie.faInfoCircle),e.xp6(6),e.Q6J("icon",ie.faCode),e.xp6(4),e.Q6J("ngForOf",ie.features))},directives:[_.xw,_.yH,J.$V,V.BN,Ie._Y,Ie.JL,Ie.F,_.Wh,Ei.pp,X.sg,Ei.ib,Ei.yz,Ei.yK,X.O5,Ge.d,Ni.Rr,we.h,Ie.JJ,Ie.On,ut.KE,Oe.gD,ce.ey,Yt.Nt,Ie.wV,Ie.qQ,Ie.Fd,Ie.Fj,Oo.q,ql.F,Ie.Q7,ut.bx,ut.TO,X.mk,In.oO,Te.lW],pipes:[X.rS],styles:["h4[_ngcontent-%COMP%]{word-break:break-word}"]}),G})(),canActivate:[Kr.a1]},{path:"lnconfig",component:Ri,canActivate:[Kr.a1]}]},{path:"services",component:Xn,canActivate:[Kr.a1],children:[{path:"",pathMatch:"full",redirectTo:"loop"},{path:"loop",pathMatch:"full",redirectTo:"loop/loopout"},{path:"loop/:selTab",component:pe},{path:"boltz",pathMatch:"full",redirectTo:"boltz/swapout"},{path:"boltz/:selTab",component:Cl}]},{path:"help",component:o3},{path:"login",component:ts},{path:"error",component:Io},{path:"**",component:ys.w}],{scrollPositionRestoration:"enabled"});var e1=p(8750),nc=p(8878),Gs=p(4594),Tl=p(2181);function $1(G,Le){if(1&G&&(e.TgZ(0,"p",2),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3),e.qZA()()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faCode),e.xp6(2),e.hij("API Version: ",null==P.information?null:P.information.api_version,"")}}function c3(G,Le){if(1&G&&(e.TgZ(0,"a",11),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",12),e._uU(3,"Settings"),e.qZA()()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faUserCog)}}function ko(G,Le){if(1&G&&(e.TgZ(0,"a",13),e._UZ(1,"fa-icon",3),e.TgZ(2,"span",14),e._uU(3,"Help"),e.qZA()()),2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faQuestion)}}function Al(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"a",15),e.NdJ("click",function(){return e.CHM(P),e.oxw().onClick()}),e._UZ(1,"fa-icon",3),e.TgZ(2,"span"),e._uU(3,"Logout"),e.qZA()()}if(2&G){const P=e.oxw();e.xp6(1),e.Q6J("icon",P.faEject)}}let e2=(()=>{class G{constructor(P,ie,We,Ht,Ci){this.logger=P,this.sessionService=ie,this.store=We,this.rtlEffects=Ht,this.actions=Ci,this.faUserCog=y.gNZ,this.faCodeBranch=y.mh3,this.faCode=y.dT$,this.faCog=y.b7W,this.faQuestion=y.Psp,this.faEject=y.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=ni.q4}ngOnInit(){this.store.select(n.R4).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{if(this.information=P,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(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const ie=this.information.chains[0];this.informationChain.chain=ie.chain,this.informationChain.network=ie.network}}else this.informationChain.chain="",this.informationChain.network="";this.logger.info(P)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.showLogout=!!P.token,this.flgLoading=!!P.token}),this.actions.pipe((0,x.R)(this.unSubs[2]),(0,ge.h)(P=>P.type===j.pg.LOGOUT)).subscribe(()=>{this.showLogout=!1})}onClick(){this.store.dispatch((0,Ve.c1)({payload:{data:{type:j.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[3])).subscribe(P=>{P&&(this.showLogout=!1,this.store.dispatch((0,Ve.kS)()))})}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(Ae.m),e.Y36(C.yh),e.Y36(tt.V),e.Y36(d.eX))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-top-menu"]],decls:14,vars:8,consts:[[1,"top-menu",3,"overlapTrigger"],["topMenu","matMenu"],["mat-menu-item",""],[1,"fa-icon-small","mr-1",3,"icon"],["mat-menu-item","",4,"ngIf"],["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"],[1,"logo-icon"],["mat-menu-item","","routerLink","/settings"],["routerLink","/settings"],["mat-menu-item","","routerLink","/help"],["routerLink","/help"],["mat-menu-item","",3,"click"]],template:function(P,ie){if(1&P&&(e.TgZ(0,"mat-menu",0,1)(2,"p",2),e._UZ(3,"fa-icon",3),e.TgZ(4,"span"),e._uU(5),e.qZA()(),e.YNc(6,$1,4,2,"p",4),e.YNc(7,c3,4,1,"a",5),e.YNc(8,ko,4,1,"a",6),e.YNc(9,Al,4,1,"a",7),e.qZA(),e.TgZ(10,"button",8),e._UZ(11,"img",9),e.TgZ(12,"mat-icon",10),e._uU(13,"arrow_drop_down"),e.qZA()()),2&P){const We=e.MAs(1);e.Q6J("overlapTrigger",!1),e.xp6(3),e.Q6J("icon",ie.faCodeBranch),e.xp6(2),e.hij("Version: ",ie.version,""),e.xp6(1),e.Q6J("ngIf",null==ie.information?null:ie.information.api_version),e.xp6(1),e.Q6J("ngIf",ie.showLogout),e.xp6(1),e.Q6J("ngIf",ie.showLogout),e.xp6(1),e.Q6J("ngIf",ie.showLogout),e.xp6(1),e.Q6J("matMenuTriggerFor",We)}},directives:[Tl.VK,Tl.OP,V.BN,X.O5,I.yS,I.rH,Te.lW,Tl.p6,ta.Hw],styles:[".mat-menu-content,.mat-menu-content p.mat-menu-item{cursor:default}.mat-menu-content p.mat-menu-item fa-icon,.mat-menu-content p.mat-menu-item span,.mat-menu-content p.mat-menu-item div{cursor:default}.mat-menu-content p.mat-menu-item:hover{cursor:default!important}.top-toolbar-icon .mat-button-wrapper img{width:3.2rem}.top-toolbar-icon .mat-button-wrapper .material-icons.mat-icon.logo-icon{font-size:2rem;text-align:start}\n"],encapsulation:2}),G})();var t2=p(2638),rc=p(8258),Zs=p(149);const Is={LNDChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/lnd/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/lnd/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/lnd/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/lnd/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/lnd/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/lnd/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/lnd/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/lnd/graph",userPersona:j.ol.ALL},{id:36,parentId:3,name:"Sign/Verify",iconType:"FA",icon:y.hkK,link:"/lnd/messages",userPersona:j.ol.ALL},{id:37,parentId:3,name:"Backup",iconType:"FA",icon:y.q7m,link:"/lnd/channelbackup",userPersona:j.ol.ALL},{id:38,parentId:3,name:"Network",iconType:"FA",icon:y.TmZ,link:"/lnd/network",userPersona:j.ol.OPERATOR},{id:39,parentId:3,name:"Node/Network",iconType:"FA",icon:y.xf3,link:"/lnd/network",userPersona:j.ol.MERCHANT}]},{id:4,parentId:0,name:"Services",iconType:"FA",icon:y.Krp,link:"/services/loop",userPersona:j.ol.ALL,children:[{id:41,parentId:4,name:"Loop",iconType:"FA",icon:y.vqe,link:"/services/loop",userPersona:j.ol.ALL},{id:42,parentId:4,name:"Boltz",iconType:"SVG",icon:"boltzIconBlock",link:"/services/boltz",userPersona:j.ol.ALL}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:j.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:j.ol.ALL}],CLNChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/cln/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/cln/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/cln/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/cln/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Liquidity Ads",iconType:"FA",icon:y.Acd,link:"/cln/liquidityads",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/cln/transactions",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/cln/routing",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/cln/reports",userPersona:j.ol.ALL},{id:36,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/cln/graph",userPersona:j.ol.ALL},{id:37,parentId:3,name:"Sign/Verify",iconType:"FA",icon:y.hkK,link:"/cln/messages",userPersona:j.ol.ALL},{id:38,parentId:3,name:"Fee Rates",iconType:"FA",icon:y.USL,link:"/cln/rates",userPersona:j.ol.OPERATOR},{id:39,parentId:3,name:"Node/Fee Rates",iconType:"FA",icon:y.xf3,link:"/cln/rates",userPersona:j.ol.MERCHANT}]},{id:5,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:j.ol.ALL},{id:6,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:j.ol.ALL}],ECLChildren:[{id:1,parentId:0,name:"Dashboard",iconType:"FA",icon:y.HLz,link:"/ecl/home",userPersona:j.ol.ALL},{id:2,parentId:0,name:"On-chain",iconType:"FA",icon:y.nNP,link:"/ecl/onchain",userPersona:j.ol.ALL},{id:3,parentId:0,name:"Lightning",iconType:"FA",icon:y.BDt,link:"/ecl/connections",userPersona:j.ol.ALL,children:[{id:31,parentId:3,name:"Peers/Channels",iconType:"FA",icon:y.FVb,link:"/ecl/connections",userPersona:j.ol.ALL},{id:32,parentId:3,name:"Transactions",iconType:"FA",icon:y.Ssp,link:"/ecl/transactions",userPersona:j.ol.ALL},{id:33,parentId:3,name:"Routing",iconType:"FA",icon:y.SuH,link:"/ecl/routing",userPersona:j.ol.ALL},{id:34,parentId:3,name:"Reports",iconType:"FA",icon:y.koM,link:"/ecl/reports",userPersona:j.ol.ALL},{id:35,parentId:3,name:"Graph Lookup",iconType:"FA",icon:y.wn1,link:"/ecl/graph",userPersona:j.ol.ALL}]},{id:4,parentId:0,name:"Node Config",iconType:"FA",icon:y.CgH,link:"/config",userPersona:j.ol.ALL},{id:5,parentId:0,name:"Help",iconType:"FA",icon:y.Psp,link:"/help",userPersona:j.ol.ALL}]};function ac(G,Le){if(1&G&&(e.TgZ(0,"mat-option",11),e._uU(1),e.qZA()),2&G){const P=Le.$implicit;e.Q6J("value",P.index),e.xp6(1),e.AsE(" ",P.lnNode," (",P.lnImplementation,") ")}}function Os(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-select",9),e.NdJ("selectionChange",function(We){return e.CHM(P),e.oxw().onNodeSelectionChange(We.value)}),e.YNc(1,ac,2,3,"mat-option",10),e.qZA()}if(2&G){const P=e.oxw();e.Q6J("value",P.selConfigNodeIndex),e.xp6(1),e.Q6J("ngForOf",P.appConfig.nodes)}}function t1(G,Le){if(1&G&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.oxw(2);const ie=e.MAs(11);e.xp6(1),e.Q6J("ngTemplateOutlet","boltzIconBlock"===P.icon?ie:null)}}function oo(G,Le){if(1&G&&e._UZ(0,"fa-icon",23),2&G){const P=e.oxw().$implicit;e.Q6J("icon",P.icon)}}function r2(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P.icon)}}function u3(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-tree-node",15)(1,"div",16),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).onChildNavClicked(Ht)}),e.TgZ(2,"div",17),e.YNc(3,t1,2,1,"span",18),e.YNc(4,oo,1,1,"fa-icon",19),e.YNc(5,r2,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()()()()}if(2&G){const P=Le.$implicit;e.s9C("routerLink",P.link),e.xp6(3),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name)}}function n1(G,Le){if(1&G&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function Ll(G,Le){if(1&G&&e._UZ(0,"fa-icon",23),2&G){const P=e.oxw().$implicit;e.Q6J("icon",P.icon)}}function r1(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",24),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Oqu(P.icon)}}function sc(G,Le){if(1&G&&(e.TgZ(0,"mat-nested-tree-node",25)(1,"div",26)(2,"div",27),e.YNc(3,n1,2,1,"span",28),e.YNc(4,Ll,1,1,"fa-icon",19),e.YNc(5,r1,2,1,"mat-icon",20),e.TgZ(6,"span"),e._uU(7),e.qZA()(),e.TgZ(8,"button",29)(9,"mat-icon",30),e._uU(10),e.qZA()()(),e.TgZ(11,"div",31),e.GkF(12,32),e.qZA()()),2&G){const P=Le.$implicit,ie=e.oxw(2);e.xp6(3),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name),e.xp6(1),e.uIk("aria-label","toggle "+P.name),e.xp6(2),e.Oqu(ie.treeControlNested.isExpanded(P)?"arrow_drop_up":"arrow_drop_down"),e.xp6(1),e.ekj("tree-children-invisible",!ie.treeControlNested.isExpanded(P))}}function Dl(G,Le){if(1&G&&(e.TgZ(0,"mat-tree",5,12),e.YNc(2,u3,8,5,"mat-tree-node",13),e.YNc(3,sc,13,8,"mat-nested-tree-node",14),e.qZA()),2&G){const P=e.oxw();e.Q6J("dataSource",P.navMenus)("treeControl",P.treeControlNested),e.xp6(3),e.Q6J("matTreeNodeDefWhen",P.hasChild)}}function a2(G,Le){if(1&G&&(e.TgZ(0,"span",21),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function is(G,Le){if(1&G&&e._UZ(0,"fa-icon",36),2&G){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.Q6J("icon",P.icon)}}function oc(G,Le){if(1&G&&(e.TgZ(0,"mat-icon",37),e._uU(1),e.qZA()),2&G){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.xp6(1),e.Oqu(P.icon)}}function Il(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw().onShowData(Ht)}),e.YNc(1,a2,2,1,"span",18),e.YNc(2,is,1,2,"fa-icon",34),e.YNc(3,oc,2,2,"mat-icon",35),e.TgZ(4,"span"),e._uU(5),e.qZA()()}if(2&G){const P=Le.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(1),e.Q6J("ngIf",!P.iconType),e.xp6(2),e.Oqu(P.name)}}function a1(G,Le){if(1&G&&(e.TgZ(0,"span",33),e.GkF(1,22),e.qZA()),2&G){const P=e.oxw().$implicit;e.xp6(1),e.Q6J("ngTemplateOutlet",P.icon)}}function s2(G,Le){if(1&G&&e._UZ(0,"fa-icon",36),2&G){const P=e.oxw().$implicit;e.s9C("matTooltip",P.name),e.Q6J("icon",P.icon)}}function No(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"mat-tree-node",16),e.NdJ("click",function(){const Ht=e.CHM(P).$implicit;return e.oxw(2).onClick(Ht)}),e.YNc(1,a1,2,1,"span",28),e.YNc(2,s2,1,2,"fa-icon",34),e.TgZ(3,"span"),e._uU(4),e.qZA()()}if(2&G){const P=Le.$implicit;e.xp6(1),e.Q6J("ngIf","SVG"===P.iconType),e.xp6(1),e.Q6J("ngIf","FA"===P.iconType),e.xp6(2),e.Oqu(P.name)}}function Ws(G,Le){if(1&G&&(e.TgZ(0,"mat-tree",5),e.YNc(1,No,5,3,"mat-tree-node",6),e.qZA()),2&G){const P=e.oxw();e.Q6J("dataSource",P.navMenusLogout)("treeControl",P.treeControlLogout)}}function vo(G,Le){1&G&&(e.O4$(),e.TgZ(0,"svg",38)(1,"g",39)(2,"g",40),e._UZ(3,"circle",41)(4,"path",42)(5,"path",43),e.qZA()()())}let o2=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji){this.logger=P,this.commonService=ie,this.sessionService=We,this.store=Ht,this.actions=Ci,this.rtlEffects=ji,this.ChildNavClicked=new e.vpe,this.faEject=y.KOR,this.faEye=y.Mdf,this.version="",this.information={},this.informationChain={},this.flgLoading=!0,this.logoutNode=[{id:200,parentId:0,name:"Logout",iconType:"FA",icon:y.KOR}],this.showDataNodes=[{id:1e3,parentId:0,name:"Public Key",iconType:"FA",icon:y.Mdf}],this.showLogout=!1,this.numPendingChannels=0,this.smallScreen=!1,this.childRootRoute="",this.userPersonaEnum=j.ol,this.unSubs=[new h.x,new h.x,new h.x,new h.x,new h.x,new h.x],this.treeControlNested=new rc.VY(hn=>hn.children),this.treeControlLogout=new rc.VY(hn=>hn.children),this.treeControlShowData=new rc.VY(hn=>hn.children),this.navMenus=new Zs.WX,this.navMenusLogout=new Zs.WX,this.navMenusShowData=new Zs.WX,this.hasChild=(hn,Fn)=>!!Fn.children&&Fn.children.length>0,this.version=ni.q4,Is.LNDChildren&&200===Is.LNDChildren[Is.LNDChildren.length-1].id&&Is.LNDChildren.pop(),this.navMenus.data=Is.LNDChildren||[],this.navMenusLogout.data=this.logoutNode,this.navMenusShowData.data=this.showDataNodes}ngOnInit(){const P=this.sessionService.getItem("token");this.showLogout=!!P,this.flgLoading=!!P,this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[0])).subscribe(ie=>{this.appConfig=ie}),this.store.select(n.gW).pipe((0,x.R)(this.unSubs[1])).subscribe(ie=>{var We,Ht;if(this.information=ie.nodeDate,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(this.information&&this.information.chains&&this.information.chains.length&&this.information.chains.length>0&&"object"==typeof this.information.chains[0]&&this.information.chains[0].hasOwnProperty("chain")){const Ci=this.information.chains[0];this.informationChain.chain=Ci.chain,this.informationChain.network=Ci.network}}else this.informationChain.chain="",this.informationChain.network="";this.flgLoading=!this.information.identity_pubkey,window.innerWidth<=414&&(this.smallScreen=!0),this.selNode=ie.selNode,this.settings=(null===(We=this.selNode)||void 0===We?void 0:We.settings)||null,this.selConfigNodeIndex=+((null===(Ht=ie.selNode)||void 0===Ht?void 0:Ht.index)||0),this.selNode&&this.selNode.lnImplementation&&this.filterSideMenuNodes(),this.logger.info(ie)}),this.sessionService.watchSession().pipe((0,x.R)(this.unSubs[2])).subscribe(ie=>{this.showLogout=!!ie.token,this.flgLoading=!!ie.token}),this.actions.pipe((0,x.R)(this.unSubs[3]),(0,ge.h)(ie=>ie.type===j.pg.LOGOUT)).subscribe(ie=>{this.showLogout=!1})}onClick(P){"Logout"===P.name&&(this.store.dispatch((0,Ve.c1)({payload:{data:{type:j.n_.CONFIRM,alertTitle:"Logout",titleMessage:"Logout from this device?",noBtnText:"Cancel",yesBtnText:"Logout"}}})),this.rtlEffects.closeConfirm.pipe((0,x.R)(this.unSubs[4])).subscribe(ie=>{ie&&(this.showLogout=!1,this.store.dispatch((0,Ve.kS)()))})),this.ChildNavClicked.emit(P)}onChildNavClicked(P){this.ChildNavClicked.emit(P)}filterSideMenuNodes(){var P,ie;switch(null===(ie=null===(P=this.selNode)||void 0===P?void 0:P.lnImplementation)||void 0===ie?void 0:ie.toUpperCase()){case"CLN":this.loadCLNMenu();break;case"ECL":this.loadECLMenu();break;default:this.loadLNDMenu()}}loadLNDMenu(){let P=[];P=JSON.parse(JSON.stringify(Is.LNDChildren)),this.navMenus.data=null==P?void 0:P.filter(ie=>{var We,Ht;return ie.children&&ie.children.length?(ie.children=null===(We=ie.children)||void 0===We?void 0:We.filter(Ci=>{var ji,hn,Fn;return(Ci.userPersona===j.ol.ALL||Ci.userPersona===(null===(ji=this.settings)||void 0===ji?void 0:ji.userPersona))&&"/services/loop"!==Ci.link&&"/services/boltz"!==Ci.link||"/services/loop"===Ci.link&&(null===(hn=this.settings)||void 0===hn?void 0:hn.swapServerUrl)&&""!==this.settings.swapServerUrl.trim()||"/services/boltz"===Ci.link&&(null===(Fn=this.settings)||void 0===Fn?void 0:Fn.boltzServerUrl)&&""!==this.settings.boltzServerUrl.trim()}),ie.children.length>0):ie.userPersona===j.ol.ALL||ie.userPersona===(null===(Ht=this.settings)||void 0===Ht?void 0:Ht.userPersona)})}loadCLNMenu(){let P=[];P=JSON.parse(JSON.stringify(Is.CLNChildren)),this.navMenus.data=null==P?void 0:P.filter(ie=>{var We,Ht;return ie.children&&ie.children.length?(ie.children=null===(We=ie.children)||void 0===We?void 0:We.filter(Ci=>{var ji,hn;return(Ci.userPersona===j.ol.ALL||Ci.userPersona===(null===(ji=this.settings)||void 0===ji?void 0:ji.userPersona))&&"/services/peerswap"!==Ci.link||"/services/peerswap"===Ci.link&&(null===(hn=this.settings)||void 0===hn?void 0:hn.enablePeerswap)}),ie.children.length>0):ie.userPersona===j.ol.ALL||ie.userPersona===(null===(Ht=this.settings)||void 0===Ht?void 0:Ht.userPersona)})}loadECLMenu(){this.navMenus.data=JSON.parse(JSON.stringify(Is.ECLChildren))}onShowData(P){this.store.dispatch((0,Ve.tj)()),this.ChildNavClicked.emit("showData")}onNodeSelectionChange(P){const ie=this.selConfigNodeIndex;this.selConfigNodeIndex=P;const We=this.appConfig.nodes.find(Ht=>+Ht.index===P);this.store.dispatch((0,Ve.fk)({payload:{uiMessage:j.m6.UPDATE_SELECTED_NODE,prevLnNodeIndex:+ie,currentLnNode:We||null,isInitialSetup:!1}})),this.ChildNavClicked.emit("selectNode")}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(null),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(Ae.m),e.Y36(C.yh),e.Y36(d.eX),e.Y36(tt.V))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-side-navigation"]],viewQuery:function(P,ie){if(1&P&&e.Gf(Zs.gi,5),2&P){let We;e.iGM(We=e.CRH())&&(ie.tree=We.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","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(P,ie){1&P&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,Os,2,2,"mat-select",2),e._UZ(3,"mat-divider",3),e.YNc(4,Dl,4,3,"mat-tree",4),e._UZ(5,"mat-divider",3),e.TgZ(6,"mat-tree",5),e.YNc(7,Il,6,4,"mat-tree-node",6),e.qZA()(),e.TgZ(8,"div",7),e.YNc(9,Ws,2,2,"mat-tree",4),e.qZA()(),e.YNc(10,vo,6,0,"ng-template",null,8,e.W1O)),2&P&&(e.xp6(2),e.Q6J("ngIf",ie.appConfig.nodes.length>1),e.xp6(2),e.Q6J("ngIf",null==ie.settings?null:ie.settings.lnServerUrl),e.xp6(2),e.Q6J("dataSource",ie.navMenusShowData)("treeControl",ie.treeControlShowData),e.xp6(3),e.Q6J("ngIf",ie.showLogout))},directives:[_.xw,_.yH,_.Wh,J.$V,X.O5,Oe.gD,X.sg,ce.ey,Ge.d,Zs.gi,Zs.fQ,Zs.uo,Zs.eu,I.Od,I.rH,X.tP,V.BN,ta.Hw,Zs.GZ,Te.lW,Zs.Ar,zr.gM],styles:[".tree-children-invisible[_ngcontent-%COMP%]{display:none}"]}),G})();var h3=p(773);const f3=["sideNavigation"],p3=["sideNavContent"];function m3(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",13),e.NdJ("click",function(){return e.CHM(P),e.oxw().sideNavToggle()}),e.TgZ(1,"mat-icon"),e._uU(2,"menu"),e.qZA()()}if(2&G){const P=e.oxw();e.Q6J("matTooltip",P.flgSideNavOpened?"Hide Navigation Menu":"Show Navigation Menu")("matTooltipDisabled",P.smallScreen)}}function g3(G,Le){1&G&&(e.O4$(),e._UZ(0,"path",18))}function l2(G,Le){1&G&&(e.O4$(),e._UZ(0,"path",19))}function s1(G,Le){if(1&G){const P=e.EpF();e.TgZ(0,"button",14),e.NdJ("click",function(){e.CHM(P);const We=e.oxw();return We.flgSidenavPinned=!We.flgSidenavPinned}),e.O4$(),e.TgZ(1,"svg",15),e.YNc(2,g3,1,0,"path",16),e.YNc(3,l2,1,0,"path",17),e.qZA()()}if(2&G){const P=e.oxw();e.Q6J("matTooltip",P.flgSidenavPinned?"Unpin Navigation Menu":"Pin Navigation Menu"),e.xp6(2),e.Q6J("ngIf",!P.flgSidenavPinned),e.xp6(1),e.Q6J("ngIf",P.flgSidenavPinned)}}function c2(G,Le){if(1&G&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Oqu(P.information.alias?"RTL - "+P.information.alias:"RTL")}}function d2(G,Le){if(1&G&&(e.TgZ(0,"span"),e._uU(1),e.qZA()),2&G){const P=e.oxw();e.xp6(1),e.Oqu(P.information.alias?"Ride The Lightning - "+P.information.alias:"Ride The Lightning")}}function Ol(G,Le){1&G&&(e.TgZ(0,"div",20),e._UZ(1,"mat-spinner",21),e.TgZ(2,"h4"),e._uU(3,"Loading RTL..."),e.qZA()())}const rl=function(G,Le){return[G,Le]};let _3=(()=>{class G{constructor(P,ie,We,Ht,Ci,ji,hn,Fn,ls){this.logger=P,this.commonService=ie,this.store=We,this.actions=Ht,this.userIdle=Ci,this.router=ji,this.sessionService=hn,this.breakpointObserver=Fn,this.renderer=ls,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,new h.x,new h.x]}ngOnInit(){this.router.events.subscribe(P=>{P instanceof I.m2&&document.getElementsByTagName("mat-sidenav-content")[0].scrollTo(0,0)}),this.breakpointObserver.observe([a.u3.XSmall,a.u3.TabletPortrait,a.u3.Small,a.u3.Medium,a.u3.Large,a.u3.XLarge]).pipe((0,x.R)(this.unSubs[0])).subscribe(P=>{P.breakpoints[a.u3.XSmall]?(this.commonService.setScreenSize(j.cu.XS),this.smallScreen=!0):P.breakpoints[a.u3.TabletPortrait]?(this.commonService.setScreenSize(j.cu.SM),this.smallScreen=!0):P.breakpoints[a.u3.Small]||P.breakpoints[a.u3.Medium]?(this.commonService.setScreenSize(j.cu.MD),this.smallScreen=!1):P.breakpoints[a.u3.Large]?(this.commonService.setScreenSize(j.cu.LG),this.smallScreen=!1):(this.commonService.setScreenSize(j.cu.XL),this.smallScreen=!1)}),this.store.dispatch((0,Ve.ey)()),this.accessKey=this.readAccessKey()||"",this.store.select(n.dT).pipe((0,x.R)(this.unSubs[1])).subscribe(P=>{this.settings=P.settings,this.sessionService.getItem("token")?(this.flgLoggedIn=!0,this.userIdle.startWatching()):(this.flgLoggedIn=!1,this.flgLoading[0]=!1)}),this.store.select(n.Yj).pipe((0,x.R)(this.unSubs[2])).subscribe(P=>{this.appConfig=P}),this.store.select(n.R4).pipe((0,x.R)(this.unSubs[3])).subscribe(P=>{this.information=P,this.flgLoading[0]=!this.information.identity_pubkey,this.logger.info(this.information)}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1),this.actions.pipe((0,x.R)(this.unSubs[4]),(0,ge.h)(P=>P.type===j.pg.SET_RTL_CONFIG||P.type===j.pg.LOGIN||P.type===j.pg.LOGOUT)).subscribe(P=>{P.type===j.pg.SET_RTL_CONFIG&&(this.sessionService.getItem("token")||(+P.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((0,Ve.x4)({payload:{password:Ce(this.accessKey).toString(),defaultPassword:!1}})):this.router.navigate(["./login"]))),P.type===j.pg.LOGIN&&(this.flgLoggedIn=!0,this.userIdle.startWatching(),this.userIdle.resetTimer(),setTimeout(()=>{this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)},1e3)),P.type===j.pg.LOGOUT&&(this.flgLoggedIn=!1,this.userIdle.stopWatching(),this.userIdle.stopTimer())}),this.userIdle.onTimerStart().pipe((0,x.R)(this.unSubs[5])).subscribe(P=>{this.logger.info("Counting Down: "+(11-P))}),this.userIdle.onTimeout().pipe((0,x.R)(this.unSubs[6])).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((0,Ve.ts)()),this.store.dispatch((0,Ve.qR)({payload:{data:{type:j.n_.WARNING,alertTitle:"Logging out",titleMessage:"Time limit exceeded for session inactivity."}}})),this.store.dispatch((0,Ve.kS)()))}),"true"===this.sessionService.getItem("defaultPassword")&&(this.flgSideNavOpened=!1)}readAccessKey(){const P=window.location.href;return P.includes("access-key=")?P.substring(P.lastIndexOf("access-key=")+11).trim():null}ngAfterViewInit(){(this.smallScreen||!this.flgLoggedIn)&&this.sideNavigation.close(),this.commonService.setContainerSize(this.sideNavContent.elementRef.nativeElement.clientWidth,this.sideNavContent.elementRef.nativeElement.clientHeight)}sideNavToggle(){this.flgSideNavOpened=!this.flgSideNavOpened,this.sideNavigation.toggle()}onNavigationClicked(P){this.smallScreen&&this.sideNavigation.close()}copiedText(P){this.flgCopied=!0,setTimeout(()=>{this.flgCopied=!1},5e3),this.logger.info("Copied Text: "+P)}ngOnDestroy(){this.unSubs.forEach(P=>{P.next(),P.complete()})}}return G.\u0275fac=function(P){return new(P||G)(e.Y36(Me.mQ),e.Y36(fi.v),e.Y36(C.yh),e.Y36(d.eX),e.Y36(v),e.Y36(I.F0),e.Y36(Ae.m),e.Y36(a.Yg),e.Y36(e.Qsj))},G.\u0275cmp=e.Xpm({type:G,selectors:[["rtl-app"]],viewQuery:function(P,ie){if(1&P&&(e.Gf(f3,5),e.Gf(p3,5)),2&P){let We;e.iGM(We=e.CRH())&&(ie.sideNavigation=We.first),e.iGM(We=e.CRH())&&(ie.sideNavContent=We.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(P,ie){1&P&&(e.TgZ(0,"div",0),e.ALo(1,"lowercase"),e.ALo(2,"lowercase"),e.TgZ(3,"mat-toolbar",1)(4,"div"),e.YNc(5,m3,3,2,"button",2),e.YNc(6,s1,4,3,"button",3),e.qZA(),e.TgZ(7,"div"),e.YNc(8,c2,2,1,"span",4),e.YNc(9,d2,2,1,"span",4),e.qZA(),e.TgZ(10,"div"),e._UZ(11,"rtl-top-menu"),e.qZA()(),e.TgZ(12,"mat-sidenav-container")(13,"mat-sidenav",5,6)(15,"rtl-side-navigation",7),e.NdJ("ChildNavClicked",function(Ht){return ie.onNavigationClicked(Ht)}),e.qZA()(),e.TgZ(16,"mat-sidenav-content",8,9)(18,"div",10),e._UZ(19,"router-outlet",null,11),e.qZA()(),e._uU(21,"> "),e.qZA(),e.YNc(22,Ol,4,0,"div",12),e.qZA()),2&P&&(e.Q6J("ngClass",e.WLB(12,rl,e.lcZ(1,8,ie.settings.themeColor),e.lcZ(2,10,ie.settings.themeMode))),e.xp6(5),e.Q6J("ngIf",ie.flgLoggedIn),e.xp6(1),e.Q6J("ngIf",!ie.smallScreen&&ie.flgLoggedIn),e.xp6(2),e.Q6J("ngIf",ie.smallScreen),e.xp6(1),e.Q6J("ngIf",!ie.smallScreen),e.xp6(4),e.Q6J("opened",ie.flgSideNavOpened&&ie.flgLoggedIn)("mode",ie.flgSidenavPinned&&!ie.smallScreen?"side":"over"),e.xp6(9),e.Q6J("ngIf",!ie.settings.themeColor))},directives:[_.xw,X.mk,In.oO,Gs.Ye,_.Wh,X.O5,Te.lW,zr.gM,ta.Hw,e2,t2.TM,t2.JX,J.$V,o2,_.yH,t2.Rh,I.lC,h3.Ou],pipes:[X.i8],styles:[".inline-spinner[_ngcontent-%COMP%]{display:inline-flex!important;top:0!important}"],data:{animation:[nc.g]}}),G})(),Ro=(()=>{class G{constructor(P){this.sessionService=P}intercept(P,ie){if(this.sessionService.getItem("token")){const We=P.clone({headers:P.headers.set("Authorization","Bearer "+this.sessionService.getItem("token")),withCredentials:!0});return ie.handle(We)}return ie.handle(P)}}return G.\u0275fac=function(P){return new(P||G)(e.LFG(Ae.m))},G.\u0275prov=e.Yz7({token:G,factory:G.\u0275fac}),G})();var o1=p(7998),Ys=p(711),al=p(4947),lc=p(3289);const sl={userPersona:"OPERATOR",themeMode:"DAY",themeColor:"PURPLE",channelBackupPath:"",selCurrencyUnit:"USD",unannouncedChannels:!1,fiatConversion:!1,currencyUnits:["Sats","BTC","USD"],bitcoindConfigPath:"",enableOffers:!1,enablePeerswap:!1},ol={configPath:"",swapMacaroonPath:"",boltzMacaroonPath:""},ll={apiURL:"",apisCallStatus:{Login:{status:j.Bn.UN_INITIATED},IsAuthorized:{status:j.Bn.UN_INITIATED}},selNode:{index:1,lnNode:"Node 1",settings:sl,authentication:ol,lnImplementation:"LND"},appConfig:{defaultNodeIndex:-1,selectedNodeIndex:-1,sso:{rtlSSO:0,logoutRedirectLink:""},enable2FA:!1,allowPasswordUpdate:!0,nodes:[{settings:sl,authentication:ol}]},nodeData:{}},v3=(0,C.Lq)(ll,(0,C.on)(Ve.qi,(G,{payload:Le})=>{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(Ve.vI,(G,{payload:Le})=>Object.assign(Object.assign({},ll),{apisCallStatus:G.apisCallStatus,appConfig:G.appConfig,selNode:Le})),(0,C.on)(Ve.fk,(G,{payload:Le})=>Object.assign(Object.assign({},G),{selNode:Le.currentLnNode})),(0,C.on)(Ve.Tm,(G,{payload:Le})=>{const P=JSON.parse(JSON.stringify(G.selNode));switch(Le.service){case j.JX.BOLTZ:P.settings.boltzServerUrl=Le.settings.boltzServerUrl;break;case j.JX.LOOP:P.settings.swapServerUrl=Le.settings.swapServerUrl;break;case j.JX.OFFERS:P.settings.enableOffers=Le.settings.enableOffers;break;case j.JX.PEERSWAP:P.settings.enablePeerswap=Le.settings.enablePeerswap}return Object.assign(Object.assign({},G),{selNode:P})}),(0,C.on)(Ve._V,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeData:Le})),(0,C.on)(Ve.XT,(G,{payload:Le})=>Object.assign(Object.assign({},G),{appConfig:Le}))),l1={apisCallStatus:{FetchPageSettings:{status:j.Bn.UN_INITIATED},FetchInfo:{status:j.Bn.UN_INITIATED},FetchFees:{status:j.Bn.UN_INITIATED},FetchPeers:{status:j.Bn.UN_INITIATED},FetchClosedChannels:{status:j.Bn.UN_INITIATED},FetchPendingChannels:{status:j.Bn.UN_INITIATED},FetchAllChannels:{status:j.Bn.UN_INITIATED},FetchBalanceBlockchain:{status:j.Bn.UN_INITIATED},FetchInvoices:{status:j.Bn.UN_INITIATED},FetchPayments:{status:j.Bn.UN_INITIATED},FetchForwardingHistory:{status:j.Bn.UN_INITIATED},FetchUTXOs:{status:j.Bn.UN_INITIATED},FetchTransactions:{status:j.Bn.UN_INITIATED},FetchLightningTransactions:{status:j.Bn.UN_INITIATED},FetchNetwork:{status:j.Bn.UN_INITIATED}},nodeSettings:{userPersona:j.ol.OPERATOR,unannouncedChannels:!1,fiatConversion:!1,channelBackupPath:"",currencyUnits:[],selCurrencyUnit:"",lnImplementation:"",swapServerUrl:""},pageSettings:j.gK,information:{},peers:[],fees:{channel_fees:[],day_fee_sum:0,week_fee_sum:0,month_fee_sum:0,daily_tx_count:0,weekly_tx_count:0,monthly_tx_count:0,forwarding_events_history:{}},networkInfo:{},blockchainBalance:{total_balance:-1},lightningBalance:{local:-1,remote:-1},channels:[],channelsSummary:{active:{num_channels:0,capacity:0},inactive:{num_channels:0,capacity:0}},closedChannels:[],pendingChannels:{},pendingChannelsSummary:{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},transactions:[],utxos:[],listPayments:{payments:[]},listInvoices:{invoices:[]},allLightningTransactions:{listPaymentsAll:{payments:[],first_index_offset:"",last_index_offset:""},listInvoicesAll:{invoices:[],total_invoices:0,last_index_offset:"",first_index_offset:""}},forwardingHistory:{last_offset_index:0,total_fee_msat:0,forwarding_events:[]}};let da=!1,cl=!1;const cc=(0,C.Lq)(l1,(0,C.on)(Wt.PC,(G,{payload:Le})=>{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(Wt.JT,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeSettings:Le})),(0,C.on)(Wt.Ll,(G,{payload:Le})=>Object.assign(Object.assign({},l1),{nodeSettings:Le})),(0,C.on)(Wt.CX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{information:Le})),(0,C.on)(Wt.Z8,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:Le})),(0,C.on)(Wt.EK,(G,{payload:Le})=>{const P=[...G.peers],ie=G.peers.findIndex(We=>We.pub_key===Le.pubkey);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(Wt.YP,(G,{payload:Le})=>{var P;const ie=G.listInvoices;return null===(P=ie.invoices)||void 0===P||P.unshift(Le),Object.assign(Object.assign({},G),{listInvoices:ie})}),(0,C.on)(Wt.aL,(G,{payload:Le})=>{var P;const ie=G.listInvoices;return ie.invoices=null===(P=ie.invoices)||void 0===P?void 0:P.map(We=>We.payment_request===Le.payment_request?Le:We),Object.assign(Object.assign({},G),{listInvoices:ie})}),(0,C.on)(Wt.qY,(G,{payload:Le})=>{var P;const ie=G.listPayments;return ie.payments=null===(P=ie.payments)||void 0===P?void 0:P.map(We=>We.payment_hash===Le.payment_hash?Le:We),Object.assign(Object.assign({},G),{listPayments:ie})}),(0,C.on)(Wt.RX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{fees:Le})),(0,C.on)(Wt._L,(G,{payload:Le})=>Object.assign(Object.assign({},G),{closedChannels:Le})),(0,C.on)(Wt.TW,(G,{payload:Le})=>Object.assign(Object.assign({},G),{pendingChannels:Le.pendingChannels,pendingChannelsSummary:Le.pendingChannelsSummary})),(0,C.on)(Wt.as,(G,{payload:Le})=>{let P=0,ie=0,We=0,Ht=0,Ci=0,ji=0;return Le&&Le.forEach(hn=>{hn.local_balance||(hn.local_balance=0),!0===hn.active?(Ci+=+hn.local_balance,We+=1,hn.local_balance?P=+P+ +hn.local_balance:hn.local_balance=0,hn.remote_balance?ie=+ie+ +hn.remote_balance:hn.remote_balance=0):(ji+=+hn.local_balance,Ht+=1)}),Object.assign(Object.assign({},G),{channels:Le,channelsSummary:{active:{num_channels:We,capacity:Ci},inactive:{num_channels:Ht,capacity:ji}},lightningBalance:{local:P,remote:ie}})}),(0,C.on)(Wt.OG,(G,{payload:Le})=>{const P=[...G.channels],ie=G.channels.findIndex(We=>We.channel_point===Le.channelPoint);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{channels:P})}),(0,C.on)(Wt.Jl,(G,{payload:Le})=>Object.assign(Object.assign({},G),{blockchainBalance:Le})),(0,C.on)(Wt.ks,(G,{payload:Le})=>Object.assign(Object.assign({},G),{networkInfo:Le})),(0,C.on)(Wt.Nr,(G,{payload:Le})=>(Le.total_invoices||(Le.total_invoices=G.listInvoices.total_invoices),Object.assign(Object.assign({},G),{listInvoices:Le}))),(0,C.on)(Wt.Lf,(G,{payload:Le})=>{if(da=!0,Le.length&&cl){const P=[...G.utxos];return P.forEach(ie=>{const We=Le.find(Ht=>{var Ci;return Ht.tx_hash===(null===(Ci=ie.outpoint)||void 0===Ci?void 0:Ci.txid_str)});ie.label=We&&We.label?We.label:""}),Object.assign(Object.assign({},G),{utxos:P,transactions:Le})}return Object.assign(Object.assign({},G),{transactions:Le})}),(0,C.on)(Wt.UH,(G,{payload:Le})=>{if(cl=!0,Le.length&&da){const P=[...G.transactions];Le.forEach(ie=>{const We=P.find(Ht=>{var Ci;return Ht.tx_hash===(null===(Ci=ie.outpoint)||void 0===Ci?void 0:Ci.txid_str)});ie.label=We&&We.label?We.label:""})}return Object.assign(Object.assign({},G),{utxos:Le})}),(0,C.on)(Wt.HI,(G,{payload:Le})=>{const P={listInvoicesAll:G.allLightningTransactions.listInvoicesAll,listPaymentsAll:Le};return Object.assign(Object.assign({},G),{listPayments:Le,allLightningTransactions:P})}),(0,C.on)(Wt.Fr,(G,{payload:Le})=>{const P={listInvoicesAll:Le.listInvoicesAll,listPaymentsAll:G.listPayments};return Object.assign(Object.assign({},G),{allLightningTransactions:P})}),(0,C.on)(Wt.QJ,(G,{payload:Le})=>{const P=[...G.channels,...G.closedChannels];let ie=Le.forwarding_events?JSON.parse(JSON.stringify(Le)):{};return ie.forwarding_events&&(ie=vr(ie,P)),Object.assign(Object.assign({},G),{forwardingHistory:ie})}),(0,C.on)(Wt.pd,(G,{payload:Le})=>{const P=[];return j.gK.forEach(ie=>{const We=Le&&Le.length&&Le.length>0?Le.find(Ht=>Ht.pageId===ie.pageId):null;if(We){const Ht=JSON.parse(JSON.stringify(We.tables));We.tables=[],ie.tables.forEach(Ci=>{const ji=Ht.find(hn=>hn.tableId===Ci.tableId)||null;We.tables.push(ji||JSON.parse(JSON.stringify(Ci)))}),P.push(We)}else P.push(JSON.parse(JSON.stringify(ie)))}),Object.assign(Object.assign({},G),{pageSettings:P})})),vr=(G,Le)=>(G.forwarding_events.forEach(P=>{var ie,We;if(Le&&Le.length>0)for(let Ht=0;Ht{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(Rt.oo,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeSettings:Le})),(0,C.on)(Rt.xH,(G,{payload:Le})=>Object.assign(Object.assign({},u2),{nodeSettings:Le})),(0,C.on)(Rt.CX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{information:Le})),(0,C.on)(Rt.RX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{fees:Le})),(0,C.on)(Rt.I8,(G,{payload:Le})=>Le.perkb?Object.assign(Object.assign({},G),{feeRatesPerKB:Le}):Le.perkw?Object.assign(Object.assign({},G),{feeRatesPerKW:Le}):Object.assign({},G)),(0,C.on)(Rt.Lu,(G,{payload:Le})=>Object.assign(Object.assign({},G),{balance:Le})),(0,C.on)(Rt.xS,(G,{payload:Le})=>Object.assign(Object.assign({},G),{localRemoteBalance:Le})),(0,C.on)(Rt.Z8,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:Le})),(0,C.on)(Rt.X3,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:[...G.peers,Le]})),(0,C.on)(Rt.EK,(G,{payload:Le})=>{const P=[...G.peers],ie=G.peers.findIndex(We=>We.id===Le.id);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(Rt.as,(G,{payload:Le})=>Object.assign(Object.assign({},G),{activeChannels:Le.activeChannels,pendingChannels:Le.pendingChannels,inactiveChannels:Le.inactiveChannels})),(0,C.on)(Rt.OG,(G,{payload:Le})=>{const P=[...G.peers];return P.forEach(ie=>{ie.id===Le.id&&(ie.connected=!1,delete ie.netaddr)}),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(Rt.HI,(G,{payload:Le})=>Object.assign(Object.assign({},G),{payments:Le})),(0,C.on)(Rt.QJ,(G,{payload:Le})=>{const P=[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels],ie=Fo(Le.listForwards,P);switch(Le.listForwards=ie,Le.status){case j.OO.SETTLED:const We=G.fees;return We.totalTxCount=Le.totalForwards||0,Object.assign(Object.assign({},G),{fees:We,forwardingHistory:Le});case j.OO.FAILED:return Object.assign(Object.assign({},G),{failedForwardingHistory:Le});case j.OO.LOCAL_FAILED:return Object.assign(Object.assign({},G),{localFailedForwardingHistory:Le});default:return Object.assign({},G)}}),(0,C.on)(Rt.YP,(G,{payload:Le})=>{var P;const ie=G.invoices;return null===(P=ie.invoices)||void 0===P||P.unshift(Le),Object.assign(Object.assign({},G),{invoices:ie})}),(0,C.on)(Rt.Nr,(G,{payload:Le})=>Object.assign(Object.assign({},G),{invoices:Le})),(0,C.on)(Rt.aL,(G,{payload:Le})=>{var P;const ie=G.invoices;return ie.invoices=null===(P=ie.invoices)||void 0===P?void 0:P.map(We=>We.label===Le.label?Le:We),Object.assign(Object.assign({},G),{invoices:ie})}),(0,C.on)(Rt.UH,(G,{payload:Le})=>Object.assign(Object.assign({},G),{utxos:Le})),(0,C.on)(Rt.Zu,(G,{payload:Le})=>Object.assign(Object.assign({},G),{offers:Le})),(0,C.on)(Rt.ZH,(G,{payload:Le})=>{const P=G.offers;return null==P||P.unshift(Le),Object.assign(Object.assign({},G),{offers:P})}),(0,C.on)(Rt.JK,(G,{payload:Le})=>{const P=[...G.offers],ie=G.offers.findIndex(We=>We.offer_id===Le.offer.offer_id);return ie>-1&&P.splice(ie,1,Le.offer),Object.assign(Object.assign({},G),{offers:P})}),(0,C.on)(Rt.d7,(G,{payload:Le})=>Object.assign(Object.assign({},G),{offersBookmarks:Le})),(0,C.on)(Rt.e9,(G,{payload:Le})=>{const P=[...G.offersBookmarks],ie=P.findIndex(We=>We.bolt12===Le.bolt12);if(ie<0)null==P||P.unshift(Le);else{const We=Object.assign({},P[ie]);We.title=Le.title,We.amountMSat=Le.amountMSat,We.lastUpdatedAt=Le.lastUpdatedAt,We.description=Le.description,We.vendor=Le.vendor,P.splice(ie,1,We)}return Object.assign(Object.assign({},G),{offersBookmarks:P})}),(0,C.on)(Rt.en,(G,{payload:Le})=>{const P=[...G.offersBookmarks],ie=G.offersBookmarks.findIndex(We=>We.bolt12===Le.bolt12);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{offersBookmarks:P})}),(0,C.on)(Rt.pd,(G,{payload:Le})=>{const P=[];return j.gG.forEach(ie=>{const We=Le&&Le.length&&Le.length>0?Le.find(Ht=>Ht.pageId===ie.pageId):null;if(We){const Ht=JSON.parse(JSON.stringify(We.tables));We.tables=[],ie.tables.forEach(Ci=>{const ji=Ht.find(hn=>hn.tableId===Ci.tableId)||null;We.tables.push(ji||JSON.parse(JSON.stringify(Ci)))}),P.push(We)}else P.push(JSON.parse(JSON.stringify(ie)))}),Object.assign(Object.assign({},G),{pageSettings:P})})),Fo=(G,Le)=>(G&&G.length>0?G.forEach((P,ie)=>{var We;if(Le&&Le.length>0)for(let Ht=0;Ht{const P=JSON.parse(JSON.stringify(G.apisCallStatus));return Le.action&&(P[Le.action]={status:Le.status,statusCode:Le.statusCode,message:Le.message,URL:Le.URL,filePath:Le.filePath}),Object.assign(Object.assign({},G),{apisCallStatus:P})}),(0,C.on)(st.Zr,(G,{payload:Le})=>Object.assign(Object.assign({},G),{nodeSettings:Le})),(0,C.on)(st.Fd,(G,{payload:Le})=>Object.assign(Object.assign({},c1),{nodeSettings:Le})),(0,C.on)(st.CX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{information:Le})),(0,C.on)(st.RX,(G,{payload:Le})=>Object.assign(Object.assign({},G),{fees:Le})),(0,C.on)(st.eN,(G,{payload:Le})=>Object.assign(Object.assign({},G),{activeChannels:Le})),(0,C.on)(st.TW,(G,{payload:Le})=>Object.assign(Object.assign({},G),{pendingChannels:Le})),(0,C.on)(st.i,(G,{payload:Le})=>Object.assign(Object.assign({},G),{inactiveChannels:Le})),(0,C.on)(st.HG,(G,{payload:Le})=>Object.assign(Object.assign({},G),{channelsStatus:Le})),(0,C.on)(st.Bw,(G,{payload:Le})=>Object.assign(Object.assign({},G),{onchainBalance:Le})),(0,C.on)(st.On,(G,{payload:Le})=>Object.assign(Object.assign({},G),{lightningBalance:Le})),(0,C.on)(st.Z8,(G,{payload:Le})=>Object.assign(Object.assign({},G),{peers:Le})),(0,C.on)(st.EK,(G,{payload:Le})=>{const P=[...G.peers],ie=G.peers.findIndex(We=>We.nodeId===Le.nodeId);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{peers:P})}),(0,C.on)(st.OG,(G,{payload:Le})=>{const P=[...G.activeChannels],ie=G.activeChannels.findIndex(We=>We.channelId===Le.channelId);return ie>-1&&P.splice(ie,1),Object.assign(Object.assign({},G),{activeChannels:P})}),(0,C.on)(st.HI,(G,{payload:Le})=>{var P;if(Le&&Le.sent){const ie=[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels];null===(P=Le.sent)||void 0===P||P.map(We=>{var Ht;const Ci=G.peers.find(ji=>ji.nodeId===We.recipientNodeId);return We.recipientNodeAlias=Ci?Ci.alias:We.recipientNodeId,We.parts&&(null===(Ht=We.parts)||void 0===Ht||Ht.map(ji=>{const hn=ie.find(Fn=>Fn.channelId===ji.toChannelId);return ji.toChannelAlias=hn?hn.alias:ji.toChannelId,We.parts})),Le.sent})}if(Le&&Le.relayed){const ie=[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels];Le.relayed.forEach(We=>{We=u1(We,ie)})}return Object.assign(Object.assign({},G),{payments:Le})}),(0,C.on)(st.Lf,(G,{payload:Le})=>Object.assign(Object.assign({},G),{transactions:Le})),(0,C.on)(st.YP,(G,{payload:Le})=>{const P=G.invoices;return null==P||P.unshift(Le),Object.assign(Object.assign({},G),{invoices:P})}),(0,C.on)(st.Nr,(G,{payload:Le})=>Object.assign(Object.assign({},G),{invoices:Le})),(0,C.on)(st.aL,(G,{payload:Le})=>{let P=G.invoices;return P=null==P?void 0:P.map(ie=>{if(ie.paymentHash===Le.paymentHash){if(Le.hasOwnProperty("type")){const We=JSON.parse(JSON.stringify(ie));return We.amountSettled=Le.parts&&Le.parts.length&&Le.parts.length>0&&Le.parts[0].amount?(Le.parts[0].amount||0)/1e3:0,We.receivedAt=Le.parts&&Le.parts.length&&Le.parts.length>0&&Le.parts[0].timestamp?Math.round((Le.parts[0].timestamp||0)/1e3):0,We.status="received",We}return Le}return ie}),Object.assign(Object.assign({},G),{invoices:P})}),(0,C.on)(st.DJ,(G,{payload:Le})=>{let P=G.pendingChannels;return P=null==P?void 0:P.map(ie=>{var We;return ie.channelId===Le.channelId&&ie.nodeId===Le.remoteNodeId&&(Le.currentState=null===(We=Le.currentState)||void 0===We?void 0:We.replace(/_/g," "),ie.state=Le.currentState),ie}),Object.assign(Object.assign({},G),{pendingChannels:P})}),(0,C.on)(st.ti,(G,{payload:Le})=>{var P,ie,We;const Ht=G.payments,Ci=u1(Le,[...G.activeChannels,...G.pendingChannels,...G.inactiveChannels]);Ci.amountIn=Math.round((Le.amountIn||0)/1e3),Ci.amountOut=Math.round((Le.amountOut||0)/1e3),null===(P=Ht.relayed)||void 0===P||P.unshift(Ci);const ji=(Le.amountIn||0)-(Le.amountOut||0),hn={localBalance:G.lightningBalance.localBalance+ji,remoteBalance:G.lightningBalance.remoteBalance-ji},Fn=G.channelsStatus;Fn.active&&(Fn.active.capacity=((null===(We=null===(ie=G.channelsStatus)||void 0===ie?void 0:ie.active)||void 0===We?void 0:We.capacity)||0)+ji);const ls={daily_fee:(G.fees.daily_fee||0)+ji,daily_txs:(G.fees.daily_txs||0)+1,weekly_fee:(G.fees.weekly_fee||0)+ji,weekly_txs:(G.fees.weekly_txs||0)+1,monthly_fee:(G.fees.monthly_fee||0)+ji,monthly_txs:(G.fees.monthly_txs||0)+1},Ts=G.activeChannels;let cs=!1,ds=!1;for(const lr of Ts){if(lr.channelId===Le.fromChannelId){cs=!0;const qa=(lr.toLocal||0)+(lr.toRemote||0);lr.toLocal=(lr.toLocal||0)+Ci.amountIn,lr.toRemote=(lr.toRemote||0)-Ci.amountIn,lr.balancedness=0===qa?1:+(1-Math.abs((lr.toLocal-lr.toRemote)/qa)).toFixed(3)}if(lr.channelId===Le.toChannelId){ds=!0;const qa=(lr.toLocal||0)+(lr.toRemote||0);lr.toLocal=(lr.toLocal||0)-Ci.amountOut,lr.toRemote=(lr.toRemote||0)+Ci.amountOut,lr.balancedness=0===qa?1:+(1-Math.abs((lr.toLocal-lr.toRemote)/qa)).toFixed(3)}if(ds&&cs)break}return Object.assign(Object.assign({},G),{payments:Ht,lightningBalance:hn,channelStatus:Fn,fees:ls,activeChannels:Ts})}),(0,C.on)(st.pd,(G,{payload:Le})=>{const P=[];return j.c3.forEach(ie=>{const We=Le&&Le.length&&Le.length>0?Le.find(Ht=>Ht.pageId===ie.pageId):null;if(We){const Ht=JSON.parse(JSON.stringify(We.tables));We.tables=[],ie.tables.forEach(Ci=>{const ji=Ht.find(hn=>hn.tableId===Ci.tableId)||null;We.tables.push(ji||JSON.parse(JSON.stringify(Ci)))}),P.push(We)}else P.push(JSON.parse(JSON.stringify(ie)))}),Object.assign(Object.assign({},G),{pageSettings:P})})),u1=(G,Le)=>{var P,ie,We,Ht,Ci,ji,hn,Fn,ls,Ts,cs,ds,lr,qa;if("payment-relayed"===G.type)if(Le&&Le.length>0)for(let Ln=0;Ln0)for(let Ln=0;Ln{var Na;(null===(Na=Le[Ln].channelId)||void 0===Na?void 0:Na.toString())===Vn.channelId&&(Vn.channelAlias=Le[Ln].alias?Le[Ln].alias:Vn.channelId,Vn.shortChannelId=Le[Ln].shortChannelId?Le[Ln].shortChannelId:"")}),null===(Fn=G.outgoing)||void 0===Fn||Fn.forEach(Vn=>{var Na;(null===(Na=Le[Ln].channelId)||void 0===Na?void 0:Na.toString())===Vn.channelId&&(Vn.channelAlias=Le[Ln].alias?Le[Ln].alias:Vn.channelId,Vn.shortChannelId=Le[Ln].shortChannelId?Le[Ln].shortChannelId:"")}),Ln===Le.length-1&&(G.incoming&&G.incoming.length&&G.incoming.length>0&&!G.incoming[0].channelAlias&&(null===(ls=G.incoming)||void 0===ls||ls.forEach(Vn=>{var Na;Vn.channelAlias=(null===(Na=Vn.channelId)||void 0===Na?void 0:Na.substring(0,17))+"...",Vn.shortChannelId=""})),G.outgoing&&G.outgoing.length&&G.outgoing.length>0&&!G.outgoing[0].channelAlias&&(null===(Ts=G.outgoing)||void 0===Ts||Ts.forEach(Vn=>{var Na;Vn.channelAlias=(null===(Na=Vn.channelId)||void 0===Na?void 0:Na.substring(0,17))+"...",Vn.shortChannelId=""})));else null===(cs=G.incoming)||void 0===cs||cs.forEach(Ln=>{var Vn;Ln.channelAlias=(null===(Vn=Ln.channelId)||void 0===Vn?void 0:Vn.substring(0,17))+"...",Ln.shortChannelId=""}),null===(ds=G.outgoing)||void 0===ds||ds.forEach(Ln=>{var Vn;Ln.channelAlias=(null===(Vn=Ln.channelId)||void 0===Vn?void 0:Vn.substring(0,17))+"...",Ln.shortChannelId=""});G.amountIn=(null===(lr=G.incoming)||void 0===lr?void 0:lr.reduce((Ln,Vn)=>Ln+Vn.amount,0))||0,G.fromChannelId=G.incoming&&G.incoming.length?G.incoming[0].channelId:"",G.fromChannelAlias=G.incoming&&G.incoming.length?G.incoming[0].channelAlias:"",G.fromShortChannelId=G.incoming&&G.incoming.length?G.incoming[0].shortChannelId:"",G.amountOut=(null===(qa=G.outgoing)||void 0===qa?void 0:qa.reduce((Ln,Vn)=>Ln+Vn.amount,0))||0,G.toChannelId=G.outgoing&&G.outgoing.length?G.outgoing[0].channelId:"",G.toChannelAlias=G.outgoing&&G.outgoing.length?G.outgoing[0].channelAlias:"",G.toShortChannelId=G.outgoing&&G.outgoing.length?G.outgoing[0].shortChannelId:""}return G};let dc=(()=>{class G{}return G.\u0275fac=function(P){return new(P||G)},G.\u0275mod=e.oAB({type:G,bootstrap:[_3]}),G.\u0275inj=e.cJS({providers:[{provide:M.TP,useClass:Ro,multi:!0},Kr.a1,Ae.m,il.D,o1.d,Et.W,fi.v,ki],imports:[[f.PW,e1.m,El,a.xu,t.t6,T.forRoot({idle:3590,timeout:10,ping:12e3}),C.Aw.forRoot({root:v3,lnd:cc,cln:Ho,ecl:d1},{runtimeChecks:{strictStateImmutability:!1,strictActionImmutability:!1}}),d.sQ.forRoot([tt.V,Ys.l,al.J,lc.o]),ni.NZ.production?[]:R.FT.instrument()]]}),G})();ni.NZ.production&&(0,e.G48)(),t.q6().bootstrapModule(dc).catch(G=>console.log(G))},7854:(Be,K)=>{"use strict";function p(j){return Object.keys(j).map(Ve=>j[Ve])}var j;Object.defineProperty(K,"__esModule",{value:!0}),(j=K.HashAlgorithms||(K.HashAlgorithms={})).SHA1="sha1",j.SHA256="sha256",j.SHA512="sha512";const t=p(K.HashAlgorithms);!function(j){j.ASCII="ascii",j.BASE64="base64",j.HEX="hex",j.LATIN1="latin1",j.UTF8="utf8"}(K.KeyEncodings||(K.KeyEncodings={}));const e=p(K.KeyEncodings);!function(j){j.HOTP="hotp",j.TOTP="totp"}(K.Strategy||(K.Strategy={}));const f=p(K.Strategy),M=()=>{throw new Error("Please provide an options.createDigest implementation.")};function a(j){return/^(\d+)$/.test(j)}function C(j,Ve,Me){return j.length>=Ve?j:`${Array(Ve+1).join(Me)}${j}`.slice(-1*Ve)}function d(j){const Ve=`otpauth://${j.type}/{labelPrefix}:{accountName}?secret={secret}{query}`,Me=[];if(f.indexOf(j.type)<0)throw new Error(`Expecting options.type to be one of ${f.join(", ")}. Received ${j.type}.`);if("hotp"===j.type){if(null==j.counter||"number"!=typeof j.counter)throw new Error('Expecting options.counter to be a number when options.type is "hotp".');Me.push(`&counter=${j.counter}`)}return"totp"===j.type&&j.step&&Me.push(`&period=${j.step}`),j.digits&&Me.push(`&digits=${j.digits}`),j.algorithm&&Me.push(`&algorithm=${j.algorithm.toUpperCase()}`),j.issuer&&Me.push(`&issuer=${encodeURIComponent(j.issuer)}`),Ve.replace("{labelPrefix}",encodeURIComponent(j.issuer||j.accountName)).replace("{accountName}",encodeURIComponent(j.accountName)).replace("{secret}",j.secret).replace("{query}",Me.join(""))}class R{constructor(Ve={}){this._defaultOptions=Object.freeze(eo({},Ve)),this._options=Object.freeze({})}create(Ve={}){return new R(Ve)}clone(Ve={}){const Me=this.create(eo(eo({},this._defaultOptions),Ve));return Me.options=this._options,Me}get options(){return Object.freeze(eo(eo({},this._defaultOptions),this._options))}set options(Ve){this._options=Object.freeze(eo(eo({},this._options),Ve))}allOptions(){return this.options}resetOptions(){this._options=Object.freeze({})}}function h(j){if("function"!=typeof j.createDigest)throw new Error("Expecting options.createDigest to be a function.");if("function"!=typeof j.createHmacKey)throw new Error("Expecting options.createHmacKey to be a function.");if("number"!=typeof j.digits)throw new Error("Expecting options.digits to be a number.");if(!j.algorithm||t.indexOf(j.algorithm)<0)throw new Error(`Expecting options.algorithm to be one of ${t.join(", ")}. Received ${j.algorithm}.`);if(!j.encoding||e.indexOf(j.encoding)<0)throw new Error(`Expecting options.encoding to be one of ${e.join(", ")}. Received ${j.encoding}.`)}const L=(j,Ve,Me)=>Buffer.from(Ve,Me).toString("hex");function w(){return{algorithm:K.HashAlgorithms.SHA1,createHmacKey:L,createDigest:M,digits:6,encoding:K.KeyEncodings.ASCII}}function D(j){const Ve=eo(eo({},w()),j);return h(Ve),Object.freeze(Ve)}function S(j){return C(j.toString(16),16,"0")}function k(j,Ve){const Me=Buffer.from(j,"hex"),J=15&Me[Me.length-1],ut=((127&Me[J])<<24|(255&Me[J+1])<<16|(255&Me[J+2])<<8|255&Me[J+3])%Math.pow(10,Ve);return C(String(ut),Ve,"0")}function B(j,Ve,Me){const J=Me.digest||function E(j,Ve,Me){const J=S(Ve),Ie=Me.createHmacKey(Me.algorithm,j,Me.encoding);return Me.createDigest(Me.algorithm,Ie,J)}(j,Ve,Me);return k(J,Me.digits)}function Z(j,Ve,Me,J){return!!a(j)&&j===B(Ve,Me,J)}function Y(j,Ve,Me,J,Ie){return d({algorithm:Ie.algorithm,digits:Ie.digits,type:K.Strategy.HOTP,accountName:j,counter:J,issuer:Ve,secret:Me})}class ae extends R{create(Ve={}){return new ae(Ve)}allOptions(){return D(this.options)}generate(Ve,Me){return B(Ve,Me,this.allOptions())}check(Ve,Me,J){return Z(Ve,Me,J,this.allOptions())}verify(Ve){if("object"!=typeof Ve)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ve.token,Ve.secret,Ve.counter)}keyuri(Ve,Me,J,Ie){return Y(Ve,Me,J,Ie,this.allOptions())}}function ee(j){if("number"==typeof j)return[Math.abs(j),Math.abs(j)];if(Array.isArray(j)){const[Ve,Me]=j;if("number"==typeof Ve&&"number"==typeof Me)return[Math.abs(Ve),Math.abs(Me)]}throw new Error("Expecting options.window to be an number or [number, number].")}function ue(j){if(h(j),ee(j.window),"number"!=typeof j.epoch)throw new Error("Expecting options.epoch to be a number.");if("number"!=typeof j.step)throw new Error("Expecting options.step to be a number.")}const ne=(j,Ve,Me)=>{const J=j.length,Ie=Buffer.from(j,Ve).toString("hex");if(J{switch(j){case K.HashAlgorithms.SHA1:return ne(Ve,Me,20);case K.HashAlgorithms.SHA256:return ne(Ve,Me,32);case K.HashAlgorithms.SHA512:return ne(Ve,Me,64);default:throw new Error(`Expecting algorithm to be one of ${t.join(", ")}. Received ${j}.`)}};function ge(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:re,digits:6,encoding:K.KeyEncodings.ASCII,epoch:Date.now(),step:30,window:0}}function q(j){const Ve=eo(eo({},ge()),j);return ue(Ve),Object.freeze(Ve)}function _e(j,Ve){return Math.floor(j/Ve/1e3)}function x(j,Ve){return B(j,_e(Ve.epoch,Ve.step),Ve)}function i(j,Ve,Me,J){const Ie=[];if(0===J)return Ie;for(let ut=1;ut<=J;ut++)Ie.push(j+Ve*ut*Me);return Ie}function r(j,Ve,Me){const J=ee(Me),Ie=1e3*Ve;return{current:j,past:i(j,-1,Ie,J[0]),future:i(j,1,Ie,J[1])}}function u(j,Ve,Me){return!!a(j)&&j===x(Ve,Me)}function c(j,Ve,Me,J){let Ie=null;return j.some((ut,Oe)=>!!u(Ve,Me,$9(eo({},J),{epoch:ut}))&&(Ie=Oe+1,!0)),Ie}function v(j,Ve,Me){if(u(j,Ve,Me))return 0;const J=r(Me.epoch,Me.step,Me.window),Ie=c(J.past,j,Ve,Me);return null!==Ie?-1*Ie:c(J.future,j,Ve,Me)}function T(j,Ve){return Math.floor(j/1e3)%Ve}function I(j,Ve){return Ve-T(j,Ve)}function y(j,Ve,Me,J){return d({algorithm:J.algorithm,digits:J.digits,step:J.step,type:K.Strategy.TOTP,accountName:j,issuer:Ve,secret:Me})}class n extends ae{create(Ve={}){return new n(Ve)}allOptions(){return q(this.options)}generate(Ve){return x(Ve,this.allOptions())}checkDelta(Ve,Me){return v(Ve,Me,this.allOptions())}check(Ve,Me){return"number"==typeof this.checkDelta(Ve,Me)}verify(Ve){if("object"!=typeof Ve)throw new Error("Expecting argument 0 of verify to be an object");return this.check(Ve.token,Ve.secret)}timeRemaining(){const Ve=this.allOptions();return I(Ve.epoch,Ve.step)}timeUsed(){const Ve=this.allOptions();return T(Ve.epoch,Ve.step)}keyuri(Ve,Me,J){return y(Ve,Me,J,this.allOptions())}}function _(j){if(ue(j),"function"!=typeof j.keyDecoder)throw new Error("Expecting options.keyDecoder to be a function.");if(j.keyEncoder&&"function"!=typeof j.keyEncoder)throw new Error("Expecting options.keyEncoder to be a function.")}function V(){return{algorithm:K.HashAlgorithms.SHA1,createDigest:M,createHmacKey:re,digits:6,encoding:K.KeyEncodings.HEX,epoch:Date.now(),step:30,window:0}}function N(j){const Ve=eo(eo({},V()),j);return _(Ve),Object.freeze(Ve)}function H(j,Ve){return Ve.keyEncoder(j,Ve.encoding)}function X(j,Ve){return Ve.keyDecoder(j,Ve.encoding)}function he(j,Ve){return H(Ve.createRandomBytes(j,Ve.encoding),Ve)}function be(j,Ve){return x(X(j,Ve),Ve)}function Pe(j,Ve,Me){return v(j,X(Ve,Me),Me)}class Ee extends n{create(Ve={}){return new Ee(Ve)}allOptions(){return N(this.options)}generate(Ve){return be(Ve,this.allOptions())}checkDelta(Ve,Me){return Pe(Ve,Me,this.allOptions())}encode(Ve){return H(Ve,this.allOptions())}decode(Ve){return X(Ve,this.allOptions())}generateSecret(Ve=10){return he(Ve,this.allOptions())}}K.Authenticator=Ee,K.HASH_ALGORITHMS=t,K.HOTP=ae,K.KEY_ENCODINGS=e,K.OTP=R,K.STRATEGY=f,K.TOTP=n,K.authenticatorCheckWithWindow=Pe,K.authenticatorDecoder=X,K.authenticatorDefaultOptions=V,K.authenticatorEncoder=H,K.authenticatorGenerateSecret=he,K.authenticatorOptionValidator=_,K.authenticatorOptions=N,K.authenticatorToken=be,K.createDigestPlaceholder=M,K.hotpCheck=Z,K.hotpCounter=S,K.hotpCreateHmacKey=L,K.hotpDefaultOptions=w,K.hotpDigestToToken=k,K.hotpKeyuri=Y,K.hotpOptions=D,K.hotpOptionsValidator=h,K.hotpToken=B,K.isTokenValid=a,K.keyuri=d,K.objectValues=p,K.padStart=C,K.totpCheck=u,K.totpCheckByEpoch=c,K.totpCheckWithWindow=v,K.totpCounter=_e,K.totpCreateHmacKey=re,K.totpDefaultOptions=ge,K.totpEpochAvailable=r,K.totpKeyuri=y,K.totpOptions=q,K.totpOptionsValidator=ue,K.totpPadSecret=ne,K.totpTimeRemaining=I,K.totpTimeUsed=T,K.totpToken=x},6098:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(1348));K.createDigest=(a,C,d)=>e.createHmac(a,Buffer.from(C,"hex")).update(Buffer.from(d,"hex")).digest().toString("hex"),K.createRandomBytes=(a,C)=>e.randomBytes(a).toString(C)},1415:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var e=function t(a){return a&&"object"==typeof a&&"default"in a?a.default:a}(p(2167));K.keyDecoder=(a,C)=>e.decode(a).toString(C),K.keyEncoder=(a,C)=>e.encode(Buffer.from(a,C).toString("ascii")).toString().replace(/=/g,"")},842:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var t=p(6098),e=p(1415),f=p(7854);const M=new f.HOTP({createDigest:t.createDigest}),a=new f.TOTP({createDigest:t.createDigest}),C=new f.Authenticator({createDigest:t.createDigest,createRandomBytes:t.createRandomBytes,keyDecoder:e.keyDecoder,keyEncoder:e.keyEncoder});K.authenticator=C,K.hotp=M,K.totp=a},7977:(Be,K,p)=>{"use strict";const t=K;t.bignum=p(3854),t.define=p(9516).define,t.base=p(7813),t.constants=p(5459),t.decoders=p(196),t.encoders=p(1131)},9516:(Be,K,p)=>{"use strict";const t=p(1131),e=p(196),f=p(3894);function a(C,d){this.name=C,this.body=d,this.decoders={},this.encoders={}}K.define=function(d,R){return new a(d,R)},a.prototype._createNamed=function(d){const R=this.name;function h(L){this._initNamed(L,R)}return f(h,d),h.prototype._initNamed=function(w,D){d.call(this,w,D)},new h(this)},a.prototype._getDecoder=function(d){return this.decoders.hasOwnProperty(d=d||"der")||(this.decoders[d]=this._createNamed(e[d])),this.decoders[d]},a.prototype.decode=function(d,R,h){return this._getDecoder(R).decode(d,h)},a.prototype._getEncoder=function(d){return this.encoders.hasOwnProperty(d=d||"der")||(this.encoders[d]=this._createNamed(t[d])),this.encoders[d]},a.prototype.encode=function(d,R,h){return this._getEncoder(R).encode(d,h)}},2769:(Be,K,p)=>{"use strict";const t=p(3894),e=p(4919).b,f=p(2038).Buffer;function M(C,d){e.call(this,d),f.isBuffer(C)?(this.base=C,this.offset=0,this.length=C.length):this.error("Input not Buffer")}function a(C,d){if(Array.isArray(C))this.length=0,this.value=C.map(function(R){return a.isEncoderBuffer(R)||(R=new a(R,d)),this.length+=R.length,R},this);else if("number"==typeof C){if(!(0<=C&&C<=255))return d.error("non-byte EncoderBuffer value");this.value=C,this.length=1}else if("string"==typeof C)this.value=C,this.length=f.byteLength(C);else{if(!f.isBuffer(C))return d.error("Unsupported type: "+typeof C);this.value=C,this.length=C.length}}t(M,e),K.C=M,M.isDecoderBuffer=function(d){return d instanceof M||"object"==typeof d&&f.isBuffer(d.base)&&"DecoderBuffer"===d.constructor.name&&"number"==typeof d.offset&&"number"==typeof d.length&&"function"==typeof d.save&&"function"==typeof d.restore&&"function"==typeof d.isEmpty&&"function"==typeof d.readUInt8&&"function"==typeof d.skip&&"function"==typeof d.raw},M.prototype.save=function(){return{offset:this.offset,reporter:e.prototype.save.call(this)}},M.prototype.restore=function(d){const R=new M(this.base);return R.offset=d.offset,R.length=this.offset,this.offset=d.offset,e.prototype.restore.call(this,d.reporter),R},M.prototype.isEmpty=function(){return this.offset===this.length},M.prototype.readUInt8=function(d){return this.offset+1<=this.length?this.base.readUInt8(this.offset++,!0):this.error(d||"DecoderBuffer overrun")},M.prototype.skip=function(d,R){if(!(this.offset+d<=this.length))return this.error(R||"DecoderBuffer overrun");const h=new M(this.base);return h._reporterState=this._reporterState,h.offset=this.offset,h.length=this.offset+d,this.offset+=d,h},M.prototype.raw=function(d){return this.base.slice(d?d.offset:this.offset,this.length)},K.R=a,a.isEncoderBuffer=function(d){return d instanceof a||"object"==typeof d&&"EncoderBuffer"===d.constructor.name&&"number"==typeof d.length&&"function"==typeof d.join},a.prototype.join=function(d,R){return d||(d=f.alloc(this.length)),R||(R=0),0===this.length||(Array.isArray(this.value)?this.value.forEach(function(h){h.join(d,R),R+=h.length}):("number"==typeof this.value?d[R]=this.value:"string"==typeof this.value?d.write(this.value,R):f.isBuffer(this.value)&&this.value.copy(d,R),R+=this.length)),d}},7813:(Be,K,p)=>{"use strict";const t=K;t.Reporter=p(4919).b,t.DecoderBuffer=p(2769).C,t.EncoderBuffer=p(2769).R,t.Node=p(1430)},1430:(Be,K,p)=>{"use strict";const t=p(4919).b,e=p(2769).R,f=p(2769).C,M=p(2391),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"],C=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function R(L,w,D){const S={};this._baseState=S,S.name=D,S.enc=L,S.parent=w||null,S.children=null,S.tag=null,S.args=null,S.reverseArgs=null,S.choice=null,S.optional=!1,S.any=!1,S.obj=!1,S.use=null,S.useDecoder=null,S.key=null,S.default=null,S.explicit=null,S.implicit=null,S.contains=null,S.parent||(S.children=[],this._wrap())}Be.exports=R;const h=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];R.prototype.clone=function(){const w=this._baseState,D={};h.forEach(function(k){D[k]=w[k]});const S=new this.constructor(D.parent);return S._baseState=D,S},R.prototype._wrap=function(){const w=this._baseState;C.forEach(function(D){this[D]=function(){const k=new this.constructor(this);return w.children.push(k),k[D].apply(k,arguments)}},this)},R.prototype._init=function(w){const D=this._baseState;M(null===D.parent),w.call(this),D.children=D.children.filter(function(S){return S._baseState.parent===this},this),M.equal(D.children.length,1,"Root node can have only one child")},R.prototype._useArgs=function(w){const D=this._baseState,S=w.filter(function(k){return k instanceof this.constructor},this);w=w.filter(function(k){return!(k instanceof this.constructor)},this),0!==S.length&&(M(null===D.children),D.children=S,S.forEach(function(k){k._baseState.parent=this},this)),0!==w.length&&(M(null===D.args),D.args=w,D.reverseArgs=w.map(function(k){if("object"!=typeof k||k.constructor!==Object)return k;const E={};return Object.keys(k).forEach(function(B){B==(0|B)&&(B|=0),E[k[B]]=B}),E}))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach(function(L){R.prototype[L]=function(){throw new Error(L+" not implemented for encoding: "+this._baseState.enc)}}),a.forEach(function(L){R.prototype[L]=function(){const D=this._baseState,S=Array.prototype.slice.call(arguments);return M(null===D.tag),D.tag=L,this._useArgs(S),this}}),R.prototype.use=function(w){M(w);const D=this._baseState;return M(null===D.use),D.use=w,this},R.prototype.optional=function(){return this._baseState.optional=!0,this},R.prototype.def=function(w){const D=this._baseState;return M(null===D.default),D.default=w,D.optional=!0,this},R.prototype.explicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.explicit=w,this},R.prototype.implicit=function(w){const D=this._baseState;return M(null===D.explicit&&null===D.implicit),D.implicit=w,this},R.prototype.obj=function(){const w=this._baseState,D=Array.prototype.slice.call(arguments);return w.obj=!0,0!==D.length&&this._useArgs(D),this},R.prototype.key=function(w){const D=this._baseState;return M(null===D.key),D.key=w,this},R.prototype.any=function(){return this._baseState.any=!0,this},R.prototype.choice=function(w){const D=this._baseState;return M(null===D.choice),D.choice=w,this._useArgs(Object.keys(w).map(function(S){return w[S]})),this},R.prototype.contains=function(w){const D=this._baseState;return M(null===D.use),D.contains=w,this},R.prototype._decode=function(w,D){const S=this._baseState;if(null===S.parent)return w.wrapResult(S.children[0]._decode(w,D));let Z,k=S.default,E=!0,B=null;if(null!==S.key&&(B=w.enterKey(S.key)),S.optional){let Y=null;if(null!==S.explicit?Y=S.explicit:null!==S.implicit?Y=S.implicit:null!==S.tag&&(Y=S.tag),null!==Y||S.any){if(E=this._peekTag(w,Y,S.any),w.isError(E))return E}else{const ae=w.save();try{null===S.choice?this._decodeGeneric(S.tag,w,D):this._decodeChoice(w,D),E=!0}catch(ee){E=!1}w.restore(ae)}}if(S.obj&&E&&(Z=w.enterObject()),E){if(null!==S.explicit){const ae=this._decodeTag(w,S.explicit);if(w.isError(ae))return ae;w=ae}const Y=w.offset;if(null===S.use&&null===S.choice){let ae;S.any&&(ae=w.save());const ee=this._decodeTag(w,null!==S.implicit?S.implicit:S.tag,S.any);if(w.isError(ee))return ee;S.any?k=w.raw(ae):w=ee}if(D&&D.track&&null!==S.tag&&D.track(w.path(),Y,w.length,"tagged"),D&&D.track&&null!==S.tag&&D.track(w.path(),w.offset,w.length,"content"),S.any||(k=null===S.choice?this._decodeGeneric(S.tag,w,D):this._decodeChoice(w,D)),w.isError(k))return k;if(!S.any&&null===S.choice&&null!==S.children&&S.children.forEach(function(ee){ee._decode(w,D)}),S.contains&&("octstr"===S.tag||"bitstr"===S.tag)){const ae=new f(k);k=this._getUse(S.contains,w._reporterState.obj)._decode(ae,D)}}return S.obj&&E&&(k=w.leaveObject(Z)),null===S.key||null===k&&!0!==E?null!==B&&w.exitKey(B):w.leaveKey(B,S.key,k),k},R.prototype._decodeGeneric=function(w,D,S){const k=this._baseState;return"seq"===w||"set"===w?null:"seqof"===w||"setof"===w?this._decodeList(D,w,k.args[0],S):/str$/.test(w)?this._decodeStr(D,w,S):"objid"===w&&k.args?this._decodeObjid(D,k.args[0],k.args[1],S):"objid"===w?this._decodeObjid(D,null,null,S):"gentime"===w||"utctime"===w?this._decodeTime(D,w,S):"null_"===w?this._decodeNull(D,S):"bool"===w?this._decodeBool(D,S):"objDesc"===w?this._decodeStr(D,w,S):"int"===w||"enum"===w?this._decodeInt(D,k.args&&k.args[0],S):null!==k.use?this._getUse(k.use,D._reporterState.obj)._decode(D,S):D.error("unknown tag: "+w)},R.prototype._getUse=function(w,D){const S=this._baseState;return S.useDecoder=this._use(w,D),M(null===S.useDecoder._baseState.parent),S.useDecoder=S.useDecoder._baseState.children[0],S.implicit!==S.useDecoder._baseState.implicit&&(S.useDecoder=S.useDecoder.clone(),S.useDecoder._baseState.implicit=S.implicit),S.useDecoder},R.prototype._decodeChoice=function(w,D){const S=this._baseState;let k=null,E=!1;return Object.keys(S.choice).some(function(B){const Z=w.save(),Y=S.choice[B];try{const ae=Y._decode(w,D);if(w.isError(ae))return!1;k={type:B,value:ae},E=!0}catch(ae){return w.restore(Z),!1}return!0},this),E?k:w.error("Choice not matched")},R.prototype._createEncoderBuffer=function(w){return new e(w,this.reporter)},R.prototype._encode=function(w,D,S){const k=this._baseState;if(null!==k.default&&k.default===w)return;const E=this._encodeValue(w,D,S);return void 0===E||this._skipDefault(E,D,S)?void 0:E},R.prototype._encodeValue=function(w,D,S){const k=this._baseState;if(null===k.parent)return k.children[0]._encode(w,D||new t);let E=null;if(this.reporter=D,k.optional&&void 0===w){if(null===k.default)return;w=k.default}let B=null,Z=!1;if(k.any)E=this._createEncoderBuffer(w);else if(k.choice)E=this._encodeChoice(w,D);else if(k.contains)B=this._getUse(k.contains,S)._encode(w,D),Z=!0;else if(k.children)B=k.children.map(function(Y){if("null_"===Y._baseState.tag)return Y._encode(null,D,w);if(null===Y._baseState.key)return D.error("Child should have a key");const ae=D.enterKey(Y._baseState.key);if("object"!=typeof w)return D.error("Child expected, but input is not object");const ee=Y._encode(w[Y._baseState.key],D,w);return D.leaveKey(ae),ee},this).filter(function(Y){return Y}),B=this._createEncoderBuffer(B);else if("seqof"===k.tag||"setof"===k.tag){if(!k.args||1!==k.args.length)return D.error("Too many args for : "+k.tag);if(!Array.isArray(w))return D.error("seqof/setof, but data is not Array");const Y=this.clone();Y._baseState.implicit=null,B=this._createEncoderBuffer(w.map(function(ae){return this._getUse(this._baseState.args[0],w)._encode(ae,D)},Y))}else null!==k.use?E=this._getUse(k.use,S)._encode(w,D):(B=this._encodePrimitive(k.tag,w),Z=!0);if(!k.any&&null===k.choice){const Y=null!==k.implicit?k.implicit:k.tag,ae=null===k.implicit?"universal":"context";null===Y?null===k.use&&D.error("Tag could be omitted only for .use()"):null===k.use&&(E=this._encodeComposite(Y,Z,ae,B))}return null!==k.explicit&&(E=this._encodeComposite(k.explicit,!1,"context",E)),E},R.prototype._encodeChoice=function(w,D){const S=this._baseState,k=S.choice[w.type];return k||M(!1,w.type+" not found in "+JSON.stringify(Object.keys(S.choice))),k._encode(w.value,D)},R.prototype._encodePrimitive=function(w,D){const S=this._baseState;if(/str$/.test(w))return this._encodeStr(D,w);if("objid"===w&&S.args)return this._encodeObjid(D,S.reverseArgs[0],S.args[1]);if("objid"===w)return this._encodeObjid(D,null,null);if("gentime"===w||"utctime"===w)return this._encodeTime(D,w);if("null_"===w)return this._encodeNull();if("int"===w||"enum"===w)return this._encodeInt(D,S.args&&S.reverseArgs[0]);if("bool"===w)return this._encodeBool(D);if("objDesc"===w)return this._encodeStr(D,w);throw new Error("Unsupported tag: "+w)},R.prototype._isNumstr=function(w){return/^[0-9 ]*$/.test(w)},R.prototype._isPrintstr=function(w){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(w)}},4919:(Be,K,p)=>{"use strict";const t=p(3894);function e(M){this._reporterState={obj:null,path:[],options:M||{},errors:[]}}function f(M,a){this.path=M,this.rethrow(a)}K.b=e,e.prototype.isError=function(a){return a instanceof f},e.prototype.save=function(){const a=this._reporterState;return{obj:a.obj,pathLen:a.path.length}},e.prototype.restore=function(a){const C=this._reporterState;C.obj=a.obj,C.path=C.path.slice(0,a.pathLen)},e.prototype.enterKey=function(a){return this._reporterState.path.push(a)},e.prototype.exitKey=function(a){const C=this._reporterState;C.path=C.path.slice(0,a-1)},e.prototype.leaveKey=function(a,C,d){const R=this._reporterState;this.exitKey(a),null!==R.obj&&(R.obj[C]=d)},e.prototype.path=function(){return this._reporterState.path.join("/")},e.prototype.enterObject=function(){const a=this._reporterState,C=a.obj;return a.obj={},C},e.prototype.leaveObject=function(a){const C=this._reporterState,d=C.obj;return C.obj=a,d},e.prototype.error=function(a){let C;const d=this._reporterState,R=a instanceof f;if(C=R?a:new f(d.path.map(function(h){return"["+JSON.stringify(h)+"]"}).join(""),a.message||a,a.stack),!d.options.partial)throw C;return R||d.errors.push(C),C},e.prototype.wrapResult=function(a){const C=this._reporterState;return C.options.partial?{result:this.isError(a)?null:a,errors:C.errors}:a},t(f,Error),f.prototype.rethrow=function(a){if(this.message=a+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,f),!this.stack)try{throw new Error(this.message)}catch(C){this.stack=C.stack}return this}},5496:(Be,K)=>{"use strict";function p(t){const e={};return Object.keys(t).forEach(function(f){(0|f)==f&&(f|=0),e[t[f]]=f}),e}K.tagClass={0:"universal",1:"application",2:"context",3:"private"},K.tagClassByName=p(K.tagClass),K.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"},K.tagByName=p(K.tag)},5459:(Be,K,p)=>{"use strict";const t=K;t._reverse=function(f){const M={};return Object.keys(f).forEach(function(a){(0|a)==a&&(a|=0),M[f[a]]=a}),M},t.der=p(5496)},7127:(Be,K,p)=>{"use strict";const t=p(3894),e=p(3854),f=p(2769).C,M=p(1430),a=p(5496);function C(L){this.enc="der",this.name=L.name,this.entity=L,this.tree=new d,this.tree._init(L.body)}function d(L){M.call(this,"der",L)}function R(L,w){let D=L.readUInt8(w);if(L.isError(D))return D;const S=a.tagClass[D>>6],k=0==(32&D);if(31==(31&D)){let B=D;for(D=0;128==(128&B);){if(B=L.readUInt8(w),L.isError(B))return B;D<<=7,D|=127&B}}else D&=31;return{cls:S,primitive:k,tag:D,tagStr:a.tag[D]}}function h(L,w,D){let S=L.readUInt8(D);if(L.isError(S))return S;if(!w&&128===S)return null;if(0==(128&S))return S;const k=127&S;if(k>4)return L.error("length octect is too long");S=0;for(let E=0;E{"use strict";const t=K;t.der=p(7127),t.pem=p(9617)},9617:(Be,K,p)=>{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(7127);function M(a){f.call(this,a),this.enc="pem"}t(M,f),Be.exports=M,M.prototype.decode=function(C,d){const R=C.toString().split(/[\r\n]+/g),h=d.label.toUpperCase(),L=/^-----(BEGIN|END) ([^-]+)-----$/;let w=-1,D=-1;for(let E=0;E{"use strict";const t=p(3894),e=p(2038).Buffer,f=p(1430),M=p(5496);function a(h){this.enc="der",this.name=h.name,this.entity=h,this.tree=new C,this.tree._init(h.body)}function C(h){f.call(this,"der",h)}function d(h){return h<10?"0"+h:h}Be.exports=a,a.prototype.encode=function(L,w){return this.tree._encode(L,w).join()},t(C,f),C.prototype._encodeComposite=function(L,w,D,S){const k=function R(h,L,w,D){let S;if("seqof"===h?h="seq":"setof"===h&&(h="set"),M.tagByName.hasOwnProperty(h))S=M.tagByName[h];else{if("number"!=typeof h||(0|h)!==h)return D.error("Unknown tag: "+h);S=h}return S>=31?D.error("Multi-octet tag encoding unsupported"):(L||(S|=32),S|=M.tagClassByName[w||"universal"]<<6,S)}(L,w,D,this.reporter);if(S.length<128){const Z=e.alloc(2);return Z[0]=k,Z[1]=S.length,this._createEncoderBuffer([Z,S])}let E=1;for(let Z=S.length;Z>=256;Z>>=8)E++;const B=e.alloc(2+E);B[0]=k,B[1]=128|E;for(let Z=1+E,Y=S.length;Y>0;Z--,Y>>=8)B[Z]=255&Y;return this._createEncoderBuffer([B,S])},C.prototype._encodeStr=function(L,w){if("bitstr"===w)return this._createEncoderBuffer([0|L.unused,L.data]);if("bmpstr"===w){const D=e.alloc(2*L.length);for(let S=0;S=40)return this.reporter.error("Second objid identifier OOB");L.splice(0,2,40*L[0]+L[1])}let S=0;for(let B=0;B=128;Z>>=7)S++}const k=e.alloc(S);let E=k.length-1;for(let B=L.length-1;B>=0;B--){let Z=L[B];for(k[E--]=127&Z;(Z>>=7)>0;)k[E--]=128|127&Z}return this._createEncoderBuffer(k)},C.prototype._encodeTime=function(L,w){let D;const S=new Date(L);return"gentime"===w?D=[d(S.getUTCFullYear()),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):"utctime"===w?D=[d(S.getUTCFullYear()%100),d(S.getUTCMonth()+1),d(S.getUTCDate()),d(S.getUTCHours()),d(S.getUTCMinutes()),d(S.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+w+" time is not supported yet"),this._encodeStr(D,"octstr")},C.prototype._encodeNull=function(){return this._createEncoderBuffer("")},C.prototype._encodeInt=function(L,w){if("string"==typeof L){if(!w)return this.reporter.error("String int or enum given, but no values map");if(!w.hasOwnProperty(L))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(L));L=w[L]}if("number"!=typeof L&&!e.isBuffer(L)){const k=L.toArray();!L.sign&&128&k[0]&&k.unshift(0),L=e.from(k)}if(e.isBuffer(L)){let k=L.length;0===L.length&&k++;const E=e.alloc(k);return L.copy(E),0===L.length&&(E[0]=0),this._createEncoderBuffer(E)}if(L<128)return this._createEncoderBuffer(L);if(L<256)return this._createEncoderBuffer([0,L]);let D=1;for(let k=L;k>=256;k>>=8)D++;const S=new Array(D);for(let k=S.length-1;k>=0;k--)S[k]=255&L,L>>=8;return 128&S[0]&&S.unshift(0),this._createEncoderBuffer(e.from(S))},C.prototype._encodeBool=function(L){return this._createEncoderBuffer(L?255:0)},C.prototype._use=function(L,w){return"function"==typeof L&&(L=L(w)),L._getEncoder("der").tree},C.prototype._skipDefault=function(L,w,D){const S=this._baseState;let k;if(null===S.default)return!1;const E=L.join();if(void 0===S.defaultBuffer&&(S.defaultBuffer=this._encodeValue(S.default,w,D).join()),E.length!==S.defaultBuffer.length)return!1;for(k=0;k{"use strict";const t=K;t.der=p(6374),t.pem=p(3530)},3530:(Be,K,p)=>{"use strict";const t=p(3894),e=p(6374);function f(M){e.call(this,M),this.enc="pem"}t(f,e),Be.exports=f,f.prototype.encode=function(a,C){const R=e.prototype.encode.call(this,a).toString("base64"),h=["-----BEGIN "+C.label+"-----"];for(let L=0;L=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Si=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Si,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},5343:(Be,K)=>{"use strict";K.byteLength=function d(S){var k=C(S),B=k[1];return 3*(k[0]+B)/4-B},K.toByteArray=function h(S){var k,ue,E=C(S),B=E[0],Z=E[1],Y=new e(function R(S,k,E){return 3*(k+E)/4-E}(0,B,Z)),ae=0,ee=Z>0?B-4:B;for(ue=0;ue>16&255,Y[ae++]=k>>8&255,Y[ae++]=255&k;return 2===Z&&(k=t[S.charCodeAt(ue)]<<2|t[S.charCodeAt(ue+1)]>>4,Y[ae++]=255&k),1===Z&&(k=t[S.charCodeAt(ue)]<<10|t[S.charCodeAt(ue+1)]<<4|t[S.charCodeAt(ue+2)]>>2,Y[ae++]=k>>8&255,Y[ae++]=255&k),Y},K.fromByteArray=function D(S){for(var k,E=S.length,B=E%3,Z=[],Y=16383,ae=0,ee=E-B;aeee?ee:ae+Y));return 1===B?Z.push(p[(k=S[E-1])>>2]+p[k<<4&63]+"=="):2===B&&Z.push(p[(k=(S[E-2]<<8)+S[E-1])>>10]+p[k>>4&63]+p[k<<2&63]+"="),Z.join("")};for(var p=[],t=[],e="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",M=0,a=f.length;M0)throw new Error("Invalid string. Length must be a multiple of 4");var E=S.indexOf("=");return-1===E&&(E=k),[E,E===k?0:4-E%4]}function L(S){return p[S>>18&63]+p[S>>12&63]+p[S>>6&63]+p[63&S]}function w(S,k,E){for(var Z=[],Y=k;Y=48&&v<=57?v-48:v>=65&&v<=70?v-55:v>=97&&v<=102?v-87:void f(!1,"Invalid character in "+u)}function R(u,c,v){var T=d(u,v);return v-1>=c&&(T|=d(u,v-1)<<4),T}function h(u,c,v,T){for(var I=0,y=0,n=Math.min(u.length,v),_=c;_=49?V-49+10:V>=17?V-17+10:V,f(V>=0&&y0?c:v},a.min=function(c,v){return c.cmp(v)<0?c:v},a.prototype._init=function(c,v,T){if("number"==typeof c)return this._initNumber(c,v,T);if("object"==typeof c)return this._initArray(c,v,T);"hex"===v&&(v=16),f(v===(0|v)&&v>=2&&v<=36);var I=0;"-"===(c=c.toString().replace(/\s+/g,""))[0]&&(I++,this.negative=1),I=0;I-=3)this.words[y]|=(n=c[I]|c[I-1]<<8|c[I-2]<<16)<<_&67108863,this.words[y+1]=n>>>26-_&67108863,(_+=24)>=26&&(_-=26,y++);else if("le"===T)for(I=0,y=0;I>>26-_&67108863,(_+=24)>=26&&(_-=26,y++);return this._strip()},a.prototype._parseHex=function(c,v,T){this.length=Math.ceil((c.length-v)/6),this.words=new Array(this.length);for(var I=0;I=v;I-=2)_=R(c,v,I)<=18?(y-=18,this.words[n+=1]|=_>>>26):y+=8;else for(I=(c.length-v)%2==0?v+1:v;I=18?(y-=18,this.words[n+=1]|=_>>>26):y+=8;this._strip()},a.prototype._parseBase=function(c,v,T){this.words=[0],this.length=1;for(var I=0,y=1;y<=67108863;y*=v)I++;I--,y=y/v|0;for(var n=c.length-T,_=n%I,V=Math.min(n,n-_)+T,N=0,H=T;H1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{a.prototype[Symbol.for("nodejs.util.inspect.custom")]=w}catch(u){a.prototype.inspect=w}else a.prototype.inspect=w;function w(){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"],S=[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],k=[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 Z(u,c,v){v.negative=c.negative^u.negative;var T=u.length+c.length|0;v.length=T,T=T-1|0;var I=0|u.words[0],y=0|c.words[0],n=I*y,V=n/67108864|0;v.words[0]=67108863&n;for(var N=1;N>>26,X=67108863&V,he=Math.min(N,c.length-1),be=Math.max(0,N-u.length+1);be<=he;be++)H+=(n=(I=0|u.words[N-be|0])*(y=0|c.words[be])+X)/67108864|0,X=67108863&n;v.words[N]=0|X,V=0|H}return 0!==V?v.words[N]=0|V:v.length--,v._strip()}a.prototype.toString=function(c,v){var T;if(v=0|v||1,16===(c=c||10)||"hex"===c){T="";for(var I=0,y=0,n=0;n>>24-I&16777215,(I+=2)>=26&&(I-=26,n--),T=0!==y||n!==this.length-1?D[6-V.length]+V+T:V+T}for(0!==y&&(T=y.toString(16)+T);T.length%v!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}if(c===(0|c)&&c>=2&&c<=36){var N=S[c],H=k[c];T="";var X=this.clone();for(X.negative=0;!X.isZero();){var he=X.modrn(H).toString(c);T=(X=X.idivn(H)).isZero()?he+T:D[N-he.length]+he+T}for(this.isZero()&&(T="0"+T);T.length%v!=0;)T="0"+T;return 0!==this.negative&&(T="-"+T),T}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var c=this.words[0];return 2===this.length?c+=67108864*this.words[1]:3===this.length&&1===this.words[2]?c+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-c:c},a.prototype.toJSON=function(){return this.toString(16,2)},C&&(a.prototype.toBuffer=function(c,v){return this.toArrayLike(C,c,v)}),a.prototype.toArray=function(c,v){return this.toArrayLike(Array,c,v)},a.prototype.toArrayLike=function(c,v,T){this._strip();var I=this.byteLength(),y=T||Math.max(1,I);f(I<=y,"byte array longer than desired length"),f(y>0,"Requested array length <= 0");var n=function(c,v){return c.allocUnsafe?c.allocUnsafe(v):new c(v)}(c,y);return this["_toArrayLike"+("le"===v?"LE":"BE")](n,I),n},a.prototype._toArrayLikeLE=function(c,v){for(var T=0,I=0,y=0,n=0;y>8&255),T>16&255),6===n?(T>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(T=0&&(c[T--]=_>>8&255),T>=0&&(c[T--]=_>>16&255),6===n?(T>=0&&(c[T--]=_>>24&255),I=0,n=0):(I=_>>>24,n+=2)}if(T>=0)for(c[T--]=I;T>=0;)c[T--]=0},a.prototype._countBits=Math.clz32?function(c){return 32-Math.clz32(c)}:function(c){var v=c,T=0;return v>=4096&&(T+=13,v>>>=13),v>=64&&(T+=7,v>>>=7),v>=8&&(T+=4,v>>>=4),v>=2&&(T+=2,v>>>=2),T+v},a.prototype._zeroBits=function(c){if(0===c)return 26;var v=c,T=0;return 0==(8191&v)&&(T+=13,v>>>=13),0==(127&v)&&(T+=7,v>>>=7),0==(15&v)&&(T+=4,v>>>=4),0==(3&v)&&(T+=2,v>>>=2),0==(1&v)&&T++,T},a.prototype.bitLength=function(){var v=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+v},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var c=0,v=0;vc.length?this.clone().ior(c):c.clone().ior(this)},a.prototype.uor=function(c){return this.length>c.length?this.clone().iuor(c):c.clone().iuor(this)},a.prototype.iuand=function(c){var v;v=this.length>c.length?c:this;for(var T=0;Tc.length?this.clone().iand(c):c.clone().iand(this)},a.prototype.uand=function(c){return this.length>c.length?this.clone().iuand(c):c.clone().iuand(this)},a.prototype.iuxor=function(c){var v,T;this.length>c.length?(v=this,T=c):(v=c,T=this);for(var I=0;Ic.length?this.clone().ixor(c):c.clone().ixor(this)},a.prototype.uxor=function(c){return this.length>c.length?this.clone().iuxor(c):c.clone().iuxor(this)},a.prototype.inotn=function(c){f("number"==typeof c&&c>=0);var v=0|Math.ceil(c/26),T=c%26;this._expand(v),T>0&&v--;for(var I=0;I0&&(this.words[I]=~this.words[I]&67108863>>26-T),this._strip()},a.prototype.notn=function(c){return this.clone().inotn(c)},a.prototype.setn=function(c,v){f("number"==typeof c&&c>=0);var T=c/26|0,I=c%26;return this._expand(T+1),this.words[T]=v?this.words[T]|1<c.length?(T=this,I=c):(T=c,I=this);for(var y=0,n=0;n>>26;for(;0!==y&&n>>26;if(this.length=T.length,0!==y)this.words[this.length]=y,this.length++;else if(T!==this)for(;nc.length?this.clone().iadd(c):c.clone().iadd(this)},a.prototype.isub=function(c){if(0!==c.negative){c.negative=0;var v=this.iadd(c);return c.negative=1,v._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(c),this.negative=1,this._normSign();var I,y,T=this.cmp(c);if(0===T)return this.negative=0,this.length=1,this.words[0]=0,this;T>0?(I=this,y=c):(I=c,y=this);for(var n=0,_=0;_>26,this.words[_]=67108863&v;for(;0!==n&&_>26,this.words[_]=67108863&v;if(0===n&&_>>13,Pe=0|I[1],Ee=8191&Pe,j=Pe>>>13,Ve=0|I[2],Me=8191&Ve,J=Ve>>>13,Ie=0|I[3],ut=8191&Ie,Oe=Ie>>>13,we=0|I[4],ce=8191&we,Te=we>>>13,xe=0|I[5],W=8191&xe,te=xe>>>13,Ce=0|I[6],fe=8191&Ce,Q=Ce>>>13,pt=0|I[7],tt=8191&pt,Dt=pt>>>13,di=0|I[8],Yt=8191&di,Zt=di>>>13,ui=0|I[9],Ot=8191&ui,Nt=ui>>>13,gt=0|y[0],it=8191>,bt=gt>>>13,ti=0|y[1],Qt=8191&ti,Re=ti>>>13,ke=0|y[2],de=8191&ke,ye=ke>>>13,ht=0|y[3],mt=8191&ht,Ft=ht>>>13,nt=0|y[4],He=8191&nt,rt=nt>>>13,et=0|y[5],Ae=8191&et,Ge=et>>>13,ot=0|y[6],lt=8191&ot,Ct=ot>>>13,mi=0|y[7],Jt=8191&mi,ei=mi>>>13,Qi=0|y[8],hi=8191&Qi,si=Qi>>>13,Ji=0|y[9],Zi=8191&Ji,Vi=Ji>>>13;T.negative=c.negative^v.negative,T.length=19;var Ui=(_+(V=Math.imul(he,it))|0)+((8191&(N=(N=Math.imul(he,bt))+Math.imul(be,it)|0))<<13)|0;_=((H=Math.imul(be,bt))+(N>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,V=Math.imul(Ee,it),N=(N=Math.imul(Ee,bt))+Math.imul(j,it)|0,H=Math.imul(j,bt);var Ue=(_+(V=V+Math.imul(he,Qt)|0)|0)+((8191&(N=(N=N+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0))<<13)|0;_=((H=H+Math.imul(be,Re)|0)+(N>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,V=Math.imul(Me,it),N=(N=Math.imul(Me,bt))+Math.imul(J,it)|0,H=Math.imul(J,bt),V=V+Math.imul(Ee,Qt)|0,N=(N=N+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,H=H+Math.imul(j,Re)|0;var Tt=(_+(V=V+Math.imul(he,de)|0)|0)+((8191&(N=(N=N+Math.imul(he,ye)|0)+Math.imul(be,de)|0))<<13)|0;_=((H=H+Math.imul(be,ye)|0)+(N>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,V=Math.imul(ut,it),N=(N=Math.imul(ut,bt))+Math.imul(Oe,it)|0,H=Math.imul(Oe,bt),V=V+Math.imul(Me,Qt)|0,N=(N=N+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,H=H+Math.imul(J,Re)|0,V=V+Math.imul(Ee,de)|0,N=(N=N+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,H=H+Math.imul(j,ye)|0;var ve=(_+(V=V+Math.imul(he,mt)|0)|0)+((8191&(N=(N=N+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0))<<13)|0;_=((H=H+Math.imul(be,Ft)|0)+(N>>>13)|0)+(ve>>>26)|0,ve&=67108863,V=Math.imul(ce,it),N=(N=Math.imul(ce,bt))+Math.imul(Te,it)|0,H=Math.imul(Te,bt),V=V+Math.imul(ut,Qt)|0,N=(N=N+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,H=H+Math.imul(Oe,Re)|0,V=V+Math.imul(Me,de)|0,N=(N=N+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,H=H+Math.imul(J,ye)|0,V=V+Math.imul(Ee,mt)|0,N=(N=N+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,H=H+Math.imul(j,Ft)|0;var Qe=(_+(V=V+Math.imul(he,He)|0)|0)+((8191&(N=(N=N+Math.imul(he,rt)|0)+Math.imul(be,He)|0))<<13)|0;_=((H=H+Math.imul(be,rt)|0)+(N>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,V=Math.imul(W,it),N=(N=Math.imul(W,bt))+Math.imul(te,it)|0,H=Math.imul(te,bt),V=V+Math.imul(ce,Qt)|0,N=(N=N+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,H=H+Math.imul(Te,Re)|0,V=V+Math.imul(ut,de)|0,N=(N=N+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,H=H+Math.imul(Oe,ye)|0,V=V+Math.imul(Me,mt)|0,N=(N=N+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,H=H+Math.imul(J,Ft)|0,V=V+Math.imul(Ee,He)|0,N=(N=N+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,H=H+Math.imul(j,rt)|0;var _t=(_+(V=V+Math.imul(he,Ae)|0)|0)+((8191&(N=(N=N+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0))<<13)|0;_=((H=H+Math.imul(be,Ge)|0)+(N>>>13)|0)+(_t>>>26)|0,_t&=67108863,V=Math.imul(fe,it),N=(N=Math.imul(fe,bt))+Math.imul(Q,it)|0,H=Math.imul(Q,bt),V=V+Math.imul(W,Qt)|0,N=(N=N+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,H=H+Math.imul(te,Re)|0,V=V+Math.imul(ce,de)|0,N=(N=N+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,H=H+Math.imul(Te,ye)|0,V=V+Math.imul(ut,mt)|0,N=(N=N+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,H=H+Math.imul(Oe,Ft)|0,V=V+Math.imul(Me,He)|0,N=(N=N+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,H=H+Math.imul(J,rt)|0,V=V+Math.imul(Ee,Ae)|0,N=(N=N+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,H=H+Math.imul(j,Ge)|0;var se=(_+(V=V+Math.imul(he,lt)|0)|0)+((8191&(N=(N=N+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0))<<13)|0;_=((H=H+Math.imul(be,Ct)|0)+(N>>>13)|0)+(se>>>26)|0,se&=67108863,V=Math.imul(tt,it),N=(N=Math.imul(tt,bt))+Math.imul(Dt,it)|0,H=Math.imul(Dt,bt),V=V+Math.imul(fe,Qt)|0,N=(N=N+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,H=H+Math.imul(Q,Re)|0,V=V+Math.imul(W,de)|0,N=(N=N+Math.imul(W,ye)|0)+Math.imul(te,de)|0,H=H+Math.imul(te,ye)|0,V=V+Math.imul(ce,mt)|0,N=(N=N+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,H=H+Math.imul(Te,Ft)|0,V=V+Math.imul(ut,He)|0,N=(N=N+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,H=H+Math.imul(Oe,rt)|0,V=V+Math.imul(Me,Ae)|0,N=(N=N+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,H=H+Math.imul(J,Ge)|0,V=V+Math.imul(Ee,lt)|0,N=(N=N+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,H=H+Math.imul(j,Ct)|0;var Xe=(_+(V=V+Math.imul(he,Jt)|0)|0)+((8191&(N=(N=N+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0))<<13)|0;_=((H=H+Math.imul(be,ei)|0)+(N>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,V=Math.imul(Yt,it),N=(N=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,H=Math.imul(Zt,bt),V=V+Math.imul(tt,Qt)|0,N=(N=N+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,H=H+Math.imul(Dt,Re)|0,V=V+Math.imul(fe,de)|0,N=(N=N+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,H=H+Math.imul(Q,ye)|0,V=V+Math.imul(W,mt)|0,N=(N=N+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,H=H+Math.imul(te,Ft)|0,V=V+Math.imul(ce,He)|0,N=(N=N+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,H=H+Math.imul(Te,rt)|0,V=V+Math.imul(ut,Ae)|0,N=(N=N+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,H=H+Math.imul(Oe,Ge)|0,V=V+Math.imul(Me,lt)|0,N=(N=N+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,H=H+Math.imul(J,Ct)|0,V=V+Math.imul(Ee,Jt)|0,N=(N=N+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,H=H+Math.imul(j,ei)|0;var xt=(_+(V=V+Math.imul(he,hi)|0)|0)+((8191&(N=(N=N+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;_=((H=H+Math.imul(be,si)|0)+(N>>>13)|0)+(xt>>>26)|0,xt&=67108863,V=Math.imul(Ot,it),N=(N=Math.imul(Ot,bt))+Math.imul(Nt,it)|0,H=Math.imul(Nt,bt),V=V+Math.imul(Yt,Qt)|0,N=(N=N+Math.imul(Yt,Re)|0)+Math.imul(Zt,Qt)|0,H=H+Math.imul(Zt,Re)|0,V=V+Math.imul(tt,de)|0,N=(N=N+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,H=H+Math.imul(Dt,ye)|0,V=V+Math.imul(fe,mt)|0,N=(N=N+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,H=H+Math.imul(Q,Ft)|0,V=V+Math.imul(W,He)|0,N=(N=N+Math.imul(W,rt)|0)+Math.imul(te,He)|0,H=H+Math.imul(te,rt)|0,V=V+Math.imul(ce,Ae)|0,N=(N=N+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,H=H+Math.imul(Te,Ge)|0,V=V+Math.imul(ut,lt)|0,N=(N=N+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,H=H+Math.imul(Oe,Ct)|0,V=V+Math.imul(Me,Jt)|0,N=(N=N+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,H=H+Math.imul(J,ei)|0,V=V+Math.imul(Ee,hi)|0,N=(N=N+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0,H=H+Math.imul(j,si)|0;var Bt=(_+(V=V+Math.imul(he,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(he,Vi)|0)+Math.imul(be,Zi)|0))<<13)|0;_=((H=H+Math.imul(be,Vi)|0)+(N>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,V=Math.imul(Ot,Qt),N=(N=Math.imul(Ot,Re))+Math.imul(Nt,Qt)|0,H=Math.imul(Nt,Re),V=V+Math.imul(Yt,de)|0,N=(N=N+Math.imul(Yt,ye)|0)+Math.imul(Zt,de)|0,H=H+Math.imul(Zt,ye)|0,V=V+Math.imul(tt,mt)|0,N=(N=N+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,H=H+Math.imul(Dt,Ft)|0,V=V+Math.imul(fe,He)|0,N=(N=N+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,H=H+Math.imul(Q,rt)|0,V=V+Math.imul(W,Ae)|0,N=(N=N+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,H=H+Math.imul(te,Ge)|0,V=V+Math.imul(ce,lt)|0,N=(N=N+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,H=H+Math.imul(Te,Ct)|0,V=V+Math.imul(ut,Jt)|0,N=(N=N+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,H=H+Math.imul(Oe,ei)|0,V=V+Math.imul(Me,hi)|0,N=(N=N+Math.imul(Me,si)|0)+Math.imul(J,hi)|0,H=H+Math.imul(J,si)|0;var bi=(_+(V=V+Math.imul(Ee,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(Ee,Vi)|0)+Math.imul(j,Zi)|0))<<13)|0;_=((H=H+Math.imul(j,Vi)|0)+(N>>>13)|0)+(bi>>>26)|0,bi&=67108863,V=Math.imul(Ot,de),N=(N=Math.imul(Ot,ye))+Math.imul(Nt,de)|0,H=Math.imul(Nt,ye),V=V+Math.imul(Yt,mt)|0,N=(N=N+Math.imul(Yt,Ft)|0)+Math.imul(Zt,mt)|0,H=H+Math.imul(Zt,Ft)|0,V=V+Math.imul(tt,He)|0,N=(N=N+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,H=H+Math.imul(Dt,rt)|0,V=V+Math.imul(fe,Ae)|0,N=(N=N+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,H=H+Math.imul(Q,Ge)|0,V=V+Math.imul(W,lt)|0,N=(N=N+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,H=H+Math.imul(te,Ct)|0,V=V+Math.imul(ce,Jt)|0,N=(N=N+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,H=H+Math.imul(Te,ei)|0,V=V+Math.imul(ut,hi)|0,N=(N=N+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0,H=H+Math.imul(Oe,si)|0;var Si=(_+(V=V+Math.imul(Me,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(Me,Vi)|0)+Math.imul(J,Zi)|0))<<13)|0;_=((H=H+Math.imul(J,Vi)|0)+(N>>>13)|0)+(Si>>>26)|0,Si&=67108863,V=Math.imul(Ot,mt),N=(N=Math.imul(Ot,Ft))+Math.imul(Nt,mt)|0,H=Math.imul(Nt,Ft),V=V+Math.imul(Yt,He)|0,N=(N=N+Math.imul(Yt,rt)|0)+Math.imul(Zt,He)|0,H=H+Math.imul(Zt,rt)|0,V=V+Math.imul(tt,Ae)|0,N=(N=N+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,H=H+Math.imul(Dt,Ge)|0,V=V+Math.imul(fe,lt)|0,N=(N=N+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,H=H+Math.imul(Q,Ct)|0,V=V+Math.imul(W,Jt)|0,N=(N=N+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,H=H+Math.imul(te,ei)|0,V=V+Math.imul(ce,hi)|0,N=(N=N+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0,H=H+Math.imul(Te,si)|0;var Xi=(_+(V=V+Math.imul(ut,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(ut,Vi)|0)+Math.imul(Oe,Zi)|0))<<13)|0;_=((H=H+Math.imul(Oe,Vi)|0)+(N>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,V=Math.imul(Ot,He),N=(N=Math.imul(Ot,rt))+Math.imul(Nt,He)|0,H=Math.imul(Nt,rt),V=V+Math.imul(Yt,Ae)|0,N=(N=N+Math.imul(Yt,Ge)|0)+Math.imul(Zt,Ae)|0,H=H+Math.imul(Zt,Ge)|0,V=V+Math.imul(tt,lt)|0,N=(N=N+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,H=H+Math.imul(Dt,Ct)|0,V=V+Math.imul(fe,Jt)|0,N=(N=N+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,H=H+Math.imul(Q,ei)|0,V=V+Math.imul(W,hi)|0,N=(N=N+Math.imul(W,si)|0)+Math.imul(te,hi)|0,H=H+Math.imul(te,si)|0;var Wi=(_+(V=V+Math.imul(ce,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(ce,Vi)|0)+Math.imul(Te,Zi)|0))<<13)|0;_=((H=H+Math.imul(Te,Vi)|0)+(N>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,V=Math.imul(Ot,Ae),N=(N=Math.imul(Ot,Ge))+Math.imul(Nt,Ae)|0,H=Math.imul(Nt,Ge),V=V+Math.imul(Yt,lt)|0,N=(N=N+Math.imul(Yt,Ct)|0)+Math.imul(Zt,lt)|0,H=H+Math.imul(Zt,Ct)|0,V=V+Math.imul(tt,Jt)|0,N=(N=N+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,H=H+Math.imul(Dt,ei)|0,V=V+Math.imul(fe,hi)|0,N=(N=N+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0,H=H+Math.imul(Q,si)|0;var on=(_+(V=V+Math.imul(W,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(W,Vi)|0)+Math.imul(te,Zi)|0))<<13)|0;_=((H=H+Math.imul(te,Vi)|0)+(N>>>13)|0)+(on>>>26)|0,on&=67108863,V=Math.imul(Ot,lt),N=(N=Math.imul(Ot,Ct))+Math.imul(Nt,lt)|0,H=Math.imul(Nt,Ct),V=V+Math.imul(Yt,Jt)|0,N=(N=N+Math.imul(Yt,ei)|0)+Math.imul(Zt,Jt)|0,H=H+Math.imul(Zt,ei)|0,V=V+Math.imul(tt,hi)|0,N=(N=N+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0,H=H+Math.imul(Dt,si)|0;var pn=(_+(V=V+Math.imul(fe,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(fe,Vi)|0)+Math.imul(Q,Zi)|0))<<13)|0;_=((H=H+Math.imul(Q,Vi)|0)+(N>>>13)|0)+(pn>>>26)|0,pn&=67108863,V=Math.imul(Ot,Jt),N=(N=Math.imul(Ot,ei))+Math.imul(Nt,Jt)|0,H=Math.imul(Nt,ei),V=V+Math.imul(Yt,hi)|0,N=(N=N+Math.imul(Yt,si)|0)+Math.imul(Zt,hi)|0,H=H+Math.imul(Zt,si)|0;var ii=(_+(V=V+Math.imul(tt,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(tt,Vi)|0)+Math.imul(Dt,Zi)|0))<<13)|0;_=((H=H+Math.imul(Dt,Vi)|0)+(N>>>13)|0)+(ii>>>26)|0,ii&=67108863,V=Math.imul(Ot,hi),N=(N=Math.imul(Ot,si))+Math.imul(Nt,hi)|0,H=Math.imul(Nt,si);var Ri=(_+(V=V+Math.imul(Yt,Zi)|0)|0)+((8191&(N=(N=N+Math.imul(Yt,Vi)|0)+Math.imul(Zt,Zi)|0))<<13)|0;_=((H=H+Math.imul(Zt,Vi)|0)+(N>>>13)|0)+(Ri>>>26)|0,Ri&=67108863;var st=(_+(V=Math.imul(Ot,Zi))|0)+((8191&(N=(N=Math.imul(Ot,Vi))+Math.imul(Nt,Zi)|0))<<13)|0;return _=((H=Math.imul(Nt,Vi))+(N>>>13)|0)+(st>>>26)|0,st&=67108863,n[0]=Ui,n[1]=Ue,n[2]=Tt,n[3]=ve,n[4]=Qe,n[5]=_t,n[6]=se,n[7]=Xe,n[8]=xt,n[9]=Bt,n[10]=bi,n[11]=Si,n[12]=Xi,n[13]=Wi,n[14]=on,n[15]=pn,n[16]=ii,n[17]=Ri,n[18]=st,0!==_&&(n[19]=_,T.length++),T};function ae(u,c,v){v.negative=c.negative^u.negative,v.length=u.length+c.length;for(var T=0,I=0,y=0;y>>26)|0)>>>26,n&=67108863}v.words[y]=_,T=n,n=I}return 0!==T?v.words[y]=T:v.length--,v._strip()}function ee(u,c,v){return ae(u,c,v)}function ue(u,c){this.x=u,this.y=c}Math.imul||(Y=Z),a.prototype.mulTo=function(c,v){var I=this.length+c.length;return 10===this.length&&10===c.length?Y(this,c,v):I<63?Z(this,c,v):I<1024?ae(this,c,v):ee(this,c,v)},ue.prototype.makeRBT=function(c){for(var v=new Array(c),T=a.prototype._countBits(c)-1,I=0;I>=1;return I},ue.prototype.permute=function(c,v,T,I,y,n){for(var _=0;_>>=1)y++;return 1<>>=13),y>>>=13;for(n=2*v;n>=26,T+=y/67108864|0,T+=n>>>26,this.words[I]=67108863&n}return 0!==T&&(this.words[I]=T,this.length++),v?this.ineg():this},a.prototype.muln=function(c){return this.clone().imuln(c)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(c){var v=function B(u){for(var c=new Array(u.bitLength()),v=0;v>>v%26&1;return c}(c);if(0===v.length)return new a(1);for(var T=this,I=0;I=0);var y,v=c%26,T=(c-v)/26,I=67108863>>>26-v<<26-v;if(0!==v){var n=0;for(y=0;y>>26-v}n&&(this.words[y]=n,this.length++)}if(0!==T){for(y=this.length-1;y>=0;y--)this.words[y+T]=this.words[y];for(y=0;y=0),I=v?(v-v%26)/26:0;var y=c%26,n=Math.min((c-y)/26,this.length),_=67108863^67108863>>>y<n)for(this.length-=n,N=0;N=0&&(0!==H||N>=I);N--){var X=0|this.words[N];this.words[N]=H<<26-y|X>>>y,H=X&_}return V&&0!==H&&(V.words[V.length++]=H),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},a.prototype.ishrn=function(c,v,T){return f(0===this.negative),this.iushrn(c,v,T)},a.prototype.shln=function(c){return this.clone().ishln(c)},a.prototype.ushln=function(c){return this.clone().iushln(c)},a.prototype.shrn=function(c){return this.clone().ishrn(c)},a.prototype.ushrn=function(c){return this.clone().iushrn(c)},a.prototype.testn=function(c){f("number"==typeof c&&c>=0);var v=c%26,T=(c-v)/26;return!(this.length<=T||!(this.words[T]&1<=0);var v=c%26,T=(c-v)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=T?this:(0!==v&&T++,this.length=Math.min(T,this.length),0!==v&&(this.words[this.length-1]&=67108863^67108863>>>v<=67108864;v++)this.words[v]-=67108864,v===this.length-1?this.words[v+1]=1:this.words[v+1]++;return this.length=Math.max(this.length,v+1),this},a.prototype.isubn=function(c){if(f("number"==typeof c),f(c<67108864),c<0)return this.iaddn(-c);if(0!==this.negative)return this.negative=0,this.iaddn(c),this.negative=1,this;if(this.words[0]-=c,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var v=0;v>26)-(V/67108864|0),this.words[y+T]=67108863&n}for(;y>26,this.words[y+T]=67108863&n;if(0===_)return this._strip();for(f(-1===_),_=0,y=0;y>26,this.words[y]=67108863&n;return this.negative=1,this._strip()},a.prototype._wordDiv=function(c,v){var T,I=this.clone(),y=c,n=0|y.words[y.length-1];0!=(T=26-this._countBits(n))&&(y=y.ushln(T),I.iushln(T),n=0|y.words[y.length-1]);var N,V=I.length-y.length;if("mod"!==v){(N=new a(null)).length=V+1,N.words=new Array(N.length);for(var H=0;H=0;he--){var be=67108864*(0|I.words[y.length+he])+(0|I.words[y.length+he-1]);for(be=Math.min(be/n|0,67108863),I._ishlnsubmul(y,be,he);0!==I.negative;)be--,I.negative=0,I._ishlnsubmul(y,1,he),I.isZero()||(I.negative^=1);N&&(N.words[he]=be)}return N&&N._strip(),I._strip(),"div"!==v&&0!==T&&I.iushrn(T),{div:N||null,mod:I}},a.prototype.divmod=function(c,v,T){return f(!c.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===c.negative?(n=this.neg().divmod(c,v),"mod"!==v&&(I=n.div.neg()),"div"!==v&&(y=n.mod.neg(),T&&0!==y.negative&&y.iadd(c)),{div:I,mod:y}):0===this.negative&&0!==c.negative?(n=this.divmod(c.neg(),v),"mod"!==v&&(I=n.div.neg()),{div:I,mod:n.mod}):0!=(this.negative&c.negative)?(n=this.neg().divmod(c.neg(),v),"div"!==v&&(y=n.mod.neg(),T&&0!==y.negative&&y.isub(c)),{div:n.div,mod:y}):c.length>this.length||this.cmp(c)<0?{div:new a(0),mod:this}:1===c.length?"div"===v?{div:this.divn(c.words[0]),mod:null}:"mod"===v?{div:null,mod:new a(this.modrn(c.words[0]))}:{div:this.divn(c.words[0]),mod:new a(this.modrn(c.words[0]))}:this._wordDiv(c,v);var I,y,n},a.prototype.div=function(c){return this.divmod(c,"div",!1).div},a.prototype.mod=function(c){return this.divmod(c,"mod",!1).mod},a.prototype.umod=function(c){return this.divmod(c,"mod",!0).mod},a.prototype.divRound=function(c){var v=this.divmod(c);if(v.mod.isZero())return v.div;var T=0!==v.div.negative?v.mod.isub(c):v.mod,I=c.ushrn(1),y=c.andln(1),n=T.cmp(I);return n<0||1===y&&0===n?v.div:0!==v.div.negative?v.div.isubn(1):v.div.iaddn(1)},a.prototype.modrn=function(c){var v=c<0;v&&(c=-c),f(c<=67108863);for(var T=(1<<26)%c,I=0,y=this.length-1;y>=0;y--)I=(T*I+(0|this.words[y]))%c;return v?-I:I},a.prototype.modn=function(c){return this.modrn(c)},a.prototype.idivn=function(c){var v=c<0;v&&(c=-c),f(c<=67108863);for(var T=0,I=this.length-1;I>=0;I--){var y=(0|this.words[I])+67108864*T;this.words[I]=y/c|0,T=y%c}return this._strip(),v?this.ineg():this},a.prototype.divn=function(c){return this.clone().idivn(c)},a.prototype.egcd=function(c){f(0===c.negative),f(!c.isZero());var v=this,T=c.clone();v=0!==v.negative?v.umod(c):v.clone();for(var I=new a(1),y=new a(0),n=new a(0),_=new a(1),V=0;v.isEven()&&T.isEven();)v.iushrn(1),T.iushrn(1),++V;for(var N=T.clone(),H=v.clone();!v.isZero();){for(var X=0,he=1;0==(v.words[0]&he)&&X<26;++X,he<<=1);if(X>0)for(v.iushrn(X);X-- >0;)(I.isOdd()||y.isOdd())&&(I.iadd(N),y.isub(H)),I.iushrn(1),y.iushrn(1);for(var be=0,Pe=1;0==(T.words[0]&Pe)&&be<26;++be,Pe<<=1);if(be>0)for(T.iushrn(be);be-- >0;)(n.isOdd()||_.isOdd())&&(n.iadd(N),_.isub(H)),n.iushrn(1),_.iushrn(1);v.cmp(T)>=0?(v.isub(T),I.isub(n),y.isub(_)):(T.isub(v),n.isub(I),_.isub(y))}return{a:n,b:_,gcd:T.iushln(V)}},a.prototype._invmp=function(c){f(0===c.negative),f(!c.isZero());var X,v=this,T=c.clone();v=0!==v.negative?v.umod(c):v.clone();for(var I=new a(1),y=new a(0),n=T.clone();v.cmpn(1)>0&&T.cmpn(1)>0;){for(var _=0,V=1;0==(v.words[0]&V)&&_<26;++_,V<<=1);if(_>0)for(v.iushrn(_);_-- >0;)I.isOdd()&&I.iadd(n),I.iushrn(1);for(var N=0,H=1;0==(T.words[0]&H)&&N<26;++N,H<<=1);if(N>0)for(T.iushrn(N);N-- >0;)y.isOdd()&&y.iadd(n),y.iushrn(1);v.cmp(T)>=0?(v.isub(T),I.isub(y)):(T.isub(v),y.isub(I))}return(X=0===v.cmpn(1)?I:y).cmpn(0)<0&&X.iadd(c),X},a.prototype.gcd=function(c){if(this.isZero())return c.abs();if(c.isZero())return this.abs();var v=this.clone(),T=c.clone();v.negative=0,T.negative=0;for(var I=0;v.isEven()&&T.isEven();I++)v.iushrn(1),T.iushrn(1);for(;;){for(;v.isEven();)v.iushrn(1);for(;T.isEven();)T.iushrn(1);var y=v.cmp(T);if(y<0){var n=v;v=T,T=n}else if(0===y||0===T.cmpn(1))break;v.isub(T)}return T.iushln(I)},a.prototype.invm=function(c){return this.egcd(c).a.umod(c)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(c){return this.words[0]&c},a.prototype.bincn=function(c){f("number"==typeof c);var v=c%26,T=(c-v)/26,I=1<>>26,this.words[n]=_&=67108863}return 0!==y&&(this.words[n]=y,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(c){var T,v=c<0;if(0!==this.negative&&!v)return-1;if(0===this.negative&&v)return 1;if(this._strip(),this.length>1)T=1;else{v&&(c=-c),f(c<=67108863,"Number is too big");var I=0|this.words[0];T=I===c?0:Ic.length)return 1;if(this.length=0;T--){var I=0|this.words[T],y=0|c.words[T];if(I!==y){Iy&&(v=1);break}}return v},a.prototype.gtn=function(c){return 1===this.cmpn(c)},a.prototype.gt=function(c){return 1===this.cmp(c)},a.prototype.gten=function(c){return this.cmpn(c)>=0},a.prototype.gte=function(c){return this.cmp(c)>=0},a.prototype.ltn=function(c){return-1===this.cmpn(c)},a.prototype.lt=function(c){return-1===this.cmp(c)},a.prototype.lten=function(c){return this.cmpn(c)<=0},a.prototype.lte=function(c){return this.cmp(c)<=0},a.prototype.eqn=function(c){return 0===this.cmpn(c)},a.prototype.eq=function(c){return 0===this.cmp(c)},a.red=function(c){return new i(c)},a.prototype.toRed=function(c){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),c.convertTo(this)._forceRed(c)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(c){return this.red=c,this},a.prototype.forceRed=function(c){return f(!this.red,"Already a number in reduction context"),this._forceRed(c)},a.prototype.redAdd=function(c){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,c)},a.prototype.redIAdd=function(c){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,c)},a.prototype.redSub=function(c){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,c)},a.prototype.redISub=function(c){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,c)},a.prototype.redShl=function(c){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,c)},a.prototype.redMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.mul(this,c)},a.prototype.redIMul=function(c){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,c),this.red.imul(this,c)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(c){return f(this.red&&!c.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,c)};var ne={k256:null,p224:null,p192:null,p25519:null};function re(u,c){this.name=u,this.p=new a(c,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ge(){re.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function q(){re.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function _e(){re.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function x(){re.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function i(u){if("string"==typeof u){var c=a._prime(u);this.m=c.p,this.prime=c}else f(u.gtn(1),"modulus must be greater than 1"),this.m=u,this.prime=null}function r(u){i.call(this,u),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}re.prototype._tmp=function(){var c=new a(null);return c.words=new Array(Math.ceil(this.n/13)),c},re.prototype.ireduce=function(c){var T,v=c;do{this.split(v,this.tmp),T=(v=(v=this.imulK(v)).iadd(this.tmp)).bitLength()}while(T>this.n);var I=T0?v.isub(this.p):void 0!==v.strip?v.strip():v._strip(),v},re.prototype.split=function(c,v){c.iushrn(this.n,0,v)},re.prototype.imulK=function(c){return c.imul(this.k)},M(ge,re),ge.prototype.split=function(c,v){for(var T=4194303,I=Math.min(c.length,9),y=0;y>>22,n=_}c.words[y-10]=n>>>=22,c.length-=0===n&&c.length>10?10:9},ge.prototype.imulK=function(c){c.words[c.length]=0,c.words[c.length+1]=0,c.length+=2;for(var v=0,T=0;T>>=26,c.words[T]=y,v=I}return 0!==v&&(c.words[c.length++]=v),c},a._prime=function(c){if(ne[c])return ne[c];var v;if("k256"===c)v=new ge;else if("p224"===c)v=new q;else if("p192"===c)v=new _e;else{if("p25519"!==c)throw new Error("Unknown prime "+c);v=new x}return ne[c]=v,v},i.prototype._verify1=function(c){f(0===c.negative,"red works only with positives"),f(c.red,"red works only with red numbers")},i.prototype._verify2=function(c,v){f(0==(c.negative|v.negative),"red works only with positives"),f(c.red&&c.red===v.red,"red works only with red numbers")},i.prototype.imod=function(c){return this.prime?this.prime.ireduce(c)._forceRed(this):(L(c,c.umod(this.m)._forceRed(this)),c)},i.prototype.neg=function(c){return c.isZero()?c.clone():this.m.sub(c)._forceRed(this)},i.prototype.add=function(c,v){this._verify2(c,v);var T=c.add(v);return T.cmp(this.m)>=0&&T.isub(this.m),T._forceRed(this)},i.prototype.iadd=function(c,v){this._verify2(c,v);var T=c.iadd(v);return T.cmp(this.m)>=0&&T.isub(this.m),T},i.prototype.sub=function(c,v){this._verify2(c,v);var T=c.sub(v);return T.cmpn(0)<0&&T.iadd(this.m),T._forceRed(this)},i.prototype.isub=function(c,v){this._verify2(c,v);var T=c.isub(v);return T.cmpn(0)<0&&T.iadd(this.m),T},i.prototype.shl=function(c,v){return this._verify1(c),this.imod(c.ushln(v))},i.prototype.imul=function(c,v){return this._verify2(c,v),this.imod(c.imul(v))},i.prototype.mul=function(c,v){return this._verify2(c,v),this.imod(c.mul(v))},i.prototype.isqr=function(c){return this.imul(c,c.clone())},i.prototype.sqr=function(c){return this.mul(c,c)},i.prototype.sqrt=function(c){if(c.isZero())return c.clone();var v=this.m.andln(3);if(f(v%2==1),3===v){var T=this.m.add(new a(1)).iushrn(2);return this.pow(c,T)}for(var I=this.m.subn(1),y=0;!I.isZero()&&0===I.andln(1);)y++,I.iushrn(1);f(!I.isZero());var n=new a(1).toRed(this),_=n.redNeg(),V=this.m.subn(1).iushrn(1),N=this.m.bitLength();for(N=new a(2*N*N).toRed(this);0!==this.pow(N,V).cmp(_);)N.redIAdd(_);for(var H=this.pow(N,I),X=this.pow(c,I.addn(1).iushrn(1)),he=this.pow(c,I),be=y;0!==he.cmp(n);){for(var Pe=he,Ee=0;0!==Pe.cmp(n);Ee++)Pe=Pe.redSqr();f(Ee=0;y--){for(var H=v.words[y],X=N-1;X>=0;X--){var he=H>>X&1;n!==I[0]&&(n=this.sqr(n)),0!==he||0!==_?(_<<=1,_|=he,(4==++V||0===y&&0===X)&&(n=this.mul(n,I[_]),V=0,_=0)):V=0}N=26}return n},i.prototype.convertTo=function(c){var v=c.umod(this.m);return v===c?v.clone():v},i.prototype.convertFrom=function(c){var v=c.clone();return v.red=null,v},a.mont=function(c){return new r(c)},M(r,i),r.prototype.convertTo=function(c){return this.imod(c.ushln(this.shift))},r.prototype.convertFrom=function(c){var v=this.imod(c.mul(this.rinv));return v.red=null,v},r.prototype.imul=function(c,v){if(c.isZero()||v.isZero())return c.words[0]=0,c.length=1,c;var T=c.imul(v),I=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=T.isub(I).iushrn(this.shift),n=y;return y.cmp(this.m)>=0?n=y.isub(this.m):y.cmpn(0)<0&&(n=y.iadd(this.m)),n._forceRed(this)},r.prototype.mul=function(c,v){if(c.isZero()||v.isZero())return new a(0)._forceRed(this);var T=c.mul(v),I=T.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),y=T.isub(I).iushrn(this.shift),n=y;return y.cmp(this.m)>=0?n=y.isub(this.m):y.cmpn(0)<0&&(n=y.iadd(this.m)),n._forceRed(this)},r.prototype.invm=function(c){return this.imod(c._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},7950:(Be,K,p)=>{var t;function e(M){this.rand=M}if(Be.exports=function(a){return t||(t=new e(null)),t.generate(a)},Be.exports.Rand=e,e.prototype.generate=function(a){return this._rand(a)},e.prototype._rand=function(a){if(this.rand.getBytes)return this.rand.getBytes(a);for(var C=new Uint8Array(a),d=0;d{var t=p(3502).Buffer;function e(R){t.isBuffer(R)||(R=t.from(R));for(var h=R.length/4|0,L=new Array(h),w=0;w>>24]^k[Y>>>16&255]^E[ae>>>8&255]^B[255&ee]^h[q++],ne=S[Y>>>24]^k[ae>>>16&255]^E[ee>>>8&255]^B[255&Z]^h[q++],re=S[ae>>>24]^k[ee>>>16&255]^E[Z>>>8&255]^B[255&Y]^h[q++],ge=S[ee>>>24]^k[Z>>>16&255]^E[Y>>>8&255]^B[255&ae]^h[q++],Z=ue,Y=ne,ae=re,ee=ge;return ue=(w[Z>>>24]<<24|w[Y>>>16&255]<<16|w[ae>>>8&255]<<8|w[255&ee])^h[q++],ne=(w[Y>>>24]<<24|w[ae>>>16&255]<<16|w[ee>>>8&255]<<8|w[255&Z])^h[q++],re=(w[ae>>>24]<<24|w[ee>>>16&255]<<16|w[Z>>>8&255]<<8|w[255&Y])^h[q++],ge=(w[ee>>>24]<<24|w[Z>>>16&255]<<16|w[Y>>>8&255]<<8|w[255&ae])^h[q++],[ue>>>=0,ne>>>=0,re>>>=0,ge>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],C=function(){for(var R=new Array(256),h=0;h<256;h++)R[h]=h<128?h<<1:h<<1^283;for(var L=[],w=[],D=[[],[],[],[]],S=[[],[],[],[]],k=0,E=0,B=0;B<256;++B){var Z=E^E<<1^E<<2^E<<3^E<<4;L[k]=Z=Z>>>8^255&Z^99,w[Z]=k;var Y=R[k],ae=R[Y],ee=R[ae],ue=257*R[Z]^16843008*Z;D[0][k]=ue<<24|ue>>>8,D[1][k]=ue<<16|ue>>>16,D[2][k]=ue<<8|ue>>>24,D[3][k]=ue,S[0][Z]=(ue=16843009*ee^65537*ae^257*Y^16843008*k)<<24|ue>>>8,S[1][Z]=ue<<16|ue>>>16,S[2][Z]=ue<<8|ue>>>24,S[3][Z]=ue,0===k?k=E=1:(k=Y^R[R[R[ee^Y]]],E^=R[R[E]])}return{SBOX:L,INV_SBOX:w,SUB_MIX:D,INV_SUB_MIX:S}}();function d(R){this._key=e(R),this._reset()}d.blockSize=16,d.keySize=32,d.prototype.blockSize=d.blockSize,d.prototype.keySize=d.keySize,d.prototype._reset=function(){for(var R=this._key,h=R.length,L=h+6,w=4*(L+1),D=[],S=0;S>>24)>>>24]<<24|C.SBOX[k>>>16&255]<<16|C.SBOX[k>>>8&255]<<8|C.SBOX[255&k],k^=a[S/h|0]<<24):h>6&&S%h==4&&(k=C.SBOX[k>>>24]<<24|C.SBOX[k>>>16&255]<<16|C.SBOX[k>>>8&255]<<8|C.SBOX[255&k]),D[S]=D[S-h]^k}for(var E=[],B=0;B>>24]]^C.INV_SUB_MIX[1][C.SBOX[Y>>>16&255]]^C.INV_SUB_MIX[2][C.SBOX[Y>>>8&255]]^C.INV_SUB_MIX[3][C.SBOX[255&Y]]}this._nRounds=L,this._keySchedule=D,this._invKeySchedule=E},d.prototype.encryptBlockRaw=function(R){return M(R=e(R),this._keySchedule,C.SUB_MIX,C.SBOX,this._nRounds)},d.prototype.encryptBlock=function(R){var h=this.encryptBlockRaw(R),L=t.allocUnsafe(16);return L.writeUInt32BE(h[0],0),L.writeUInt32BE(h[1],4),L.writeUInt32BE(h[2],8),L.writeUInt32BE(h[3],12),L},d.prototype.decryptBlock=function(R){var h=(R=e(R))[1];R[1]=R[3],R[3]=h;var L=M(R,this._invKeySchedule,C.INV_SUB_MIX,C.INV_SBOX,this._nRounds),w=t.allocUnsafe(16);return w.writeUInt32BE(L[0],0),w.writeUInt32BE(L[3],4),w.writeUInt32BE(L[2],8),w.writeUInt32BE(L[1],12),w},d.prototype.scrub=function(){f(this._keySchedule),f(this._invKeySchedule),f(this._key)},Be.exports.AES=d},9382:(Be,K,p)=>{var t=p(1899),e=p(3502).Buffer,f=p(1052),M=p(3894),a=p(8857),C=p(8789),d=p(7968);function L(w,D,S,k){f.call(this);var E=e.alloc(4,0);this._cipher=new t.AES(D);var B=this._cipher.encryptBlock(E);this._ghash=new a(B),S=function h(w,D,S){if(12===D.length)return w._finID=e.concat([D,e.from([0,0,0,1])]),e.concat([D,e.from([0,0,0,2])]);var k=new a(S),E=D.length,B=E%16;k.update(D),B&&k.update(e.alloc(B=16-B,0)),k.update(e.alloc(8,0));var Z=8*E,Y=e.alloc(8);Y.writeUIntBE(Z,0,8),k.update(Y),w._finID=k.state;var ae=e.from(w._finID);return d(ae),ae}(this,S,B),this._prev=e.from(S),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=k,this._alen=0,this._len=0,this._mode=w,this._authTag=null,this._called=!1}M(L,f),L.prototype._update=function(w){if(!this._called&&this._alen){var D=16-this._alen%16;D<16&&(D=e.alloc(D,0),this._ghash.update(D))}this._called=!0;var S=this._mode.encrypt(this,w);return this._ghash.update(this._decrypt?w:S),this._len+=w.length,S},L.prototype._final=function(){if(this._decrypt&&!this._authTag)throw new Error("Unsupported state or unable to authenticate data");var w=C(this._ghash.final(8*this._alen,8*this._len),this._cipher.encryptBlock(this._finID));if(this._decrypt&&function R(w,D){var S=0;w.length!==D.length&&S++;for(var k=Math.min(w.length,D.length),E=0;E{var t=p(6900),e=p(856),f=p(4946);K.createCipher=K.Cipher=t.createCipher,K.createCipheriv=K.Cipheriv=t.createCipheriv,K.createDecipher=K.Decipher=e.createDecipher,K.createDecipheriv=K.Decipheriv=e.createDecipheriv,K.listCiphers=K.getCiphers=function M(){return Object.keys(f)}},856:(Be,K,p)=>{var t=p(9382),e=p(3502).Buffer,f=p(9171),M=p(8441),a=p(1052),C=p(1899),d=p(347);function h(k,E,B){a.call(this),this._cache=new L,this._last=void 0,this._cipher=new C.AES(E),this._prev=e.from(B),this._mode=k,this._autopadding=!0}function L(){this.cache=e.allocUnsafe(0)}function D(k,E,B){var Z=f[k.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof B&&(B=e.from(B)),"GCM"!==Z.mode&&B.length!==Z.iv)throw new TypeError("invalid iv length "+B.length);if("string"==typeof E&&(E=e.from(E)),E.length!==Z.key/8)throw new TypeError("invalid key length "+E.length);return"stream"===Z.type?new M(Z.module,E,B,!0):"auth"===Z.type?new t(Z.module,E,B,!0):new h(Z.module,E,B)}p(3894)(h,a),h.prototype._update=function(k){this._cache.add(k);for(var E,B,Z=[];E=this._cache.get(this._autopadding);)B=this._mode.decrypt(this,E),Z.push(B);return e.concat(Z)},h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return function w(k){var E=k[15];if(E<1||E>16)throw new Error("unable to decrypt data");for(var B=-1;++B16)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},L.prototype.flush=function(){if(this.cache.length)return this.cache},K.createDecipher=function S(k,E){var B=f[k.toLowerCase()];if(!B)throw new TypeError("invalid suite type");var Z=d(E,!1,B.key,B.iv);return D(k,Z.key,Z.iv)},K.createDecipheriv=D},6900:(Be,K,p)=>{var t=p(9171),e=p(9382),f=p(3502).Buffer,M=p(8441),a=p(1052),C=p(1899),d=p(347);function h(k,E,B){a.call(this),this._cache=new w,this._cipher=new C.AES(E),this._prev=f.from(B),this._mode=k,this._autopadding=!0}p(3894)(h,a),h.prototype._update=function(k){this._cache.add(k);for(var E,B,Z=[];E=this._cache.get();)B=this._mode.encrypt(this,E),Z.push(B);return f.concat(Z)};var L=f.alloc(16,16);function w(){this.cache=f.allocUnsafe(0)}function D(k,E,B){var Z=t[k.toLowerCase()];if(!Z)throw new TypeError("invalid suite type");if("string"==typeof E&&(E=f.from(E)),E.length!==Z.key/8)throw new TypeError("invalid key length "+E.length);if("string"==typeof B&&(B=f.from(B)),"GCM"!==Z.mode&&B.length!==Z.iv)throw new TypeError("invalid iv length "+B.length);return"stream"===Z.type?new M(Z.module,E,B):"auth"===Z.type?new e(Z.module,E,B):new h(Z.module,E,B)}h.prototype._final=function(){var k=this._cache.flush();if(this._autopadding)return k=this._mode.encrypt(this,k),this._cipher.scrub(),k;if(!k.equals(L))throw this._cipher.scrub(),new Error("data not multiple of block length")},h.prototype.setAutoPadding=function(k){return this._autopadding=!!k,this},w.prototype.add=function(k){this.cache=f.concat([this.cache,k])},w.prototype.get=function(){if(this.cache.length>15){var k=this.cache.slice(0,16);return this.cache=this.cache.slice(16),k}return null},w.prototype.flush=function(){for(var k=16-this.cache.length,E=f.allocUnsafe(k),B=-1;++B{var t=p(3502).Buffer,e=t.alloc(16,0);function M(C){var d=t.allocUnsafe(16);return d.writeUInt32BE(C[0]>>>0,0),d.writeUInt32BE(C[1]>>>0,4),d.writeUInt32BE(C[2]>>>0,8),d.writeUInt32BE(C[3]>>>0,12),d}function a(C){this.h=C,this.state=t.alloc(16,0),this.cache=t.allocUnsafe(0)}a.prototype.ghash=function(C){for(var d=-1;++d0;R--)C[R]=C[R]>>>1|(1&C[R-1])<<31;C[0]=C[0]>>>1,L&&(C[0]=C[0]^225<<24)}this.state=M(d)},a.prototype.update=function(C){this.cache=t.concat([this.cache,C]);for(var d;this.cache.length>=16;)d=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(d)},a.prototype.final=function(C,d){return this.cache.length&&this.ghash(t.concat([this.cache,e],16)),this.ghash(M([0,C,0,d])),this.state},Be.exports=a},7968:Be=>{Be.exports=function K(p){for(var e,t=p.length;t--;){if(255!==(e=p.readUInt8(t))){e++,p.writeUInt8(e,t);break}p.writeUInt8(0,t)}}},4903:(Be,K,p)=>{var t=p(8789);K.encrypt=function(e,f){var M=t(f,e._prev);return e._prev=e._cipher.encryptBlock(M),e._prev},K.decrypt=function(e,f){var M=e._prev;e._prev=f;var a=e._cipher.decryptBlock(f);return t(a,M)}},9885:(Be,K,p)=>{var t=p(3502).Buffer,e=p(8789);function f(M,a,C){var d=a.length,R=e(a,M._cache);return M._cache=M._cache.slice(d),M._prev=t.concat([M._prev,C?a:R]),R}K.encrypt=function(M,a,C){for(var R,d=t.allocUnsafe(0);a.length;){if(0===M._cache.length&&(M._cache=M._cipher.encryptBlock(M._prev),M._prev=t.allocUnsafe(0)),!(M._cache.length<=a.length)){d=t.concat([d,f(M,a,C)]);break}d=t.concat([d,f(M,a.slice(0,R=M._cache.length),C)]),a=a.slice(R)}return d}},6531:(Be,K,p)=>{var t=p(3502).Buffer;function e(M,a,C){for(var w,D,R=-1,L=0;++R<8;)L+=(128&(D=M._cipher.encryptBlock(M._prev)[0]^(w=a&1<<7-R?128:0)))>>R%8,M._prev=f(M._prev,C?w:D);return L}function f(M,a){var C=M.length,d=-1,R=t.allocUnsafe(M.length);for(M=t.concat([M,t.from([a])]);++d>7;return R}K.encrypt=function(M,a,C){for(var d=a.length,R=t.allocUnsafe(d),h=-1;++h{var t=p(3502).Buffer;function e(f,M,a){var d=f._cipher.encryptBlock(f._prev)[0]^M;return f._prev=t.concat([f._prev.slice(1),t.from([a?M:d])]),d}K.encrypt=function(f,M,a){for(var C=M.length,d=t.allocUnsafe(C),R=-1;++R{var t=p(8789),e=p(3502).Buffer,f=p(7968);function M(C){var d=C._cipher.encryptBlockRaw(C._prev);return f(C._prev),d}K.encrypt=function(C,d){var R=Math.ceil(d.length/16),h=C._cache.length;C._cache=e.concat([C._cache,e.allocUnsafe(16*R)]);for(var L=0;L{K.encrypt=function(p,t){return p._cipher.encryptBlock(t)},K.decrypt=function(p,t){return p._cipher.decryptBlock(t)}},9171:(Be,K,p)=>{var t={ECB:p(1704),CBC:p(4903),CFB:p(9885),CFB8:p(1641),CFB1:p(6531),OFB:p(6816),CTR:p(1150),GCM:p(1150)},e=p(4946);for(var f in e)e[f].module=t[e[f].mode];Be.exports=e},6816:(Be,K,p)=>{var t=p(8789);function e(f){return f._prev=f._cipher.encryptBlock(f._prev),f._prev}K.encrypt=function(f,M){for(;f._cache.length{var t=p(1899),e=p(3502).Buffer,f=p(1052);function a(C,d,R,h){f.call(this),this._cipher=new t.AES(d),this._prev=e.from(R),this._cache=e.allocUnsafe(0),this._secCache=e.allocUnsafe(0),this._decrypt=h,this._mode=C}p(3894)(a,f),a.prototype._update=function(C){return this._mode.encrypt(this,C,this._decrypt)},a.prototype._final=function(){this._cipher.scrub()},Be.exports=a},5255:(Be,K,p)=>{var t=p(9004),e=p(4330),f=p(9171),M=p(1115),a=p(347);function R(w,D,S){if(w=w.toLowerCase(),f[w])return e.createCipheriv(w,D,S);if(M[w])return new t({key:D,iv:S,mode:w});throw new TypeError("invalid suite type")}function h(w,D,S){if(w=w.toLowerCase(),f[w])return e.createDecipheriv(w,D,S);if(M[w])return new t({key:D,iv:S,mode:w,decrypt:!0});throw new TypeError("invalid suite type")}K.createCipher=K.Cipher=function C(w,D){var S,k;if(w=w.toLowerCase(),f[w])S=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");S=8*M[w].key,k=M[w].iv}var E=a(D,!1,S,k);return R(w,E.key,E.iv)},K.createCipheriv=K.Cipheriv=R,K.createDecipher=K.Decipher=function d(w,D){var S,k;if(w=w.toLowerCase(),f[w])S=f[w].key,k=f[w].iv;else{if(!M[w])throw new TypeError("invalid suite type");S=8*M[w].key,k=M[w].iv}var E=a(D,!1,S,k);return h(w,E.key,E.iv)},K.createDecipheriv=K.Decipheriv=h,K.listCiphers=K.getCiphers=function L(){return Object.keys(M).concat(e.getCiphers())}},9004:(Be,K,p)=>{var t=p(1052),e=p(3684),f=p(3894),M=p(3502).Buffer,a={"des-ede3-cbc":e.CBC.instantiate(e.EDE),"des-ede3":e.EDE,"des-ede-cbc":e.CBC.instantiate(e.EDE),"des-ede":e.EDE,"des-cbc":e.CBC.instantiate(e.DES),"des-ecb":e.DES};function C(d){t.call(this);var L,R=d.mode.toLowerCase(),h=a[R];L=d.decrypt?"decrypt":"encrypt";var w=d.key;M.isBuffer(w)||(w=M.from(w)),("des-ede"===R||"des-ede-cbc"===R)&&(w=M.concat([w,w.slice(0,8)]));var D=d.iv;M.isBuffer(D)||(D=M.from(D)),this._des=h.create({key:w,iv:D,type:L})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],Be.exports=C,f(C,t),C.prototype._update=function(d){return M.from(this._des.update(d))},C.prototype._final=function(){return M.from(this._des.final())}},1115:(Be,K)=>{K["des-ecb"]={key:8,iv:0},K["des-cbc"]=K.des={key:8,iv:8},K["des-ede3-cbc"]=K.des3={key:24,iv:8},K["des-ede3"]={key:24,iv:0},K["des-ede-cbc"]={key:16,iv:8},K["des-ede"]={key:16,iv:0}},8466:(Be,K,p)=>{var t=p(8538),e=p(3753);function M(C){var R,d=C.modulus.byteLength();do{R=new t(e(d))}while(R.cmp(C.modulus)>=0||!R.umod(C.prime1)||!R.umod(C.prime2));return R}function a(C,d){var R=function f(C){var d=M(C);return{blinder:d.toRed(t.mont(C.modulus)).redPow(new t(C.publicExponent)).fromRed(),unblinder:d.invm(C.modulus)}}(d),h=d.modulus.byteLength(),L=new t(C).mul(R.blinder).umod(d.modulus),w=L.toRed(t.mont(d.prime1)),D=L.toRed(t.mont(d.prime2)),S=d.coefficient,k=d.prime1,E=d.prime2,B=w.redPow(d.exponent1).fromRed(),Z=D.redPow(d.exponent2).fromRed(),Y=B.isub(Z).imul(S).umod(k).imul(E);return Z.iadd(Y).imul(R.unblinder).umod(d.modulus).toArrayLike(Buffer,"be",h)}a.getr=M,Be.exports=a},7793:(Be,K,p)=>{Be.exports=p(5207)},3923:(Be,K,p)=>{var t=p(3502).Buffer,e=p(6386),f=p(5685),M=p(3894),a=p(9947),C=p(3946),d=p(5207);function R(D){f.Writable.call(this);var S=d[D];if(!S)throw new Error("Unknown message digest");this._hashType=S.hash,this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function h(D){f.Writable.call(this);var S=d[D];if(!S)throw new Error("Unknown message digest");this._hash=e(S.hash),this._tag=S.id,this._signType=S.sign}function L(D){return new R(D)}function w(D){return new h(D)}Object.keys(d).forEach(function(D){d[D].id=t.from(d[D].id,"hex"),d[D.toLowerCase()]=d[D]}),M(R,f.Writable),R.prototype._write=function(S,k,E){this._hash.update(S),E()},R.prototype.update=function(S,k){return"string"==typeof S&&(S=t.from(S,k)),this._hash.update(S),this},R.prototype.sign=function(S,k){this.end();var E=this._hash.digest(),B=a(E,S,this._hashType,this._signType,this._tag);return k?B.toString(k):B},M(h,f.Writable),h.prototype._write=function(S,k,E){this._hash.update(S),E()},h.prototype.update=function(S,k){return"string"==typeof S&&(S=t.from(S,k)),this._hash.update(S),this},h.prototype.verify=function(S,k,E){"string"==typeof k&&(k=t.from(k,E)),this.end();var B=this._hash.digest();return C(k,B,S,this._signType,this._tag)},Be.exports={Sign:L,Verify:w,createSign:L,createVerify:w}},9947:(Be,K,p)=>{var t=p(3502).Buffer,e=p(4529),f=p(8466),M=p(7715).ec,a=p(8538),C=p(2772),d=p(1308);function D(Z,Y,ae,ee){if((Z=t.from(Z.toArray())).length0&&ae.ishrn(ee),ae}function E(Z,Y,ae){var ee,ue;do{for(ee=t.alloc(0);8*ee.length{var t=p(3502).Buffer,e=p(8538),f=p(7715).ec,M=p(2772),a=p(1308);function h(L,w){if(L.cmpn(0)<=0)throw new Error("invalid sig");if(L.cmp(w)>=w)throw new Error("invalid sig")}Be.exports=function C(L,w,D,S,k){var E=M(D);if("ec"===E.type){if("ecdsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");return function d(L,w,D){var S=a[D.data.algorithm.curve.join(".")];if(!S)throw new Error("unknown curve "+D.data.algorithm.curve.join("."));return new f(S).verify(w,L,D.data.subjectPrivateKey.data)}(L,w,E)}if("dsa"===E.type){if("dsa"!==S)throw new Error("wrong public key type");return function R(L,w,D){var S=D.data.p,k=D.data.q,E=D.data.g,B=D.data.pub_key,Z=M.signature.decode(L,"der"),Y=Z.s,ae=Z.r;h(Y,k),h(ae,k);var ee=e.mont(S),ue=Y.invm(k);return 0===E.toRed(ee).redPow(new e(w).mul(ue).mod(k)).fromRed().mul(B.toRed(ee).redPow(ae.mul(ue).mod(k)).fromRed()).mod(S).mod(k).cmp(ae)}(L,w,E)}if("rsa"!==S&&"ecdsa/rsa"!==S)throw new Error("wrong public key type");w=t.concat([k,w]);for(var B=E.modulus.byteLength(),Z=[1],Y=0;w.length+Z.length+2{Be.exports=function(p,t){for(var e=Math.min(p.length,t.length),f=new Buffer(e),M=0;M{"use strict";var t=p(5343),e=p(8461),f="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;K.Buffer=d,K.SlowBuffer=function Y(Oe){return+Oe!=Oe&&(Oe=0),d.alloc(+Oe)},K.INSPECT_MAX_BYTES=50;var M=2147483647;function C(Oe){if(Oe>M)throw new RangeError('The value "'+Oe+'" is invalid for option "size"');var we=new Uint8Array(Oe);return Object.setPrototypeOf(we,d.prototype),we}function d(Oe,we,ce){if("number"==typeof Oe){if("string"==typeof we)throw new TypeError('The "string" argument must be of type string. Received type number');return w(Oe)}return R(Oe,we,ce)}function R(Oe,we,ce){if("string"==typeof Oe)return function D(Oe,we){if(("string"!=typeof we||""===we)&&(we="utf8"),!d.isEncoding(we))throw new TypeError("Unknown encoding: "+we);var ce=0|ae(Oe,we),Te=C(ce),xe=Te.write(Oe,we);return xe!==ce&&(Te=Te.slice(0,xe)),Te}(Oe,we);if(ArrayBuffer.isView(Oe))return function k(Oe){if(J(Oe,Uint8Array)){var we=new Uint8Array(Oe);return E(we.buffer,we.byteOffset,we.byteLength)}return S(Oe)}(Oe);if(null==Oe)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe);if(J(Oe,ArrayBuffer)||Oe&&J(Oe.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(J(Oe,SharedArrayBuffer)||Oe&&J(Oe.buffer,SharedArrayBuffer)))return E(Oe,we,ce);if("number"==typeof Oe)throw new TypeError('The "value" argument must not be of type number. Received type number');var Te=Oe.valueOf&&Oe.valueOf();if(null!=Te&&Te!==Oe)return d.from(Te,we,ce);var xe=function B(Oe){if(d.isBuffer(Oe)){var we=0|Z(Oe.length),ce=C(we);return 0===ce.length||Oe.copy(ce,0,0,we),ce}return void 0!==Oe.length?"number"!=typeof Oe.length||Ie(Oe.length)?C(0):S(Oe):"Buffer"===Oe.type&&Array.isArray(Oe.data)?S(Oe.data):void 0}(Oe);if(xe)return xe;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof Oe[Symbol.toPrimitive])return d.from(Oe[Symbol.toPrimitive]("string"),we,ce);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof Oe)}function h(Oe){if("number"!=typeof Oe)throw new TypeError('"size" argument must be of type number');if(Oe<0)throw new RangeError('The value "'+Oe+'" is invalid for option "size"')}function w(Oe){return h(Oe),C(Oe<0?0:0|Z(Oe))}function S(Oe){for(var we=Oe.length<0?0:0|Z(Oe.length),ce=C(we),Te=0;Te=M)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+M.toString(16)+" bytes");return 0|Oe}function ae(Oe,we){if(d.isBuffer(Oe))return Oe.length;if(ArrayBuffer.isView(Oe)||J(Oe,ArrayBuffer))return Oe.byteLength;if("string"!=typeof Oe)throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof Oe);var ce=Oe.length,Te=arguments.length>2&&!0===arguments[2];if(!Te&&0===ce)return 0;for(var xe=!1;;)switch(we){case"ascii":case"latin1":case"binary":return ce;case"utf8":case"utf-8":return Pe(Oe).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*ce;case"hex":return ce>>>1;case"base64":return Ve(Oe).length;default:if(xe)return Te?-1:Pe(Oe).length;we=(""+we).toLowerCase(),xe=!0}}function ee(Oe,we,ce){var Te=!1;if((void 0===we||we<0)&&(we=0),we>this.length||((void 0===ce||ce>this.length)&&(ce=this.length),ce<=0)||(ce>>>=0)<=(we>>>=0))return"";for(Oe||(Oe="utf8");;)switch(Oe){case"hex":return y(this,we,ce);case"utf8":case"utf-8":return u(this,we,ce);case"ascii":return T(this,we,ce);case"latin1":case"binary":return I(this,we,ce);case"base64":return r(this,we,ce);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n(this,we,ce);default:if(Te)throw new TypeError("Unknown encoding: "+Oe);Oe=(Oe+"").toLowerCase(),Te=!0}}function ue(Oe,we,ce){var Te=Oe[we];Oe[we]=Oe[ce],Oe[ce]=Te}function ne(Oe,we,ce,Te,xe){if(0===Oe.length)return-1;if("string"==typeof ce?(Te=ce,ce=0):ce>2147483647?ce=2147483647:ce<-2147483648&&(ce=-2147483648),Ie(ce=+ce)&&(ce=xe?0:Oe.length-1),ce<0&&(ce=Oe.length+ce),ce>=Oe.length){if(xe)return-1;ce=Oe.length-1}else if(ce<0){if(!xe)return-1;ce=0}if("string"==typeof we&&(we=d.from(we,Te)),d.isBuffer(we))return 0===we.length?-1:re(Oe,we,ce,Te,xe);if("number"==typeof we)return we&=255,"function"==typeof Uint8Array.prototype.indexOf?xe?Uint8Array.prototype.indexOf.call(Oe,we,ce):Uint8Array.prototype.lastIndexOf.call(Oe,we,ce):re(Oe,[we],ce,Te,xe);throw new TypeError("val must be string, number or Buffer")}function re(Oe,we,ce,Te,xe){var Q,W=1,te=Oe.length,Ce=we.length;if(void 0!==Te&&("ucs2"===(Te=String(Te).toLowerCase())||"ucs-2"===Te||"utf16le"===Te||"utf-16le"===Te)){if(Oe.length<2||we.length<2)return-1;W=2,te/=2,Ce/=2,ce/=2}function fe(di,Yt){return 1===W?di[Yt]:di.readUInt16BE(Yt*W)}if(xe){var pt=-1;for(Q=ce;Qte&&(ce=te-Ce),Q=ce;Q>=0;Q--){for(var tt=!0,Dt=0;Dtxe&&(Te=xe):Te=xe;var W=we.length;Te>W/2&&(Te=W/2);for(var te=0;te>8,W.push(ce%256),W.push(Te);return W}(we,Oe.length-ce),Oe,ce,Te)}function r(Oe,we,ce){return t.fromByteArray(0===we&&ce===Oe.length?Oe:Oe.slice(we,ce))}function u(Oe,we,ce){ce=Math.min(Oe.length,ce);for(var Te=[],xe=we;xe239?4:W>223?3:W>191?2:1;if(xe+Ce<=ce)switch(Ce){case 1:W<128&&(te=W);break;case 2:128==(192&(fe=Oe[xe+1]))&&(tt=(31&W)<<6|63&fe)>127&&(te=tt);break;case 3:Q=Oe[xe+2],128==(192&(fe=Oe[xe+1]))&&128==(192&Q)&&(tt=(15&W)<<12|(63&fe)<<6|63&Q)>2047&&(tt<55296||tt>57343)&&(te=tt);break;case 4:Q=Oe[xe+2],pt=Oe[xe+3],128==(192&(fe=Oe[xe+1]))&&128==(192&Q)&&128==(192&pt)&&(tt=(15&W)<<18|(63&fe)<<12|(63&Q)<<6|63&pt)>65535&&tt<1114112&&(te=tt)}null===te?(te=65533,Ce=1):te>65535&&(Te.push((te-=65536)>>>10&1023|55296),te=56320|1023&te),Te.push(te),xe+=Ce}return function v(Oe){var we=Oe.length;if(we<=c)return String.fromCharCode.apply(String,Oe);for(var ce="",Te=0;Texe.length?d.from(te).copy(xe,W):Uint8Array.prototype.set.call(xe,te,W);else{if(!d.isBuffer(te))throw new TypeError('"list" argument must be an Array of Buffers');te.copy(xe,W)}W+=te.length}return xe},d.byteLength=ae,d.prototype._isBuffer=!0,d.prototype.swap16=function(){var we=this.length;if(we%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var ce=0;cece&&(we+=" ... "),""},f&&(d.prototype[f]=d.prototype.inspect),d.prototype.compare=function(we,ce,Te,xe,W){if(J(we,Uint8Array)&&(we=d.from(we,we.offset,we.byteLength)),!d.isBuffer(we))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof we);if(void 0===ce&&(ce=0),void 0===Te&&(Te=we?we.length:0),void 0===xe&&(xe=0),void 0===W&&(W=this.length),ce<0||Te>we.length||xe<0||W>this.length)throw new RangeError("out of range index");if(xe>=W&&ce>=Te)return 0;if(xe>=W)return-1;if(ce>=Te)return 1;if(this===we)return 0;for(var te=(W>>>=0)-(xe>>>=0),Ce=(Te>>>=0)-(ce>>>=0),fe=Math.min(te,Ce),Q=this.slice(xe,W),pt=we.slice(ce,Te),tt=0;tt>>=0,isFinite(Te)?(Te>>>=0,void 0===xe&&(xe="utf8")):(xe=Te,Te=void 0)}var W=this.length-ce;if((void 0===Te||Te>W)&&(Te=W),we.length>0&&(Te<0||ce<0)||ce>this.length)throw new RangeError("Attempt to write outside buffer bounds");xe||(xe="utf8");for(var te=!1;;)switch(xe){case"hex":return ge(this,we,ce,Te);case"utf8":case"utf-8":return q(this,we,ce,Te);case"ascii":case"latin1":case"binary":return _e(this,we,ce,Te);case"base64":return x(this,we,ce,Te);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return i(this,we,ce,Te);default:if(te)throw new TypeError("Unknown encoding: "+xe);xe=(""+xe).toLowerCase(),te=!0}},d.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var c=4096;function T(Oe,we,ce){var Te="";ce=Math.min(Oe.length,ce);for(var xe=we;xeTe)&&(ce=Te);for(var xe="",W=we;Wce)throw new RangeError("Trying to access beyond buffer length")}function V(Oe,we,ce,Te,xe,W){if(!d.isBuffer(Oe))throw new TypeError('"buffer" argument must be a Buffer instance');if(we>xe||weOe.length)throw new RangeError("Index out of range")}function N(Oe,we,ce,Te,xe,W){if(ce+Te>Oe.length)throw new RangeError("Index out of range");if(ce<0)throw new RangeError("Index out of range")}function H(Oe,we,ce,Te,xe){return we=+we,ce>>>=0,xe||N(Oe,0,ce,4),e.write(Oe,we,ce,Te,23,4),ce+4}function X(Oe,we,ce,Te,xe){return we=+we,ce>>>=0,xe||N(Oe,0,ce,8),e.write(Oe,we,ce,Te,52,8),ce+8}d.prototype.slice=function(we,ce){var Te=this.length;(we=~~we)<0?(we+=Te)<0&&(we=0):we>Te&&(we=Te),(ce=void 0===ce?Te:~~ce)<0?(ce+=Te)<0&&(ce=0):ce>Te&&(ce=Te),ce>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=this[we],W=1,te=0;++te>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=this[we+--ce],W=1;ce>0&&(W*=256);)xe+=this[we+--ce]*W;return xe},d.prototype.readUint8=d.prototype.readUInt8=function(we,ce){return we>>>=0,ce||_(we,1,this.length),this[we]},d.prototype.readUint16LE=d.prototype.readUInt16LE=function(we,ce){return we>>>=0,ce||_(we,2,this.length),this[we]|this[we+1]<<8},d.prototype.readUint16BE=d.prototype.readUInt16BE=function(we,ce){return we>>>=0,ce||_(we,2,this.length),this[we]<<8|this[we+1]},d.prototype.readUint32LE=d.prototype.readUInt32LE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),(this[we]|this[we+1]<<8|this[we+2]<<16)+16777216*this[we+3]},d.prototype.readUint32BE=d.prototype.readUInt32BE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),16777216*this[we]+(this[we+1]<<16|this[we+2]<<8|this[we+3])},d.prototype.readIntLE=function(we,ce,Te){we>>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=this[we],W=1,te=0;++te=(W*=128)&&(xe-=Math.pow(2,8*ce)),xe},d.prototype.readIntBE=function(we,ce,Te){we>>>=0,ce>>>=0,Te||_(we,ce,this.length);for(var xe=ce,W=1,te=this[we+--xe];xe>0&&(W*=256);)te+=this[we+--xe]*W;return te>=(W*=128)&&(te-=Math.pow(2,8*ce)),te},d.prototype.readInt8=function(we,ce){return we>>>=0,ce||_(we,1,this.length),128&this[we]?-1*(255-this[we]+1):this[we]},d.prototype.readInt16LE=function(we,ce){we>>>=0,ce||_(we,2,this.length);var Te=this[we]|this[we+1]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt16BE=function(we,ce){we>>>=0,ce||_(we,2,this.length);var Te=this[we+1]|this[we]<<8;return 32768&Te?4294901760|Te:Te},d.prototype.readInt32LE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),this[we]|this[we+1]<<8|this[we+2]<<16|this[we+3]<<24},d.prototype.readInt32BE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),this[we]<<24|this[we+1]<<16|this[we+2]<<8|this[we+3]},d.prototype.readFloatLE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),e.read(this,we,!0,23,4)},d.prototype.readFloatBE=function(we,ce){return we>>>=0,ce||_(we,4,this.length),e.read(this,we,!1,23,4)},d.prototype.readDoubleLE=function(we,ce){return we>>>=0,ce||_(we,8,this.length),e.read(this,we,!0,52,8)},d.prototype.readDoubleBE=function(we,ce){return we>>>=0,ce||_(we,8,this.length),e.read(this,we,!1,52,8)},d.prototype.writeUintLE=d.prototype.writeUIntLE=function(we,ce,Te,xe){we=+we,ce>>>=0,Te>>>=0,xe||V(this,we,ce,Te,Math.pow(2,8*Te)-1,0);var te=1,Ce=0;for(this[ce]=255&we;++Ce>>=0,Te>>>=0,xe||V(this,we,ce,Te,Math.pow(2,8*Te)-1,0);var te=Te-1,Ce=1;for(this[ce+te]=255&we;--te>=0&&(Ce*=256);)this[ce+te]=we/Ce&255;return ce+Te},d.prototype.writeUint8=d.prototype.writeUInt8=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,1,255,0),this[ce]=255&we,ce+1},d.prototype.writeUint16LE=d.prototype.writeUInt16LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,65535,0),this[ce]=255&we,this[ce+1]=we>>>8,ce+2},d.prototype.writeUint16BE=d.prototype.writeUInt16BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,65535,0),this[ce]=we>>>8,this[ce+1]=255&we,ce+2},d.prototype.writeUint32LE=d.prototype.writeUInt32LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,4294967295,0),this[ce+3]=we>>>24,this[ce+2]=we>>>16,this[ce+1]=we>>>8,this[ce]=255&we,ce+4},d.prototype.writeUint32BE=d.prototype.writeUInt32BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,4294967295,0),this[ce]=we>>>24,this[ce+1]=we>>>16,this[ce+2]=we>>>8,this[ce+3]=255&we,ce+4},d.prototype.writeIntLE=function(we,ce,Te,xe){if(we=+we,ce>>>=0,!xe){var W=Math.pow(2,8*Te-1);V(this,we,ce,Te,W-1,-W)}var te=0,Ce=1,fe=0;for(this[ce]=255&we;++te>0)-fe&255;return ce+Te},d.prototype.writeIntBE=function(we,ce,Te,xe){if(we=+we,ce>>>=0,!xe){var W=Math.pow(2,8*Te-1);V(this,we,ce,Te,W-1,-W)}var te=Te-1,Ce=1,fe=0;for(this[ce+te]=255&we;--te>=0&&(Ce*=256);)we<0&&0===fe&&0!==this[ce+te+1]&&(fe=1),this[ce+te]=(we/Ce>>0)-fe&255;return ce+Te},d.prototype.writeInt8=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,1,127,-128),we<0&&(we=255+we+1),this[ce]=255&we,ce+1},d.prototype.writeInt16LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,32767,-32768),this[ce]=255&we,this[ce+1]=we>>>8,ce+2},d.prototype.writeInt16BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,2,32767,-32768),this[ce]=we>>>8,this[ce+1]=255&we,ce+2},d.prototype.writeInt32LE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,2147483647,-2147483648),this[ce]=255&we,this[ce+1]=we>>>8,this[ce+2]=we>>>16,this[ce+3]=we>>>24,ce+4},d.prototype.writeInt32BE=function(we,ce,Te){return we=+we,ce>>>=0,Te||V(this,we,ce,4,2147483647,-2147483648),we<0&&(we=4294967295+we+1),this[ce]=we>>>24,this[ce+1]=we>>>16,this[ce+2]=we>>>8,this[ce+3]=255&we,ce+4},d.prototype.writeFloatLE=function(we,ce,Te){return H(this,we,ce,!0,Te)},d.prototype.writeFloatBE=function(we,ce,Te){return H(this,we,ce,!1,Te)},d.prototype.writeDoubleLE=function(we,ce,Te){return X(this,we,ce,!0,Te)},d.prototype.writeDoubleBE=function(we,ce,Te){return X(this,we,ce,!1,Te)},d.prototype.copy=function(we,ce,Te,xe){if(!d.isBuffer(we))throw new TypeError("argument should be a Buffer");if(Te||(Te=0),!xe&&0!==xe&&(xe=this.length),ce>=we.length&&(ce=we.length),ce||(ce=0),xe>0&&xe=this.length)throw new RangeError("Index out of range");if(xe<0)throw new RangeError("sourceEnd out of bounds");xe>this.length&&(xe=this.length),we.length-ce>>=0,Te=void 0===Te?this.length:Te>>>0,we||(we=0),"number"==typeof we)for(te=ce;te55295&&ce<57344){if(!xe){if(ce>56319){(we-=3)>-1&&W.push(239,191,189);continue}if(te+1===Te){(we-=3)>-1&&W.push(239,191,189);continue}xe=ce;continue}if(ce<56320){(we-=3)>-1&&W.push(239,191,189),xe=ce;continue}ce=65536+(xe-55296<<10|ce-56320)}else xe&&(we-=3)>-1&&W.push(239,191,189);if(xe=null,ce<128){if((we-=1)<0)break;W.push(ce)}else if(ce<2048){if((we-=2)<0)break;W.push(ce>>6|192,63&ce|128)}else if(ce<65536){if((we-=3)<0)break;W.push(ce>>12|224,ce>>6&63|128,63&ce|128)}else{if(!(ce<1114112))throw new Error("Invalid code point");if((we-=4)<0)break;W.push(ce>>18|240,ce>>12&63|128,ce>>6&63|128,63&ce|128)}}return W}function Ve(Oe){return t.toByteArray(function be(Oe){if((Oe=(Oe=Oe.split("=")[0]).trim().replace(he,"")).length<2)return"";for(;Oe.length%4!=0;)Oe+="=";return Oe}(Oe))}function Me(Oe,we,ce,Te){for(var xe=0;xe=we.length||xe>=Oe.length);++xe)we[xe+ce]=Oe[xe];return xe}function J(Oe,we){return Oe instanceof we||null!=Oe&&null!=Oe.constructor&&null!=Oe.constructor.name&&Oe.constructor.name===we.name}function Ie(Oe){return Oe!=Oe}var ut=function(){for(var Oe="0123456789abcdef",we=new Array(256),ce=0;ce<16;++ce)for(var Te=16*ce,xe=0;xe<16;++xe)we[Te+xe]=Oe[ce]+Oe[xe];return we}()},1052:(Be,K,p)=>{var t=p(3502).Buffer,e=p(295).Transform,f=p(3054).s;function a(C){e.call(this),this.hashMode="string"==typeof C,this.hashMode?this[C]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}p(3894)(a,e),a.prototype.update=function(C,d,R){"string"==typeof C&&(C=t.from(C,d));var h=this._update(C);return this.hashMode?this:(R&&(h=this._toString(h,R)),h)},a.prototype.setAutoPadding=function(){},a.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},a.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},a.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},a.prototype._transform=function(C,d,R){var h;try{this.hashMode?this._update(C):this.push(this._update(C))}catch(L){h=L}finally{R(h)}},a.prototype._flush=function(C){var d;try{this.push(this.__final())}catch(R){d=R}C(d)},a.prototype._finalOrDigest=function(C){var d=this.__final()||t.alloc(0);return C&&(d=this._toString(d,C,!0)),d},a.prototype._toString=function(C,d,R){if(this._decoder||(this._decoder=new f(d),this._encoding=d),this._encoding!==d)throw new Error("can't switch encodings");var h=this._decoder.write(C);return R&&(h+=this._decoder.end()),h},Be.exports=a},7293:(Be,K,p)=>{"use strict";const t=p(4315),e=p(2872),f=p(717);Be.exports=function M(d,R){switch(e(d)){case"object":return function a(d,R){if("function"==typeof R)return R(d);if(R||f(d)){const h=new d.constructor;for(let L in d)h[L]=M(d[L],R);return h}return d}(d,R);case"array":return function C(d,R){const h=new d.constructor(d.length);for(let L=0;LM?f:Array(M-f.length+1).join("0")+f}(M.toString(16),2)}).join("")}(f)},hexToBytes:function(f){if(f.length%2==1)throw new Error("hexToBytes can't have a string with an odd number of characters.");return 0===f.indexOf("0x")&&(f=f.slice(2)),f.match(/../g).map(function(M){return parseInt(M,16)})}};Be.exports?Be.exports=p:K.convertHex=p}(this)},5612:function(Be){!function(K){"use strict";var p={bytesToString:function(t){return t.map(function(e){return String.fromCharCode(e)}).join("")},stringToBytes:function(t){return t.split("").map(function(e){return e.charCodeAt(0)})}};p.UTF8={bytesToString:function(t){return decodeURIComponent(escape(p.bytesToString(t)))},stringToBytes:function(t){return p.stringToBytes(unescape(encodeURIComponent(t)))}},Be.exports?Be.exports=p:K.convertString=p}(this)},4746:(Be,K,p)=>{var t=p(7715),e=p(6422);Be.exports=function(d){return new M(d)};var f={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 M(C){this.curveType=f[C],this.curveType||(this.curveType={name:C}),this.curve=new t.ec(this.curveType.name),this.keys=void 0}function a(C,d,R){Array.isArray(C)||(C=C.toArray());var h=new Buffer(C);if(R&&h.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Si=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Si,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},6386:(Be,K,p)=>{"use strict";var t=p(3894),e=p(8095),f=p(5634),M=p(5244),a=p(1052);function C(d){a.call(this,"digest"),this._hash=d}t(C,a),C.prototype._update=function(d){this._hash.update(d)},C.prototype._final=function(){return this._hash.digest()},Be.exports=function(R){return"md5"===(R=R.toLowerCase())?new e:"rmd160"===R||"ripemd160"===R?new f:new C(M(R))}},5640:(Be,K,p)=>{var t=p(8095);Be.exports=function(e){return(new t).update(e).digest()}},4529:(Be,K,p)=>{"use strict";var t=p(3894),e=p(7309),f=p(1052),M=p(3502).Buffer,a=p(5640),C=p(5634),d=p(5244),R=M.alloc(128);function h(L,w){f.call(this,"digest"),"string"==typeof w&&(w=M.from(w));var D="sha512"===L||"sha384"===L?128:64;this._alg=L,this._key=w,w.length>D?w=("rmd160"===L?new C:d(L)).update(w).digest():w.length{"use strict";var t=p(3894),e=p(3502).Buffer,f=p(1052),M=e.alloc(128),a=64;function C(d,R){f.call(this,"digest"),"string"==typeof R&&(R=e.from(R)),this._alg=d,this._key=R,R.length>a?R=d(R):R.length{"use strict";K.randomBytes=K.rng=K.pseudoRandomBytes=K.prng=p(3753),K.createHash=K.Hash=p(6386),K.createHmac=K.Hmac=p(4529);var t=p(7793),e=Object.keys(t),f=["sha1","sha224","sha256","sha384","sha512","md5","rmd160"].concat(e);K.getHashes=function(){return f};var M=p(9357);K.pbkdf2=M.pbkdf2,K.pbkdf2Sync=M.pbkdf2Sync;var a=p(5255);K.Cipher=a.Cipher,K.createCipher=a.createCipher,K.Cipheriv=a.Cipheriv,K.createCipheriv=a.createCipheriv,K.Decipher=a.Decipher,K.createDecipher=a.createDecipher,K.Decipheriv=a.Decipheriv,K.createDecipheriv=a.createDecipheriv,K.getCiphers=a.getCiphers,K.listCiphers=a.listCiphers;var C=p(8829);K.DiffieHellmanGroup=C.DiffieHellmanGroup,K.createDiffieHellmanGroup=C.createDiffieHellmanGroup,K.getDiffieHellman=C.getDiffieHellman,K.createDiffieHellman=C.createDiffieHellman,K.DiffieHellman=C.DiffieHellman;var d=p(3923);K.createSign=d.createSign,K.Sign=d.Sign,K.createVerify=d.createVerify,K.Verify=d.Verify,K.createECDH=p(4746);var R=p(3701);K.publicEncrypt=R.publicEncrypt,K.privateEncrypt=R.privateEncrypt,K.publicDecrypt=R.publicDecrypt,K.privateDecrypt=R.privateDecrypt;var h=p(4275);K.randomFill=h.randomFill,K.randomFillSync=h.randomFillSync,K.createCredentials=function(){throw new Error(["sorry, createCredentials is not implemented yet","we accept pull requests","https://github.com/crypto-browserify/crypto-browserify"].join("\n"))},K.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}},3684:(Be,K,p)=>{"use strict";K.utils=p(7451),K.Cipher=p(8170),K.DES=p(4631),K.CBC=p(9454),K.EDE=p(1862)},9454:(Be,K,p)=>{"use strict";var t=p(2391),e=p(3894),f={};function M(C){t.equal(C.length,8,"Invalid IV length"),this.iv=new Array(8);for(var d=0;d{"use strict";var t=p(2391);function e(f){this.options=f,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}Be.exports=e,e.prototype._init=function(){},e.prototype.update=function(M){return 0===M.length?[]:"decrypt"===this.type?this._updateDecrypt(M):this._updateEncrypt(M)},e.prototype._buffer=function(M,a){for(var C=Math.min(this.buffer.length-this.bufferOff,M.length-a),d=0;d0;d--)a+=this._buffer(M,a),C+=this._flushBuffer(R,C);return a+=this._buffer(M,a),R},e.prototype.final=function(M){var a,C;return M&&(a=this.update(M)),C="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),a?a.concat(C):C},e.prototype._pad=function(M,a){if(0===a)return!1;for(;a{"use strict";var t=p(2391),e=p(3894),f=p(7451),M=p(8170);function a(){this.tmp=new Array(2),this.keys=null}function C(R){M.call(this,R);var h=new a;this._desState=h,this.deriveKeys(h,R.key)}e(C,M),Be.exports=C,C.create=function(h){return new C(h)};var d=[1,1,2,2,2,2,2,2,1,2,2,2,2,2,2,1];C.prototype.deriveKeys=function(h,L){h.keys=new Array(32),t.equal(L.length,this.blockSize,"Invalid key length");var w=f.readUInt32BE(L,0),D=f.readUInt32BE(L,4);f.pc1(w,D,h.tmp,0),w=h.tmp[0],D=h.tmp[1];for(var S=0;S>>1];w=f.r28shl(w,k),D=f.r28shl(D,k),f.pc2(w,D,h.keys,S)}},C.prototype._update=function(h,L,w,D){var S=this._desState,k=f.readUInt32BE(h,L),E=f.readUInt32BE(h,L+4);f.ip(k,E,S.tmp,0),k=S.tmp[0],E=S.tmp[1],"encrypt"===this.type?this._encrypt(S,k,E,S.tmp,0):this._decrypt(S,k,E,S.tmp,0),E=S.tmp[1],f.writeUInt32BE(w,k=S.tmp[0],D),f.writeUInt32BE(w,E,D+4)},C.prototype._pad=function(h,L){for(var w=h.length-L,D=L;D>>0,k=ue}f.rip(E,k,D,S)},C.prototype._decrypt=function(h,L,w,D,S){for(var k=w,E=L,B=h.keys.length-2;B>=0;B-=2){var Z=h.keys[B],Y=h.keys[B+1];f.expand(k,h.tmp,0);var ae=f.substitute(Z^=h.tmp[0],Y^=h.tmp[1]),ue=k;k=(E^f.permute(ae))>>>0,E=ue}f.rip(k,E,D,S)}},1862:(Be,K,p)=>{"use strict";var t=p(2391),e=p(3894),f=p(8170),M=p(4631);function a(d,R){t.equal(R.length,24,"Invalid key length");var h=R.slice(0,8),L=R.slice(8,16),w=R.slice(16,24);this.ciphers="encrypt"===d?[M.create({type:"encrypt",key:h}),M.create({type:"decrypt",key:L}),M.create({type:"encrypt",key:w})]:[M.create({type:"decrypt",key:w}),M.create({type:"encrypt",key:L}),M.create({type:"decrypt",key:h})]}function C(d){f.call(this,d);var R=new a(this.type,this.options.key);this._edeState=R}e(C,f),Be.exports=C,C.create=function(R){return new C(R)},C.prototype._update=function(R,h,L,w){var D=this._edeState;D.ciphers[0]._update(R,h,L,w),D.ciphers[1]._update(L,w,L,w),D.ciphers[2]._update(L,w,L,w)},C.prototype._pad=M.prototype._pad,C.prototype._unpad=M.prototype._unpad},7451:(Be,K)=>{"use strict";K.readUInt32BE=function(M,a){return(M[0+a]<<24|M[1+a]<<16|M[2+a]<<8|M[3+a])>>>0},K.writeUInt32BE=function(M,a,C){M[0+C]=a>>>24,M[1+C]=a>>>16&255,M[2+C]=a>>>8&255,M[3+C]=255&a},K.ip=function(M,a,C,d){for(var R=0,h=0,L=6;L>=0;L-=2){for(var w=0;w<=24;w+=8)R<<=1,R|=a>>>w+L&1;for(w=0;w<=24;w+=8)R<<=1,R|=M>>>w+L&1}for(L=6;L>=0;L-=2){for(w=1;w<=25;w+=8)h<<=1,h|=a>>>w+L&1;for(w=1;w<=25;w+=8)h<<=1,h|=M>>>w+L&1}C[d+0]=R>>>0,C[d+1]=h>>>0},K.rip=function(M,a,C,d){for(var R=0,h=0,L=0;L<4;L++)for(var w=24;w>=0;w-=8)R<<=1,R|=a>>>w+L&1,R<<=1,R|=M>>>w+L&1;for(L=4;L<8;L++)for(w=24;w>=0;w-=8)h<<=1,h|=a>>>w+L&1,h<<=1,h|=M>>>w+L&1;C[d+0]=R>>>0,C[d+1]=h>>>0},K.pc1=function(M,a,C,d){for(var R=0,h=0,L=7;L>=5;L--){for(var w=0;w<=24;w+=8)R<<=1,R|=a>>w+L&1;for(w=0;w<=24;w+=8)R<<=1,R|=M>>w+L&1}for(w=0;w<=24;w+=8)R<<=1,R|=a>>w+L&1;for(L=1;L<=3;L++){for(w=0;w<=24;w+=8)h<<=1,h|=a>>w+L&1;for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+L&1}for(w=0;w<=24;w+=8)h<<=1,h|=M>>w+L&1;C[d+0]=R>>>0,C[d+1]=h>>>0},K.r28shl=function(M,a){return M<>>28-a};var p=[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];K.pc2=function(M,a,C,d){for(var R=0,h=0,L=p.length>>>1,w=0;w>>p[w]&1;for(w=L;w>>p[w]&1;C[d+0]=R>>>0,C[d+1]=h>>>0},K.expand=function(M,a,C){var d=0,R=0;d=(1&M)<<5|M>>>27;for(var h=23;h>=15;h-=4)d<<=6,d|=M>>>h&63;for(h=11;h>=3;h-=4)R|=M>>>h&63,R<<=6;R|=(31&M)<<1|M>>>31,a[C+0]=d>>>0,a[C+1]=R>>>0};var t=[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];K.substitute=function(M,a){for(var C=0,d=0;d<4;d++)C<<=4,C|=t[64*d+(M>>>18-6*d&63)];for(d=0;d<4;d++)C<<=4,C|=t[256+64*d+(a>>>18-6*d&63)];return C>>>0};var e=[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];K.permute=function(M){for(var a=0,C=0;C>>e[C]&1;return a>>>0},K.padSplit=function(M,a,C){for(var d=M.toString(2);d.length{var t=p(5563),e=p(9799),f=p(1419),a={binary:!0,hex:!0,base64:!0};K.DiffieHellmanGroup=K.createDiffieHellmanGroup=K.getDiffieHellman=function M(d){var R=new Buffer(e[d].prime,"hex"),h=new Buffer(e[d].gen,"hex");return new f(R,h)},K.createDiffieHellman=K.DiffieHellman=function C(d,R,h,L){return Buffer.isBuffer(R)||void 0===a[R]?C(d,"binary",R,h):(R=R||"binary",L=L||"binary",h=h||new Buffer([2]),Buffer.isBuffer(h)||(h=new Buffer(h,L)),"number"==typeof d?new f(t(d,h),h,!0):(Buffer.isBuffer(d)||(d=new Buffer(d,R)),new f(d,h,!0)))}},1419:(Be,K,p)=>{var t=p(8313),f=new(p(7079)),M=new t(24),a=new t(11),C=new t(10),d=new t(3),R=new t(7),h=p(5563),L=p(3753);function w(Z,Y){return Y=Y||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Y)),this._pub=new t(Z),this}function D(Z,Y){return Y=Y||"utf8",Buffer.isBuffer(Z)||(Z=new Buffer(Z,Y)),this._priv=new t(Z),this}Be.exports=E;var S={};function E(Z,Y,ae){this.setGenerator(Y),this.__prime=new t(Z),this._prime=t.mont(this.__prime),this._primeLen=Z.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,ae?(this.setPublicKey=w,this.setPrivateKey=D):this._primeCode=8}function B(Z,Y){var ae=new Buffer(Z.toArray());return Y?ae.toString(Y):ae}Object.defineProperty(E.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function k(Z,Y){var ae=Y.toString("hex"),ee=[ae,Z.toString(16)].join("_");if(ee in S)return S[ee];var ne,ue=0;if(Z.isEven()||!h.simpleSieve||!h.fermatTest(Z)||!f.test(Z))return ue+=1,S[ee]=ue+="02"===ae||"05"===ae?8:4,ue;switch(f.test(Z.shrn(1))||(ue+=2),ae){case"02":Z.mod(M).cmp(a)&&(ue+=8);break;case"05":(ne=Z.mod(C)).cmp(d)&&ne.cmp(R)&&(ue+=8);break;default:ue+=4}return S[ee]=ue,ue}(this.__prime,this.__gen)),this._primeCode}}),E.prototype.generateKeys=function(){return this._priv||(this._priv=new t(L(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},E.prototype.computeSecret=function(Z){var Y=(Z=(Z=new t(Z)).toRed(this._prime)).redPow(this._priv).fromRed(),ae=new Buffer(Y.toArray()),ee=this.getPrime();if(ae.length{var t=p(3753);Be.exports=ue,ue.simpleSieve=ae,ue.fermatTest=ee;var e=p(8313),f=new e(24),a=new(p(7079)),C=new e(1),d=new e(2),R=new e(5),w=(new e(16),new e(8),new e(10)),D=new e(3),k=(new e(7),new e(11)),E=new e(4),Z=(new e(12),null);function ae(ne){for(var re=function Y(){if(null!==Z)return Z;var re=[];re[0]=2;for(var ge=1,q=3;q<1048576;q+=2){for(var _e=Math.ceil(Math.sqrt(q)),x=0;xne;)ge.ishrn(1);if(ge.isEven()&&ge.iadd(C),ge.testn(1)||ge.iadd(d),re.cmp(d)){if(!re.cmp(R))for(;ge.mod(w).cmp(D);)ge.iadd(E)}else for(;ge.mod(f).cmp(k);)ge.iadd(E);if(ae(q=ge.shrn(1))&&ae(ge)&&ee(q)&&ee(ge)&&a.test(q)&&a.test(ge))return ge}}},8313:function(Be,K,p){!function(t,e){"use strict";function f(x,i){if(!x)throw new Error(i||"Assertion failed")}function M(x,i){x.super_=i;var r=function(){};r.prototype=i.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,i,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(x||0,i||10,r||"be"))}var C;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{C="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(7748).Buffer}catch(x){}function d(x,i){var r=x.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Si=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Si,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},4901:Be=>{"use strict";var K={single_source_shortest_paths:function(p,t,e){var f={},M={};M[t]=0;var C,d,R,h,L,D,a=K.PriorityQueue.make();for(a.push(t,0);!a.empty();)for(R in h=(C=a.pop()).cost,L=p[d=C.value]||{})L.hasOwnProperty(R)&&(D=h+L[R],(void 0===M[R]||M[R]>D)&&(M[R]=D,a.push(R,D),f[R]=d));if(void 0!==e&&void 0===M[e]){var E=["Could not find a path from ",t," to ",e,"."].join("");throw new Error(E)}return f},extract_shortest_path_from_predecessor_list:function(p,t){for(var e=[],f=t;f;)e.push(f),f=p[f];return e.reverse(),e},find_path:function(p,t,e){var f=K.single_source_shortest_paths(p,t,e);return K.extract_shortest_path_from_predecessor_list(f,e)},PriorityQueue:{make:function(p){var f,t=K.PriorityQueue,e={};for(f in p=p||{},t)t.hasOwnProperty(f)&&(e[f]=t[f]);return e.queue=[],e.sorter=p.sorter||t.default_sorter,e},default_sorter:function(p,t){return p.cost-t.cost},push:function(p,t){this.queue.push({value:p,cost:t}),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return 0===this.queue.length}}};Be.exports=K},7715:(Be,K,p)=>{"use strict";var t=K;t.version=p(8597).i8,t.utils=p(1970),t.rand=p(7950),t.curve=p(6270),t.curves=p(2916),t.ec=p(7626),t.eddsa=p(1885)},7902:(Be,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.getNAF,M=e.getJSF,a=e.assert;function C(R,h){this.type=R,this.p=new t(h.p,16),this.red=h.prime?t.red(h.prime):t.mont(this.p),this.zero=new t(0).toRed(this.red),this.one=new t(1).toRed(this.red),this.two=new t(2).toRed(this.red),this.n=h.n&&new t(h.n,16),this.g=h.g&&this.pointFromJSON(h.g,h.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 L=this.n&&this.p.div(this.n);!L||L.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(R,h){this.curve=R,this.type=h,this.precomputed=null}Be.exports=C,C.prototype.point=function(){throw new Error("Not implemented")},C.prototype.validate=function(){throw new Error("Not implemented")},C.prototype._fixedNafMul=function(h,L){a(h.precomputed);var w=h._getDoubles(),D=f(L,1,this._bitLength),S=(1<=E;Z--)B=(B<<1)+D[Z];k.push(B)}for(var Y=this.jpoint(null,null,null),ae=this.jpoint(null,null,null),ee=S;ee>0;ee--){for(E=0;E=0;B--){for(var Z=0;B>=0&&0===k[B];B--)Z++;if(B>=0&&Z++,E=E.dblp(Z),B<0)break;var Y=k[B];a(0!==Y),E="affine"===h.type?E.mixedAdd(Y>0?S[Y-1>>1]:S[-Y-1>>1].neg()):E.add(Y>0?S[Y-1>>1]:S[-Y-1>>1].neg())}return"affine"===h.type?E.toP():E},C.prototype._wnafMulAdd=function(h,L,w,D,S){var Y,ae,ee,k=this._wnafT1,E=this._wnafT2,B=this._wnafT3,Z=0;for(Y=0;Y=1;Y-=2){var ne=Y-1,re=Y;if(1===k[ne]&&1===k[re]){var ge=[L[ne],null,null,L[re]];0===L[ne].y.cmp(L[re].y)?(ge[1]=L[ne].add(L[re]),ge[2]=L[ne].toJ().mixedAdd(L[re].neg())):0===L[ne].y.cmp(L[re].y.redNeg())?(ge[1]=L[ne].toJ().mixedAdd(L[re]),ge[2]=L[ne].add(L[re].neg())):(ge[1]=L[ne].toJ().mixedAdd(L[re]),ge[2]=L[ne].toJ().mixedAdd(L[re].neg()));var q=[-3,-1,-5,-7,0,7,5,1,3],_e=M(w[ne],w[re]);for(Z=Math.max(_e[0].length,Z),B[ne]=new Array(Z),B[re]=new Array(Z),ae=0;ae=0;Y--){for(var c=0;Y>=0;){var v=!0;for(ae=0;ae=0&&c++,r=r.dblp(c),Y<0)break;for(ae=0;ae0?ee=E[ae][T-1>>1]:T<0&&(ee=E[ae][-T-1>>1].neg()),r="affine"===ee.type?r.mixedAdd(ee):r.add(ee))}}for(Y=0;Y=Math.ceil((h.bitLength()+1)/L.step)},d.prototype._getDoubles=function(h,L){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var w=[this],D=this,S=0;S{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function C(R){this.twisted=1!=(0|R.a),this.mOneA=this.twisted&&-1==(0|R.a),this.extended=this.mOneA,M.call(this,"edwards",R),this.a=new e(R.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new e(R.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new e(R.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|R.c)}function d(R,h,L,w,D){M.BasePoint.call(this,R,"projective"),null===h&&null===L&&null===w?(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 e(h,16),this.y=new e(L,16),this.z=w?new e(w,16):this.curve.one,this.t=D&&new e(D,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()))))}f(C,M),Be.exports=C,C.prototype._mulA=function(h){return this.mOneA?h.redNeg():this.a.redMul(h)},C.prototype._mulC=function(h){return this.oneC?h:this.c.redMul(h)},C.prototype.jpoint=function(h,L,w,D){return this.point(h,L,w,D)},C.prototype.pointFromX=function(h,L){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=this.c2.redSub(this.a.redMul(w)),S=this.one.redSub(this.c2.redMul(this.d).redMul(w)),k=D.redMul(S.redInvm()),E=k.redSqrt();if(0!==E.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");var B=E.fromRed().isOdd();return(L&&!B||!L&&B)&&(E=E.redNeg()),this.point(h,E)},C.prototype.pointFromY=function(h,L){(h=new e(h,16)).red||(h=h.toRed(this.red));var w=h.redSqr(),D=w.redSub(this.c2),S=w.redMul(this.d).redMul(this.c2).redSub(this.a),k=D.redMul(S.redInvm());if(0===k.cmp(this.zero)){if(L)throw new Error("invalid point");return this.point(this.zero,h)}var E=k.redSqrt();if(0!==E.redSqr().redSub(k).cmp(this.zero))throw new Error("invalid point");return E.fromRed().isOdd()!==L&&(E=E.redNeg()),this.point(E,h)},C.prototype.validate=function(h){if(h.isInfinity())return!0;h.normalize();var L=h.x.redSqr(),w=h.y.redSqr(),D=L.redMul(this.a).redAdd(w),S=this.c2.redMul(this.one.redAdd(this.d.redMul(L).redMul(w)));return 0===D.cmp(S)},f(d,M.BasePoint),C.prototype.pointFromJSON=function(h){return d.fromJSON(this,h)},C.prototype.point=function(h,L,w,D){return new d(this,h,L,w,D)},d.fromJSON=function(h,L){return new d(h,L[0],L[1],L[2])},d.prototype.inspect=function(){return this.isInfinity()?"":""},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var h=this.x.redSqr(),L=this.y.redSqr(),w=this.z.redSqr();w=w.redIAdd(w);var D=this.curve._mulA(h),S=this.x.redAdd(this.y).redSqr().redISub(h).redISub(L),k=D.redAdd(L),E=k.redSub(w),B=D.redSub(L),Z=S.redMul(E),Y=k.redMul(B),ae=S.redMul(B),ee=E.redMul(k);return this.curve.point(Z,Y,ee,ae)},d.prototype._projDbl=function(){var D,S,k,E,B,Z,h=this.x.redAdd(this.y).redSqr(),L=this.x.redSqr(),w=this.y.redSqr();if(this.curve.twisted){var Y=(E=this.curve._mulA(L)).redAdd(w);this.zOne?(D=h.redSub(L).redSub(w).redMul(Y.redSub(this.curve.two)),S=Y.redMul(E.redSub(w)),k=Y.redSqr().redSub(Y).redSub(Y)):(B=this.z.redSqr(),Z=Y.redSub(B).redISub(B),D=h.redSub(L).redISub(w).redMul(Z),S=Y.redMul(E.redSub(w)),k=Y.redMul(Z))}else E=L.redAdd(w),B=this.curve._mulC(this.z).redSqr(),Z=E.redSub(B).redSub(B),D=this.curve._mulC(h.redISub(E)).redMul(Z),S=this.curve._mulC(E).redMul(L.redISub(w)),k=E.redMul(Z);return this.curve.point(D,S,k)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(h){var L=this.y.redSub(this.x).redMul(h.y.redSub(h.x)),w=this.y.redAdd(this.x).redMul(h.y.redAdd(h.x)),D=this.t.redMul(this.curve.dd).redMul(h.t),S=this.z.redMul(h.z.redAdd(h.z)),k=w.redSub(L),E=S.redSub(D),B=S.redAdd(D),Z=w.redAdd(L),Y=k.redMul(E),ae=B.redMul(Z),ee=k.redMul(Z),ue=E.redMul(B);return this.curve.point(Y,ae,ue,ee)},d.prototype._projAdd=function(h){var ae,ee,L=this.z.redMul(h.z),w=L.redSqr(),D=this.x.redMul(h.x),S=this.y.redMul(h.y),k=this.curve.d.redMul(D).redMul(S),E=w.redSub(k),B=w.redAdd(k),Z=this.x.redAdd(this.y).redMul(h.x.redAdd(h.y)).redISub(D).redISub(S),Y=L.redMul(E).redMul(Z);return this.curve.twisted?(ae=L.redMul(B).redMul(S.redSub(this.curve._mulA(D))),ee=E.redMul(B)):(ae=L.redMul(B).redMul(S.redSub(D)),ee=this.curve._mulC(E).redMul(B)),this.curve.point(Y,ae,ee)},d.prototype.add=function(h){return this.isInfinity()?h:h.isInfinity()?this:this.curve.extended?this._extAdd(h):this._projAdd(h)},d.prototype.mul=function(h){return this._hasDoubles(h)?this.curve._fixedNafMul(this,h):this.curve._wnafMul(this,h)},d.prototype.mulAdd=function(h,L,w){return this.curve._wnafMulAdd(1,[this,L],[h,w],2,!1)},d.prototype.jmulAdd=function(h,L,w){return this.curve._wnafMulAdd(1,[this,L],[h,w],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var h=this.z.redInvm();return this.x=this.x.redMul(h),this.y=this.y.redMul(h),this.t&&(this.t=this.t.redMul(h)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(h){return this===h||0===this.getX().cmp(h.getX())&&0===this.getY().cmp(h.getY())},d.prototype.eqXToP=function(h){var L=h.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(L))return!0;for(var w=h.clone(),D=this.curve.redN.redMul(this.z);;){if(w.iadd(this.curve.n),w.cmp(this.curve.p)>=0)return!1;if(L.redIAdd(D),0===this.x.cmp(L))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},6270:(Be,K,p)=>{"use strict";var t=K;t.base=p(7902),t.short=p(1781),t.mont=p(7064),t.edwards=p(3835)},7064:(Be,K,p)=>{"use strict";var t=p(7433),e=p(3894),f=p(7902),M=p(1970);function a(d){f.call(this,"mont",d),this.a=new t(d.a,16).toRed(this.red),this.b=new t(d.b,16).toRed(this.red),this.i4=new t(4).toRed(this.red).redInvm(),this.two=new t(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function C(d,R,h){f.BasePoint.call(this,d,"projective"),null===R&&null===h?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new t(R,16),this.z=new t(h,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}e(a,f),Be.exports=a,a.prototype.validate=function(R){var h=R.normalize().x,L=h.redSqr(),w=L.redMul(h).redAdd(L.redMul(this.a)).redAdd(h);return 0===w.redSqrt().redSqr().cmp(w)},e(C,f.BasePoint),a.prototype.decodePoint=function(R,h){return this.point(M.toArray(R,h),1)},a.prototype.point=function(R,h){return new C(this,R,h)},a.prototype.pointFromJSON=function(R){return C.fromJSON(this,R)},C.prototype.precompute=function(){},C.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},C.fromJSON=function(R,h){return new C(R,h[0],h[1]||R.one)},C.prototype.inspect=function(){return this.isInfinity()?"":""},C.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},C.prototype.dbl=function(){var h=this.x.redAdd(this.z).redSqr(),w=this.x.redSub(this.z).redSqr(),D=h.redSub(w),S=h.redMul(w),k=D.redMul(w.redAdd(this.curve.a24.redMul(D)));return this.curve.point(S,k)},C.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.diffAdd=function(R,h){var L=this.x.redAdd(this.z),w=this.x.redSub(this.z),D=R.x.redAdd(R.z),k=R.x.redSub(R.z).redMul(L),E=D.redMul(w),B=h.z.redMul(k.redAdd(E).redSqr()),Z=h.x.redMul(k.redISub(E).redSqr());return this.curve.point(B,Z)},C.prototype.mul=function(R){for(var h=R.clone(),L=this,w=this.curve.point(null,null),S=[];0!==h.cmpn(0);h.iushrn(1))S.push(h.andln(1));for(var k=S.length-1;k>=0;k--)0===S[k]?(L=L.diffAdd(w,this),w=w.dbl()):(w=L.diffAdd(w,this),L=L.dbl());return w},C.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},C.prototype.eq=function(R){return 0===this.getX().cmp(R.getX())},C.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},C.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},1781:(Be,K,p)=>{"use strict";var t=p(1970),e=p(7433),f=p(3894),M=p(7902),a=t.assert;function C(h){M.call(this,"short",h),this.a=new e(h.a,16).toRed(this.red),this.b=new e(h.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(h),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function d(h,L,w,D){M.BasePoint.call(this,h,"affine"),null===L&&null===w?(this.x=null,this.y=null,this.inf=!0):(this.x=new e(L,16),this.y=new e(w,16),D&&(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 R(h,L,w,D){M.BasePoint.call(this,h,"jacobian"),null===L&&null===w&&null===D?(this.x=this.curve.one,this.y=this.curve.one,this.z=new e(0)):(this.x=new e(L,16),this.y=new e(w,16),this.z=new e(D,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}f(C,M),Be.exports=C,C.prototype._getEndomorphism=function(L){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var w,D;if(L.beta)w=new e(L.beta,16).toRed(this.red);else{var S=this._getEndoRoots(this.p);w=(w=S[0].cmp(S[1])<0?S[0]:S[1]).toRed(this.red)}if(L.lambda)D=new e(L.lambda,16);else{var k=this._getEndoRoots(this.n);0===this.g.mul(k[0]).x.cmp(this.g.x.redMul(w))?D=k[0]:a(0===this.g.mul(D=k[1]).x.cmp(this.g.x.redMul(w)))}return{beta:w,lambda:D,basis:L.basis?L.basis.map(function(B){return{a:new e(B.a,16),b:new e(B.b,16)}}):this._getEndoBasis(D)}}},C.prototype._getEndoRoots=function(L){var w=L===this.p?this.red:e.mont(L),D=new e(2).toRed(w).redInvm(),S=D.redNeg(),k=new e(3).toRed(w).redNeg().redSqrt().redMul(D);return[S.redAdd(k).fromRed(),S.redSub(k).fromRed()]},C.prototype._getEndoBasis=function(L){for(var Y,ae,ee,ue,ne,re,ge,_e,x,w=this.n.ushrn(Math.floor(this.n.bitLength()/2)),D=L,S=this.n.clone(),k=new e(1),E=new e(0),B=new e(0),Z=new e(1),q=0;0!==D.cmpn(0);){var i=S.div(D);_e=S.sub(i.mul(D)),x=B.sub(i.mul(k));var r=Z.sub(i.mul(E));if(!ee&&_e.cmp(w)<0)Y=ge.neg(),ae=k,ee=_e.neg(),ue=x;else if(ee&&2==++q)break;ge=_e,S=D,D=_e,B=k,k=x,Z=E,E=r}ne=_e.neg(),re=x;var u=ee.sqr().add(ue.sqr());return ne.sqr().add(re.sqr()).cmp(u)>=0&&(ne=Y,re=ae),ee.negative&&(ee=ee.neg(),ue=ue.neg()),ne.negative&&(ne=ne.neg(),re=re.neg()),[{a:ee,b:ue},{a:ne,b:re}]},C.prototype._endoSplit=function(L){var w=this.endo.basis,D=w[0],S=w[1],k=S.b.mul(L).divRound(this.n),E=D.b.neg().mul(L).divRound(this.n),B=k.mul(D.a),Z=E.mul(S.a),Y=k.mul(D.b),ae=E.mul(S.b);return{k1:L.sub(B).sub(Z),k2:Y.add(ae).neg()}},C.prototype.pointFromX=function(L,w){(L=new e(L,16)).red||(L=L.toRed(this.red));var D=L.redSqr().redMul(L).redIAdd(L.redMul(this.a)).redIAdd(this.b),S=D.redSqrt();if(0!==S.redSqr().redSub(D).cmp(this.zero))throw new Error("invalid point");var k=S.fromRed().isOdd();return(w&&!k||!w&&k)&&(S=S.redNeg()),this.point(L,S)},C.prototype.validate=function(L){if(L.inf)return!0;var w=L.x,D=L.y,S=this.a.redMul(w),k=w.redSqr().redMul(w).redIAdd(S).redIAdd(this.b);return 0===D.redSqr().redISub(k).cmpn(0)},C.prototype._endoWnafMulAdd=function(L,w,D){for(var S=this._endoWnafT1,k=this._endoWnafT2,E=0;E":""},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(L){if(this.inf)return L;if(L.inf)return this;if(this.eq(L))return this.dbl();if(this.neg().eq(L))return this.curve.point(null,null);if(0===this.x.cmp(L.x))return this.curve.point(null,null);var w=this.y.redSub(L.y);0!==w.cmpn(0)&&(w=w.redMul(this.x.redSub(L.x).redInvm()));var D=w.redSqr().redISub(this.x).redISub(L.x),S=w.redMul(this.x.redSub(D)).redISub(this.y);return this.curve.point(D,S)},d.prototype.dbl=function(){if(this.inf)return this;var L=this.y.redAdd(this.y);if(0===L.cmpn(0))return this.curve.point(null,null);var w=this.curve.a,D=this.x.redSqr(),S=L.redInvm(),k=D.redAdd(D).redIAdd(D).redIAdd(w).redMul(S),E=k.redSqr().redISub(this.x.redAdd(this.x)),B=k.redMul(this.x.redSub(E)).redISub(this.y);return this.curve.point(E,B)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(L){return L=new e(L,16),this.isInfinity()?this:this._hasDoubles(L)?this.curve._fixedNafMul(this,L):this.curve.endo?this.curve._endoWnafMulAdd([this],[L]):this.curve._wnafMul(this,L)},d.prototype.mulAdd=function(L,w,D){var S=[this,w],k=[L,D];return this.curve.endo?this.curve._endoWnafMulAdd(S,k):this.curve._wnafMulAdd(1,S,k,2)},d.prototype.jmulAdd=function(L,w,D){var S=[this,w],k=[L,D];return this.curve.endo?this.curve._endoWnafMulAdd(S,k,!0):this.curve._wnafMulAdd(1,S,k,2,!0)},d.prototype.eq=function(L){return this===L||this.inf===L.inf&&(this.inf||0===this.x.cmp(L.x)&&0===this.y.cmp(L.y))},d.prototype.neg=function(L){if(this.inf)return this;var w=this.curve.point(this.x,this.y.redNeg());if(L&&this.precomputed){var D=this.precomputed,S=function(k){return k.neg()};w.precomputed={naf:D.naf&&{wnd:D.naf.wnd,points:D.naf.points.map(S)},doubles:D.doubles&&{step:D.doubles.step,points:D.doubles.points.map(S)}}}return w},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},f(R,M.BasePoint),C.prototype.jpoint=function(L,w,D){return new R(this,L,w,D)},R.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var L=this.z.redInvm(),w=L.redSqr(),D=this.x.redMul(w),S=this.y.redMul(w).redMul(L);return this.curve.point(D,S)},R.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},R.prototype.add=function(L){if(this.isInfinity())return L;if(L.isInfinity())return this;var w=L.z.redSqr(),D=this.z.redSqr(),S=this.x.redMul(w),k=L.x.redMul(D),E=this.y.redMul(w.redMul(L.z)),B=L.y.redMul(D.redMul(this.z)),Z=S.redSub(k),Y=E.redSub(B);if(0===Z.cmpn(0))return 0!==Y.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var ae=Z.redSqr(),ee=ae.redMul(Z),ue=S.redMul(ae),ne=Y.redSqr().redIAdd(ee).redISub(ue).redISub(ue),re=Y.redMul(ue.redISub(ne)).redISub(E.redMul(ee)),ge=this.z.redMul(L.z).redMul(Z);return this.curve.jpoint(ne,re,ge)},R.prototype.mixedAdd=function(L){if(this.isInfinity())return L.toJ();if(L.isInfinity())return this;var w=this.z.redSqr(),D=this.x,S=L.x.redMul(w),k=this.y,E=L.y.redMul(w).redMul(this.z),B=D.redSub(S),Z=k.redSub(E);if(0===B.cmpn(0))return 0!==Z.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var Y=B.redSqr(),ae=Y.redMul(B),ee=D.redMul(Y),ue=Z.redSqr().redIAdd(ae).redISub(ee).redISub(ee),ne=Z.redMul(ee.redISub(ue)).redISub(k.redMul(ae)),re=this.z.redMul(B);return this.curve.jpoint(ue,ne,re)},R.prototype.dblp=function(L){if(0===L)return this;if(this.isInfinity())return this;if(!L)return this.dbl();var w;if(this.curve.zeroA||this.curve.threeA){var D=this;for(w=0;w=0)return!1;if(D.redIAdd(k),0===this.x.cmp(D))return!0}},R.prototype.inspect=function(){return this.isInfinity()?"":""},R.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},2916:(Be,K,p)=>{"use strict";var R,t=K,e=p(7084),f=p(6270),a=p(1970).assert;function C(h){this.curve="short"===h.type?new f.short(h):"edwards"===h.type?new f.edwards(h):new f.mont(h),this.g=this.curve.g,this.n=this.curve.n,this.hash=h.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function d(h,L){Object.defineProperty(t,h,{configurable:!0,enumerable:!0,get:function(){var w=new C(L);return Object.defineProperty(t,h,{configurable:!0,enumerable:!0,value:w}),w}})}t.PresetCurve=C,d("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:e.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),d("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:e.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),d("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:e.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),d("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:e.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"]}),d("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:e.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"]}),d("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:e.sha256,gRed:!1,g:["9"]}),d("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:e.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{R=p(5150)}catch(h){R=void 0}d("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:e.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",R]})},7626:(Be,K,p)=>{"use strict";var t=p(7433),e=p(2438),f=p(1970),M=p(2916),a=p(7950),C=f.assert,d=p(1259),R=p(5957);function h(L){if(!(this instanceof h))return new h(L);"string"==typeof L&&(C(Object.prototype.hasOwnProperty.call(M,L),"Unknown curve "+L),L=M[L]),L instanceof M.PresetCurve&&(L={curve:L}),this.curve=L.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=L.curve.g,this.g.precompute(L.curve.n.bitLength()+1),this.hash=L.hash||L.curve.hash}Be.exports=h,h.prototype.keyPair=function(w){return new d(this,w)},h.prototype.keyFromPrivate=function(w,D){return d.fromPrivate(this,w,D)},h.prototype.keyFromPublic=function(w,D){return d.fromPublic(this,w,D)},h.prototype.genKeyPair=function(w){w||(w={});for(var D=new e({hash:this.hash,pers:w.pers,persEnc:w.persEnc||"utf8",entropy:w.entropy||a(this.hash.hmacStrength),entropyEnc:w.entropy&&w.entropyEnc||"utf8",nonce:this.n.toArray()}),S=this.n.byteLength(),k=this.n.sub(new t(2));;){var E=new t(D.generate(S));if(!(E.cmp(k)>0))return E.iaddn(1),this.keyFromPrivate(E)}},h.prototype._truncateToN=function(w,D){var S=8*w.byteLength()-this.n.bitLength();return S>0&&(w=w.ushrn(S)),!D&&w.cmp(this.n)>=0?w.sub(this.n):w},h.prototype.sign=function(w,D,S,k){"object"==typeof S&&(k=S,S=null),k||(k={}),D=this.keyFromPrivate(D,S),w=this._truncateToN(new t(w,16));for(var E=this.n.byteLength(),B=D.getPrivate().toArray("be",E),Z=w.toArray("be",E),Y=new e({hash:this.hash,entropy:B,nonce:Z,pers:k.pers,persEnc:k.persEnc||"utf8"}),ae=this.n.sub(new t(1)),ee=0;;ee++){var ue=k.k?k.k(ee):new t(Y.generate(this.n.byteLength()));if(!((ue=this._truncateToN(ue,!0)).cmpn(1)<=0||ue.cmp(ae)>=0)){var ne=this.g.mul(ue);if(!ne.isInfinity()){var re=ne.getX(),ge=re.umod(this.n);if(0!==ge.cmpn(0)){var q=ue.invm(this.n).mul(ge.mul(D.getPrivate()).iadd(w));if(0!==(q=q.umod(this.n)).cmpn(0)){var _e=(ne.getY().isOdd()?1:0)|(0!==re.cmp(ge)?2:0);return k.canonical&&q.cmp(this.nh)>0&&(q=this.n.sub(q),_e^=1),new R({r:ge,s:q,recoveryParam:_e})}}}}}},h.prototype.verify=function(w,D,S,k){w=this._truncateToN(new t(w,16)),S=this.keyFromPublic(S,k);var E=(D=new R(D,"hex")).r,B=D.s;if(E.cmpn(1)<0||E.cmp(this.n)>=0||B.cmpn(1)<0||B.cmp(this.n)>=0)return!1;var ee,Z=B.invm(this.n),Y=Z.mul(w).umod(this.n),ae=Z.mul(E).umod(this.n);return this.curve._maxwellTrick?!(ee=this.g.jmulAdd(Y,S.getPublic(),ae)).isInfinity()&&ee.eqXToP(E):!(ee=this.g.mulAdd(Y,S.getPublic(),ae)).isInfinity()&&0===ee.getX().umod(this.n).cmp(E)},h.prototype.recoverPubKey=function(L,w,D,S){C((3&D)===D,"The recovery param is more than two bits"),w=new R(w,S);var k=this.n,E=new t(L),B=w.r,Z=w.s,Y=1&D,ae=D>>1;if(B.cmp(this.curve.p.umod(this.curve.n))>=0&&ae)throw new Error("Unable to find sencond key candinate");B=this.curve.pointFromX(ae?B.add(this.curve.n):B,Y);var ee=w.r.invm(k),ue=k.sub(E).mul(ee).umod(k),ne=Z.mul(ee).umod(k);return this.g.mulAdd(ue,B,ne)},h.prototype.getKeyRecoveryParam=function(L,w,D,S){if(null!==(w=new R(w,S)).recoveryParam)return w.recoveryParam;for(var k=0;k<4;k++){var E;try{E=this.recoverPubKey(L,w,k)}catch(B){continue}if(E.eq(D))return k}throw new Error("Unable to find valid recovery factor")}},1259:(Be,K,p)=>{"use strict";var t=p(7433),f=p(1970).assert;function M(a,C){this.ec=a,this.priv=null,this.pub=null,C.priv&&this._importPrivate(C.priv,C.privEnc),C.pub&&this._importPublic(C.pub,C.pubEnc)}Be.exports=M,M.fromPublic=function(C,d,R){return d instanceof M?d:new M(C,{pub:d,pubEnc:R})},M.fromPrivate=function(C,d,R){return d instanceof M?d:new M(C,{priv:d,privEnc:R})},M.prototype.validate=function(){var C=this.getPublic();return C.isInfinity()?{result:!1,reason:"Invalid public key"}:C.validate()?C.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"}},M.prototype.getPublic=function(C,d){return"string"==typeof C&&(d=C,C=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),d?this.pub.encode(d,C):this.pub},M.prototype.getPrivate=function(C){return"hex"===C?this.priv.toString(16,2):this.priv},M.prototype._importPrivate=function(C,d){this.priv=new t(C,d||16),this.priv=this.priv.umod(this.ec.curve.n)},M.prototype._importPublic=function(C,d){if(C.x||C.y)return"mont"===this.ec.curve.type?f(C.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&f(C.x&&C.y,"Need both x and y coordinate"),void(this.pub=this.ec.curve.point(C.x,C.y));this.pub=this.ec.curve.decodePoint(C,d)},M.prototype.derive=function(C){return C.validate()||f(C.validate(),"public point not validated"),C.mul(this.priv).getX()},M.prototype.sign=function(C,d,R){return this.ec.sign(C,this,d,R)},M.prototype.verify=function(C,d){return this.ec.verify(C,d,this)},M.prototype.inspect=function(){return""}},5957:(Be,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert;function M(h,L){if(h instanceof M)return h;this._importDER(h,L)||(f(h.r&&h.s,"Signature without r or s"),this.r=new t(h.r,16),this.s=new t(h.s,16),this.recoveryParam=void 0===h.recoveryParam?null:h.recoveryParam)}function a(){this.place=0}function C(h,L){var w=h[L.place++];if(!(128&w))return w;var D=15&w;if(0===D||D>4)return!1;for(var S=0,k=0,E=L.place;k>>=0;return!(S<=127)&&(L.place=E,S)}function d(h){for(var L=0,w=h.length-1;!h[L]&&!(128&h[L+1])&&L>>3);for(h.push(128|w);--w;)h.push(L>>>(w<<3)&255);h.push(L)}}Be.exports=M,M.prototype._importDER=function(L,w){L=e.toArray(L,w);var D=new a;if(48!==L[D.place++])return!1;var S=C(L,D);if(!1===S||S+D.place!==L.length||2!==L[D.place++])return!1;var k=C(L,D);if(!1===k)return!1;var E=L.slice(D.place,k+D.place);if(D.place+=k,2!==L[D.place++])return!1;var B=C(L,D);if(!1===B||L.length!==B+D.place)return!1;var Z=L.slice(D.place,B+D.place);if(0===E[0]){if(!(128&E[1]))return!1;E=E.slice(1)}if(0===Z[0]){if(!(128&Z[1]))return!1;Z=Z.slice(1)}return this.r=new t(E),this.s=new t(Z),this.recoveryParam=null,!0},M.prototype.toDER=function(L){var w=this.r.toArray(),D=this.s.toArray();for(128&w[0]&&(w=[0].concat(w)),128&D[0]&&(D=[0].concat(D)),w=d(w),D=d(D);!(D[0]||128&D[1]);)D=D.slice(1);var S=[2];R(S,w.length),(S=S.concat(w)).push(2),R(S,D.length);var k=S.concat(D),E=[48];return R(E,k.length),E=E.concat(k),e.encode(E,L)}},1885:(Be,K,p)=>{"use strict";var t=p(7084),e=p(2916),f=p(1970),M=f.assert,a=f.parseBytes,C=p(7535),d=p(8241);function R(h){if(M("ed25519"===h,"only tested with ed25519 so far"),!(this instanceof R))return new R(h);this.curve=h=e[h].curve,this.g=h.g,this.g.precompute(h.n.bitLength()+1),this.pointClass=h.point().constructor,this.encodingLength=Math.ceil(h.n.bitLength()/8),this.hash=t.sha512}Be.exports=R,R.prototype.sign=function(L,w){L=a(L);var D=this.keyFromSecret(w),S=this.hashInt(D.messagePrefix(),L),k=this.g.mul(S),E=this.encodePoint(k),B=this.hashInt(E,D.pubBytes(),L).mul(D.priv()),Z=S.add(B).umod(this.curve.n);return this.makeSignature({R:k,S:Z,Rencoded:E})},R.prototype.verify=function(L,w,D){L=a(L),w=this.makeSignature(w);var S=this.keyFromPublic(D),k=this.hashInt(w.Rencoded(),S.pubBytes(),L),E=this.g.mul(w.S());return w.R().add(S.pub().mul(k)).eq(E)},R.prototype.hashInt=function(){for(var L=this.hash(),w=0;w{"use strict";var t=p(1970),e=t.assert,f=t.parseBytes,M=t.cachedProperty;function a(C,d){this.eddsa=C,this._secret=f(d.secret),C.isPoint(d.pub)?this._pub=d.pub:this._pubBytes=f(d.pub)}a.fromPublic=function(d,R){return R instanceof a?R:new a(d,{pub:R})},a.fromSecret=function(d,R){return R instanceof a?R:new a(d,{secret:R})},a.prototype.secret=function(){return this._secret},M(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),M(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),M(a,"privBytes",function(){var d=this.eddsa,R=this.hash(),h=d.encodingLength-1,L=R.slice(0,d.encodingLength);return L[0]&=248,L[h]&=127,L[h]|=64,L}),M(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),M(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),M(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(d){return e(this._secret,"KeyPair can only verify"),this.eddsa.sign(d,this)},a.prototype.verify=function(d,R){return this.eddsa.verify(d,R,this)},a.prototype.getSecret=function(d){return e(this._secret,"KeyPair is public only"),t.encode(this.secret(),d)},a.prototype.getPublic=function(d){return t.encode(this.pubBytes(),d)},Be.exports=a},8241:(Be,K,p)=>{"use strict";var t=p(7433),e=p(1970),f=e.assert,M=e.cachedProperty,a=e.parseBytes;function C(d,R){this.eddsa=d,"object"!=typeof R&&(R=a(R)),Array.isArray(R)&&(R={R:R.slice(0,d.encodingLength),S:R.slice(d.encodingLength)}),f(R.R&&R.S,"Signature without R or S"),d.isPoint(R.R)&&(this._R=R.R),R.S instanceof t&&(this._S=R.S),this._Rencoded=Array.isArray(R.R)?R.R:R.Rencoded,this._Sencoded=Array.isArray(R.S)?R.S:R.Sencoded}M(C,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),M(C,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),M(C,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),M(C,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),C.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},C.prototype.toHex=function(){return e.encode(this.toBytes(),"hex").toUpperCase()},Be.exports=C},5150:Be=>{Be.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"]]}}},1970:(Be,K,p)=>{"use strict";var t=K,e=p(7433),f=p(2391),M=p(8195);t.assert=f,t.toArray=M.toArray,t.zero2=M.zero2,t.toHex=M.toHex,t.encode=M.encode,t.getNAF=function a(L,w,D){var S=new Array(Math.max(L.bitLength(),D)+1);S.fill(0);for(var k=1<(k>>1)-1?(k>>1)-Y:Y):Z=0,S[B]=Z,E.iushrn(1)}return S},t.getJSF=function C(L,w){var D=[[],[]];L=L.clone(),w=w.clone();for(var E,S=0,k=0;L.cmpn(-S)>0||w.cmpn(-k)>0;){var Y,ae,B=L.andln(3)+S&3,Z=w.andln(3)+k&3;3===B&&(B=-1),3===Z&&(Z=-1),Y=0==(1&B)?0:3!=(E=L.andln(7)+S&7)&&5!==E||2!==Z?B:-B,D[0].push(Y),ae=0==(1&Z)?0:3!=(E=w.andln(7)+k&7)&&5!==E||2!==B?Z:-Z,D[1].push(ae),2*S===Y+1&&(S=1-S),2*k===ae+1&&(k=1-k),L.iushrn(1),w.iushrn(1)}return D},t.cachedProperty=function d(L,w,D){var S="_"+w;L.prototype[w]=function(){return void 0!==this[S]?this[S]:this[S]=D.call(this)}},t.parseBytes=function R(L){return"string"==typeof L?t.toArray(L,"hex"):L},t.intFromLE=function h(L){return new e(L,"hex","le")}},7433:function(Be,K,p){!function(t,e){"use strict";function f(x,i){if(!x)throw new Error(i||"Assertion failed")}function M(x,i){x.super_=i;var r=function(){};r.prototype=i.prototype,x.prototype=new r,x.prototype.constructor=x}function a(x,i,r){if(a.isBN(x))return x;this.negative=0,this.words=null,this.length=0,this.red=null,null!==x&&(("le"===i||"be"===i)&&(r=i,i=10),this._init(x||0,i||10,r||"be"))}var C;"object"==typeof t?t.exports=a:e.BN=a,a.BN=a,a.wordSize=26;try{C="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:p(5568).Buffer}catch(x){}function d(x,i){var r=x.charCodeAt(i);return r>=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Si=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Si,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},8419:Be=>{"use strict";Be.exports=function(p){for(var t=[],e=p.length,f=0;f=55296&&M<=56319&&e>f+1){var a=p.charCodeAt(f+1);a>=56320&&a<=57343&&(M=1024*(M-55296)+a-56320+65536,f+=1)}M<128?t.push(M):M<2048?(t.push(M>>6|192),t.push(63&M|128)):M<55296||M>=57344&&M<65536?(t.push(M>>12|224),t.push(M>>6&63|128),t.push(63&M|128)):M>=65536&&M<=1114111?(t.push(M>>18|240),t.push(M>>12&63|128),t.push(M>>6&63|128),t.push(63&M|128)):t.push(239,191,189)}return new Uint8Array(t).buffer}},9069:Be=>{"use strict";var t,K="object"==typeof Reflect?Reflect:null,p=K&&"function"==typeof K.apply?K.apply:function(ee,ue,ne){return Function.prototype.apply.call(ee,ue,ne)};t=K&&"function"==typeof K.ownKeys?K.ownKeys:Object.getOwnPropertySymbols?function(ee){return Object.getOwnPropertyNames(ee).concat(Object.getOwnPropertySymbols(ee))}:function(ee){return Object.getOwnPropertyNames(ee)};var f=Number.isNaN||function(ee){return ee!=ee};function M(){M.init.call(this)}Be.exports=M,Be.exports.once=function B(ae,ee){return new Promise(function(ue,ne){function re(q){ae.removeListener(ee,ge),ne(q)}function ge(){"function"==typeof ae.removeListener&&ae.removeListener("error",re),ue([].slice.call(arguments))}Y(ae,ee,ge,{once:!0}),"error"!==ee&&function Z(ae,ee,ue){"function"==typeof ae.on&&Y(ae,"error",ee,ue)}(ae,re,{once:!0})})},M.EventEmitter=M,M.prototype._events=void 0,M.prototype._eventsCount=0,M.prototype._maxListeners=void 0;var a=10;function C(ae){if("function"!=typeof ae)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof ae)}function d(ae){return void 0===ae._maxListeners?M.defaultMaxListeners:ae._maxListeners}function R(ae,ee,ue,ne){var re,ge,q;if(C(ue),void 0===(ge=ae._events)?(ge=ae._events=Object.create(null),ae._eventsCount=0):(void 0!==ge.newListener&&(ae.emit("newListener",ee,ue.listener?ue.listener:ue),ge=ae._events),q=ge[ee]),void 0===q)q=ge[ee]=ue,++ae._eventsCount;else if("function"==typeof q?q=ge[ee]=ne?[ue,q]:[q,ue]:ne?q.unshift(ue):q.push(ue),(re=d(ae))>0&&q.length>re&&!q.warned){q.warned=!0;var _e=new Error("Possible EventEmitter memory leak detected. "+q.length+" "+String(ee)+" listeners added. Use emitter.setMaxListeners() to increase limit");_e.name="MaxListenersExceededWarning",_e.emitter=ae,_e.type=ee,_e.count=q.length,function e(ae){console&&console.warn&&console.warn(ae)}(_e)}return ae}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 L(ae,ee,ue){var ne={fired:!1,wrapFn:void 0,target:ae,type:ee,listener:ue},re=h.bind(ne);return re.listener=ue,ne.wrapFn=re,re}function w(ae,ee,ue){var ne=ae._events;if(void 0===ne)return[];var re=ne[ee];return void 0===re?[]:"function"==typeof re?ue?[re.listener||re]:[re]:ue?function E(ae){for(var ee=new Array(ae.length),ue=0;ue0&&(q=ue[0]),q instanceof Error)throw q;var _e=new Error("Unhandled error."+(q?" ("+q.message+")":""));throw _e.context=q,_e}var x=ge[ee];if(void 0===x)return!1;if("function"==typeof x)p(x,this,ue);else{var i=x.length,r=S(x,i);for(ne=0;ne=0;q--)if(ne[q]===ue||ne[q].listener===ue){_e=ne[q].listener,ge=q;break}if(ge<0)return this;0===ge?ne.shift():function k(ae,ee){for(;ee+1=0;re--)this.removeListener(ee,ue[re]);return this},M.prototype.listeners=function(ee){return w(this,ee,!0)},M.prototype.rawListeners=function(ee){return w(this,ee,!1)},M.listenerCount=function(ae,ee){return"function"==typeof ae.listenerCount?ae.listenerCount(ee):D.call(ae,ee)},M.prototype.listenerCount=D,M.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]}},347:(Be,K,p)=>{var t=p(3502).Buffer,e=p(8095);Be.exports=function f(M,a,C,d){if(t.isBuffer(M)||(M=t.from(M,"binary")),a&&(t.isBuffer(a)||(a=t.from(a,"binary")),8!==a.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var R=C/8,h=t.alloc(R),L=t.alloc(d||0),w=t.alloc(0);R>0||d>0;){var D=new e;D.update(w),D.update(M),a&&D.update(a),w=D.digest();var S=0;if(R>0){var k=h.length-R;S=Math.min(R,w.length),w.copy(h,k,0,S),R-=S}if(S0){var E=L.length-d,B=Math.min(d,w.length-S);w.copy(L,E,S,S+B),d-=B}}return w.fill(0),{key:h,iv:L}}},9650:(Be,K,p)=>{"use strict";var t=p(3502).Buffer,e=p(5685).Transform;function a(C){e.call(this),this._block=t.allocUnsafe(C),this._blockSize=C,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}p(3894)(a,e),a.prototype._transform=function(C,d,R){var h=null;try{this.update(C,d)}catch(L){h=L}R(h)},a.prototype._flush=function(C){var d=null;try{this.push(this.digest())}catch(R){d=R}C(d)},a.prototype.update=function(C,d){if(function M(C,d){if(!t.isBuffer(C)&&"string"!=typeof C)throw new TypeError(d+" must be a string or a buffer")}(C,"Data"),this._finalized)throw new Error("Digest already called");t.isBuffer(C)||(C=t.from(C,d));for(var R=this._block,h=0;this._blockOffset+C.length-h>=this._blockSize;){for(var L=this._blockOffset;L0;++w)this._length[w]+=D,(D=this._length[w]/4294967296|0)>0&&(this._length[w]-=4294967296*D);return this},a.prototype._update=function(){throw new Error("_update is not implemented")},a.prototype.digest=function(C){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var d=this._digest();void 0!==C&&(d=d.toString(C)),this._block.fill(0),this._blockOffset=0;for(var R=0;R<4;++R)this._length[R]=0;return d},a.prototype._digest=function(){throw new Error("_digest is not implemented")},Be.exports=a},7084:(Be,K,p)=>{var t=K;t.utils=p(9299),t.common=p(3800),t.sha=p(4962),t.ripemd=p(9458),t.hmac=p(2194),t.sha1=t.sha.sha1,t.sha256=t.sha.sha256,t.sha224=t.sha.sha224,t.sha384=t.sha.sha384,t.sha512=t.sha.sha512,t.ripemd160=t.ripemd.ripemd160},3800:(Be,K,p)=>{"use strict";var t=p(9299),e=p(2391);function f(){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}K.BlockHash=f,f.prototype.update=function(a,C){if(a=t.toArray(a,C),this.pending=this.pending?this.pending.concat(a):a,this.pendingTotal+=a.length,this.pending.length>=this._delta8){var d=(a=this.pending).length%this._delta8;this.pending=a.slice(a.length-d,a.length),0===this.pending.length&&(this.pending=null),a=t.join32(a,0,a.length-d,this.endian);for(var R=0;R>>24&255,R[h++]=a>>>16&255,R[h++]=a>>>8&255,R[h++]=255&a}else for(R[h++]=255&a,R[h++]=a>>>8&255,R[h++]=a>>>16&255,R[h++]=a>>>24&255,R[h++]=0,R[h++]=0,R[h++]=0,R[h++]=0,L=8;L{"use strict";var t=p(9299),e=p(2391);function f(M,a,C){if(!(this instanceof f))return new f(M,a,C);this.Hash=M,this.blockSize=M.blockSize/8,this.outSize=M.outSize/8,this.inner=null,this.outer=null,this._init(t.toArray(a,C))}Be.exports=f,f.prototype._init=function(a){a.length>this.blockSize&&(a=(new this.Hash).update(a).digest()),e(a.length<=this.blockSize);for(var C=a.length;C{"use strict";var t=p(9299),e=p(3800),f=t.rotl32,M=t.sum32,a=t.sum32_3,C=t.sum32_4,d=e.BlockHash;function R(){if(!(this instanceof R))return new R;d.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.endian="little"}function h(B,Z,Y,ae){return B<=15?Z^Y^ae:B<=31?Z&Y|~Z&ae:B<=47?(Z|~Y)^ae:B<=63?Z&ae|Y&~ae:Z^(Y|~ae)}function w(B){return B<=15?1352829926:B<=31?1548603684:B<=47?1836072691:B<=63?2053994217:0}t.inherits(R,d),K.ripemd160=R,R.blockSize=512,R.outSize=160,R.hmacStrength=192,R.padLength=64,R.prototype._update=function(Z,Y){for(var ae=this.h[0],ee=this.h[1],ue=this.h[2],ne=this.h[3],re=this.h[4],ge=ae,q=ee,_e=ue,x=ne,i=re,r=0;r<80;r++){var u=M(f(C(ae,h(r,ee,ue,ne),Z[D[r]+Y],(B=r)<=15?0:B<=31?1518500249:B<=47?1859775393:B<=63?2400959708:2840853838),k[r]),re);ae=re,re=ne,ne=f(ue,10),ue=ee,ee=u,u=M(f(C(ge,h(79-r,q,_e,x),Z[S[r]+Y],w(r)),E[r]),i),ge=i,i=x,x=f(_e,10),_e=q,q=u}var B;u=a(this.h[1],ue,x),this.h[1]=a(this.h[2],ne,i),this.h[2]=a(this.h[3],re,ge),this.h[3]=a(this.h[4],ae,q),this.h[4]=a(this.h[0],ee,_e),this.h[0]=u},R.prototype._digest=function(Z){return"hex"===Z?t.toHex32(this.h,"little"):t.split32(this.h,"little")};var D=[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],S=[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],k=[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],E=[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]},4962:(Be,K,p)=>{"use strict";K.sha1=p(9007),K.sha224=p(55),K.sha256=p(9342),K.sha384=p(8634),K.sha512=p(39)},9007:(Be,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=t.rotl32,a=t.sum32,C=t.sum32_5,d=f.ft_1,R=e.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function L(){if(!(this instanceof L))return new L;R.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}t.inherits(L,R),Be.exports=L,L.blockSize=512,L.outSize=160,L.hmacStrength=80,L.padLength=64,L.prototype._update=function(D,S){for(var k=this.W,E=0;E<16;E++)k[E]=D[S+E];for(;E{"use strict";var t=p(9299),e=p(9342);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]}t.inherits(f,e),Be.exports=f,f.blockSize=512,f.outSize=224,f.hmacStrength=192,f.padLength=64,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,7),"big"):t.split32(this.h.slice(0,7),"big")}},9342:(Be,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(3113),M=p(2391),a=t.sum32,C=t.sum32_4,d=t.sum32_5,R=f.ch32,h=f.maj32,L=f.s0_256,w=f.s1_256,D=f.g0_256,S=f.g1_256,k=e.BlockHash,E=[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;k.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=E,this.W=new Array(64)}t.inherits(B,k),Be.exports=B,B.blockSize=512,B.outSize=256,B.hmacStrength=192,B.padLength=64,B.prototype._update=function(Y,ae){for(var ee=this.W,ue=0;ue<16;ue++)ee[ue]=Y[ae+ue];for(;ue{"use strict";var t=p(9299),e=p(39);function f(){if(!(this instanceof f))return new f;e.call(this),this.h=[3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]}t.inherits(f,e),Be.exports=f,f.blockSize=1024,f.outSize=384,f.hmacStrength=192,f.padLength=128,f.prototype._digest=function(a){return"hex"===a?t.toHex32(this.h.slice(0,12),"big"):t.split32(this.h.slice(0,12),"big")}},39:(Be,K,p)=>{"use strict";var t=p(9299),e=p(3800),f=p(2391),M=t.rotr64_hi,a=t.rotr64_lo,C=t.shr64_hi,d=t.shr64_lo,R=t.sum64,h=t.sum64_hi,L=t.sum64_lo,w=t.sum64_4_hi,D=t.sum64_4_lo,S=t.sum64_5_hi,k=t.sum64_5_lo,E=e.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 Z(){if(!(this instanceof Z))return new Z;E.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 Y(u,c,v,T,I){var y=u&v^~u&I;return y<0&&(y+=4294967296),y}function ae(u,c,v,T,I,y){var n=c&T^~c&y;return n<0&&(n+=4294967296),n}function ee(u,c,v,T,I){var y=u&v^u&I^v&I;return y<0&&(y+=4294967296),y}function ue(u,c,v,T,I,y){var n=c&T^c&y^T&y;return n<0&&(n+=4294967296),n}function ne(u,c){var y=M(u,c,28)^M(c,u,2)^M(c,u,7);return y<0&&(y+=4294967296),y}function re(u,c){var y=a(u,c,28)^a(c,u,2)^a(c,u,7);return y<0&&(y+=4294967296),y}function ge(u,c){var y=M(u,c,14)^M(u,c,18)^M(c,u,9);return y<0&&(y+=4294967296),y}function q(u,c){var y=a(u,c,14)^a(u,c,18)^a(c,u,9);return y<0&&(y+=4294967296),y}function _e(u,c){var y=M(u,c,1)^M(u,c,8)^C(u,c,7);return y<0&&(y+=4294967296),y}function x(u,c){var y=a(u,c,1)^a(u,c,8)^d(u,c,7);return y<0&&(y+=4294967296),y}function i(u,c){var y=M(u,c,19)^M(c,u,29)^C(u,c,6);return y<0&&(y+=4294967296),y}function r(u,c){var y=a(u,c,19)^a(c,u,29)^d(u,c,6);return y<0&&(y+=4294967296),y}t.inherits(Z,E),Be.exports=Z,Z.blockSize=1024,Z.outSize=512,Z.hmacStrength=192,Z.padLength=128,Z.prototype._prepareBlock=function(c,v){for(var T=this.W,I=0;I<32;I++)T[I]=c[v+I];for(;I{"use strict";var e=p(9299).rotr32;function M(w,D,S){return w&D^~w&S}function a(w,D,S){return w&D^w&S^D&S}function C(w,D,S){return w^D^S}K.ft_1=function f(w,D,S,k){return 0===w?M(D,S,k):1===w||3===w?C(D,S,k):2===w?a(D,S,k):void 0},K.ch32=M,K.maj32=a,K.p32=C,K.s0_256=function d(w){return e(w,2)^e(w,13)^e(w,22)},K.s1_256=function R(w){return e(w,6)^e(w,11)^e(w,25)},K.g0_256=function h(w){return e(w,7)^e(w,18)^w>>>3},K.g1_256=function L(w){return e(w,17)^e(w,19)^w>>>10}},9299:(Be,K,p)=>{"use strict";var t=p(2391),e=p(3894);function f(r,u){return!(55296!=(64512&r.charCodeAt(u))||u<0||u+1>=r.length)&&56320==(64512&r.charCodeAt(u+1))}function C(r){return(r>>>24|r>>>8&65280|r<<8&16711680|(255&r)<<24)>>>0}function R(r){return 1===r.length?"0"+r:r}function h(r){return 7===r.length?"0"+r:6===r.length?"00"+r:5===r.length?"000"+r:4===r.length?"0000"+r:3===r.length?"00000"+r:2===r.length?"000000"+r:1===r.length?"0000000"+r:r}K.inherits=e,K.toArray=function M(r,u){if(Array.isArray(r))return r.slice();if(!r)return[];var c=[];if("string"==typeof r)if(u){if("hex"===u)for((r=r.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(r="0"+r),T=0;T>6|192,c[v++]=63&I|128):f(r,T)?(I=65536+((1023&I)<<10)+(1023&r.charCodeAt(++T)),c[v++]=I>>18|240,c[v++]=I>>12&63|128,c[v++]=I>>6&63|128,c[v++]=63&I|128):(c[v++]=I>>12|224,c[v++]=I>>6&63|128,c[v++]=63&I|128)}else for(T=0;T>>0;return I},K.split32=function w(r,u){for(var c=new Array(4*r.length),v=0,T=0;v>>24,c[T+1]=I>>>16&255,c[T+2]=I>>>8&255,c[T+3]=255&I):(c[T+3]=I>>>24,c[T+2]=I>>>16&255,c[T+1]=I>>>8&255,c[T]=255&I)}return c},K.rotr32=function D(r,u){return r>>>u|r<<32-u},K.rotl32=function S(r,u){return r<>>32-u},K.sum32=function k(r,u){return r+u>>>0},K.sum32_3=function E(r,u,c){return r+u+c>>>0},K.sum32_4=function B(r,u,c,v){return r+u+c+v>>>0},K.sum32_5=function Z(r,u,c,v,T){return r+u+c+v+T>>>0},K.sum64=function Y(r,u,c,v){var y=v+r[u+1]>>>0;r[u]=(y>>0,r[u+1]=y},K.sum64_hi=function ae(r,u,c,v){return(u+v>>>0>>0},K.sum64_lo=function ee(r,u,c,v){return u+v>>>0},K.sum64_4_hi=function ue(r,u,c,v,T,I,y,n){var _=0,V=u;return _+=(V=V+v>>>0)>>0)>>0)>>0},K.sum64_4_lo=function ne(r,u,c,v,T,I,y,n){return u+v+I+n>>>0},K.sum64_5_hi=function re(r,u,c,v,T,I,y,n,_,V){var N=0,H=u;return N+=(H=H+v>>>0)>>0)>>0)>>0)>>0},K.sum64_5_lo=function ge(r,u,c,v,T,I,y,n,_,V){return u+v+I+n+V>>>0},K.rotr64_hi=function q(r,u,c){return(u<<32-c|r>>>c)>>>0},K.rotr64_lo=function _e(r,u,c){return(r<<32-c|u>>>c)>>>0},K.shr64_hi=function x(r,u,c){return r>>>c},K.shr64_lo=function i(r,u,c){return(r<<32-c|u>>>c)>>>0}},2438:(Be,K,p)=>{"use strict";var t=p(7084),e=p(8195),f=p(2391);function M(a){if(!(this instanceof M))return new M(a);this.hash=a.hash,this.predResist=!!a.predResist,this.outLen=this.hash.outSize,this.minEntropy=a.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var C=e.toArray(a.entropy,a.entropyEnc||"hex"),d=e.toArray(a.nonce,a.nonceEnc||"hex"),R=e.toArray(a.pers,a.persEnc||"hex");f(C.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(C,d,R)}Be.exports=M,M.prototype._init=function(C,d,R){var h=C.concat(d).concat(R);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var L=0;L=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(C.concat(R||[])),this._reseed=1},M.prototype.generate=function(C,d,R,h){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof d&&(h=R,R=d,d=null),R&&(R=e.toArray(R,h||"hex"),this._update(R));for(var L=[];L.length{K.read=function(p,t,e,f,M){var a,C,d=8*M-f-1,R=(1<>1,L=-7,w=e?M-1:0,D=e?-1:1,S=p[t+w];for(w+=D,a=S&(1<<-L)-1,S>>=-L,L+=d;L>0;a=256*a+p[t+w],w+=D,L-=8);for(C=a&(1<<-L)-1,a>>=-L,L+=f;L>0;C=256*C+p[t+w],w+=D,L-=8);if(0===a)a=1-h;else{if(a===R)return C?NaN:1/0*(S?-1:1);C+=Math.pow(2,f),a-=h}return(S?-1:1)*C*Math.pow(2,a-f)},K.write=function(p,t,e,f,M,a){var C,d,R,h=8*a-M-1,L=(1<>1,D=23===M?Math.pow(2,-24)-Math.pow(2,-77):0,S=f?0:a-1,k=f?1:-1,E=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(d=isNaN(t)?1:0,C=L):(C=Math.floor(Math.log(t)/Math.LN2),t*(R=Math.pow(2,-C))<1&&(C--,R*=2),(t+=C+w>=1?D/R:D*Math.pow(2,1-w))*R>=2&&(C++,R/=2),C+w>=L?(d=0,C=L):C+w>=1?(d=(t*R-1)*Math.pow(2,M),C+=w):(d=t*Math.pow(2,w-1)*Math.pow(2,M),C=0));M>=8;p[e+S]=255&d,S+=k,d/=256,M-=8);for(C=C<0;p[e+S]=255&C,S+=k,C/=256,h-=8);p[e+S-k]|=128*E}},3894:Be=>{Be.exports="function"==typeof Object.create?function(p,t){t&&(p.super_=t,p.prototype=Object.create(t.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}))}:function(p,t){if(t){p.super_=t;var e=function(){};e.prototype=t.prototype,p.prototype=new e,p.prototype.constructor=p}}},717:(Be,K,p)=>{"use strict";var t=p(623);function e(f){return!0===t(f)&&"[object Object]"===Object.prototype.toString.call(f)}Be.exports=function(M){var a,C;return!(!1===e(M)||(a=M.constructor,"function"!=typeof a)||(C=a.prototype,!1===e(C))||!1===C.hasOwnProperty("isPrototypeOf"))}},623:Be=>{"use strict";Be.exports=function(p){return null!=p&&"object"==typeof p&&!1===Array.isArray(p)}},2872:Be=>{var K=Object.prototype.toString;function p(h){return"function"==typeof h.constructor?h.constructor.name:null}Be.exports=function(L){if(void 0===L)return"undefined";if(null===L)return"null";var w=typeof L;if("boolean"===w)return"boolean";if("string"===w)return"string";if("number"===w)return"number";if("symbol"===w)return"symbol";if("function"===w)return function a(h,L){return"GeneratorFunction"===p(h)}(L)?"generatorfunction":"function";if(function t(h){return Array.isArray?Array.isArray(h):h instanceof Array}(L))return"array";if(function R(h){return!(!h.constructor||"function"!=typeof h.constructor.isBuffer)&&h.constructor.isBuffer(h)}(L))return"buffer";if(function d(h){try{if("number"==typeof h.length&&"function"==typeof h.callee)return!0}catch(L){if(-1!==L.message.indexOf("callee"))return!0}return!1}(L))return"arguments";if(function f(h){return h instanceof Date||"function"==typeof h.toDateString&&"function"==typeof h.getDate&&"function"==typeof h.setDate}(L))return"date";if(function e(h){return h instanceof Error||"string"==typeof h.message&&h.constructor&&"number"==typeof h.constructor.stackTraceLimit}(L))return"error";if(function M(h){return h instanceof RegExp||"string"==typeof h.flags&&"boolean"==typeof h.ignoreCase&&"boolean"==typeof h.multiline&&"boolean"==typeof h.global}(L))return"regexp";switch(p(L)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function C(h){return"function"==typeof h.throw&&"function"==typeof h.return&&"function"==typeof h.next}(L))return"generator";switch(w=K.call(L)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return w.slice(8,-1).toLowerCase().replace(/\s/g,"")}},8095:(Be,K,p)=>{"use strict";var t=p(3894),e=p(9650),f=p(3502).Buffer,M=new Array(16);function a(){e.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878}function C(w,D){return w<>>32-D}function d(w,D,S,k,E,B,Z){return C(w+(D&S|~D&k)+E+B|0,Z)+D|0}function R(w,D,S,k,E,B,Z){return C(w+(D&k|S&~k)+E+B|0,Z)+D|0}function h(w,D,S,k,E,B,Z){return C(w+(D^S^k)+E+B|0,Z)+D|0}function L(w,D,S,k,E,B,Z){return C(w+(S^(D|~k))+E+B|0,Z)+D|0}t(a,e),a.prototype._update=function(){for(var w=M,D=0;D<16;++D)w[D]=this._block.readInt32LE(4*D);var S=this._a,k=this._b,E=this._c,B=this._d;S=d(S,k,E,B,w[0],3614090360,7),B=d(B,S,k,E,w[1],3905402710,12),E=d(E,B,S,k,w[2],606105819,17),k=d(k,E,B,S,w[3],3250441966,22),S=d(S,k,E,B,w[4],4118548399,7),B=d(B,S,k,E,w[5],1200080426,12),E=d(E,B,S,k,w[6],2821735955,17),k=d(k,E,B,S,w[7],4249261313,22),S=d(S,k,E,B,w[8],1770035416,7),B=d(B,S,k,E,w[9],2336552879,12),E=d(E,B,S,k,w[10],4294925233,17),k=d(k,E,B,S,w[11],2304563134,22),S=d(S,k,E,B,w[12],1804603682,7),B=d(B,S,k,E,w[13],4254626195,12),E=d(E,B,S,k,w[14],2792965006,17),S=R(S,k=d(k,E,B,S,w[15],1236535329,22),E,B,w[1],4129170786,5),B=R(B,S,k,E,w[6],3225465664,9),E=R(E,B,S,k,w[11],643717713,14),k=R(k,E,B,S,w[0],3921069994,20),S=R(S,k,E,B,w[5],3593408605,5),B=R(B,S,k,E,w[10],38016083,9),E=R(E,B,S,k,w[15],3634488961,14),k=R(k,E,B,S,w[4],3889429448,20),S=R(S,k,E,B,w[9],568446438,5),B=R(B,S,k,E,w[14],3275163606,9),E=R(E,B,S,k,w[3],4107603335,14),k=R(k,E,B,S,w[8],1163531501,20),S=R(S,k,E,B,w[13],2850285829,5),B=R(B,S,k,E,w[2],4243563512,9),E=R(E,B,S,k,w[7],1735328473,14),S=h(S,k=R(k,E,B,S,w[12],2368359562,20),E,B,w[5],4294588738,4),B=h(B,S,k,E,w[8],2272392833,11),E=h(E,B,S,k,w[11],1839030562,16),k=h(k,E,B,S,w[14],4259657740,23),S=h(S,k,E,B,w[1],2763975236,4),B=h(B,S,k,E,w[4],1272893353,11),E=h(E,B,S,k,w[7],4139469664,16),k=h(k,E,B,S,w[10],3200236656,23),S=h(S,k,E,B,w[13],681279174,4),B=h(B,S,k,E,w[0],3936430074,11),E=h(E,B,S,k,w[3],3572445317,16),k=h(k,E,B,S,w[6],76029189,23),S=h(S,k,E,B,w[9],3654602809,4),B=h(B,S,k,E,w[12],3873151461,11),E=h(E,B,S,k,w[15],530742520,16),S=L(S,k=h(k,E,B,S,w[2],3299628645,23),E,B,w[0],4096336452,6),B=L(B,S,k,E,w[7],1126891415,10),E=L(E,B,S,k,w[14],2878612391,15),k=L(k,E,B,S,w[5],4237533241,21),S=L(S,k,E,B,w[12],1700485571,6),B=L(B,S,k,E,w[3],2399980690,10),E=L(E,B,S,k,w[10],4293915773,15),k=L(k,E,B,S,w[1],2240044497,21),S=L(S,k,E,B,w[8],1873313359,6),B=L(B,S,k,E,w[15],4264355552,10),E=L(E,B,S,k,w[6],2734768916,15),k=L(k,E,B,S,w[13],1309151649,21),S=L(S,k,E,B,w[4],4149444226,6),B=L(B,S,k,E,w[11],3174756917,10),E=L(E,B,S,k,w[2],718787259,15),k=L(k,E,B,S,w[9],3951481745,21),this._a=this._a+S|0,this._b=this._b+k|0,this._c=this._c+E|0,this._d=this._d+B|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 w=f.allocUnsafe(16);return w.writeInt32LE(this._a,0),w.writeInt32LE(this._b,4),w.writeInt32LE(this._c,8),w.writeInt32LE(this._d,12),w},Be.exports=a},7079:(Be,K,p)=>{var t=p(1378),e=p(7950);function f(M){this.rand=M||new e.Rand}Be.exports=f,f.create=function(a){return new f(a)},f.prototype._randbelow=function(a){var C=a.bitLength(),d=Math.ceil(C/8);do{var R=new t(this.rand.generate(d))}while(R.cmp(a)>=0);return R},f.prototype._randrange=function(a,C){var d=C.sub(a);return a.add(this._randbelow(d))},f.prototype.test=function(a,C,d){var R=a.bitLength(),h=t.mont(a),L=new t(1).toRed(h);C||(C=Math.max(1,R/48|0));for(var w=a.subn(1),D=0;!w.testn(D);D++);for(var S=a.shrn(D),k=w.toRed(h);C>0;C--){var B=this._randrange(new t(2),w);d&&d(B);var Z=B.toRed(h).redPow(S);if(0!==Z.cmp(L)&&0!==Z.cmp(k)){for(var Y=1;Y0;C--){var k=this._randrange(new t(2),L),E=a.gcd(k);if(0!==E.cmpn(1))return E;var B=k.toRed(R).redPow(D);if(0!==B.cmp(h)&&0!==B.cmp(S)){for(var Z=1;Z=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Si=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Si,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},2391:Be=>{function K(p,t){if(!p)throw new Error(t||"Assertion failed")}Be.exports=K,K.equal=function(t,e,f){if(t!=e)throw new Error(f||"Assertion failed: "+t+" != "+e)}},8195:(Be,K)=>{"use strict";var p=K;function e(M){return 1===M.length?"0"+M:M}function f(M){for(var a="",C=0;C>8,L=255&R;h?C.push(h,L):C.push(L)}return C},p.zero2=e,p.toHex=f,p.encode=function(a,C){return"hex"===C?f(a):a}},5768:(Be,K,p)=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});var t=p(842);Object.keys(t).forEach(function(e){"default"!==e&&Object.defineProperty(K,e,{enumerable:!0,get:function(){return t[e]}})})},2999:(Be,K,p)=>{"use strict";var t=p(7977);K.certificate=p(2390);var e=t.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())});K.RSAPrivateKey=e;var f=t.define("RSAPublicKey",function(){this.seq().obj(this.key("modulus").int(),this.key("publicExponent").int())});K.RSAPublicKey=f;var M=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(a),this.key("subjectPublicKey").bitstr())});K.PublicKey=M;var a=t.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())}),C=t.define("PrivateKeyInfo",function(){this.seq().obj(this.key("version").int(),this.key("algorithm").use(a),this.key("subjectPrivateKey").octstr())});K.PrivateKey=C;var d=t.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())});K.EncryptedPrivateKey=d;var R=t.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())});K.DSAPrivateKey=R,K.DSAparam=t.define("DSAparam",function(){this.int()});var h=t.define("ECPrivateKey",function(){this.seq().obj(this.key("version").int(),this.key("privateKey").octstr(),this.key("parameters").optional().explicit(0).use(L),this.key("publicKey").optional().explicit(1).bitstr())});K.ECPrivateKey=h;var L=t.define("ECParameters",function(){this.choice({namedCurve:this.objid()})});K.signature=t.define("signature",function(){this.seq().obj(this.key("r").int(),this.key("s").int())})},2390:(Be,K,p)=>{"use strict";var t=p(7977),e=t.define("Time",function(){this.choice({utcTime:this.utctime(),generalTime:this.gentime()})}),f=t.define("AttributeTypeValue",function(){this.seq().obj(this.key("type").objid(),this.key("value").any())}),M=t.define("AlgorithmIdentifier",function(){this.seq().obj(this.key("algorithm").objid(),this.key("parameters").optional(),this.key("curve").objid().optional())}),a=t.define("SubjectPublicKeyInfo",function(){this.seq().obj(this.key("algorithm").use(M),this.key("subjectPublicKey").bitstr())}),C=t.define("RelativeDistinguishedName",function(){this.setof(f)}),d=t.define("RDNSequence",function(){this.seqof(C)}),R=t.define("Name",function(){this.choice({rdnSequence:this.use(d)})}),h=t.define("Validity",function(){this.seq().obj(this.key("notBefore").use(e),this.key("notAfter").use(e))}),L=t.define("Extension",function(){this.seq().obj(this.key("extnID").objid(),this.key("critical").bool().def(!1),this.key("extnValue").octstr())}),w=t.define("TBSCertificate",function(){this.seq().obj(this.key("version").explicit(0).int().optional(),this.key("serialNumber").int(),this.key("signature").use(M),this.key("issuer").use(R),this.key("validity").use(h),this.key("subject").use(R),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(L).optional())}),D=t.define("X509Certificate",function(){this.seq().obj(this.key("tbsCertificate").use(w),this.key("signatureAlgorithm").use(M),this.key("signatureValue").bitstr())});Be.exports=D},5269:(Be,K,p)=>{var t=/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,e=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----/m,f=/^-----BEGIN ((?:.*? KEY)|CERTIFICATE)-----([0-9A-z\n\r+/=]+)-----END \1-----$/m,M=p(347),a=p(4330),C=p(3502).Buffer;Be.exports=function(d,R){var w,h=d.toString(),L=h.match(t);if(L){var S="aes"+L[1],k=C.from(L[2],"hex"),E=C.from(L[3].replace(/[\r\n]/g,""),"base64"),B=M(R,k.slice(0,8),parseInt(L[1],10)).key,Z=[],Y=a.createDecipheriv(S,B,k);Z.push(Y.update(E)),Z.push(Y.final()),w=C.concat(Z)}else{var D=h.match(f);w=C.from(D[2].replace(/[\r\n]/g,""),"base64")}return{tag:h.match(e)[1],data:w}}},2772:(Be,K,p)=>{var t=p(2999),e=p(2562),f=p(5269),M=p(4330),a=p(9357),C=p(3502).Buffer;function d(h){var L;"object"==typeof h&&!C.isBuffer(h)&&(L=h.passphrase,h=h.key),"string"==typeof h&&(h=C.from(h));var k,E,w=f(h,L),D=w.tag,S=w.data;switch(D){case"CERTIFICATE":E=t.certificate.decode(S,"der").tbsCertificate.subjectPublicKeyInfo;case"PUBLIC KEY":switch(E||(E=t.PublicKey.decode(S,"der")),k=E.algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPublicKey.decode(E.subjectPublicKey.data,"der");case"1.2.840.10045.2.1":return E.subjectPrivateKey=E.subjectPublicKey,{type:"ec",data:E};case"1.2.840.10040.4.1":return E.algorithm.params.pub_key=t.DSAparam.decode(E.subjectPublicKey.data,"der"),{type:"dsa",data:E.algorithm.params};default:throw new Error("unknown key id "+k)}case"ENCRYPTED PRIVATE KEY":S=function R(h,L){var w=h.algorithm.decrypt.kde.kdeparams.salt,D=parseInt(h.algorithm.decrypt.kde.kdeparams.iters.toString(),10),S=e[h.algorithm.decrypt.cipher.algo.join(".")],k=h.algorithm.decrypt.cipher.iv,E=h.subjectPrivateKey,B=parseInt(S.split("-")[1],10)/8,Z=a.pbkdf2Sync(L,w,D,B,"sha1"),Y=M.createDecipheriv(S,Z,k),ae=[];return ae.push(Y.update(E)),ae.push(Y.final()),C.concat(ae)}(S=t.EncryptedPrivateKey.decode(S,"der"),L);case"PRIVATE KEY":switch(k=(E=t.PrivateKey.decode(S,"der")).algorithm.algorithm.join(".")){case"1.2.840.113549.1.1.1":return t.RSAPrivateKey.decode(E.subjectPrivateKey,"der");case"1.2.840.10045.2.1":return{curve:E.algorithm.curve,privateKey:t.ECPrivateKey.decode(E.subjectPrivateKey,"der").privateKey};case"1.2.840.10040.4.1":return E.algorithm.params.priv_key=t.DSAparam.decode(E.subjectPrivateKey,"der"),{type:"dsa",params:E.algorithm.params};default:throw new Error("unknown key id "+k)}case"RSA PUBLIC KEY":return t.RSAPublicKey.decode(S,"der");case"RSA PRIVATE KEY":return t.RSAPrivateKey.decode(S,"der");case"DSA PRIVATE KEY":return{type:"dsa",params:t.DSAPrivateKey.decode(S,"der")};case"EC PRIVATE KEY":return{curve:(S=t.ECPrivateKey.decode(S,"der")).parameters.value,privateKey:S.privateKey};default:throw new Error("unknown key type "+D)}}Be.exports=d,d.signature=t.signature},9357:(Be,K,p)=>{K.pbkdf2=p(415),K.pbkdf2Sync=p(7472)},415:(Be,K,p)=>{var C,w,t=p(3502).Buffer,e=p(2697),f=p(8867),M=p(7472),a=p(4566),d=global.crypto&&global.crypto.subtle,R={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"},h=[];function D(){return w||(w=global.process&&global.process.nextTick?global.process.nextTick:global.queueMicrotask?global.queueMicrotask:global.setImmediate?global.setImmediate:global.setTimeout)}function S(E,B,Z,Y,ae){return d.importKey("raw",E,{name:"PBKDF2"},!1,["deriveBits"]).then(function(ee){return d.deriveBits({name:"PBKDF2",salt:B,iterations:Z,hash:{name:ae}},ee,Y<<3)}).then(function(ee){return t.from(ee)})}Be.exports=function(E,B,Z,Y,ae,ee){"function"==typeof ae&&(ee=ae,ae=void 0);var ue=R[(ae=ae||"sha1").toLowerCase()];if(ue&&"function"==typeof global.Promise){if(e(Z,Y),E=a(E,f,"Password"),B=a(B,f,"Salt"),"function"!=typeof ee)throw new Error("No callback provided to pbkdf2");!function k(E,B){E.then(function(Z){D()(function(){B(null,Z)})},function(Z){D()(function(){B(Z)})})}(function L(E){if(global.process&&!global.process.browser||!d||!d.importKey||!d.deriveBits)return Promise.resolve(!1);if(void 0!==h[E])return h[E];var B=S(C=C||t.alloc(8),C,10,128,E).then(function(){return!0}).catch(function(){return!1});return h[E]=B,B}(ue).then(function(ne){return ne?S(E,B,Z,Y,ue):M(E,B,Z,Y,ae)}),ee)}else D()(function(){var ne;try{ne=M(E,B,Z,Y,ae)}catch(re){return ee(re)}ee(null,ne)})}},8867:Be=>{var K;K=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",Be.exports=K},2697:Be=>{var K=Math.pow(2,30)-1;Be.exports=function(p,t){if("number"!=typeof p)throw new TypeError("Iterations not a number");if(p<0)throw new TypeError("Bad iterations");if("number"!=typeof t)throw new TypeError("Key length not a number");if(t<0||t>K||t!=t)throw new TypeError("Bad key length")}},7472:(Be,K,p)=>{var t=p(5640),e=p(5634),f=p(5244),M=p(3502).Buffer,a=p(2697),C=p(8867),d=p(4566),R=M.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function L(S,k,E){var B=function w(S){return"rmd160"===S||"ripemd160"===S?function E(B){return(new e).update(B).digest()}:"md5"===S?t:function k(B){return f(S).update(B).digest()}}(S),Z="sha512"===S||"sha384"===S?128:64;k.length>Z?k=B(k):k.length{var t=p(3502).Buffer;Be.exports=function(e,f,M){if(t.isBuffer(e))return e;if("string"==typeof e)return t.from(e,f);if(ArrayBuffer.isView(e))return t.from(e.buffer);throw new TypeError(M+" must be a string, a Buffer, a typed array or a DataView")}},3701:(Be,K,p)=>{K.publicEncrypt=p(6562),K.privateDecrypt=p(6705),K.privateEncrypt=function(e,f){return K.publicEncrypt(e,f,!0)},K.publicDecrypt=function(e,f){return K.privateDecrypt(e,f,!0)}},6945:(Be,K,p)=>{var t=p(6386),e=p(3502).Buffer;function f(M){var a=e.allocUnsafe(4);return a.writeUInt32BE(M,0),a}Be.exports=function(M,a){for(var R,C=e.alloc(0),d=0;C.length=65&&r<=70?r-55:r>=97&&r<=102?r-87:r-48&15}function R(x,i,r){var u=d(x,r);return r-1>=i&&(u|=d(x,r-1)<<4),u}function h(x,i,r,u){for(var c=0,v=Math.min(x.length,r),T=i;T=49?I-49+10:I>=17?I-17+10:I}return c}a.isBN=function(i){return i instanceof a||null!==i&&"object"==typeof i&&i.constructor.wordSize===a.wordSize&&Array.isArray(i.words)},a.max=function(i,r){return i.cmp(r)>0?i:r},a.min=function(i,r){return i.cmp(r)<0?i:r},a.prototype._init=function(i,r,u){if("number"==typeof i)return this._initNumber(i,r,u);if("object"==typeof i)return this._initArray(i,r,u);"hex"===r&&(r=16),f(r===(0|r)&&r>=2&&r<=36);var c=0;"-"===(i=i.toString().replace(/\s+/g,""))[0]&&(c++,this.negative=1),c=0;c-=3)this.words[v]|=(T=i[c]|i[c-1]<<8|i[c-2]<<16)<>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);else if("le"===u)for(c=0,v=0;c>>26-I&67108863,(I+=24)>=26&&(I-=26,v++);return this.strip()},a.prototype._parseHex=function(i,r,u){this.length=Math.ceil((i.length-r)/6),this.words=new Array(this.length);for(var c=0;c=r;c-=2)I=R(i,r,c)<=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;else for(c=(i.length-r)%2==0?r+1:r;c=18?(v-=18,this.words[T+=1]|=I>>>26):v+=8;this.strip()},a.prototype._parseBase=function(i,r,u){this.words=[0],this.length=1;for(var c=0,v=1;v<=67108863;v*=r)c++;c--,v=v/r|0;for(var T=i.length-u,I=T%c,y=Math.min(T,T-I)+u,n=0,_=u;_1&&0===this.words[this.length-1];)this.length--;return this._normSign()},a.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},a.prototype.inspect=function(){return(this.red?""};var L=["","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"],w=[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 k(x,i,r){r.negative=i.negative^x.negative;var u=x.length+i.length|0;r.length=u,u=u-1|0;var c=0|x.words[0],v=0|i.words[0],T=c*v,y=T/67108864|0;r.words[0]=67108863&T;for(var n=1;n>>26,V=67108863&y,N=Math.min(n,i.length-1),H=Math.max(0,n-x.length+1);H<=N;H++)_+=(T=(c=0|x.words[n-H|0])*(v=0|i.words[H])+V)/67108864|0,V=67108863&T;r.words[n]=0|V,y=0|_}return 0!==y?r.words[n]=0|y:r.length--,r.strip()}a.prototype.toString=function(i,r){var u;if(r=0|r||1,16===(i=i||10)||"hex"===i){u="";for(var c=0,v=0,T=0;T>>24-c&16777215)||T!==this.length-1?L[6-y.length]+y+u:y+u,(c+=2)>=26&&(c-=26,T--)}for(0!==v&&(u=v.toString(16)+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}if(i===(0|i)&&i>=2&&i<=36){var n=w[i],_=D[i];u="";var V=this.clone();for(V.negative=0;!V.isZero();){var N=V.modn(_).toString(i);u=(V=V.idivn(_)).isZero()?N+u:L[n-N.length]+N+u}for(this.isZero()&&(u="0"+u);u.length%r!=0;)u="0"+u;return 0!==this.negative&&(u="-"+u),u}f(!1,"Base should be between 2 and 36")},a.prototype.toNumber=function(){var i=this.words[0];return 2===this.length?i+=67108864*this.words[1]:3===this.length&&1===this.words[2]?i+=4503599627370496+67108864*this.words[1]:this.length>2&&f(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-i:i},a.prototype.toJSON=function(){return this.toString(16)},a.prototype.toBuffer=function(i,r){return f(void 0!==C),this.toArrayLike(C,i,r)},a.prototype.toArray=function(i,r){return this.toArrayLike(Array,i,r)},a.prototype.toArrayLike=function(i,r,u){var c=this.byteLength(),v=u||Math.max(1,c);f(c<=v,"byte array longer than desired length"),f(v>0,"Requested array length <= 0"),this.strip();var y,n,T="le"===r,I=new i(v),_=this.clone();if(T){for(n=0;!_.isZero();n++)y=_.andln(255),_.iushrn(8),I[n]=y;for(;n=4096&&(u+=13,r>>>=13),r>=64&&(u+=7,r>>>=7),r>=8&&(u+=4,r>>>=4),r>=2&&(u+=2,r>>>=2),u+r},a.prototype._zeroBits=function(i){if(0===i)return 26;var r=i,u=0;return 0==(8191&r)&&(u+=13,r>>>=13),0==(127&r)&&(u+=7,r>>>=7),0==(15&r)&&(u+=4,r>>>=4),0==(3&r)&&(u+=2,r>>>=2),0==(1&r)&&u++,u},a.prototype.bitLength=function(){var r=this._countBits(this.words[this.length-1]);return 26*(this.length-1)+r},a.prototype.zeroBits=function(){if(this.isZero())return 0;for(var i=0,r=0;ri.length?this.clone().ior(i):i.clone().ior(this)},a.prototype.uor=function(i){return this.length>i.length?this.clone().iuor(i):i.clone().iuor(this)},a.prototype.iuand=function(i){var r;r=this.length>i.length?i:this;for(var u=0;ui.length?this.clone().iand(i):i.clone().iand(this)},a.prototype.uand=function(i){return this.length>i.length?this.clone().iuand(i):i.clone().iuand(this)},a.prototype.iuxor=function(i){var r,u;this.length>i.length?(r=this,u=i):(r=i,u=this);for(var c=0;ci.length?this.clone().ixor(i):i.clone().ixor(this)},a.prototype.uxor=function(i){return this.length>i.length?this.clone().iuxor(i):i.clone().iuxor(this)},a.prototype.inotn=function(i){f("number"==typeof i&&i>=0);var r=0|Math.ceil(i/26),u=i%26;this._expand(r),u>0&&r--;for(var c=0;c0&&(this.words[c]=~this.words[c]&67108863>>26-u),this.strip()},a.prototype.notn=function(i){return this.clone().inotn(i)},a.prototype.setn=function(i,r){f("number"==typeof i&&i>=0);var u=i/26|0,c=i%26;return this._expand(u+1),this.words[u]=r?this.words[u]|1<i.length?(u=this,c=i):(u=i,c=this);for(var v=0,T=0;T>>26;for(;0!==v&&T>>26;if(this.length=u.length,0!==v)this.words[this.length]=v,this.length++;else if(u!==this)for(;Ti.length?this.clone().iadd(i):i.clone().iadd(this)},a.prototype.isub=function(i){if(0!==i.negative){i.negative=0;var r=this.iadd(i);return i.negative=1,r._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(i),this.negative=1,this._normSign();var c,v,u=this.cmp(i);if(0===u)return this.negative=0,this.length=1,this.words[0]=0,this;u>0?(c=this,v=i):(c=i,v=this);for(var T=0,I=0;I>26,this.words[I]=67108863&r;for(;0!==T&&I>26,this.words[I]=67108863&r;if(0===T&&I>>13,X=0|c[1],he=8191&X,be=X>>>13,Pe=0|c[2],Ee=8191&Pe,j=Pe>>>13,Ve=0|c[3],Me=8191&Ve,J=Ve>>>13,Ie=0|c[4],ut=8191&Ie,Oe=Ie>>>13,we=0|c[5],ce=8191&we,Te=we>>>13,xe=0|c[6],W=8191&xe,te=xe>>>13,Ce=0|c[7],fe=8191&Ce,Q=Ce>>>13,pt=0|c[8],tt=8191&pt,Dt=pt>>>13,di=0|c[9],Yt=8191&di,Zt=di>>>13,ui=0|v[0],Ot=8191&ui,Nt=ui>>>13,gt=0|v[1],it=8191>,bt=gt>>>13,ti=0|v[2],Qt=8191&ti,Re=ti>>>13,ke=0|v[3],de=8191&ke,ye=ke>>>13,ht=0|v[4],mt=8191&ht,Ft=ht>>>13,nt=0|v[5],He=8191&nt,rt=nt>>>13,et=0|v[6],Ae=8191&et,Ge=et>>>13,ot=0|v[7],lt=8191&ot,Ct=ot>>>13,mi=0|v[8],Jt=8191&mi,ei=mi>>>13,Qi=0|v[9],hi=8191&Qi,si=Qi>>>13;u.negative=i.negative^r.negative,u.length=19;var Ji=(I+(y=Math.imul(N,Ot))|0)+((8191&(n=(n=Math.imul(N,Nt))+Math.imul(H,Ot)|0))<<13)|0;I=((_=Math.imul(H,Nt))+(n>>>13)|0)+(Ji>>>26)|0,Ji&=67108863,y=Math.imul(he,Ot),n=(n=Math.imul(he,Nt))+Math.imul(be,Ot)|0,_=Math.imul(be,Nt);var Zi=(I+(y=y+Math.imul(N,it)|0)|0)+((8191&(n=(n=n+Math.imul(N,bt)|0)+Math.imul(H,it)|0))<<13)|0;I=((_=_+Math.imul(H,bt)|0)+(n>>>13)|0)+(Zi>>>26)|0,Zi&=67108863,y=Math.imul(Ee,Ot),n=(n=Math.imul(Ee,Nt))+Math.imul(j,Ot)|0,_=Math.imul(j,Nt),y=y+Math.imul(he,it)|0,n=(n=n+Math.imul(he,bt)|0)+Math.imul(be,it)|0,_=_+Math.imul(be,bt)|0;var Vi=(I+(y=y+Math.imul(N,Qt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Re)|0)+Math.imul(H,Qt)|0))<<13)|0;I=((_=_+Math.imul(H,Re)|0)+(n>>>13)|0)+(Vi>>>26)|0,Vi&=67108863,y=Math.imul(Me,Ot),n=(n=Math.imul(Me,Nt))+Math.imul(J,Ot)|0,_=Math.imul(J,Nt),y=y+Math.imul(Ee,it)|0,n=(n=n+Math.imul(Ee,bt)|0)+Math.imul(j,it)|0,_=_+Math.imul(j,bt)|0,y=y+Math.imul(he,Qt)|0,n=(n=n+Math.imul(he,Re)|0)+Math.imul(be,Qt)|0,_=_+Math.imul(be,Re)|0;var Ui=(I+(y=y+Math.imul(N,de)|0)|0)+((8191&(n=(n=n+Math.imul(N,ye)|0)+Math.imul(H,de)|0))<<13)|0;I=((_=_+Math.imul(H,ye)|0)+(n>>>13)|0)+(Ui>>>26)|0,Ui&=67108863,y=Math.imul(ut,Ot),n=(n=Math.imul(ut,Nt))+Math.imul(Oe,Ot)|0,_=Math.imul(Oe,Nt),y=y+Math.imul(Me,it)|0,n=(n=n+Math.imul(Me,bt)|0)+Math.imul(J,it)|0,_=_+Math.imul(J,bt)|0,y=y+Math.imul(Ee,Qt)|0,n=(n=n+Math.imul(Ee,Re)|0)+Math.imul(j,Qt)|0,_=_+Math.imul(j,Re)|0,y=y+Math.imul(he,de)|0,n=(n=n+Math.imul(he,ye)|0)+Math.imul(be,de)|0,_=_+Math.imul(be,ye)|0;var Ue=(I+(y=y+Math.imul(N,mt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ft)|0)+Math.imul(H,mt)|0))<<13)|0;I=((_=_+Math.imul(H,Ft)|0)+(n>>>13)|0)+(Ue>>>26)|0,Ue&=67108863,y=Math.imul(ce,Ot),n=(n=Math.imul(ce,Nt))+Math.imul(Te,Ot)|0,_=Math.imul(Te,Nt),y=y+Math.imul(ut,it)|0,n=(n=n+Math.imul(ut,bt)|0)+Math.imul(Oe,it)|0,_=_+Math.imul(Oe,bt)|0,y=y+Math.imul(Me,Qt)|0,n=(n=n+Math.imul(Me,Re)|0)+Math.imul(J,Qt)|0,_=_+Math.imul(J,Re)|0,y=y+Math.imul(Ee,de)|0,n=(n=n+Math.imul(Ee,ye)|0)+Math.imul(j,de)|0,_=_+Math.imul(j,ye)|0,y=y+Math.imul(he,mt)|0,n=(n=n+Math.imul(he,Ft)|0)+Math.imul(be,mt)|0,_=_+Math.imul(be,Ft)|0;var Tt=(I+(y=y+Math.imul(N,He)|0)|0)+((8191&(n=(n=n+Math.imul(N,rt)|0)+Math.imul(H,He)|0))<<13)|0;I=((_=_+Math.imul(H,rt)|0)+(n>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,y=Math.imul(W,Ot),n=(n=Math.imul(W,Nt))+Math.imul(te,Ot)|0,_=Math.imul(te,Nt),y=y+Math.imul(ce,it)|0,n=(n=n+Math.imul(ce,bt)|0)+Math.imul(Te,it)|0,_=_+Math.imul(Te,bt)|0,y=y+Math.imul(ut,Qt)|0,n=(n=n+Math.imul(ut,Re)|0)+Math.imul(Oe,Qt)|0,_=_+Math.imul(Oe,Re)|0,y=y+Math.imul(Me,de)|0,n=(n=n+Math.imul(Me,ye)|0)+Math.imul(J,de)|0,_=_+Math.imul(J,ye)|0,y=y+Math.imul(Ee,mt)|0,n=(n=n+Math.imul(Ee,Ft)|0)+Math.imul(j,mt)|0,_=_+Math.imul(j,Ft)|0,y=y+Math.imul(he,He)|0,n=(n=n+Math.imul(he,rt)|0)+Math.imul(be,He)|0,_=_+Math.imul(be,rt)|0;var ve=(I+(y=y+Math.imul(N,Ae)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ge)|0)+Math.imul(H,Ae)|0))<<13)|0;I=((_=_+Math.imul(H,Ge)|0)+(n>>>13)|0)+(ve>>>26)|0,ve&=67108863,y=Math.imul(fe,Ot),n=(n=Math.imul(fe,Nt))+Math.imul(Q,Ot)|0,_=Math.imul(Q,Nt),y=y+Math.imul(W,it)|0,n=(n=n+Math.imul(W,bt)|0)+Math.imul(te,it)|0,_=_+Math.imul(te,bt)|0,y=y+Math.imul(ce,Qt)|0,n=(n=n+Math.imul(ce,Re)|0)+Math.imul(Te,Qt)|0,_=_+Math.imul(Te,Re)|0,y=y+Math.imul(ut,de)|0,n=(n=n+Math.imul(ut,ye)|0)+Math.imul(Oe,de)|0,_=_+Math.imul(Oe,ye)|0,y=y+Math.imul(Me,mt)|0,n=(n=n+Math.imul(Me,Ft)|0)+Math.imul(J,mt)|0,_=_+Math.imul(J,Ft)|0,y=y+Math.imul(Ee,He)|0,n=(n=n+Math.imul(Ee,rt)|0)+Math.imul(j,He)|0,_=_+Math.imul(j,rt)|0,y=y+Math.imul(he,Ae)|0,n=(n=n+Math.imul(he,Ge)|0)+Math.imul(be,Ae)|0,_=_+Math.imul(be,Ge)|0;var Qe=(I+(y=y+Math.imul(N,lt)|0)|0)+((8191&(n=(n=n+Math.imul(N,Ct)|0)+Math.imul(H,lt)|0))<<13)|0;I=((_=_+Math.imul(H,Ct)|0)+(n>>>13)|0)+(Qe>>>26)|0,Qe&=67108863,y=Math.imul(tt,Ot),n=(n=Math.imul(tt,Nt))+Math.imul(Dt,Ot)|0,_=Math.imul(Dt,Nt),y=y+Math.imul(fe,it)|0,n=(n=n+Math.imul(fe,bt)|0)+Math.imul(Q,it)|0,_=_+Math.imul(Q,bt)|0,y=y+Math.imul(W,Qt)|0,n=(n=n+Math.imul(W,Re)|0)+Math.imul(te,Qt)|0,_=_+Math.imul(te,Re)|0,y=y+Math.imul(ce,de)|0,n=(n=n+Math.imul(ce,ye)|0)+Math.imul(Te,de)|0,_=_+Math.imul(Te,ye)|0,y=y+Math.imul(ut,mt)|0,n=(n=n+Math.imul(ut,Ft)|0)+Math.imul(Oe,mt)|0,_=_+Math.imul(Oe,Ft)|0,y=y+Math.imul(Me,He)|0,n=(n=n+Math.imul(Me,rt)|0)+Math.imul(J,He)|0,_=_+Math.imul(J,rt)|0,y=y+Math.imul(Ee,Ae)|0,n=(n=n+Math.imul(Ee,Ge)|0)+Math.imul(j,Ae)|0,_=_+Math.imul(j,Ge)|0,y=y+Math.imul(he,lt)|0,n=(n=n+Math.imul(he,Ct)|0)+Math.imul(be,lt)|0,_=_+Math.imul(be,Ct)|0;var _t=(I+(y=y+Math.imul(N,Jt)|0)|0)+((8191&(n=(n=n+Math.imul(N,ei)|0)+Math.imul(H,Jt)|0))<<13)|0;I=((_=_+Math.imul(H,ei)|0)+(n>>>13)|0)+(_t>>>26)|0,_t&=67108863,y=Math.imul(Yt,Ot),n=(n=Math.imul(Yt,Nt))+Math.imul(Zt,Ot)|0,_=Math.imul(Zt,Nt),y=y+Math.imul(tt,it)|0,n=(n=n+Math.imul(tt,bt)|0)+Math.imul(Dt,it)|0,_=_+Math.imul(Dt,bt)|0,y=y+Math.imul(fe,Qt)|0,n=(n=n+Math.imul(fe,Re)|0)+Math.imul(Q,Qt)|0,_=_+Math.imul(Q,Re)|0,y=y+Math.imul(W,de)|0,n=(n=n+Math.imul(W,ye)|0)+Math.imul(te,de)|0,_=_+Math.imul(te,ye)|0,y=y+Math.imul(ce,mt)|0,n=(n=n+Math.imul(ce,Ft)|0)+Math.imul(Te,mt)|0,_=_+Math.imul(Te,Ft)|0,y=y+Math.imul(ut,He)|0,n=(n=n+Math.imul(ut,rt)|0)+Math.imul(Oe,He)|0,_=_+Math.imul(Oe,rt)|0,y=y+Math.imul(Me,Ae)|0,n=(n=n+Math.imul(Me,Ge)|0)+Math.imul(J,Ae)|0,_=_+Math.imul(J,Ge)|0,y=y+Math.imul(Ee,lt)|0,n=(n=n+Math.imul(Ee,Ct)|0)+Math.imul(j,lt)|0,_=_+Math.imul(j,Ct)|0,y=y+Math.imul(he,Jt)|0,n=(n=n+Math.imul(he,ei)|0)+Math.imul(be,Jt)|0,_=_+Math.imul(be,ei)|0;var se=(I+(y=y+Math.imul(N,hi)|0)|0)+((8191&(n=(n=n+Math.imul(N,si)|0)+Math.imul(H,hi)|0))<<13)|0;I=((_=_+Math.imul(H,si)|0)+(n>>>13)|0)+(se>>>26)|0,se&=67108863,y=Math.imul(Yt,it),n=(n=Math.imul(Yt,bt))+Math.imul(Zt,it)|0,_=Math.imul(Zt,bt),y=y+Math.imul(tt,Qt)|0,n=(n=n+Math.imul(tt,Re)|0)+Math.imul(Dt,Qt)|0,_=_+Math.imul(Dt,Re)|0,y=y+Math.imul(fe,de)|0,n=(n=n+Math.imul(fe,ye)|0)+Math.imul(Q,de)|0,_=_+Math.imul(Q,ye)|0,y=y+Math.imul(W,mt)|0,n=(n=n+Math.imul(W,Ft)|0)+Math.imul(te,mt)|0,_=_+Math.imul(te,Ft)|0,y=y+Math.imul(ce,He)|0,n=(n=n+Math.imul(ce,rt)|0)+Math.imul(Te,He)|0,_=_+Math.imul(Te,rt)|0,y=y+Math.imul(ut,Ae)|0,n=(n=n+Math.imul(ut,Ge)|0)+Math.imul(Oe,Ae)|0,_=_+Math.imul(Oe,Ge)|0,y=y+Math.imul(Me,lt)|0,n=(n=n+Math.imul(Me,Ct)|0)+Math.imul(J,lt)|0,_=_+Math.imul(J,Ct)|0,y=y+Math.imul(Ee,Jt)|0,n=(n=n+Math.imul(Ee,ei)|0)+Math.imul(j,Jt)|0,_=_+Math.imul(j,ei)|0;var Xe=(I+(y=y+Math.imul(he,hi)|0)|0)+((8191&(n=(n=n+Math.imul(he,si)|0)+Math.imul(be,hi)|0))<<13)|0;I=((_=_+Math.imul(be,si)|0)+(n>>>13)|0)+(Xe>>>26)|0,Xe&=67108863,y=Math.imul(Yt,Qt),n=(n=Math.imul(Yt,Re))+Math.imul(Zt,Qt)|0,_=Math.imul(Zt,Re),y=y+Math.imul(tt,de)|0,n=(n=n+Math.imul(tt,ye)|0)+Math.imul(Dt,de)|0,_=_+Math.imul(Dt,ye)|0,y=y+Math.imul(fe,mt)|0,n=(n=n+Math.imul(fe,Ft)|0)+Math.imul(Q,mt)|0,_=_+Math.imul(Q,Ft)|0,y=y+Math.imul(W,He)|0,n=(n=n+Math.imul(W,rt)|0)+Math.imul(te,He)|0,_=_+Math.imul(te,rt)|0,y=y+Math.imul(ce,Ae)|0,n=(n=n+Math.imul(ce,Ge)|0)+Math.imul(Te,Ae)|0,_=_+Math.imul(Te,Ge)|0,y=y+Math.imul(ut,lt)|0,n=(n=n+Math.imul(ut,Ct)|0)+Math.imul(Oe,lt)|0,_=_+Math.imul(Oe,Ct)|0,y=y+Math.imul(Me,Jt)|0,n=(n=n+Math.imul(Me,ei)|0)+Math.imul(J,Jt)|0,_=_+Math.imul(J,ei)|0;var xt=(I+(y=y+Math.imul(Ee,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Ee,si)|0)+Math.imul(j,hi)|0))<<13)|0;I=((_=_+Math.imul(j,si)|0)+(n>>>13)|0)+(xt>>>26)|0,xt&=67108863,y=Math.imul(Yt,de),n=(n=Math.imul(Yt,ye))+Math.imul(Zt,de)|0,_=Math.imul(Zt,ye),y=y+Math.imul(tt,mt)|0,n=(n=n+Math.imul(tt,Ft)|0)+Math.imul(Dt,mt)|0,_=_+Math.imul(Dt,Ft)|0,y=y+Math.imul(fe,He)|0,n=(n=n+Math.imul(fe,rt)|0)+Math.imul(Q,He)|0,_=_+Math.imul(Q,rt)|0,y=y+Math.imul(W,Ae)|0,n=(n=n+Math.imul(W,Ge)|0)+Math.imul(te,Ae)|0,_=_+Math.imul(te,Ge)|0,y=y+Math.imul(ce,lt)|0,n=(n=n+Math.imul(ce,Ct)|0)+Math.imul(Te,lt)|0,_=_+Math.imul(Te,Ct)|0,y=y+Math.imul(ut,Jt)|0,n=(n=n+Math.imul(ut,ei)|0)+Math.imul(Oe,Jt)|0,_=_+Math.imul(Oe,ei)|0;var Bt=(I+(y=y+Math.imul(Me,hi)|0)|0)+((8191&(n=(n=n+Math.imul(Me,si)|0)+Math.imul(J,hi)|0))<<13)|0;I=((_=_+Math.imul(J,si)|0)+(n>>>13)|0)+(Bt>>>26)|0,Bt&=67108863,y=Math.imul(Yt,mt),n=(n=Math.imul(Yt,Ft))+Math.imul(Zt,mt)|0,_=Math.imul(Zt,Ft),y=y+Math.imul(tt,He)|0,n=(n=n+Math.imul(tt,rt)|0)+Math.imul(Dt,He)|0,_=_+Math.imul(Dt,rt)|0,y=y+Math.imul(fe,Ae)|0,n=(n=n+Math.imul(fe,Ge)|0)+Math.imul(Q,Ae)|0,_=_+Math.imul(Q,Ge)|0,y=y+Math.imul(W,lt)|0,n=(n=n+Math.imul(W,Ct)|0)+Math.imul(te,lt)|0,_=_+Math.imul(te,Ct)|0,y=y+Math.imul(ce,Jt)|0,n=(n=n+Math.imul(ce,ei)|0)+Math.imul(Te,Jt)|0,_=_+Math.imul(Te,ei)|0;var bi=(I+(y=y+Math.imul(ut,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ut,si)|0)+Math.imul(Oe,hi)|0))<<13)|0;I=((_=_+Math.imul(Oe,si)|0)+(n>>>13)|0)+(bi>>>26)|0,bi&=67108863,y=Math.imul(Yt,He),n=(n=Math.imul(Yt,rt))+Math.imul(Zt,He)|0,_=Math.imul(Zt,rt),y=y+Math.imul(tt,Ae)|0,n=(n=n+Math.imul(tt,Ge)|0)+Math.imul(Dt,Ae)|0,_=_+Math.imul(Dt,Ge)|0,y=y+Math.imul(fe,lt)|0,n=(n=n+Math.imul(fe,Ct)|0)+Math.imul(Q,lt)|0,_=_+Math.imul(Q,Ct)|0,y=y+Math.imul(W,Jt)|0,n=(n=n+Math.imul(W,ei)|0)+Math.imul(te,Jt)|0,_=_+Math.imul(te,ei)|0;var Si=(I+(y=y+Math.imul(ce,hi)|0)|0)+((8191&(n=(n=n+Math.imul(ce,si)|0)+Math.imul(Te,hi)|0))<<13)|0;I=((_=_+Math.imul(Te,si)|0)+(n>>>13)|0)+(Si>>>26)|0,Si&=67108863,y=Math.imul(Yt,Ae),n=(n=Math.imul(Yt,Ge))+Math.imul(Zt,Ae)|0,_=Math.imul(Zt,Ge),y=y+Math.imul(tt,lt)|0,n=(n=n+Math.imul(tt,Ct)|0)+Math.imul(Dt,lt)|0,_=_+Math.imul(Dt,Ct)|0,y=y+Math.imul(fe,Jt)|0,n=(n=n+Math.imul(fe,ei)|0)+Math.imul(Q,Jt)|0,_=_+Math.imul(Q,ei)|0;var Xi=(I+(y=y+Math.imul(W,hi)|0)|0)+((8191&(n=(n=n+Math.imul(W,si)|0)+Math.imul(te,hi)|0))<<13)|0;I=((_=_+Math.imul(te,si)|0)+(n>>>13)|0)+(Xi>>>26)|0,Xi&=67108863,y=Math.imul(Yt,lt),n=(n=Math.imul(Yt,Ct))+Math.imul(Zt,lt)|0,_=Math.imul(Zt,Ct),y=y+Math.imul(tt,Jt)|0,n=(n=n+Math.imul(tt,ei)|0)+Math.imul(Dt,Jt)|0,_=_+Math.imul(Dt,ei)|0;var Wi=(I+(y=y+Math.imul(fe,hi)|0)|0)+((8191&(n=(n=n+Math.imul(fe,si)|0)+Math.imul(Q,hi)|0))<<13)|0;I=((_=_+Math.imul(Q,si)|0)+(n>>>13)|0)+(Wi>>>26)|0,Wi&=67108863,y=Math.imul(Yt,Jt),n=(n=Math.imul(Yt,ei))+Math.imul(Zt,Jt)|0,_=Math.imul(Zt,ei);var on=(I+(y=y+Math.imul(tt,hi)|0)|0)+((8191&(n=(n=n+Math.imul(tt,si)|0)+Math.imul(Dt,hi)|0))<<13)|0;I=((_=_+Math.imul(Dt,si)|0)+(n>>>13)|0)+(on>>>26)|0,on&=67108863;var pn=(I+(y=Math.imul(Yt,hi))|0)+((8191&(n=(n=Math.imul(Yt,si))+Math.imul(Zt,hi)|0))<<13)|0;return I=((_=Math.imul(Zt,si))+(n>>>13)|0)+(pn>>>26)|0,pn&=67108863,T[0]=Ji,T[1]=Zi,T[2]=Vi,T[3]=Ui,T[4]=Ue,T[5]=Tt,T[6]=ve,T[7]=Qe,T[8]=_t,T[9]=se,T[10]=Xe,T[11]=xt,T[12]=Bt,T[13]=bi,T[14]=Si,T[15]=Xi,T[16]=Wi,T[17]=on,T[18]=pn,0!==I&&(T[19]=I,u.length++),u};function Z(x,i,r){return(new Y).mulp(x,i,r)}function Y(x,i){this.x=x,this.y=i}Math.imul||(E=k),a.prototype.mulTo=function(i,r){var u,c=this.length+i.length;return u=10===this.length&&10===i.length?E(this,i,r):c<63?k(this,i,r):c<1024?function B(x,i,r){r.negative=i.negative^x.negative,r.length=x.length+i.length;for(var u=0,c=0,v=0;v>>26)|0)>>>26,T&=67108863}r.words[v]=I,u=T,T=c}return 0!==u?r.words[v]=u:r.length--,r.strip()}(this,i,r):Z(this,i,r),u},Y.prototype.makeRBT=function(i){for(var r=new Array(i),u=a.prototype._countBits(i)-1,c=0;c>=1;return c},Y.prototype.permute=function(i,r,u,c,v,T){for(var I=0;I>>=1)v++;return 1<>>=13),v>>>=13;for(T=2*r;T>=26,r+=c/67108864|0,r+=v>>>26,this.words[u]=67108863&v}return 0!==r&&(this.words[u]=r,this.length++),this},a.prototype.muln=function(i){return this.clone().imuln(i)},a.prototype.sqr=function(){return this.mul(this)},a.prototype.isqr=function(){return this.imul(this.clone())},a.prototype.pow=function(i){var r=function S(x){for(var i=new Array(x.bitLength()),r=0;r>>c}return i}(i);if(0===r.length)return new a(1);for(var u=this,c=0;c=0);var v,r=i%26,u=(i-r)/26,c=67108863>>>26-r<<26-r;if(0!==r){var T=0;for(v=0;v>>26-r}T&&(this.words[v]=T,this.length++)}if(0!==u){for(v=this.length-1;v>=0;v--)this.words[v+u]=this.words[v];for(v=0;v=0),c=r?(r-r%26)/26:0;var v=i%26,T=Math.min((i-v)/26,this.length),I=67108863^67108863>>>v<T)for(this.length-=T,n=0;n=0&&(0!==_||n>=c);n--){var V=0|this.words[n];this.words[n]=_<<26-v|V>>>v,_=V&I}return y&&0!==_&&(y.words[y.length++]=_),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},a.prototype.ishrn=function(i,r,u){return f(0===this.negative),this.iushrn(i,r,u)},a.prototype.shln=function(i){return this.clone().ishln(i)},a.prototype.ushln=function(i){return this.clone().iushln(i)},a.prototype.shrn=function(i){return this.clone().ishrn(i)},a.prototype.ushrn=function(i){return this.clone().iushrn(i)},a.prototype.testn=function(i){f("number"==typeof i&&i>=0);var r=i%26,u=(i-r)/26;return!(this.length<=u||!(this.words[u]&1<=0);var r=i%26,u=(i-r)/26;return f(0===this.negative,"imaskn works only with positive numbers"),this.length<=u?this:(0!==r&&u++,this.length=Math.min(u,this.length),0!==r&&(this.words[this.length-1]&=67108863^67108863>>>r<=67108864;r++)this.words[r]-=67108864,r===this.length-1?this.words[r+1]=1:this.words[r+1]++;return this.length=Math.max(this.length,r+1),this},a.prototype.isubn=function(i){if(f("number"==typeof i),f(i<67108864),i<0)return this.iaddn(-i);if(0!==this.negative)return this.negative=0,this.iaddn(i),this.negative=1,this;if(this.words[0]-=i,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var r=0;r>26)-(y/67108864|0),this.words[v+u]=67108863&T}for(;v>26,this.words[v+u]=67108863&T;if(0===I)return this.strip();for(f(-1===I),I=0,v=0;v>26,this.words[v]=67108863&T;return this.negative=1,this.strip()},a.prototype._wordDiv=function(i,r){var u,c=this.clone(),v=i,T=0|v.words[v.length-1];0!=(u=26-this._countBits(T))&&(v=v.ushln(u),c.iushln(u),T=0|v.words[v.length-1]);var n,y=c.length-v.length;if("mod"!==r){(n=new a(null)).length=y+1,n.words=new Array(n.length);for(var _=0;_=0;N--){var H=67108864*(0|c.words[v.length+N])+(0|c.words[v.length+N-1]);for(H=Math.min(H/T|0,67108863),c._ishlnsubmul(v,H,N);0!==c.negative;)H--,c.negative=0,c._ishlnsubmul(v,1,N),c.isZero()||(c.negative^=1);n&&(n.words[N]=H)}return n&&n.strip(),c.strip(),"div"!==r&&0!==u&&c.iushrn(u),{div:n||null,mod:c}},a.prototype.divmod=function(i,r,u){return f(!i.isZero()),this.isZero()?{div:new a(0),mod:new a(0)}:0!==this.negative&&0===i.negative?(T=this.neg().divmod(i,r),"mod"!==r&&(c=T.div.neg()),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.iadd(i)),{div:c,mod:v}):0===this.negative&&0!==i.negative?(T=this.divmod(i.neg(),r),"mod"!==r&&(c=T.div.neg()),{div:c,mod:T.mod}):0!=(this.negative&i.negative)?(T=this.neg().divmod(i.neg(),r),"div"!==r&&(v=T.mod.neg(),u&&0!==v.negative&&v.isub(i)),{div:T.div,mod:v}):i.length>this.length||this.cmp(i)<0?{div:new a(0),mod:this}:1===i.length?"div"===r?{div:this.divn(i.words[0]),mod:null}:"mod"===r?{div:null,mod:new a(this.modn(i.words[0]))}:{div:this.divn(i.words[0]),mod:new a(this.modn(i.words[0]))}:this._wordDiv(i,r);var c,v,T},a.prototype.div=function(i){return this.divmod(i,"div",!1).div},a.prototype.mod=function(i){return this.divmod(i,"mod",!1).mod},a.prototype.umod=function(i){return this.divmod(i,"mod",!0).mod},a.prototype.divRound=function(i){var r=this.divmod(i);if(r.mod.isZero())return r.div;var u=0!==r.div.negative?r.mod.isub(i):r.mod,c=i.ushrn(1),v=i.andln(1),T=u.cmp(c);return T<0||1===v&&0===T?r.div:0!==r.div.negative?r.div.isubn(1):r.div.iaddn(1)},a.prototype.modn=function(i){f(i<=67108863);for(var r=(1<<26)%i,u=0,c=this.length-1;c>=0;c--)u=(r*u+(0|this.words[c]))%i;return u},a.prototype.idivn=function(i){f(i<=67108863);for(var r=0,u=this.length-1;u>=0;u--){var c=(0|this.words[u])+67108864*r;this.words[u]=c/i|0,r=c%i}return this.strip()},a.prototype.divn=function(i){return this.clone().idivn(i)},a.prototype.egcd=function(i){f(0===i.negative),f(!i.isZero());var r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=new a(0),I=new a(1),y=0;r.isEven()&&u.isEven();)r.iushrn(1),u.iushrn(1),++y;for(var n=u.clone(),_=r.clone();!r.isZero();){for(var V=0,N=1;0==(r.words[0]&N)&&V<26;++V,N<<=1);if(V>0)for(r.iushrn(V);V-- >0;)(c.isOdd()||v.isOdd())&&(c.iadd(n),v.isub(_)),c.iushrn(1),v.iushrn(1);for(var H=0,X=1;0==(u.words[0]&X)&&H<26;++H,X<<=1);if(H>0)for(u.iushrn(H);H-- >0;)(T.isOdd()||I.isOdd())&&(T.iadd(n),I.isub(_)),T.iushrn(1),I.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(T),v.isub(I)):(u.isub(r),T.isub(c),I.isub(v))}return{a:T,b:I,gcd:u.iushln(y)}},a.prototype._invmp=function(i){f(0===i.negative),f(!i.isZero());var V,r=this,u=i.clone();r=0!==r.negative?r.umod(i):r.clone();for(var c=new a(1),v=new a(0),T=u.clone();r.cmpn(1)>0&&u.cmpn(1)>0;){for(var I=0,y=1;0==(r.words[0]&y)&&I<26;++I,y<<=1);if(I>0)for(r.iushrn(I);I-- >0;)c.isOdd()&&c.iadd(T),c.iushrn(1);for(var n=0,_=1;0==(u.words[0]&_)&&n<26;++n,_<<=1);if(n>0)for(u.iushrn(n);n-- >0;)v.isOdd()&&v.iadd(T),v.iushrn(1);r.cmp(u)>=0?(r.isub(u),c.isub(v)):(u.isub(r),v.isub(c))}return(V=0===r.cmpn(1)?c:v).cmpn(0)<0&&V.iadd(i),V},a.prototype.gcd=function(i){if(this.isZero())return i.abs();if(i.isZero())return this.abs();var r=this.clone(),u=i.clone();r.negative=0,u.negative=0;for(var c=0;r.isEven()&&u.isEven();c++)r.iushrn(1),u.iushrn(1);for(;;){for(;r.isEven();)r.iushrn(1);for(;u.isEven();)u.iushrn(1);var v=r.cmp(u);if(v<0){var T=r;r=u,u=T}else if(0===v||0===u.cmpn(1))break;r.isub(u)}return u.iushln(c)},a.prototype.invm=function(i){return this.egcd(i).a.umod(i)},a.prototype.isEven=function(){return 0==(1&this.words[0])},a.prototype.isOdd=function(){return 1==(1&this.words[0])},a.prototype.andln=function(i){return this.words[0]&i},a.prototype.bincn=function(i){f("number"==typeof i);var r=i%26,u=(i-r)/26,c=1<>>26,this.words[T]=I&=67108863}return 0!==v&&(this.words[T]=v,this.length++),this},a.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},a.prototype.cmpn=function(i){var u,r=i<0;if(0!==this.negative&&!r)return-1;if(0===this.negative&&r)return 1;if(this.strip(),this.length>1)u=1;else{r&&(i=-i),f(i<=67108863,"Number is too big");var c=0|this.words[0];u=c===i?0:ci.length)return 1;if(this.length=0;u--){var c=0|this.words[u],v=0|i.words[u];if(c!==v){cv&&(r=1);break}}return r},a.prototype.gtn=function(i){return 1===this.cmpn(i)},a.prototype.gt=function(i){return 1===this.cmp(i)},a.prototype.gten=function(i){return this.cmpn(i)>=0},a.prototype.gte=function(i){return this.cmp(i)>=0},a.prototype.ltn=function(i){return-1===this.cmpn(i)},a.prototype.lt=function(i){return-1===this.cmp(i)},a.prototype.lten=function(i){return this.cmpn(i)<=0},a.prototype.lte=function(i){return this.cmp(i)<=0},a.prototype.eqn=function(i){return 0===this.cmpn(i)},a.prototype.eq=function(i){return 0===this.cmp(i)},a.red=function(i){return new q(i)},a.prototype.toRed=function(i){return f(!this.red,"Already a number in reduction context"),f(0===this.negative,"red works only with positives"),i.convertTo(this)._forceRed(i)},a.prototype.fromRed=function(){return f(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},a.prototype._forceRed=function(i){return this.red=i,this},a.prototype.forceRed=function(i){return f(!this.red,"Already a number in reduction context"),this._forceRed(i)},a.prototype.redAdd=function(i){return f(this.red,"redAdd works only with red numbers"),this.red.add(this,i)},a.prototype.redIAdd=function(i){return f(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,i)},a.prototype.redSub=function(i){return f(this.red,"redSub works only with red numbers"),this.red.sub(this,i)},a.prototype.redISub=function(i){return f(this.red,"redISub works only with red numbers"),this.red.isub(this,i)},a.prototype.redShl=function(i){return f(this.red,"redShl works only with red numbers"),this.red.shl(this,i)},a.prototype.redMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.mul(this,i)},a.prototype.redIMul=function(i){return f(this.red,"redMul works only with red numbers"),this.red._verify2(this,i),this.red.imul(this,i)},a.prototype.redSqr=function(){return f(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},a.prototype.redISqr=function(){return f(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},a.prototype.redSqrt=function(){return f(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},a.prototype.redInvm=function(){return f(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},a.prototype.redNeg=function(){return f(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},a.prototype.redPow=function(i){return f(this.red&&!i.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,i)};var ae={k256:null,p224:null,p192:null,p25519:null};function ee(x,i){this.name=x,this.p=new a(i,16),this.n=this.p.bitLength(),this.k=new a(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function ue(){ee.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function ne(){ee.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function re(){ee.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function ge(){ee.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function q(x){if("string"==typeof x){var i=a._prime(x);this.m=i.p,this.prime=i}else f(x.gtn(1),"modulus must be greater than 1"),this.m=x,this.prime=null}function _e(x){q.call(this,x),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new a(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)}ee.prototype._tmp=function(){var i=new a(null);return i.words=new Array(Math.ceil(this.n/13)),i},ee.prototype.ireduce=function(i){var u,r=i;do{this.split(r,this.tmp),u=(r=(r=this.imulK(r)).iadd(this.tmp)).bitLength()}while(u>this.n);var c=u0?r.isub(this.p):void 0!==r.strip?r.strip():r._strip(),r},ee.prototype.split=function(i,r){i.iushrn(this.n,0,r)},ee.prototype.imulK=function(i){return i.imul(this.k)},M(ue,ee),ue.prototype.split=function(i,r){for(var u=4194303,c=Math.min(i.length,9),v=0;v>>22,T=I}i.words[v-10]=T>>>=22,i.length-=0===T&&i.length>10?10:9},ue.prototype.imulK=function(i){i.words[i.length]=0,i.words[i.length+1]=0,i.length+=2;for(var r=0,u=0;u>>=26,i.words[u]=v,r=c}return 0!==r&&(i.words[i.length++]=r),i},a._prime=function(i){if(ae[i])return ae[i];var r;if("k256"===i)r=new ue;else if("p224"===i)r=new ne;else if("p192"===i)r=new re;else{if("p25519"!==i)throw new Error("Unknown prime "+i);r=new ge}return ae[i]=r,r},q.prototype._verify1=function(i){f(0===i.negative,"red works only with positives"),f(i.red,"red works only with red numbers")},q.prototype._verify2=function(i,r){f(0==(i.negative|r.negative),"red works only with positives"),f(i.red&&i.red===r.red,"red works only with red numbers")},q.prototype.imod=function(i){return this.prime?this.prime.ireduce(i)._forceRed(this):i.umod(this.m)._forceRed(this)},q.prototype.neg=function(i){return i.isZero()?i.clone():this.m.sub(i)._forceRed(this)},q.prototype.add=function(i,r){this._verify2(i,r);var u=i.add(r);return u.cmp(this.m)>=0&&u.isub(this.m),u._forceRed(this)},q.prototype.iadd=function(i,r){this._verify2(i,r);var u=i.iadd(r);return u.cmp(this.m)>=0&&u.isub(this.m),u},q.prototype.sub=function(i,r){this._verify2(i,r);var u=i.sub(r);return u.cmpn(0)<0&&u.iadd(this.m),u._forceRed(this)},q.prototype.isub=function(i,r){this._verify2(i,r);var u=i.isub(r);return u.cmpn(0)<0&&u.iadd(this.m),u},q.prototype.shl=function(i,r){return this._verify1(i),this.imod(i.ushln(r))},q.prototype.imul=function(i,r){return this._verify2(i,r),this.imod(i.imul(r))},q.prototype.mul=function(i,r){return this._verify2(i,r),this.imod(i.mul(r))},q.prototype.isqr=function(i){return this.imul(i,i.clone())},q.prototype.sqr=function(i){return this.mul(i,i)},q.prototype.sqrt=function(i){if(i.isZero())return i.clone();var r=this.m.andln(3);if(f(r%2==1),3===r){var u=this.m.add(new a(1)).iushrn(2);return this.pow(i,u)}for(var c=this.m.subn(1),v=0;!c.isZero()&&0===c.andln(1);)v++,c.iushrn(1);f(!c.isZero());var T=new a(1).toRed(this),I=T.redNeg(),y=this.m.subn(1).iushrn(1),n=this.m.bitLength();for(n=new a(2*n*n).toRed(this);0!==this.pow(n,y).cmp(I);)n.redIAdd(I);for(var _=this.pow(n,c),V=this.pow(i,c.addn(1).iushrn(1)),N=this.pow(i,c),H=v;0!==N.cmp(T);){for(var X=N,he=0;0!==X.cmp(T);he++)X=X.redSqr();f(he=0;v--){for(var _=r.words[v],V=n-1;V>=0;V--){var N=_>>V&1;T!==c[0]&&(T=this.sqr(T)),0!==N||0!==I?(I<<=1,I|=N,(4==++y||0===v&&0===V)&&(T=this.mul(T,c[I]),y=0,I=0)):y=0}n=26}return T},q.prototype.convertTo=function(i){var r=i.umod(this.m);return r===i?r.clone():r},q.prototype.convertFrom=function(i){var r=i.clone();return r.red=null,r},a.mont=function(i){return new _e(i)},M(_e,q),_e.prototype.convertTo=function(i){return this.imod(i.ushln(this.shift))},_e.prototype.convertFrom=function(i){var r=this.imod(i.mul(this.rinv));return r.red=null,r},_e.prototype.imul=function(i,r){if(i.isZero()||r.isZero())return i.words[0]=0,i.length=1,i;var u=i.imul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.mul=function(i,r){if(i.isZero()||r.isZero())return new a(0)._forceRed(this);var u=i.mul(r),c=u.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),v=u.isub(c).iushrn(this.shift),T=v;return v.cmp(this.m)>=0?T=v.isub(this.m):v.cmpn(0)<0&&(T=v.iadd(this.m)),T._forceRed(this)},_e.prototype.invm=function(i){return this.imod(i._invmp(this.m).mul(this.r2))._forceRed(this)}}(Be=p.nmd(Be),this)},6705:(Be,K,p)=>{var t=p(2772),e=p(6945),f=p(9401),M=p(2057),a=p(8466),C=p(6386),d=p(8651),R=p(3502).Buffer;Be.exports=function(S,k,E){var B;B=S.padding?S.padding:E?1:4;var ae,Z=t(S),Y=Z.modulus.byteLength();if(k.length>Y||new M(k).cmp(Z.modulus)>=0)throw new Error("decryption error");ae=E?d(new M(k),Z):a(k,Z);var ee=R.alloc(Y-ae.length);if(ae=R.concat([ee,ae],Y),4===B)return function h(D,S){var k=D.modulus.byteLength(),E=C("sha1").update(R.alloc(0)).digest(),B=E.length;if(0!==S[0])throw new Error("decryption error");var Z=S.slice(1,B+1),Y=S.slice(B+1),ae=f(Z,e(Y,B)),ee=f(Y,e(ae,k-B-1));if(function w(D,S){D=R.from(D),S=R.from(S);var k=0,E=D.length;D.length!==S.length&&(k++,E=Math.min(D.length,S.length));for(var B=-1;++B=S.length){Z++;break}var Y=S.slice(2,B-1);if(("0002"!==E.toString("hex")&&!k||"0001"!==E.toString("hex")&&k)&&Z++,Y.length<8&&Z++,Z)throw new Error("decryption error");return S.slice(B)}(0,ae,E);if(3===B)return ae;throw new Error("unknown padding")}},6562:(Be,K,p)=>{var t=p(2772),e=p(3753),f=p(6386),M=p(6945),a=p(9401),C=p(2057),d=p(8651),R=p(8466),h=p(3502).Buffer;Be.exports=function(k,E,B){var Z;Z=k.padding?k.padding:B?1:4;var ae,Y=t(k);if(4===Z)ae=function L(S,k){var E=S.modulus.byteLength(),B=k.length,Z=f("sha1").update(h.alloc(0)).digest(),Y=Z.length,ae=2*Y;if(B>E-ae-2)throw new Error("message too long");var ee=h.alloc(E-B-ae-2),ue=E-Y-1,ne=e(Y),re=a(h.concat([Z,ee,h.alloc(1,1),k],ue),M(ne,ue)),ge=a(ne,M(re,Y));return new C(h.concat([h.alloc(1),ge,re],E))}(Y,E);else if(1===Z)ae=function w(S,k,E){var Y,B=k.length,Z=S.modulus.byteLength();if(B>Z-11)throw new Error("message too long");return Y=E?h.alloc(Z-B-3,255):function D(S){for(var Y,k=h.allocUnsafe(S),E=0,B=e(2*S),Z=0;E=0)throw new Error("data too long for modulus")}return B?R(ae,Y):d(ae,Y)}},8651:(Be,K,p)=>{var t=p(2057),e=p(3502).Buffer;Be.exports=function f(M,a){return e.from(M.toRed(t.mont(a.modulus)).redPow(new t(a.publicExponent)).fromRed().toArray())}},9401:Be=>{Be.exports=function(p,t){for(var e=p.length,f=-1;++f{const t=p(8695),e=p(1465),f=p(3210),M=p(2334);function a(C,d,R,h,L){const w=[].slice.call(arguments,1),D=w.length,S="function"==typeof w[D-1];if(!S&&!t())throw new Error("Callback required as last argument");if(!S){if(D<1)throw new Error("Too few arguments provided");return 1===D?(R=d,d=h=void 0):2===D&&!d.getContext&&(h=R,R=d,d=void 0),new Promise(function(k,E){try{const B=e.create(R,h);k(C(B,d,h))}catch(B){E(B)}})}if(D<2)throw new Error("Too few arguments provided");2===D?(L=R,R=d,d=h=void 0):3===D&&(d.getContext&&void 0===L?(L=h,h=void 0):(L=h,h=R,R=d,d=void 0));try{const k=e.create(R,h);L(null,C(k,d,h))}catch(k){L(k)}}K.create=e.create,K.toCanvas=a.bind(null,f.render),K.toDataURL=a.bind(null,f.renderToDataURL),K.toString=a.bind(null,function(C,d,R){return M.render(C,R)})},8695:Be=>{Be.exports=function(){return"function"==typeof Promise&&Promise.prototype&&Promise.prototype.then}},6221:(Be,K,p)=>{const t=p(4792).getSymbolSize;K.getRowColCoords=function(f){if(1===f)return[];const M=Math.floor(f/7)+2,a=t(f),C=145===a?26:2*Math.ceil((a-13)/(2*M-2)),d=[a-7];for(let R=1;R{const t=p(4016),e=["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 f(M){this.mode=t.ALPHANUMERIC,this.data=M}f.getBitsLength=function(a){return 11*Math.floor(a/2)+a%2*6},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(a){let C;for(C=0;C+2<=this.data.length;C+=2){let d=45*e.indexOf(this.data[C]);d+=e.indexOf(this.data[C+1]),a.put(d,11)}this.data.length%2&&a.put(e.indexOf(this.data[C]),6)},Be.exports=f},2118:Be=>{function K(){this.buffer=[],this.length=0}K.prototype={get:function(p){const t=Math.floor(p/8);return 1==(this.buffer[t]>>>7-p%8&1)},put:function(p,t){for(let e=0;e>>t-e-1&1))},getLengthInBits:function(){return this.length},putBit:function(p){const t=Math.floor(this.length/8);this.buffer.length<=t&&this.buffer.push(0),p&&(this.buffer[t]|=128>>>this.length%8),this.length++}},Be.exports=K},4425:Be=>{function K(p){if(!p||p<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=p,this.data=new Uint8Array(p*p),this.reservedBit=new Uint8Array(p*p)}K.prototype.set=function(p,t,e,f){const M=p*this.size+t;this.data[M]=e,f&&(this.reservedBit[M]=!0)},K.prototype.get=function(p,t){return this.data[p*this.size+t]},K.prototype.xor=function(p,t,e){this.data[p*this.size+t]^=e},K.prototype.isReserved=function(p,t){return this.reservedBit[p*this.size+t]},Be.exports=K},5663:(Be,K,p)=>{const t=p(8419),e=p(4016);function f(M){this.mode=e.BYTE,"string"==typeof M&&(M=t(M)),this.data=new Uint8Array(M)}f.getBitsLength=function(a){return 8*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){for(let a=0,C=this.data.length;a{const t=p(2259),e=[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],f=[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];K.getBlocksCount=function(a,C){switch(C){case t.L:return e[4*(a-1)+0];case t.M:return e[4*(a-1)+1];case t.Q:return e[4*(a-1)+2];case t.H:return e[4*(a-1)+3];default:return}},K.getTotalCodewordsCount=function(a,C){switch(C){case t.L:return f[4*(a-1)+0];case t.M:return f[4*(a-1)+1];case t.Q:return f[4*(a-1)+2];case t.H:return f[4*(a-1)+3];default:return}}},2259:(Be,K)=>{K.L={bit:1},K.M={bit:0},K.Q={bit:3},K.H={bit:2},K.isValid=function(e){return e&&void 0!==e.bit&&e.bit>=0&&e.bit<4},K.from=function(e,f){if(K.isValid(e))return e;try{return function p(t){if("string"!=typeof t)throw new Error("Param is not a string");switch(t.toLowerCase()){case"l":case"low":return K.L;case"m":case"medium":return K.M;case"q":case"quartile":return K.Q;case"h":case"high":return K.H;default:throw new Error("Unknown EC Level: "+t)}}(e)}catch(M){return f}}},3114:(Be,K,p)=>{const t=p(4792).getSymbolSize;K.getPositions=function(M){const a=t(M);return[[0,0],[a-7,0],[0,a-7]]}},7078:(Be,K,p)=>{const t=p(4792),M=t.getBCHDigit(1335);K.getEncodedBits=function(C,d){const R=C.bit<<3|d;let h=R<<10;for(;t.getBCHDigit(h)-M>=0;)h^=1335<{const p=new Uint8Array(512),t=new Uint8Array(256);(function(){let f=1;for(let M=0;M<255;M++)p[M]=f,t[f]=M,f<<=1,256&f&&(f^=285);for(let M=255;M<512;M++)p[M]=p[M-255]})(),K.log=function(f){if(f<1)throw new Error("log("+f+")");return t[f]},K.exp=function(f){return p[f]},K.mul=function(f,M){return 0===f||0===M?0:p[t[f]+t[M]]}},4388:(Be,K,p)=>{const t=p(4016),e=p(4792);function f(M){this.mode=t.KANJI,this.data=M}f.getBitsLength=function(a){return 13*a},f.prototype.getLength=function(){return this.data.length},f.prototype.getBitsLength=function(){return f.getBitsLength(this.data.length)},f.prototype.write=function(M){let a;for(a=0;a=33088&&C<=40956)C-=33088;else{if(!(C>=57408&&C<=60351))throw new Error("Invalid SJIS character: "+this.data[a]+"\nMake sure your charset is UTF-8");C-=49472}C=192*(C>>>8&255)+(255&C),M.put(C,13)}},Be.exports=f},3667:(Be,K)=>{K.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};function t(e,f,M){switch(e){case K.Patterns.PATTERN000:return(f+M)%2==0;case K.Patterns.PATTERN001:return f%2==0;case K.Patterns.PATTERN010:return M%3==0;case K.Patterns.PATTERN011:return(f+M)%3==0;case K.Patterns.PATTERN100:return(Math.floor(f/2)+Math.floor(M/3))%2==0;case K.Patterns.PATTERN101:return f*M%2+f*M%3==0;case K.Patterns.PATTERN110:return(f*M%2+f*M%3)%2==0;case K.Patterns.PATTERN111:return(f*M%3+(f+M)%2)%2==0;default:throw new Error("bad maskPattern:"+e)}}K.isValid=function(f){return null!=f&&""!==f&&!isNaN(f)&&f>=0&&f<=7},K.from=function(f){return K.isValid(f)?parseInt(f,10):void 0},K.getPenaltyN1=function(f){const M=f.size;let a=0,C=0,d=0,R=null,h=null;for(let L=0;L=5&&(a+=C-5+3),R=D,C=1),D=f.get(w,L),D===h?d++:(d>=5&&(a+=d-5+3),h=D,d=1)}C>=5&&(a+=C-5+3),d>=5&&(a+=d-5+3)}return a},K.getPenaltyN2=function(f){const M=f.size;let a=0;for(let C=0;C=10&&(1488===C||93===C)&&a++,d=d<<1&2047|f.get(h,R),h>=10&&(1488===d||93===d)&&a++}return 40*a},K.getPenaltyN4=function(f){let M=0;const a=f.data.length;for(let d=0;d{const t=p(4406),e=p(2699);K.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},K.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},K.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},K.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},K.MIXED={bit:-1},K.getCharCountIndicator=function(a,C){if(!a.ccBits)throw new Error("Invalid mode: "+a);if(!t.isValid(C))throw new Error("Invalid version: "+C);return C>=1&&C<10?a.ccBits[0]:C<27?a.ccBits[1]:a.ccBits[2]},K.getBestModeForData=function(a){return e.testNumeric(a)?K.NUMERIC:e.testAlphanumeric(a)?K.ALPHANUMERIC:e.testKanji(a)?K.KANJI:K.BYTE},K.toString=function(a){if(a&&a.id)return a.id;throw new Error("Invalid mode")},K.isValid=function(a){return a&&a.bit&&a.ccBits},K.from=function(a,C){if(K.isValid(a))return a;try{return function f(M){if("string"!=typeof M)throw new Error("Param is not a string");switch(M.toLowerCase()){case"numeric":return K.NUMERIC;case"alphanumeric":return K.ALPHANUMERIC;case"kanji":return K.KANJI;case"byte":return K.BYTE;default:throw new Error("Unknown mode: "+M)}}(a)}catch(d){return C}}},7783:(Be,K,p)=>{const t=p(4016);function e(f){this.mode=t.NUMERIC,this.data=f.toString()}e.getBitsLength=function(M){return 10*Math.floor(M/3)+(M%3?M%3*3+1:0)},e.prototype.getLength=function(){return this.data.length},e.prototype.getBitsLength=function(){return e.getBitsLength(this.data.length)},e.prototype.write=function(M){let a,C,d;for(a=0;a+3<=this.data.length;a+=3)C=this.data.substr(a,3),d=parseInt(C,10),M.put(d,10);const R=this.data.length-a;R>0&&(C=this.data.substr(a),d=parseInt(C,10),M.put(d,3*R+1))},Be.exports=e},1106:(Be,K,p)=>{const t=p(5339);K.mul=function(f,M){const a=new Uint8Array(f.length+M.length-1);for(let C=0;C=0;){const C=a[0];for(let R=0;R{const t=p(4792),e=p(2259),f=p(2118),M=p(4425),a=p(6221),C=p(3114),d=p(3667),R=p(4655),h=p(2636),L=p(2088),w=p(7078),D=p(4016),S=p(2033);function Y(re,ge,q){const _e=re.size,x=w.getEncodedBits(ge,q);let i,r;for(i=0;i<15;i++)r=1==(x>>i&1),re.set(i<6?i:i<8?i+1:_e-15+i,8,r,!0),re.set(8,i<8?_e-i-1:i<9?15-i-1+1:15-i-1,r,!0);re.set(_e-8,8,1,!0)}function ne(re,ge,q,_e){let x;if(Array.isArray(re))x=S.fromArray(re);else{if("string"!=typeof re)throw new Error("Invalid data");{let v=ge;if(!v){const T=S.rawSplit(re);v=L.getBestVersionForData(T,q)}x=S.fromString(re,v||40)}}const i=L.getBestVersionForData(x,q);if(!i)throw new Error("The amount of data is too big to be stored in a QR Code");if(ge){if(ge=0&&u<=6&&(0===c||6===c)||c>=0&&c<=6&&(0===u||6===u)||u>=2&&u<=4&&c>=2&&c<=4,!0)}}(c,ge),function E(re){const ge=re.size;for(let q=8;q=7&&function Z(re,ge){const q=re.size,_e=L.getEncodedBits(ge);let x,i,r;for(let u=0;u<18;u++)x=Math.floor(u/3),i=u%3+q-8-3,r=1==(_e>>u&1),re.set(x,i,r,!0),re.set(i,x,r,!0)}(c,ge),function ae(re,ge){const q=re.size;let _e=-1,x=q-1,i=7,r=0;for(let u=q-1;u>0;u-=2)for(6===u&&u--;;){for(let c=0;c<2;c++)if(!re.isReserved(x,u-c)){let v=!1;r>>i&1)),re.set(x,u-c,v),i--,-1===i&&(r++,i=7)}if(x+=_e,x<0||q<=x){x-=_e,_e=-_e;break}}}(c,r),isNaN(_e)&&(_e=d.getBestMask(c,Y.bind(null,c,q))),d.applyMask(_e,c),Y(c,q,_e),{modules:c,version:ge,errorCorrectionLevel:q,maskPattern:_e,segments:x}}K.create=function(ge,q){if(void 0===ge||""===ge)throw new Error("No input text");let x,i,_e=e.M;return void 0!==q&&(_e=e.from(q.errorCorrectionLevel,e.M),x=L.from(q.version),i=d.from(q.maskPattern),q.toSJISFunc&&t.setToSJISFunction(q.toSJISFunc)),ne(ge,x,_e,i)}},2636:(Be,K,p)=>{const t=p(1106);function e(f){this.genPoly=void 0,this.degree=f,this.degree&&this.initialize(this.degree)}e.prototype.initialize=function(M){this.degree=M,this.genPoly=t.generateECPolynomial(this.degree)},e.prototype.encode=function(M){if(!this.genPoly)throw new Error("Encoder not initialized");const a=new Uint8Array(M.length+this.degree);a.set(M);const C=t.mod(a,this.genPoly),d=this.degree-C.length;if(d>0){const R=new Uint8Array(this.degree);return R.set(C,d),R}return C},Be.exports=e},2699:(Be,K)=>{const p="[0-9]+";let e="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";e=e.replace(/u/g,"\\u");const f="(?:(?![A-Z0-9 $%*+\\-./:]|"+e+")(?:.|[\r\n]))+";K.KANJI=new RegExp(e,"g"),K.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g"),K.BYTE=new RegExp(f,"g"),K.NUMERIC=new RegExp(p,"g"),K.ALPHANUMERIC=new RegExp("[A-Z $%*+\\-./:]+","g");const M=new RegExp("^"+e+"$"),a=new RegExp("^"+p+"$"),C=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");K.testKanji=function(R){return M.test(R)},K.testNumeric=function(R){return a.test(R)},K.testAlphanumeric=function(R){return C.test(R)}},2033:(Be,K,p)=>{const t=p(4016),e=p(7783),f=p(2424),M=p(5663),a=p(4388),C=p(2699),d=p(4792),R=p(4901);function h(Z){return unescape(encodeURIComponent(Z)).length}function L(Z,Y,ae){const ee=[];let ue;for(;null!==(ue=Z.exec(ae));)ee.push({data:ue[0],index:ue.index,mode:Y,length:ue[0].length});return ee}function w(Z){const Y=L(C.NUMERIC,t.NUMERIC,Z),ae=L(C.ALPHANUMERIC,t.ALPHANUMERIC,Z);let ee,ue;return d.isKanjiModeEnabled()?(ee=L(C.BYTE,t.BYTE,Z),ue=L(C.KANJI,t.KANJI,Z)):(ee=L(C.BYTE_KANJI,t.BYTE,Z),ue=[]),Y.concat(ae,ee,ue).sort(function(re,ge){return re.index-ge.index}).map(function(re){return{data:re.data,mode:re.mode,length:re.length}})}function D(Z,Y){switch(Y){case t.NUMERIC:return e.getBitsLength(Z);case t.ALPHANUMERIC:return f.getBitsLength(Z);case t.KANJI:return a.getBitsLength(Z);case t.BYTE:return M.getBitsLength(Z)}}function B(Z,Y){let ae;const ee=t.getBestModeForData(Z);if(ae=t.from(Y,ee),ae!==t.BYTE&&ae.bit=0?Y[Y.length-1]:null;return ee&&ee.mode===ae.mode?(Y[Y.length-1].data+=ae.data,Y):(Y.push(ae),Y)},[])}(ge))},K.rawSplit=function(Y){return K.fromArray(w(Y,d.isKanjiModeEnabled()))}},4792:(Be,K)=>{let p;const t=[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];K.getSymbolSize=function(f){if(!f)throw new Error('"version" cannot be null or undefined');if(f<1||f>40)throw new Error('"version" should be in range from 1 to 40');return 4*f+17},K.getSymbolTotalCodewords=function(f){return t[f]},K.getBCHDigit=function(e){let f=0;for(;0!==e;)f++,e>>>=1;return f},K.setToSJISFunction=function(f){if("function"!=typeof f)throw new Error('"toSJISFunc" is not a valid function.');p=f},K.isKanjiModeEnabled=function(){return void 0!==p},K.toSJIS=function(f){return p(f)}},4406:(Be,K)=>{K.isValid=function(t){return!isNaN(t)&&t>=1&&t<=40}},2088:(Be,K,p)=>{const t=p(4792),e=p(4655),f=p(2259),M=p(4016),a=p(4406),d=t.getBCHDigit(7973);function h(D,S){return M.getCharCountIndicator(D,S)+4}function L(D,S){let k=0;return D.forEach(function(E){k+=h(E.mode,S)+E.getBitsLength()}),k}K.from=function(S,k){return a.isValid(S)?parseInt(S,10):k},K.getCapacity=function(S,k,E){if(!a.isValid(S))throw new Error("Invalid QR Code version");void 0===E&&(E=M.BYTE);const Y=8*(t.getSymbolTotalCodewords(S)-e.getTotalCodewordsCount(S,k));if(E===M.MIXED)return Y;const ae=Y-h(E,S);switch(E){case M.NUMERIC:return Math.floor(ae/10*3);case M.ALPHANUMERIC:return Math.floor(ae/11*2);case M.KANJI:return Math.floor(ae/13);default:return Math.floor(ae/8)}},K.getBestVersionForData=function(S,k){let E;const B=f.from(k,f.M);if(Array.isArray(S)){if(S.length>1)return function w(D,S){for(let k=1;k<=40;k++)if(L(D,k)<=K.getCapacity(k,S,M.MIXED))return k}(S,B);if(0===S.length)return 1;E=S[0]}else E=S;return function R(D,S,k){for(let E=1;E<=40;E++)if(S<=K.getCapacity(E,k,D))return E}(E.mode,E.getLength(),B)},K.getEncodedBits=function(S){if(!a.isValid(S)||S<7)throw new Error("Invalid QR Code version");let k=S<<12;for(;t.getBCHDigit(k)-d>=0;)k^=7973<{const t=p(6355);K.render=function(a,C,d){let R=d,h=C;void 0===R&&(!C||!C.getContext)&&(R=C,C=void 0),C||(h=function f(){try{return document.createElement("canvas")}catch(M){throw new Error("You need to specify a canvas element")}}()),R=t.getOptions(R);const L=t.getImageWidth(a.modules.size,R),w=h.getContext("2d"),D=w.createImageData(L,L);return t.qrToImageData(D.data,a,R),function e(M,a,C){M.clearRect(0,0,a.width,a.height),a.style||(a.style={}),a.height=C,a.width=C,a.style.height=C+"px",a.style.width=C+"px"}(w,h,L),w.putImageData(D,0,0),h},K.renderToDataURL=function(a,C,d){let R=d;return void 0===R&&(!C||!C.getContext)&&(R=C,C=void 0),R||(R={}),K.render(a,C,R).toDataURL(R.type||"image/png",(R.rendererOpts||{}).quality)}},2334:(Be,K,p)=>{const t=p(6355);function e(a,C){const d=a.a/255,R=C+'="'+a.hex+'"';return d<1?R+" "+C+'-opacity="'+d.toFixed(2).slice(1)+'"':R}function f(a,C,d){let R=a+C;return void 0!==d&&(R+=" "+d),R}K.render=function(C,d,R){const h=t.getOptions(d),L=C.modules.size,w=C.modules.data,D=L+2*h.margin,S=h.color.light.a?"':"",k="0&&S>0&&a[D-1]||(R+=L?f("M",S+d,.5+k+d):f("m",h,0),h=0,L=!1),S+1',Z=''+S+k+"\n";return"function"==typeof R&&R(null,Z),Z}},6355:(Be,K)=>{function p(t){if("number"==typeof t&&(t=t.toString()),"string"!=typeof t)throw new Error("Color should be defined as hex string");let 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(M){return[M,M]}))),6===e.length&&e.push("F","F");const f=parseInt(e.join(""),16);return{r:f>>24&255,g:f>>16&255,b:f>>8&255,a:255&f,hex:"#"+e.slice(0,6).join("")}}K.getOptions=function(e){e||(e={}),e.color||(e.color={});const M=e.width&&e.width>=21?e.width:void 0;return{width:M,scale:M?4:e.scale||4,margin:null==e.margin||e.margin<0?4:e.margin,color:{dark:p(e.color.dark||"#000000ff"),light:p(e.color.light||"#ffffffff")},type:e.type,rendererOpts:e.rendererOpts||{}}},K.getScale=function(e,f){return f.width&&f.width>=e+2*f.margin?f.width/(e+2*f.margin):f.scale},K.getImageWidth=function(e,f){const M=K.getScale(e,f);return Math.floor((e+2*f.margin)*M)},K.qrToImageData=function(e,f,M){const a=f.modules.size,C=f.modules.data,d=K.getScale(a,M),R=Math.floor((a+2*M.margin)*d),h=M.margin*d,L=[M.color.light,M.color.dark];for(let w=0;w=h&&D>=h&&w{"use strict";var t=65536,M=p(3502).Buffer,a=global.crypto||global.msCrypto;Be.exports=a&&a.getRandomValues?function C(d,R){if(d>4294967295)throw new RangeError("requested too many random bytes");var h=M.allocUnsafe(d);if(d>0)if(d>t)for(var L=0;L{"use strict";function t(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var e=p(3502),f=p(3753),M=e.Buffer,a=e.kMaxLength,C=global.crypto||global.msCrypto,d=Math.pow(2,32)-1;function R(S,k){if("number"!=typeof S||S!=S)throw new TypeError("offset must be a number");if(S>d||S<0)throw new TypeError("offset must be a uint32");if(S>a||S>k)throw new RangeError("offset out of range")}function h(S,k,E){if("number"!=typeof S||S!=S)throw new TypeError("size must be a number");if(S>d||S<0)throw new TypeError("size must be a uint32");if(S+k>E||S>a)throw new RangeError("buffer too small")}function w(S,k,E,B){if(process.browser){var Y=new Uint8Array(S.buffer,k,E);return C.getRandomValues(Y),B?void process.nextTick(function(){B(null,S)}):S}if(!B)return f(E).copy(S,k),S;f(E,function(ee,ue){if(ee)return B(ee);ue.copy(S,k),B(null,S)})}C&&C.getRandomValues||!process.browser?(K.randomFill=function L(S,k,E,B){if(!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof k)B=k,k=0,E=S.length;else if("function"==typeof E)B=E,E=S.length-k;else if("function"!=typeof B)throw new TypeError('"cb" argument must be a function');return R(k,S.length),h(E,k,S.length),w(S,k,E,B)},K.randomFillSync=function D(S,k,E){if(void 0===k&&(k=0),!(M.isBuffer(S)||S instanceof global.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');return R(k,S.length),void 0===E&&(E=S.length-k),h(E,k,S.length),w(S,k,E)}):(K.randomFill=t,K.randomFillSync=t)},891:Be=>{"use strict";var p={};function t(C,d,R){R||(R=Error);var L=function(w){function D(S,k,E){return w.call(this,function h(w,D,S){return"string"==typeof d?d:d(w,D,S)}(S,k,E))||this}return function K(C,d){C.prototype=Object.create(d.prototype),C.prototype.constructor=C,C.__proto__=d}(D,w),D}(R);L.prototype.name=R.name,L.prototype.code=C,p[C]=L}function e(C,d){if(Array.isArray(C)){var R=C.length;return C=C.map(function(h){return String(h)}),R>2?"one of ".concat(d," ").concat(C.slice(0,R-1).join(", "),", or ")+C[R-1]:2===R?"one of ".concat(d," ").concat(C[0]," or ").concat(C[1]):"of ".concat(d," ").concat(C[0])}return"of ".concat(d," ").concat(String(C))}t("ERR_INVALID_OPT_VALUE",function(C,d){return'The value "'+d+'" is invalid for option "'+C+'"'},TypeError),t("ERR_INVALID_ARG_TYPE",function(C,d,R){var h,L;if("string"==typeof d&&function f(C,d,R){return C.substr(!R||R<0?0:+R,d.length)===d}(d,"not ")?(h="must not be",d=d.replace(/^not /,"")):h="must be",function M(C,d,R){return(void 0===R||R>C.length)&&(R=C.length),C.substring(R-d.length,R)===d}(C," argument"))L="The ".concat(C," ").concat(h," ").concat(e(d,"type"));else{var w=function a(C,d,R){return"number"!=typeof R&&(R=0),!(R+d.length>C.length)&&-1!==C.indexOf(d,R)}(C,".")?"property":"argument";L='The "'.concat(C,'" ').concat(w," ").concat(h," ").concat(e(d,"type"))}return L+". Received type ".concat(typeof R)},TypeError),t("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),t("ERR_METHOD_NOT_IMPLEMENTED",function(C){return"The "+C+" method is not implemented"}),t("ERR_STREAM_PREMATURE_CLOSE","Premature close"),t("ERR_STREAM_DESTROYED",function(C){return"Cannot call "+C+" after a stream was destroyed"}),t("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),t("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),t("ERR_STREAM_WRITE_AFTER_END","write after end"),t("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),t("ERR_UNKNOWN_ENCODING",function(C){return"Unknown encoding: "+C},TypeError),t("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),Be.exports.q=p},1339:(Be,K,p)=>{"use strict";var t=Object.keys||function(L){var w=[];for(var D in L)w.push(D);return w};Be.exports=d;var e=p(3154),f=p(520);p(3894)(d,e);for(var M=t(f.prototype),a=0;a{"use strict";Be.exports=e;var t=p(6025);function e(f){if(!(this instanceof e))return new e(f);t.call(this,f)}p(3894)(e,t),e.prototype._transform=function(f,M,a){a(null,f)}},3154:(Be,K,p)=>{"use strict";var t;Be.exports=x,x.ReadableState=_e,p(9069);var L,f=function(Ie,ut){return Ie.listeners(ut).length},M=p(4970),a=p(3172).Buffer,C=global.Uint8Array||function(){},h=p(4616);L=h&&h.debuglog?h.debuglog("stream"):function(){};var ee,ue,ne,w=p(5019),D=p(1920),k=p(7102).getHighWaterMark,E=p(891).q,B=E.ERR_INVALID_ARG_TYPE,Z=E.ERR_STREAM_PUSH_AFTER_EOF,Y=E.ERR_METHOD_NOT_IMPLEMENTED,ae=E.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;p(3894)(x,M);var re=D.errorOrDestroy,ge=["error","close","destroy","pause","resume"];function _e(J,Ie,ut){t=t||p(1339),"boolean"!=typeof ut&&(ut=Ie instanceof t),this.objectMode=!!(J=J||{}).objectMode,ut&&(this.objectMode=this.objectMode||!!J.readableObjectMode),this.highWaterMark=k(this,J,"readableHighWaterMark",ut),this.buffer=new w,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!==J.emitClose,this.autoDestroy=!!J.autoDestroy,this.destroyed=!1,this.defaultEncoding=J.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,J.encoding&&(ee||(ee=p(3054).s),this.decoder=new ee(J.encoding),this.encoding=J.encoding)}function x(J){if(t=t||p(1339),!(this instanceof x))return new x(J);this._readableState=new _e(J,this,this instanceof t),this.readable=!0,J&&("function"==typeof J.read&&(this._read=J.read),"function"==typeof J.destroy&&(this._destroy=J.destroy)),M.call(this)}function i(J,Ie,ut,Oe,we){L("readableAddChunk",Ie);var Te,ce=J._readableState;if(null===Ie)ce.reading=!1,function I(J,Ie){if(L("onEofChunk"),!Ie.ended){if(Ie.decoder){var ut=Ie.decoder.end();ut&&ut.length&&(Ie.buffer.push(ut),Ie.length+=Ie.objectMode?1:ut.length)}Ie.ended=!0,Ie.sync?y(J):(Ie.needReadable=!1,Ie.emittedReadable||(Ie.emittedReadable=!0,n(J)))}}(J,ce);else if(we||(Te=function u(J,Ie){var ut;return!function R(J){return a.isBuffer(J)||J instanceof C}(Ie)&&"string"!=typeof Ie&&void 0!==Ie&&!J.objectMode&&(ut=new B("chunk",["string","Buffer","Uint8Array"],Ie)),ut}(ce,Ie)),Te)re(J,Te);else if(ce.objectMode||Ie&&Ie.length>0)if("string"!=typeof Ie&&!ce.objectMode&&Object.getPrototypeOf(Ie)!==a.prototype&&(Ie=function d(J){return a.from(J)}(Ie)),Oe)ce.endEmitted?re(J,new ae):r(J,ce,Ie,!0);else if(ce.ended)re(J,new Z);else{if(ce.destroyed)return!1;ce.reading=!1,ce.decoder&&!ut?(Ie=ce.decoder.write(Ie),ce.objectMode||0!==Ie.length?r(J,ce,Ie,!1):_(J,ce)):r(J,ce,Ie,!1)}else Oe||(ce.reading=!1,_(J,ce));return!ce.ended&&(ce.lengthIe.highWaterMark&&(Ie.highWaterMark=function v(J){return J>=c?J=c:(J--,J|=J>>>1,J|=J>>>2,J|=J>>>4,J|=J>>>8,J|=J>>>16,J++),J}(J)),J<=Ie.length?J:Ie.ended?Ie.length:(Ie.needReadable=!0,0))}function y(J){var Ie=J._readableState;L("emitReadable",Ie.needReadable,Ie.emittedReadable),Ie.needReadable=!1,Ie.emittedReadable||(L("emitReadable",Ie.flowing),Ie.emittedReadable=!0,process.nextTick(n,J))}function n(J){var Ie=J._readableState;L("emitReadable_",Ie.destroyed,Ie.length,Ie.ended),!Ie.destroyed&&(Ie.length||Ie.ended)&&(J.emit("readable"),Ie.emittedReadable=!1),Ie.needReadable=!Ie.flowing&&!Ie.ended&&Ie.length<=Ie.highWaterMark,Pe(J)}function _(J,Ie){Ie.readingMore||(Ie.readingMore=!0,process.nextTick(V,J,Ie))}function V(J,Ie){for(;!Ie.reading&&!Ie.ended&&(Ie.length0,Ie.resumeScheduled&&!Ie.paused?Ie.flowing=!0:J.listenerCount("data")>0&&J.resume()}function X(J){L("readable nexttick read 0"),J.read(0)}function be(J,Ie){L("resume",Ie.reading),Ie.reading||J.read(0),Ie.resumeScheduled=!1,J.emit("resume"),Pe(J),Ie.flowing&&!Ie.reading&&J.read(0)}function Pe(J){var Ie=J._readableState;for(L("flow",Ie.flowing);Ie.flowing&&null!==J.read(););}function Ee(J,Ie){return 0===Ie.length?null:(Ie.objectMode?ut=Ie.buffer.shift():!J||J>=Ie.length?(ut=Ie.decoder?Ie.buffer.join(""):1===Ie.buffer.length?Ie.buffer.first():Ie.buffer.concat(Ie.length),Ie.buffer.clear()):ut=Ie.buffer.consume(J,Ie.decoder),ut);var ut}function j(J){var Ie=J._readableState;L("endReadable",Ie.endEmitted),Ie.endEmitted||(Ie.ended=!0,process.nextTick(Ve,Ie,J))}function Ve(J,Ie){if(L("endReadableNT",J.endEmitted,J.length),!J.endEmitted&&0===J.length&&(J.endEmitted=!0,Ie.readable=!1,Ie.emit("end"),J.autoDestroy)){var ut=Ie._writableState;(!ut||ut.autoDestroy&&ut.finished)&&Ie.destroy()}}function Me(J,Ie){for(var ut=0,Oe=J.length;ut=Ie.highWaterMark:Ie.length>0)||Ie.ended))return L("read: emitReadable",Ie.length,Ie.ended),0===Ie.length&&Ie.ended?j(this):y(this),null;if(0===(J=T(J,Ie))&&Ie.ended)return 0===Ie.length&&j(this),null;var we,Oe=Ie.needReadable;return L("need readable",Oe),(0===Ie.length||Ie.length-J0?Ee(J,Ie):null)?(Ie.needReadable=Ie.length<=Ie.highWaterMark,J=0):(Ie.length-=J,Ie.awaitDrain=0),0===Ie.length&&(Ie.ended||(Ie.needReadable=!0),ut!==J&&Ie.ended&&j(this)),null!==we&&this.emit("data",we),we},x.prototype._read=function(J){re(this,new Y("_read()"))},x.prototype.pipe=function(J,Ie){var ut=this,Oe=this._readableState;switch(Oe.pipesCount){case 0:Oe.pipes=J;break;case 1:Oe.pipes=[Oe.pipes,J];break;default:Oe.pipes.push(J)}Oe.pipesCount+=1,L("pipe count=%d opts=%j",Oe.pipesCount,Ie);var ce=Ie&&!1===Ie.end||J===process.stdout||J===process.stderr?Dt:xe;function xe(){L("onend"),J.end()}Oe.endEmitted?process.nextTick(ce):ut.once("end",ce),J.on("unpipe",function Te(di,Yt){L("onunpipe"),di===ut&&Yt&&!1===Yt.hasUnpiped&&(Yt.hasUnpiped=!0,function Ce(){L("cleanup"),J.removeListener("close",pt),J.removeListener("finish",tt),J.removeListener("drain",W),J.removeListener("error",Q),J.removeListener("unpipe",Te),ut.removeListener("end",xe),ut.removeListener("end",Dt),ut.removeListener("data",fe),te=!0,Oe.awaitDrain&&(!J._writableState||J._writableState.needDrain)&&W()}())});var W=function N(J){return function(){var ut=J._readableState;L("pipeOnDrain",ut.awaitDrain),ut.awaitDrain&&ut.awaitDrain--,0===ut.awaitDrain&&f(J,"data")&&(ut.flowing=!0,Pe(J))}}(ut);J.on("drain",W);var te=!1;function fe(di){L("ondata");var Yt=J.write(di);L("dest.write",Yt),!1===Yt&&((1===Oe.pipesCount&&Oe.pipes===J||Oe.pipesCount>1&&-1!==Me(Oe.pipes,J))&&!te&&(L("false write response, pause",Oe.awaitDrain),Oe.awaitDrain++),ut.pause())}function Q(di){L("onerror",di),Dt(),J.removeListener("error",Q),0===f(J,"error")&&re(J,di)}function pt(){J.removeListener("finish",tt),Dt()}function tt(){L("onfinish"),J.removeListener("close",pt),Dt()}function Dt(){L("unpipe"),ut.unpipe(J)}return ut.on("data",fe),function q(J,Ie,ut){if("function"==typeof J.prependListener)return J.prependListener(Ie,ut);J._events&&J._events[Ie]?Array.isArray(J._events[Ie])?J._events[Ie].unshift(ut):J._events[Ie]=[ut,J._events[Ie]]:J.on(Ie,ut)}(J,"error",Q),J.once("close",pt),J.once("finish",tt),J.emit("pipe",ut),Oe.flowing||(L("pipe resume"),ut.resume()),J},x.prototype.unpipe=function(J){var Ie=this._readableState,ut={hasUnpiped:!1};if(0===Ie.pipesCount)return this;if(1===Ie.pipesCount)return J&&J!==Ie.pipes||(J||(J=Ie.pipes),Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1,J&&J.emit("unpipe",this,ut)),this;if(!J){var Oe=Ie.pipes,we=Ie.pipesCount;Ie.pipes=null,Ie.pipesCount=0,Ie.flowing=!1;for(var ce=0;ce0,!1!==Oe.flowing&&this.resume()):"readable"===J&&!Oe.endEmitted&&!Oe.readableListening&&(Oe.readableListening=Oe.needReadable=!0,Oe.flowing=!1,Oe.emittedReadable=!1,L("on readable",Oe.length,Oe.reading),Oe.length?y(this):Oe.reading||process.nextTick(X,this)),ut},x.prototype.removeListener=function(J,Ie){var ut=M.prototype.removeListener.call(this,J,Ie);return"readable"===J&&process.nextTick(H,this),ut},x.prototype.removeAllListeners=function(J){var Ie=M.prototype.removeAllListeners.apply(this,arguments);return("readable"===J||void 0===J)&&process.nextTick(H,this),Ie},x.prototype.resume=function(){var J=this._readableState;return J.flowing||(L("resume"),J.flowing=!J.readableListening,function he(J,Ie){Ie.resumeScheduled||(Ie.resumeScheduled=!0,process.nextTick(be,J,Ie))}(this,J)),J.paused=!1,this},x.prototype.pause=function(){return L("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(L("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},x.prototype.wrap=function(J){var Ie=this,ut=this._readableState,Oe=!1;for(var we in J.on("end",function(){if(L("wrapped end"),ut.decoder&&!ut.ended){var Te=ut.decoder.end();Te&&Te.length&&Ie.push(Te)}Ie.push(null)}),J.on("data",function(Te){L("wrapped data"),ut.decoder&&(Te=ut.decoder.write(Te)),ut.objectMode&&null==Te||!(ut.objectMode||Te&&Te.length)||Ie.push(Te)||(Oe=!0,J.pause())}),J)void 0===this[we]&&"function"==typeof J[we]&&(this[we]=function(xe){return function(){return J[xe].apply(J,arguments)}}(we));for(var ce=0;ce{"use strict";Be.exports=R;var t=p(891).q,e=t.ERR_METHOD_NOT_IMPLEMENTED,f=t.ERR_MULTIPLE_CALLBACK,M=t.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=t.ERR_TRANSFORM_WITH_LENGTH_0,C=p(1339);function d(w,D){var S=this._transformState;S.transforming=!1;var k=S.writecb;if(null===k)return this.emit("error",new f);S.writechunk=null,S.writecb=null,null!=D&&this.push(D),k(w);var E=this._readableState;E.reading=!1,(E.needReadable||E.length{"use strict";function e(Pe){var Ee=this;this.next=null,this.entry=null,this.finish=function(){!function be(Pe,Ee,j){var Ve=Pe.entry;for(Pe.entry=null;Ve;){var Me=Ve.callback;Ee.pendingcb--,Me(j),Ve=Ve.next}Ee.corkedRequestsFree.next=Pe}(Ee,Pe)}}var f;Be.exports=_e,_e.WritableState=ge;var q,M={deprecate:p(4364)},a=p(4970),C=p(3172).Buffer,d=global.Uint8Array||function(){},L=p(1920),D=p(7102).getHighWaterMark,S=p(891).q,k=S.ERR_INVALID_ARG_TYPE,E=S.ERR_METHOD_NOT_IMPLEMENTED,B=S.ERR_MULTIPLE_CALLBACK,Z=S.ERR_STREAM_CANNOT_PIPE,Y=S.ERR_STREAM_DESTROYED,ae=S.ERR_STREAM_NULL_VALUES,ee=S.ERR_STREAM_WRITE_AFTER_END,ue=S.ERR_UNKNOWN_ENCODING,ne=L.errorOrDestroy;function re(){}function ge(Pe,Ee,j){f=f||p(1339),"boolean"!=typeof j&&(j=Ee instanceof f),this.objectMode=!!(Pe=Pe||{}).objectMode,j&&(this.objectMode=this.objectMode||!!Pe.writableObjectMode),this.highWaterMark=D(this,Pe,"writableHighWaterMark",j),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1,this.decodeStrings=!(!1===Pe.decodeStrings),this.defaultEncoding=Pe.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(Me){!function I(Pe,Ee){var j=Pe._writableState,Ve=j.sync,Me=j.writecb;if("function"!=typeof Me)throw new B;if(function T(Pe){Pe.writing=!1,Pe.writecb=null,Pe.length-=Pe.writelen,Pe.writelen=0}(j),Ee)!function v(Pe,Ee,j,Ve,Me){--Ee.pendingcb,j?(process.nextTick(Me,Ve),process.nextTick(X,Pe,Ee),Pe._writableState.errorEmitted=!0,ne(Pe,Ve)):(Me(Ve),Pe._writableState.errorEmitted=!0,ne(Pe,Ve),X(Pe,Ee))}(Pe,j,Ve,Ee,Me);else{var J=V(j)||Pe.destroyed;!J&&!j.corked&&!j.bufferProcessing&&j.bufferedRequest&&_(Pe,j),Ve?process.nextTick(y,Pe,j,J,Me):y(Pe,j,J,Me)}}(Ee,Me)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.emitClose=!1!==Pe.emitClose,this.autoDestroy=!!Pe.autoDestroy,this.bufferedRequestCount=0,this.corkedRequestsFree=new e(this)}function _e(Pe){var Ee=this instanceof(f=f||p(1339));if(!Ee&&!q.call(_e,this))return new _e(Pe);this._writableState=new ge(Pe,this,Ee),this.writable=!0,Pe&&("function"==typeof Pe.write&&(this._write=Pe.write),"function"==typeof Pe.writev&&(this._writev=Pe.writev),"function"==typeof Pe.destroy&&(this._destroy=Pe.destroy),"function"==typeof Pe.final&&(this._final=Pe.final)),a.call(this)}function c(Pe,Ee,j,Ve,Me,J,Ie){Ee.writelen=Ve,Ee.writecb=Ie,Ee.writing=!0,Ee.sync=!0,Ee.destroyed?Ee.onwrite(new Y("write")):j?Pe._writev(Me,Ee.onwrite):Pe._write(Me,J,Ee.onwrite),Ee.sync=!1}function y(Pe,Ee,j,Ve){j||function n(Pe,Ee){0===Ee.length&&Ee.needDrain&&(Ee.needDrain=!1,Pe.emit("drain"))}(Pe,Ee),Ee.pendingcb--,Ve(),X(Pe,Ee)}function _(Pe,Ee){Ee.bufferProcessing=!0;var j=Ee.bufferedRequest;if(Pe._writev&&j&&j.next){var Me=new Array(Ee.bufferedRequestCount),J=Ee.corkedRequestsFree;J.entry=j;for(var Ie=0,ut=!0;j;)Me[Ie]=j,j.isBuf||(ut=!1),j=j.next,Ie+=1;Me.allBuffers=ut,c(Pe,Ee,!0,Ee.length,Me,"",J.finish),Ee.pendingcb++,Ee.lastBufferedRequest=null,J.next?(Ee.corkedRequestsFree=J.next,J.next=null):Ee.corkedRequestsFree=new e(Ee),Ee.bufferedRequestCount=0}else{for(;j;){var Oe=j.chunk;if(c(Pe,Ee,!1,Ee.objectMode?1:Oe.length,Oe,j.encoding,j.callback),j=j.next,Ee.bufferedRequestCount--,Ee.writing)break}null===j&&(Ee.lastBufferedRequest=null)}Ee.bufferedRequest=j,Ee.bufferProcessing=!1}function V(Pe){return Pe.ending&&0===Pe.length&&null===Pe.bufferedRequest&&!Pe.finished&&!Pe.writing}function N(Pe,Ee){Pe._final(function(j){Ee.pendingcb--,j&&ne(Pe,j),Ee.prefinished=!0,Pe.emit("prefinish"),X(Pe,Ee)})}function X(Pe,Ee){var j=V(Ee);if(j&&(function H(Pe,Ee){!Ee.prefinished&&!Ee.finalCalled&&("function"!=typeof Pe._final||Ee.destroyed?(Ee.prefinished=!0,Pe.emit("prefinish")):(Ee.pendingcb++,Ee.finalCalled=!0,process.nextTick(N,Pe,Ee)))}(Pe,Ee),0===Ee.pendingcb&&(Ee.finished=!0,Pe.emit("finish"),Ee.autoDestroy))){var Ve=Pe._readableState;(!Ve||Ve.autoDestroy&&Ve.endEmitted)&&Pe.destroy()}return j}p(3894)(_e,a),ge.prototype.getBuffer=function(){for(var Ee=this.bufferedRequest,j=[];Ee;)j.push(Ee),Ee=Ee.next;return j},function(){try{Object.defineProperty(ge.prototype,"buffer",{get:M.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(Pe){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(q=Function.prototype[Symbol.hasInstance],Object.defineProperty(_e,Symbol.hasInstance,{value:function(Ee){return!!q.call(this,Ee)||this===_e&&Ee&&Ee._writableState instanceof ge}})):q=function(Ee){return Ee instanceof this},_e.prototype.pipe=function(){ne(this,new Z)},_e.prototype.write=function(Pe,Ee,j){var Ve=this._writableState,Me=!1,J=!Ve.objectMode&&function h(Pe){return C.isBuffer(Pe)||Pe instanceof d}(Pe);return J&&!C.isBuffer(Pe)&&(Pe=function R(Pe){return C.from(Pe)}(Pe)),"function"==typeof Ee&&(j=Ee,Ee=null),J?Ee="buffer":Ee||(Ee=Ve.defaultEncoding),"function"!=typeof j&&(j=re),Ve.ending?function x(Pe,Ee){var j=new ee;ne(Pe,j),process.nextTick(Ee,j)}(this,j):(J||function i(Pe,Ee,j,Ve){var Me;return null===j?Me=new ae:"string"!=typeof j&&!Ee.objectMode&&(Me=new k("chunk",["string","Buffer"],j)),!Me||(ne(Pe,Me),process.nextTick(Ve,Me),!1)}(this,Ve,Pe,j))&&(Ve.pendingcb++,Me=function u(Pe,Ee,j,Ve,Me,J){if(!j){var Ie=function r(Pe,Ee,j){return!Pe.objectMode&&!1!==Pe.decodeStrings&&"string"==typeof Ee&&(Ee=C.from(Ee,j)),Ee}(Ee,Ve,Me);Ve!==Ie&&(j=!0,Me="buffer",Ve=Ie)}var ut=Ee.objectMode?1:Ve.length;Ee.length+=ut;var Oe=Ee.length-1))throw new ue(Ee);return this._writableState.defaultEncoding=Ee,this},Object.defineProperty(_e.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(_e.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),_e.prototype._write=function(Pe,Ee,j){j(new E("_write()"))},_e.prototype._writev=null,_e.prototype.end=function(Pe,Ee,j){var Ve=this._writableState;return"function"==typeof Pe?(j=Pe,Pe=null,Ee=null):"function"==typeof Ee&&(j=Ee,Ee=null),null!=Pe&&this.write(Pe,Ee),Ve.corked&&(Ve.corked=1,this.uncork()),Ve.ending||function he(Pe,Ee,j){Ee.ending=!0,X(Pe,Ee),j&&(Ee.finished?process.nextTick(j):Pe.once("finish",j)),Ee.ended=!0,Pe.writable=!1}(this,Ve,j),this},Object.defineProperty(_e.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(_e.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(Ee){!this._writableState||(this._writableState.destroyed=Ee)}}),_e.prototype.destroy=L.destroy,_e.prototype._undestroy=L.undestroy,_e.prototype._destroy=function(Pe,Ee){Ee(Pe)}},3872:(Be,K,p)=>{"use strict";var t;function e(Y,ae,ee){return ae in Y?Object.defineProperty(Y,ae,{value:ee,enumerable:!0,configurable:!0,writable:!0}):Y[ae]=ee,Y}var f=p(7542),M=Symbol("lastResolve"),a=Symbol("lastReject"),C=Symbol("error"),d=Symbol("ended"),R=Symbol("lastPromise"),h=Symbol("handlePromise"),L=Symbol("stream");function w(Y,ae){return{value:Y,done:ae}}function D(Y){var ae=Y[M];if(null!==ae){var ee=Y[L].read();null!==ee&&(Y[R]=null,Y[M]=null,Y[a]=null,ae(w(ee,!1)))}}function S(Y){process.nextTick(D,Y)}var E=Object.getPrototypeOf(function(){}),B=Object.setPrototypeOf((e(t={get stream(){return this[L]},next:function(){var ae=this,ee=this[C];if(null!==ee)return Promise.reject(ee);if(this[d])return Promise.resolve(w(void 0,!0));if(this[L].destroyed)return new Promise(function(ge,q){process.nextTick(function(){ae[C]?q(ae[C]):ge(w(void 0,!0))})});var ne,ue=this[R];if(ue)ne=new Promise(function k(Y,ae){return function(ee,ue){Y.then(function(){ae[d]?ee(w(void 0,!0)):ae[h](ee,ue)},ue)}}(ue,this));else{var re=this[L].read();if(null!==re)return Promise.resolve(w(re,!1));ne=new Promise(this[h])}return this[R]=ne,ne}},Symbol.asyncIterator,function(){return this}),e(t,"return",function(){var ae=this;return new Promise(function(ee,ue){ae[L].destroy(null,function(ne){ne?ue(ne):ee(w(void 0,!0))})})}),t),E);Be.exports=function(ae){var ee,ue=Object.create(B,(e(ee={},L,{value:ae,writable:!0}),e(ee,M,{value:null,writable:!0}),e(ee,a,{value:null,writable:!0}),e(ee,C,{value:null,writable:!0}),e(ee,d,{value:ae._readableState.endEmitted,writable:!0}),e(ee,h,{value:function(re,ge){var q=ue[L].read();q?(ue[R]=null,ue[M]=null,ue[a]=null,re(w(q,!1))):(ue[M]=re,ue[a]=ge)},writable:!0}),ee));return ue[R]=null,f(ae,function(ne){if(ne&&"ERR_STREAM_PREMATURE_CLOSE"!==ne.code){var re=ue[a];return null!==re&&(ue[R]=null,ue[M]=null,ue[a]=null,re(ne)),void(ue[C]=ne)}var ge=ue[M];null!==ge&&(ue[R]=null,ue[M]=null,ue[a]=null,ge(w(void 0,!0))),ue[d]=!0}),ae.on("readable",S.bind(null,ue)),ue}},5019:(Be,K,p)=>{"use strict";function t(S,k){var E=Object.keys(S);if(Object.getOwnPropertySymbols){var B=Object.getOwnPropertySymbols(S);k&&(B=B.filter(function(Z){return Object.getOwnPropertyDescriptor(S,Z).enumerable})),E.push.apply(E,B)}return E}function f(S,k,E){return k in S?Object.defineProperty(S,k,{value:E,enumerable:!0,configurable:!0,writable:!0}):S[k]=E,S}function a(S,k){for(var E=0;E0?this.tail.next=B:this.head=B,this.tail=B,++this.length}},{key:"unshift",value:function(E){var B={data:E,next:this.head};0===this.length&&(this.tail=B),this.head=B,++this.length}},{key:"shift",value:function(){if(0!==this.length){var E=this.head.data;return this.head=1===this.length?this.tail=null:this.head.next,--this.length,E}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(E){if(0===this.length)return"";for(var B=this.head,Z=""+B.data;B=B.next;)Z+=E+B.data;return Z}},{key:"concat",value:function(E){if(0===this.length)return R.alloc(0);for(var B=R.allocUnsafe(E>>>0),Z=this.head,Y=0;Z;)D(Z.data,B,Y),Y+=Z.data.length,Z=Z.next;return B}},{key:"consume",value:function(E,B){var Z;return Eae.length?ae.length:E;if(Y+=ee===ae.length?ae:ae.slice(0,E),0==(E-=ee)){ee===ae.length?(++Z,this.head=B.next?B.next:this.tail=null):(this.head=B,B.data=ae.slice(ee));break}++Z}return this.length-=Z,Y}},{key:"_getBuffer",value:function(E){var B=R.allocUnsafe(E),Z=this.head,Y=1;for(Z.data.copy(B),E-=Z.data.length;Z=Z.next;){var ae=Z.data,ee=E>ae.length?ae.length:E;if(ae.copy(B,B.length-E,0,ee),0==(E-=ee)){ee===ae.length?(++Y,this.head=Z.next?Z.next:this.tail=null):(this.head=Z,Z.data=ae.slice(ee));break}++Y}return this.length-=Y,B}},{key:w,value:function(E,B){return L(this,function e(S){for(var k=1;k{"use strict";function p(a,C){f(a,C),t(a)}function t(a){a._writableState&&!a._writableState.emitClose||a._readableState&&!a._readableState.emitClose||a.emit("close")}function f(a,C){a.emit("error",C)}Be.exports={destroy:function K(a,C){var d=this;return this._readableState&&this._readableState.destroyed||this._writableState&&this._writableState.destroyed?(C?C(a):a&&(this._writableState?this._writableState.errorEmitted||(this._writableState.errorEmitted=!0,process.nextTick(f,this,a)):process.nextTick(f,this,a)),this):(this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(a||null,function(L){!C&&L?d._writableState?d._writableState.errorEmitted?process.nextTick(t,d):(d._writableState.errorEmitted=!0,process.nextTick(p,d,L)):process.nextTick(p,d,L):C?(process.nextTick(t,d),C(L)):process.nextTick(t,d)}),this)},undestroy:function e(){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 M(a,C){var d=a._readableState,R=a._writableState;d&&d.autoDestroy||R&&R.autoDestroy?a.destroy(C):a.emit("error",C)}}},7542:(Be,K,p)=>{"use strict";var t=p(891).q.ERR_STREAM_PREMATURE_CLOSE;function f(){}Be.exports=function a(C,d,R){if("function"==typeof d)return a(C,null,d);d||(d={}),R=function e(C){var d=!1;return function(){if(!d){d=!0;for(var R=arguments.length,h=new Array(R),L=0;L{Be.exports=function(){throw new Error("Readable.from is not available in the browser")}},954:(Be,K,p)=>{"use strict";var t,f=p(891).q,M=f.ERR_MISSING_ARGS,a=f.ERR_STREAM_DESTROYED;function C(S){if(S)throw S}function R(S,k,E,B){B=function e(S){var k=!1;return function(){k||(k=!0,S.apply(void 0,arguments))}}(B);var Z=!1;S.on("close",function(){Z=!0}),void 0===t&&(t=p(7542)),t(S,{readable:k,writable:E},function(ae){if(ae)return B(ae);Z=!0,B()});var Y=!1;return function(ae){if(!Z&&!Y){if(Y=!0,function d(S){return S.setHeader&&"function"==typeof S.abort}(S))return S.abort();if("function"==typeof S.destroy)return S.destroy();B(ae||new a("pipe"))}}}function h(S){S()}function L(S,k){return S.pipe(k)}function w(S){return S.length&&"function"==typeof S[S.length-1]?S.pop():C}Be.exports=function D(){for(var S=arguments.length,k=new Array(S),E=0;E0,function(re){Z||(Z=re),re&&Y.forEach(h),!ue&&(Y.forEach(h),B(Z))})});return k.reduce(L)}},7102:(Be,K,p)=>{"use strict";var t=p(891).q.ERR_INVALID_OPT_VALUE;Be.exports={getHighWaterMark:function f(M,a,C,d){var R=function e(M,a,C){return null!=M.highWaterMark?M.highWaterMark:a?M[C]:null}(a,d,C);if(null!=R){if(!isFinite(R)||Math.floor(R)!==R||R<0)throw new t(d?C:"highWaterMark",R);return Math.floor(R)}return M.objectMode?16:16384}}},4970:(Be,K,p)=>{Be.exports=p(9069).EventEmitter},5685:(Be,K,p)=>{(K=Be.exports=p(3154)).Stream=K,K.Readable=K,K.Writable=p(520),K.Duplex=p(1339),K.Transform=p(6025),K.PassThrough=p(6071),K.finished=p(7542),K.pipeline=p(954)},5634:(Be,K,p)=>{"use strict";var t=p(3172).Buffer,e=p(3894),f=p(9650),M=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],C=[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],d=[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],R=[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],h=[0,1518500249,1859775393,2400959708,2840853838],L=[1352829926,1548603684,1836072691,2053994217,0];function w(){f.call(this,64),this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520}function D(Y,ae){return Y<>>32-ae}function S(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae^ee^ue)+re+ge|0,q)+ne|0}function k(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae&ee|~ae&ue)+re+ge|0,q)+ne|0}function E(Y,ae,ee,ue,ne,re,ge,q){return D(Y+((ae|~ee)^ue)+re+ge|0,q)+ne|0}function B(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae&ue|ee&~ue)+re+ge|0,q)+ne|0}function Z(Y,ae,ee,ue,ne,re,ge,q){return D(Y+(ae^(ee|~ue))+re+ge|0,q)+ne|0}e(w,f),w.prototype._update=function(){for(var Y=M,ae=0;ae<16;++ae)Y[ae]=this._block.readInt32LE(4*ae);for(var ee=0|this._a,ue=0|this._b,ne=0|this._c,re=0|this._d,ge=0|this._e,q=0|this._a,_e=0|this._b,x=0|this._c,i=0|this._d,r=0|this._e,u=0;u<80;u+=1){var c,v;u<16?(c=S(ee,ue,ne,re,ge,Y[a[u]],h[0],d[u]),v=Z(q,_e,x,i,r,Y[C[u]],L[0],R[u])):u<32?(c=k(ee,ue,ne,re,ge,Y[a[u]],h[1],d[u]),v=B(q,_e,x,i,r,Y[C[u]],L[1],R[u])):u<48?(c=E(ee,ue,ne,re,ge,Y[a[u]],h[2],d[u]),v=E(q,_e,x,i,r,Y[C[u]],L[2],R[u])):u<64?(c=B(ee,ue,ne,re,ge,Y[a[u]],h[3],d[u]),v=k(q,_e,x,i,r,Y[C[u]],L[3],R[u])):(c=Z(ee,ue,ne,re,ge,Y[a[u]],h[4],d[u]),v=S(q,_e,x,i,r,Y[C[u]],L[4],R[u])),ee=ge,ge=re,re=D(ne,10),ne=ue,ue=c,q=r,r=i,i=D(x,10),x=_e,_e=v}var T=this._b+ne+i|0;this._b=this._c+re+r|0,this._c=this._d+ge+q|0,this._d=this._e+ee+_e|0,this._e=this._a+ue+x|0,this._a=T},w.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 Y=t.alloc?t.alloc(20):new t(20);return Y.writeInt32LE(this._a,0),Y.writeInt32LE(this._b,4),Y.writeInt32LE(this._c,8),Y.writeInt32LE(this._d,12),Y.writeInt32LE(this._e,16),Y},Be.exports=w},1135:(Be,K,p)=>{"use strict";p.d(K,{X:()=>e});var t=p(7579);class e extends t.x{constructor(M){super(),this._value=M}get value(){return this.getValue()}_subscribe(M){const a=super._subscribe(M);return!a.closed&&M.next(this._value),a}getValue(){const{hasError:M,thrownError:a,_value:C}=this;if(M)throw a;return this._throwIfClosed(),C}next(M){super.next(this._value=M)}}},8306:(Be,K,p)=>{"use strict";p.d(K,{y:()=>L});var t=p(930),e=p(727),f=p(8822),M=p(4671);var d=p(2416),R=p(576),h=p(2806);let L=(()=>{class k{constructor(B){B&&(this._subscribe=B)}lift(B){const Z=new k;return Z.source=this,Z.operator=B,Z}subscribe(B,Z,Y){const ae=function S(k){return k&&k instanceof t.Lv||function D(k){return k&&(0,R.m)(k.next)&&(0,R.m)(k.error)&&(0,R.m)(k.complete)}(k)&&(0,e.Nn)(k)}(B)?B:new t.Hp(B,Z,Y);return(0,h.x)(()=>{const{operator:ee,source:ue}=this;ae.add(ee?ee.call(ae,ue):ue?this._subscribe(ae):this._trySubscribe(ae))}),ae}_trySubscribe(B){try{return this._subscribe(B)}catch(Z){B.error(Z)}}forEach(B,Z){return new(Z=w(Z))((Y,ae)=>{const ee=new t.Hp({next:ue=>{try{B(ue)}catch(ne){ae(ne),ee.unsubscribe()}},error:ae,complete:Y});this.subscribe(ee)})}_subscribe(B){var Z;return null===(Z=this.source)||void 0===Z?void 0:Z.subscribe(B)}[f.L](){return this}pipe(...B){return function C(k){return 0===k.length?M.y:1===k.length?k[0]:function(B){return k.reduce((Z,Y)=>Y(Z),B)}}(B)(this)}toPromise(B){return new(B=w(B))((Z,Y)=>{let ae;this.subscribe(ee=>ae=ee,ee=>Y(ee),()=>Z(ae))})}}return k.create=E=>new k(E),k})();function w(k){var E;return null!==(E=null!=k?k:d.v.Promise)&&void 0!==E?E:Promise}},4707:(Be,K,p)=>{"use strict";p.d(K,{t:()=>f});var t=p(7579),e=p(6063);class f extends t.x{constructor(a=1/0,C=1/0,d=e.l){super(),this._bufferSize=a,this._windowTime=C,this._timestampProvider=d,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=C===1/0,this._bufferSize=Math.max(1,a),this._windowTime=Math.max(1,C)}next(a){const{isStopped:C,_buffer:d,_infiniteTimeWindow:R,_timestampProvider:h,_windowTime:L}=this;C||(d.push(a),!R&&d.push(h.now()+L)),this._trimBuffer(),super.next(a)}_subscribe(a){this._throwIfClosed(),this._trimBuffer();const C=this._innerSubscribe(a),{_infiniteTimeWindow:d,_buffer:R}=this,h=R.slice();for(let L=0;L{"use strict";p.d(K,{u:()=>R,x:()=>d});var t=p(8306),e=p(727);const M=(0,p(3888).d)(h=>function(){h(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var a=p(8737),C=p(2806);let d=(()=>{class h extends t.y{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(w){const D=new R(this,this);return D.operator=w,D}_throwIfClosed(){if(this.closed)throw new M}next(w){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const D of this.currentObservers)D.next(w)}})}error(w){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=w;const{observers:D}=this;for(;D.length;)D.shift().error(w)}})}complete(){(0,C.x)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:w}=this;for(;w.length;)w.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var w;return(null===(w=this.observers)||void 0===w?void 0:w.length)>0}_trySubscribe(w){return this._throwIfClosed(),super._trySubscribe(w)}_subscribe(w){return this._throwIfClosed(),this._checkFinalizedStatuses(w),this._innerSubscribe(w)}_innerSubscribe(w){const{hasError:D,isStopped:S,observers:k}=this;return D||S?e.Lc:(this.currentObservers=null,k.push(w),new e.w0(()=>{this.currentObservers=null,(0,a.P)(k,w)}))}_checkFinalizedStatuses(w){const{hasError:D,thrownError:S,isStopped:k}=this;D?w.error(S):k&&w.complete()}asObservable(){const w=new t.y;return w.source=this,w}}return h.create=(L,w)=>new R(L,w),h})();class R extends d{constructor(L,w){super(),this.destination=L,this.source=w}next(L){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.next)||void 0===D||D.call(w,L)}error(L){var w,D;null===(D=null===(w=this.destination)||void 0===w?void 0:w.error)||void 0===D||D.call(w,L)}complete(){var L,w;null===(w=null===(L=this.destination)||void 0===L?void 0:L.complete)||void 0===w||w.call(L)}_subscribe(L){var w,D;return null!==(D=null===(w=this.source)||void 0===w?void 0:w.subscribe(L))&&void 0!==D?D:e.Lc}}},930:(Be,K,p)=>{"use strict";p.d(K,{Hp:()=>B,Lv:()=>D});var t=p(576),e=p(727),f=p(2416),M=p(7849),a=p(5032);const C=h("C",void 0,void 0);function h(ue,ne,re){return{kind:ue,value:ne,error:re}}var L=p(3410),w=p(2806);class D extends e.w0{constructor(ne){super(),this.isStopped=!1,ne?(this.destination=ne,(0,e.Nn)(ne)&&ne.add(this)):this.destination=ee}static create(ne,re,ge){return new B(ne,re,ge)}next(ne){this.isStopped?ae(function R(ue){return h("N",ue,void 0)}(ne),this):this._next(ne)}error(ne){this.isStopped?ae(function d(ue){return h("E",void 0,ue)}(ne),this):(this.isStopped=!0,this._error(ne))}complete(){this.isStopped?ae(C,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(ne){this.destination.next(ne)}_error(ne){try{this.destination.error(ne)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const S=Function.prototype.bind;function k(ue,ne){return S.call(ue,ne)}class E{constructor(ne){this.partialObserver=ne}next(ne){const{partialObserver:re}=this;if(re.next)try{re.next(ne)}catch(ge){Z(ge)}}error(ne){const{partialObserver:re}=this;if(re.error)try{re.error(ne)}catch(ge){Z(ge)}else Z(ne)}complete(){const{partialObserver:ne}=this;if(ne.complete)try{ne.complete()}catch(re){Z(re)}}}class B extends D{constructor(ne,re,ge){let q;if(super(),(0,t.m)(ne)||!ne)q={next:null!=ne?ne:void 0,error:null!=re?re:void 0,complete:null!=ge?ge:void 0};else{let _e;this&&f.v.useDeprecatedNextContext?(_e=Object.create(ne),_e.unsubscribe=()=>this.unsubscribe(),q={next:ne.next&&k(ne.next,_e),error:ne.error&&k(ne.error,_e),complete:ne.complete&&k(ne.complete,_e)}):q=ne}this.destination=new E(q)}}function Z(ue){f.v.useDeprecatedSynchronousErrorHandling?(0,w.O)(ue):(0,M.h)(ue)}function ae(ue,ne){const{onStoppedNotification:re}=f.v;re&&L.z.setTimeout(()=>re(ue,ne))}const ee={closed:!0,next:a.Z,error:function Y(ue){throw ue},complete:a.Z}},727:(Be,K,p)=>{"use strict";p.d(K,{Lc:()=>C,w0:()=>a,Nn:()=>d});var t=p(576);const f=(0,p(3888).d)(h=>function(w){h(this),this.message=w?`${w.length} errors occurred during unsubscription:\n${w.map((D,S)=>`${S+1}) ${D.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=w});var M=p(8737);class a{constructor(L){this.initialTeardown=L,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let L;if(!this.closed){this.closed=!0;const{_parentage:w}=this;if(w)if(this._parentage=null,Array.isArray(w))for(const k of w)k.remove(this);else w.remove(this);const{initialTeardown:D}=this;if((0,t.m)(D))try{D()}catch(k){L=k instanceof f?k.errors:[k]}const{_finalizers:S}=this;if(S){this._finalizers=null;for(const k of S)try{R(k)}catch(E){L=null!=L?L:[],E instanceof f?L=[...L,...E.errors]:L.push(E)}}if(L)throw new f(L)}}add(L){var w;if(L&&L!==this)if(this.closed)R(L);else{if(L instanceof a){if(L.closed||L._hasParent(this))return;L._addParent(this)}(this._finalizers=null!==(w=this._finalizers)&&void 0!==w?w:[]).push(L)}}_hasParent(L){const{_parentage:w}=this;return w===L||Array.isArray(w)&&w.includes(L)}_addParent(L){const{_parentage:w}=this;this._parentage=Array.isArray(w)?(w.push(L),w):w?[w,L]:L}_removeParent(L){const{_parentage:w}=this;w===L?this._parentage=null:Array.isArray(w)&&(0,M.P)(w,L)}remove(L){const{_finalizers:w}=this;w&&(0,M.P)(w,L),L instanceof a&&L._removeParent(this)}}a.EMPTY=(()=>{const h=new a;return h.closed=!0,h})();const C=a.EMPTY;function d(h){return h instanceof a||h&&"closed"in h&&(0,t.m)(h.remove)&&(0,t.m)(h.add)&&(0,t.m)(h.unsubscribe)}function R(h){(0,t.m)(h)?h():h.unsubscribe()}},2416:(Be,K,p)=>{"use strict";p.d(K,{v:()=>t});const t={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},9841:(Be,K,p)=>{"use strict";p.d(K,{a:()=>L});var t=p(8306),e=p(4742),f=p(457),M=p(4671),a=p(3268),C=p(3269),d=p(1810),R=p(5403),h=p(9672);function L(...S){const k=(0,C.yG)(S),E=(0,C.jO)(S),{args:B,keys:Z}=(0,e.D)(S);if(0===B.length)return(0,f.D)([],k);const Y=new t.y(function w(S,k,E=M.y){return B=>{D(k,()=>{const{length:Z}=S,Y=new Array(Z);let ae=Z,ee=Z;for(let ue=0;ue{const ne=(0,f.D)(S[ue],k);let re=!1;ne.subscribe((0,R.x)(B,ge=>{Y[ue]=ge,re||(re=!0,ee--),ee||B.next(E(Y.slice()))},()=>{--ae||B.complete()}))},B)},B)}}(B,k,Z?ae=>(0,d.n)(Z,ae):M.y));return E?Y.pipe((0,a.Z)(E)):Y}function D(S,k,E){S?(0,h.f)(E,S,k):k()}},7272:(Be,K,p)=>{"use strict";p.d(K,{z:()=>a});var t=p(8189),f=p(3269),M=p(457);function a(...C){return function e(){return(0,t.J)(1)}()((0,M.D)(C,(0,f.yG)(C)))}},9770:(Be,K,p)=>{"use strict";p.d(K,{P:()=>f});var t=p(8306),e=p(8421);function f(M){return new t.y(a=>{(0,e.Xf)(M()).subscribe(a)})}},515:(Be,K,p)=>{"use strict";p.d(K,{E:()=>e});const e=new(p(8306).y)(a=>a.complete())},4128:(Be,K,p)=>{"use strict";p.d(K,{D:()=>R});var t=p(8306),e=p(4742),f=p(8421),M=p(3269),a=p(5403),C=p(3268),d=p(1810);function R(...h){const L=(0,M.jO)(h),{args:w,keys:D}=(0,e.D)(h),S=new t.y(k=>{const{length:E}=w;if(!E)return void k.complete();const B=new Array(E);let Z=E,Y=E;for(let ae=0;ae{ee||(ee=!0,Y--),B[ae]=ue},()=>Z--,void 0,()=>{(!Z||!ee)&&(Y||k.next(D?(0,d.n)(D,B):B),k.complete())}))}});return L?S.pipe((0,C.Z)(L)):S}},457:(Be,K,p)=>{"use strict";p.d(K,{D:()=>re});var t=p(8421),e=p(5363),f=p(4482);function M(ge,q=0){return(0,f.e)((_e,x)=>{x.add(ge.schedule(()=>_e.subscribe(x),q))})}var d=p(8306),h=p(2202),L=p(576),w=p(9672);function S(ge,q){if(!ge)throw new Error("Iterable cannot be null");return new d.y(_e=>{(0,w.f)(_e,q,()=>{const x=ge[Symbol.asyncIterator]();(0,w.f)(_e,q,()=>{x.next().then(i=>{i.done?_e.complete():_e.next(i.value)})},0,!0)})})}var k=p(3670),E=p(8239),B=p(1144),Z=p(6495),Y=p(2206),ae=p(4532),ee=p(3260);function re(ge,q){return q?function ne(ge,q){if(null!=ge){if((0,k.c)(ge))return function a(ge,q){return(0,t.Xf)(ge).pipe(M(q),(0,e.Q)(q))}(ge,q);if((0,B.z)(ge))return function R(ge,q){return new d.y(_e=>{let x=0;return q.schedule(function(){x===ge.length?_e.complete():(_e.next(ge[x++]),_e.closed||this.schedule())})})}(ge,q);if((0,E.t)(ge))return function C(ge,q){return(0,t.Xf)(ge).pipe(M(q),(0,e.Q)(q))}(ge,q);if((0,Y.D)(ge))return S(ge,q);if((0,Z.T)(ge))return function D(ge,q){return new d.y(_e=>{let x;return(0,w.f)(_e,q,()=>{x=ge[h.h](),(0,w.f)(_e,q,()=>{let i,r;try{({value:i,done:r}=x.next())}catch(u){return void _e.error(u)}r?_e.complete():_e.next(i)},0,!0)}),()=>(0,L.m)(null==x?void 0:x.return)&&x.return()})}(ge,q);if((0,ee.L)(ge))return function ue(ge,q){return S((0,ee.Q)(ge),q)}(ge,q)}throw(0,ae.z)(ge)}(ge,q):(0,t.Xf)(ge)}},4968:(Be,K,p)=>{"use strict";p.d(K,{R:()=>L});var t=p(8421),e=p(8306),f=p(5577),M=p(1144),a=p(576),C=p(3268);const d=["addListener","removeListener"],R=["addEventListener","removeEventListener"],h=["on","off"];function L(E,B,Z,Y){if((0,a.m)(Z)&&(Y=Z,Z=void 0),Y)return L(E,B,Z).pipe((0,C.Z)(Y));const[ae,ee]=function k(E){return(0,a.m)(E.addEventListener)&&(0,a.m)(E.removeEventListener)}(E)?R.map(ue=>ne=>E[ue](B,ne,Z)):function D(E){return(0,a.m)(E.addListener)&&(0,a.m)(E.removeListener)}(E)?d.map(w(E,B)):function S(E){return(0,a.m)(E.on)&&(0,a.m)(E.off)}(E)?h.map(w(E,B)):[];if(!ae&&(0,M.z)(E))return(0,f.z)(ue=>L(ue,B,Z))((0,t.Xf)(E));if(!ae)throw new TypeError("Invalid event target");return new e.y(ue=>{const ne=(...re)=>ue.next(1ee(ne)})}function w(E,B){return Z=>Y=>E[Z](B,Y)}},8421:(Be,K,p)=>{"use strict";p.d(K,{Xf:()=>S});var t=p(655),e=p(1144),f=p(8239),M=p(8306),a=p(3670),C=p(2206),d=p(4532),R=p(6495),h=p(3260),L=p(576),w=p(7849),D=p(8822);function S(ue){if(ue instanceof M.y)return ue;if(null!=ue){if((0,a.c)(ue))return function k(ue){return new M.y(ne=>{const re=ue[D.L]();if((0,L.m)(re.subscribe))return re.subscribe(ne);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(ue);if((0,e.z)(ue))return function E(ue){return new M.y(ne=>{for(let re=0;re{ue.then(re=>{ne.closed||(ne.next(re),ne.complete())},re=>ne.error(re)).then(null,w.h)})}(ue);if((0,C.D)(ue))return Y(ue);if((0,R.T)(ue))return function Z(ue){return new M.y(ne=>{for(const re of ue)if(ne.next(re),ne.closed)return;ne.complete()})}(ue);if((0,h.L)(ue))return function ae(ue){return Y((0,h.Q)(ue))}(ue)}throw(0,d.z)(ue)}function Y(ue){return new M.y(ne=>{(function ee(ue,ne){var re,ge,q,_e;return(0,t.mG)(this,void 0,void 0,function*(){try{for(re=(0,t.KL)(ue);!(ge=yield re.next()).done;)if(ne.next(ge.value),ne.closed)return}catch(x){q={error:x}}finally{try{ge&&!ge.done&&(_e=re.return)&&(yield _e.call(re))}finally{if(q)throw q.error}}ne.complete()})})(ue,ne).catch(re=>ne.error(re))})}},6451:(Be,K,p)=>{"use strict";p.d(K,{T:()=>C});var t=p(8189),e=p(8421),f=p(515),M=p(3269),a=p(457);function C(...d){const R=(0,M.yG)(d),h=(0,M._6)(d,1/0),L=d;return L.length?1===L.length?(0,e.Xf)(L[0]):(0,t.J)(h)((0,a.D)(L,R)):f.E}},9646:(Be,K,p)=>{"use strict";p.d(K,{of:()=>f});var t=p(3269),e=p(457);function f(...M){const a=(0,t.yG)(M);return(0,e.D)(M,a)}},2843:(Be,K,p)=>{"use strict";p.d(K,{_:()=>f});var t=p(8306),e=p(576);function f(M,a){const C=(0,e.m)(M)?M:()=>M,d=R=>R.error(C());return new t.y(a?R=>a.schedule(d,0,R):d)}},2805:(Be,K,p)=>{"use strict";p.d(K,{H:()=>a});var t=p(8306),e=p(4986),f=p(3532),M=p(1165);function a(C=0,d,R=e.P){let h=-1;return null!=d&&((0,f.K)(d)?R=d:h=d),new t.y(L=>{let w=(0,M.q)(C)?+C-R.now():C;w<0&&(w=0);let D=0;return R.schedule(function(){L.closed||(L.next(D++),0<=h?this.schedule(void 0,h):L.complete())},w)})}},5403:(Be,K,p)=>{"use strict";p.d(K,{Q:()=>f,x:()=>e});var t=p(930);function e(M,a,C,d,R){return new f(M,a,C,d,R)}class f extends t.Lv{constructor(a,C,d,R,h,L){super(a),this.onFinalize=h,this.shouldUnsubscribe=L,this._next=C?function(w){try{C(w)}catch(D){a.error(D)}}:super._next,this._error=R?function(w){try{R(w)}catch(D){a.error(D)}finally{this.unsubscribe()}}:super._error,this._complete=d?function(){try{d()}catch(w){a.error(w)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:C}=this;super.unsubscribe(),!C&&(null===(a=this.onFinalize)||void 0===a||a.call(this))}}}},3601:(Be,K,p)=>{"use strict";p.d(K,{e:()=>d});var t=p(4986),e=p(4482),f=p(8421),M=p(5403),C=p(2805);function d(R,h=t.z){return function a(R){return(0,e.e)((h,L)=>{let w=!1,D=null,S=null,k=!1;const E=()=>{if(null==S||S.unsubscribe(),S=null,w){w=!1;const Z=D;D=null,L.next(Z)}k&&L.complete()},B=()=>{S=null,k&&L.complete()};h.subscribe((0,M.x)(L,Z=>{w=!0,D=Z,S||(0,f.Xf)(R(Z)).subscribe(S=(0,M.x)(L,E,B))},()=>{k=!0,(!w||!S||S.closed)&&L.complete()}))})}(()=>(0,C.H)(R,h))}},262:(Be,K,p)=>{"use strict";p.d(K,{K:()=>M});var t=p(8421),e=p(5403),f=p(4482);function M(a){return(0,f.e)((C,d)=>{let L,R=null,h=!1;R=C.subscribe((0,e.x)(d,void 0,void 0,w=>{L=(0,t.Xf)(a(w,M(a)(C))),R?(R.unsubscribe(),R=null,L.subscribe(d)):h=!0})),h&&(R.unsubscribe(),R=null,L.subscribe(d))})}},4351:(Be,K,p)=>{"use strict";p.d(K,{b:()=>f});var t=p(5577),e=p(576);function f(M,a){return(0,e.m)(a)?(0,t.z)(M,a,1):(0,t.z)(M,1)}},8372:(Be,K,p)=>{"use strict";p.d(K,{b:()=>M});var t=p(4986),e=p(4482),f=p(5403);function M(a,C=t.z){return(0,e.e)((d,R)=>{let h=null,L=null,w=null;const D=()=>{if(h){h.unsubscribe(),h=null;const k=L;L=null,R.next(k)}};function S(){const k=w+a,E=C.now();if(E{L=k,w=C.now(),h||(h=C.schedule(S,a),R.add(h))},()=>{D(),R.complete()},void 0,()=>{L=h=null}))})}},6590:(Be,K,p)=>{"use strict";p.d(K,{d:()=>f});var t=p(4482),e=p(5403);function f(M){return(0,t.e)((a,C)=>{let d=!1;a.subscribe((0,e.x)(C,R=>{d=!0,C.next(R)},()=>{d||C.next(M),C.complete()}))})}},4086:(Be,K,p)=>{"use strict";p.d(K,{g:()=>h});var t=p(4986),e=p(7272),f=p(5698),M=p(8502),a=p(9718),C=p(5577);function d(L,w){return w?D=>(0,e.z)(w.pipe((0,f.q)(1),(0,M.l)()),D.pipe(d(L))):(0,C.z)((D,S)=>L(D,S).pipe((0,f.q)(1),(0,a.h)(D)))}var R=p(2805);function h(L,w=t.z){const D=(0,R.H)(L,w);return d(()=>D)}},1884:(Be,K,p)=>{"use strict";p.d(K,{x:()=>M});var t=p(4671),e=p(4482),f=p(5403);function M(C,d=t.y){return C=null!=C?C:a,(0,e.e)((R,h)=>{let L,w=!0;R.subscribe((0,f.x)(h,D=>{const S=d(D);(w||!C(L,S))&&(w=!1,L=S,h.next(D))}))})}function a(C,d){return C===d}},9300:(Be,K,p)=>{"use strict";p.d(K,{h:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((C,d)=>{let R=0;C.subscribe((0,e.x)(d,h=>M.call(a,h,R++)&&d.next(h)))})}},8746:(Be,K,p)=>{"use strict";p.d(K,{x:()=>e});var t=p(4482);function e(f){return(0,t.e)((M,a)=>{try{M.subscribe(a)}finally{a.add(f)}})}},590:(Be,K,p)=>{"use strict";p.d(K,{P:()=>d});var t=p(6805),e=p(9300),f=p(5698),M=p(6590),a=p(8068),C=p(4671);function d(R,h){const L=arguments.length>=2;return w=>w.pipe(R?(0,e.h)((D,S)=>R(D,S,w)):C.y,(0,f.q)(1),L?(0,M.d)(h):(0,a.T)(()=>new t.K))}},8502:(Be,K,p)=>{"use strict";p.d(K,{l:()=>M});var t=p(4482),e=p(5403),f=p(5032);function M(){return(0,t.e)((a,C)=>{a.subscribe((0,e.x)(C,f.Z))})}},4004:(Be,K,p)=>{"use strict";p.d(K,{U:()=>f});var t=p(4482),e=p(5403);function f(M,a){return(0,t.e)((C,d)=>{let R=0;C.subscribe((0,e.x)(d,h=>{d.next(M.call(a,h,R++))}))})}},9718:(Be,K,p)=>{"use strict";p.d(K,{h:()=>e});var t=p(4004);function e(f){return(0,t.U)(()=>f)}},8189:(Be,K,p)=>{"use strict";p.d(K,{J:()=>f});var t=p(5577),e=p(4671);function f(M=1/0){return(0,t.z)(e.y,M)}},5577:(Be,K,p)=>{"use strict";p.d(K,{z:()=>R});var t=p(4004),e=p(8421),f=p(4482),M=p(9672),a=p(5403),d=p(576);function R(h,L,w=1/0){return(0,d.m)(L)?R((D,S)=>(0,t.U)((k,E)=>L(D,k,S,E))((0,e.Xf)(h(D,S))),w):("number"==typeof L&&(w=L),(0,f.e)((D,S)=>function C(h,L,w,D,S,k,E,B){const Z=[];let Y=0,ae=0,ee=!1;const ue=()=>{ee&&!Z.length&&!Y&&L.complete()},ne=ge=>Y{k&&L.next(ge),Y++;let q=!1;(0,e.Xf)(w(ge,ae++)).subscribe((0,a.x)(L,_e=>{null==S||S(_e),k?ne(_e):L.next(_e)},()=>{q=!0},void 0,()=>{if(q)try{for(Y--;Z.length&&Yre(_e)):re(_e)}ue()}catch(_e){L.error(_e)}}))};return h.subscribe((0,a.x)(L,ne,()=>{ee=!0,ue()})),()=>{null==B||B()}}(D,S,h,w)))}},5363:(Be,K,p)=>{"use strict";p.d(K,{Q:()=>M});var t=p(9672),e=p(4482),f=p(5403);function M(a,C=0){return(0,e.e)((d,R)=>{d.subscribe((0,f.x)(R,h=>(0,t.f)(R,a,()=>R.next(h),C),()=>(0,t.f)(R,a,()=>R.complete(),C),h=>(0,t.f)(R,a,()=>R.error(h),C)))})}},5026:(Be,K,p)=>{"use strict";p.d(K,{R:()=>M});var t=p(4482),e=p(5403);function f(a,C,d,R,h){return(L,w)=>{let D=d,S=C,k=0;L.subscribe((0,e.x)(w,E=>{const B=k++;S=D?a(S,E,B):(D=!0,E),R&&w.next(S)},h&&(()=>{D&&w.next(S),w.complete()})))}}function M(a,C){return(0,t.e)(f(a,C,arguments.length>=2,!0))}},3099:(Be,K,p)=>{"use strict";p.d(K,{B:()=>a});var t=p(8421),e=p(7579),f=p(930),M=p(4482);function a(d={}){const{connector:R=(()=>new e.x),resetOnError:h=!0,resetOnComplete:L=!0,resetOnRefCountZero:w=!0}=d;return D=>{let S,k,E,B=0,Z=!1,Y=!1;const ae=()=>{null==k||k.unsubscribe(),k=void 0},ee=()=>{ae(),S=E=void 0,Z=Y=!1},ue=()=>{const ne=S;ee(),null==ne||ne.unsubscribe()};return(0,M.e)((ne,re)=>{B++,!Y&&!Z&&ae();const ge=E=null!=E?E:R();re.add(()=>{B--,0===B&&!Y&&!Z&&(k=C(ue,w))}),ge.subscribe(re),!S&&B>0&&(S=new f.Hp({next:q=>ge.next(q),error:q=>{Y=!0,ae(),k=C(ee,h,q),ge.error(q)},complete:()=>{Z=!0,ae(),k=C(ee,L),ge.complete()}}),(0,t.Xf)(ne).subscribe(S))})(D)}}function C(d,R,...h){if(!0===R)return void d();if(!1===R)return;const L=new f.Hp({next:()=>{L.unsubscribe(),d()}});return R(...h).subscribe(L)}},5684:(Be,K,p)=>{"use strict";p.d(K,{T:()=>e});var t=p(9300);function e(f){return(0,t.h)((M,a)=>f<=a)}},8675:(Be,K,p)=>{"use strict";p.d(K,{O:()=>M});var t=p(7272),e=p(3269),f=p(4482);function M(...a){const C=(0,e.yG)(a);return(0,f.e)((d,R)=>{(C?(0,t.z)(a,d,C):(0,t.z)(a,d)).subscribe(R)})}},3900:(Be,K,p)=>{"use strict";p.d(K,{w:()=>M});var t=p(8421),e=p(4482),f=p(5403);function M(a,C){return(0,e.e)((d,R)=>{let h=null,L=0,w=!1;const D=()=>w&&!h&&R.complete();d.subscribe((0,f.x)(R,S=>{null==h||h.unsubscribe();let k=0;const E=L++;(0,t.Xf)(a(S,E)).subscribe(h=(0,f.x)(R,B=>R.next(C?C(S,B,E,k++):B),()=>{h=null,D()}))},()=>{w=!0,D()}))})}},5698:(Be,K,p)=>{"use strict";p.d(K,{q:()=>M});var t=p(515),e=p(4482),f=p(5403);function M(a){return a<=0?()=>t.E:(0,e.e)((C,d)=>{let R=0;C.subscribe((0,f.x)(d,h=>{++R<=a&&(d.next(h),a<=R&&d.complete())}))})}},2722:(Be,K,p)=>{"use strict";p.d(K,{R:()=>a});var t=p(4482),e=p(5403),f=p(8421),M=p(5032);function a(C){return(0,t.e)((d,R)=>{(0,f.Xf)(C).subscribe((0,e.x)(R,()=>R.complete(),M.Z)),!R.closed&&d.subscribe(R)})}},8505:(Be,K,p)=>{"use strict";p.d(K,{b:()=>a});var t=p(576),e=p(4482),f=p(5403),M=p(4671);function a(C,d,R){const h=(0,t.m)(C)||d||R?{next:C,error:d,complete:R}:C;return h?(0,e.e)((L,w)=>{var D;null===(D=h.subscribe)||void 0===D||D.call(h);let S=!0;L.subscribe((0,f.x)(w,k=>{var E;null===(E=h.next)||void 0===E||E.call(h,k),w.next(k)},()=>{var k;S=!1,null===(k=h.complete)||void 0===k||k.call(h),w.complete()},k=>{var E;S=!1,null===(E=h.error)||void 0===E||E.call(h,k),w.error(k)},()=>{var k,E;S&&(null===(k=h.unsubscribe)||void 0===k||k.call(h)),null===(E=h.finalize)||void 0===E||E.call(h)}))}):M.y}},8068:(Be,K,p)=>{"use strict";p.d(K,{T:()=>M});var t=p(6805),e=p(4482),f=p(5403);function M(C=a){return(0,e.e)((d,R)=>{let h=!1;d.subscribe((0,f.x)(R,L=>{h=!0,R.next(L)},()=>h?R.complete():R.error(C())))})}function a(){return new t.K}},7414:(Be,K,p)=>{"use strict";p.d(K,{V:()=>h});var t=p(4986),e=p(1165),f=p(4482),M=p(8421),a=p(3888),C=p(5403),d=p(9672);const R=(0,a.d)(w=>function(S=null){w(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=S});function h(w,D){const{first:S,each:k,with:E=L,scheduler:B=(null!=D?D:t.z),meta:Z=null}=(0,e.q)(w)?{first:w}:"number"==typeof w?{each:w}:w;if(null==S&&null==k)throw new TypeError("No timeout provided.");return(0,f.e)((Y,ae)=>{let ee,ue,ne=null,re=0;const ge=q=>{ue=(0,d.f)(ae,B,()=>{try{ee.unsubscribe(),(0,M.Xf)(E({meta:Z,lastValue:ne,seen:re})).subscribe(ae)}catch(_e){ae.error(_e)}},q)};ee=Y.subscribe((0,C.x)(ae,q=>{null==ue||ue.unsubscribe(),re++,ae.next(ne=q),k>0&&ge(k)},void 0,void 0,()=>{(null==ue?void 0:ue.closed)||null==ue||ue.unsubscribe(),ne=null})),!re&&ge(null!=S?"number"==typeof S?S:+S-B.now():k)})}function L(w){throw new R(w)}},1365:(Be,K,p)=>{"use strict";p.d(K,{M:()=>d});var t=p(4482),e=p(5403),f=p(8421),M=p(4671),a=p(5032),C=p(3269);function d(...R){const h=(0,C.jO)(R);return(0,t.e)((L,w)=>{const D=R.length,S=new Array(D);let k=R.map(()=>!1),E=!1;for(let B=0;B{S[B]=Z,!E&&!k[B]&&(k[B]=!0,(E=k.every(M.y))&&(k=null))},a.Z));L.subscribe((0,e.x)(w,B=>{if(E){const Z=[B,...S];w.next(h?h(...Z):Z)}}))})}},4408:(Be,K,p)=>{"use strict";p.d(K,{o:()=>a});var t=p(727);class e extends t.w0{constructor(d,R){super()}schedule(d,R=0){return this}}const f={setInterval(C,d,...R){const{delegate:h}=f;return(null==h?void 0:h.setInterval)?h.setInterval(C,d,...R):setInterval(C,d,...R)},clearInterval(C){const{delegate:d}=f;return((null==d?void 0:d.clearInterval)||clearInterval)(C)},delegate:void 0};var M=p(8737);class a extends e{constructor(d,R){super(d,R),this.scheduler=d,this.work=R,this.pending=!1}schedule(d,R=0){var h;if(this.closed)return this;this.state=d;const L=this.id,w=this.scheduler;return null!=L&&(this.id=this.recycleAsyncId(w,L,R)),this.pending=!0,this.delay=R,this.id=null!==(h=this.id)&&void 0!==h?h:this.requestAsyncId(w,this.id,R),this}requestAsyncId(d,R,h=0){return f.setInterval(d.flush.bind(d,this),h)}recycleAsyncId(d,R,h=0){if(null!=h&&this.delay===h&&!1===this.pending)return R;null!=R&&f.clearInterval(R)}execute(d,R){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const h=this._execute(d,R);if(h)return h;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(d,R){let L,h=!1;try{this.work(d)}catch(w){h=!0,L=w||new Error("Scheduled action threw falsy error")}if(h)return this.unsubscribe(),L}unsubscribe(){if(!this.closed){const{id:d,scheduler:R}=this,{actions:h}=R;this.work=this.state=this.scheduler=null,this.pending=!1,(0,M.P)(h,this),null!=d&&(this.id=this.recycleAsyncId(R,d,null)),this.delay=null,super.unsubscribe()}}}},7565:(Be,K,p)=>{"use strict";p.d(K,{v:()=>f});var t=p(6063);class e{constructor(a,C=e.now){this.schedulerActionCtor=a,this.now=C}schedule(a,C=0,d){return new this.schedulerActionCtor(this,a).schedule(d,C)}}e.now=t.l.now;class f extends e{constructor(a,C=e.now){super(a,C),this.actions=[],this._active=!1}flush(a){const{actions:C}=this;if(this._active)return void C.push(a);let d;this._active=!0;do{if(d=a.execute(a.state,a.delay))break}while(a=C.shift());if(this._active=!1,d){for(;a=C.shift();)a.unsubscribe();throw d}}}},3101:(Be,K,p)=>{"use strict";p.d(K,{E:()=>k});var t=p(4408);let f,e=1;const M={};function a(B){return B in M&&(delete M[B],!0)}const C={setImmediate(B){const Z=e++;return M[Z]=!0,f||(f=Promise.resolve()),f.then(()=>a(Z)&&B()),Z},clearImmediate(B){a(B)}},{setImmediate:R,clearImmediate:h}=C,L={setImmediate(...B){const{delegate:Z}=L;return((null==Z?void 0:Z.setImmediate)||R)(...B)},clearImmediate(B){const{delegate:Z}=L;return((null==Z?void 0:Z.clearImmediate)||h)(B)},delegate:void 0};var D=p(7565);const k=new class S extends D.v{flush(Z){this._active=!0;const Y=this._scheduled;this._scheduled=void 0;const{actions:ae}=this;let ee;Z=Z||ae.shift();do{if(ee=Z.execute(Z.state,Z.delay))break}while((Z=ae[0])&&Z.id===Y&&ae.shift());if(this._active=!1,ee){for(;(Z=ae[0])&&Z.id===Y&&ae.shift();)Z.unsubscribe();throw ee}}}(class w extends t.o{constructor(Z,Y){super(Z,Y),this.scheduler=Z,this.work=Y}requestAsyncId(Z,Y,ae=0){return null!==ae&&ae>0?super.requestAsyncId(Z,Y,ae):(Z.actions.push(this),Z._scheduled||(Z._scheduled=L.setImmediate(Z.flush.bind(Z,void 0))))}recycleAsyncId(Z,Y,ae=0){var ee;if(null!=ae?ae>0:this.delay>0)return super.recycleAsyncId(Z,Y,ae);const{actions:ue}=Z;null!=Y&&(null===(ee=ue[ue.length-1])||void 0===ee?void 0:ee.id)!==Y&&(L.clearImmediate(Y),Z._scheduled=void 0)}})},4986:(Be,K,p)=>{"use strict";p.d(K,{P:()=>M,z:()=>f});var t=p(4408);const f=new(p(7565).v)(t.o),M=f},6063:(Be,K,p)=>{"use strict";p.d(K,{l:()=>t});const t={now:()=>(t.delegate||Date).now(),delegate:void 0}},233:(Be,K,p)=>{"use strict";p.d(K,{N:()=>a});var t=p(4408),f=p(7565);const a=new class M extends f.v{}(class e extends t.o{constructor(R,h){super(R,h),this.scheduler=R,this.work=h}schedule(R,h=0){return h>0?super.schedule(R,h):(this.delay=h,this.state=R,this.scheduler.flush(this),this)}execute(R,h){return h>0||this.closed?super.execute(R,h):this._execute(R,h)}requestAsyncId(R,h,L=0){return null!=L&&L>0||null==L&&this.delay>0?super.requestAsyncId(R,h,L):(R.flush(this),0)}})},3410:(Be,K,p)=>{"use strict";p.d(K,{z:()=>t});const t={setTimeout(e,f,...M){const{delegate:a}=t;return(null==a?void 0:a.setTimeout)?a.setTimeout(e,f,...M):setTimeout(e,f,...M)},clearTimeout(e){const{delegate:f}=t;return((null==f?void 0:f.clearTimeout)||clearTimeout)(e)},delegate:void 0}},2202:(Be,K,p)=>{"use strict";p.d(K,{h:()=>e});const e=function t(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},8822:(Be,K,p)=>{"use strict";p.d(K,{L:()=>t});const t="function"==typeof Symbol&&Symbol.observable||"@@observable"},6805:(Be,K,p)=>{"use strict";p.d(K,{K:()=>e});const e=(0,p(3888).d)(f=>function(){f(this),this.name="EmptyError",this.message="no elements in sequence"})},3269:(Be,K,p)=>{"use strict";p.d(K,{_6:()=>C,jO:()=>M,yG:()=>a});var t=p(576),e=p(3532);function f(d){return d[d.length-1]}function M(d){return(0,t.m)(f(d))?d.pop():void 0}function a(d){return(0,e.K)(f(d))?d.pop():void 0}function C(d,R){return"number"==typeof f(d)?d.pop():R}},4742:(Be,K,p)=>{"use strict";p.d(K,{D:()=>a});const{isArray:t}=Array,{getPrototypeOf:e,prototype:f,keys:M}=Object;function a(d){if(1===d.length){const R=d[0];if(t(R))return{args:R,keys:null};if(function C(d){return d&&"object"==typeof d&&e(d)===f}(R)){const h=M(R);return{args:h.map(L=>R[L]),keys:h}}}return{args:d,keys:null}}},8737:(Be,K,p)=>{"use strict";function t(e,f){if(e){const M=e.indexOf(f);0<=M&&e.splice(M,1)}}p.d(K,{P:()=>t})},3888:(Be,K,p)=>{"use strict";function t(e){const M=e(a=>{Error.call(a),a.stack=(new Error).stack});return M.prototype=Object.create(Error.prototype),M.prototype.constructor=M,M}p.d(K,{d:()=>t})},1810:(Be,K,p)=>{"use strict";function t(e,f){return e.reduce((M,a,C)=>(M[a]=f[C],M),{})}p.d(K,{n:()=>t})},2806:(Be,K,p)=>{"use strict";p.d(K,{O:()=>M,x:()=>f});var t=p(2416);let e=null;function f(a){if(t.v.useDeprecatedSynchronousErrorHandling){const C=!e;if(C&&(e={errorThrown:!1,error:null}),a(),C){const{errorThrown:d,error:R}=e;if(e=null,d)throw R}}else a()}function M(a){t.v.useDeprecatedSynchronousErrorHandling&&e&&(e.errorThrown=!0,e.error=a)}},9672:(Be,K,p)=>{"use strict";function t(e,f,M,a=0,C=!1){const d=f.schedule(function(){M(),C?e.add(this.schedule(null,a)):this.unsubscribe()},a);if(e.add(d),!C)return d}p.d(K,{f:()=>t})},4671:(Be,K,p)=>{"use strict";function t(e){return e}p.d(K,{y:()=>t})},1144:(Be,K,p)=>{"use strict";p.d(K,{z:()=>t});const t=e=>e&&"number"==typeof e.length&&"function"!=typeof e},2206:(Be,K,p)=>{"use strict";p.d(K,{D:()=>e});var t=p(576);function e(f){return Symbol.asyncIterator&&(0,t.m)(null==f?void 0:f[Symbol.asyncIterator])}},1165:(Be,K,p)=>{"use strict";function t(e){return e instanceof Date&&!isNaN(e)}p.d(K,{q:()=>t})},576:(Be,K,p)=>{"use strict";function t(e){return"function"==typeof e}p.d(K,{m:()=>t})},3670:(Be,K,p)=>{"use strict";p.d(K,{c:()=>f});var t=p(8822),e=p(576);function f(M){return(0,e.m)(M[t.L])}},6495:(Be,K,p)=>{"use strict";p.d(K,{T:()=>f});var t=p(2202),e=p(576);function f(M){return(0,e.m)(null==M?void 0:M[t.h])}},5191:(Be,K,p)=>{"use strict";p.d(K,{b:()=>f});var t=p(8306),e=p(576);function f(M){return!!M&&(M instanceof t.y||(0,e.m)(M.lift)&&(0,e.m)(M.subscribe))}},8239:(Be,K,p)=>{"use strict";p.d(K,{t:()=>e});var t=p(576);function e(f){return(0,t.m)(null==f?void 0:f.then)}},3260:(Be,K,p)=>{"use strict";p.d(K,{L:()=>M,Q:()=>f});var t=p(655),e=p(576);function f(a){return(0,t.FC)(this,arguments,function*(){const d=a.getReader();try{for(;;){const{value:R,done:h}=yield(0,t.qq)(d.read());if(h)return yield(0,t.qq)(void 0);yield yield(0,t.qq)(R)}}finally{d.releaseLock()}})}function M(a){return(0,e.m)(null==a?void 0:a.getReader)}},3532:(Be,K,p)=>{"use strict";p.d(K,{K:()=>e});var t=p(576);function e(f){return f&&(0,t.m)(f.schedule)}},4482:(Be,K,p)=>{"use strict";p.d(K,{A:()=>e,e:()=>f});var t=p(576);function e(M){return(0,t.m)(null==M?void 0:M.lift)}function f(M){return a=>{if(e(a))return a.lift(function(C){try{return M(C,this)}catch(d){this.error(d)}});throw new TypeError("Unable to lift unknown Observable type")}}},3268:(Be,K,p)=>{"use strict";p.d(K,{Z:()=>M});var t=p(4004);const{isArray:e}=Array;function M(a){return(0,t.U)(C=>function f(a,C){return e(C)?a(...C):a(C)}(a,C))}},5032:(Be,K,p)=>{"use strict";function t(){}p.d(K,{Z:()=>t})},7849:(Be,K,p)=>{"use strict";p.d(K,{h:()=>f});var t=p(2416),e=p(3410);function f(M){e.z.setTimeout(()=>{const{onUnhandledError:a}=t.v;if(!a)throw M;a(M)})}},4532:(Be,K,p)=>{"use strict";function t(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}p.d(K,{z:()=>t})},3502:(Be,K,p)=>{var t=p(3172),e=t.Buffer;function f(a,C){for(var d in a)C[d]=a[d]}function M(a,C,d){return e(a,C,d)}e.from&&e.alloc&&e.allocUnsafe&&e.allocUnsafeSlow?Be.exports=t:(f(t,K),K.Buffer=M),M.prototype=Object.create(e.prototype),f(e,M),M.from=function(a,C,d){if("number"==typeof a)throw new TypeError("Argument must not be a number");return e(a,C,d)},M.alloc=function(a,C,d){if("number"!=typeof a)throw new TypeError("Argument must be a number");var R=e(a);return void 0!==C?"string"==typeof d?R.fill(C,d):R.fill(C):R.fill(0),R},M.allocUnsafe=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return e(a)},M.allocUnsafeSlow=function(a){if("number"!=typeof a)throw new TypeError("Argument must be a number");return t.SlowBuffer(a)}},2038:(Be,K,p)=>{"use strict";var M,t=p(3172),e=t.Buffer,f={};for(M in t)!t.hasOwnProperty(M)||"SlowBuffer"===M||"Buffer"===M||(f[M]=t[M]);var a=f.Buffer={};for(M in e)!e.hasOwnProperty(M)||"allocUnsafe"===M||"allocUnsafeSlow"===M||(a[M]=e[M]);if(f.Buffer.prototype=e.prototype,(!a.from||a.from===Uint8Array.from)&&(a.from=function(C,d,R){if("number"==typeof C)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof C);if(C&&void 0===C.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof C);return e(C,d,R)}),a.alloc||(a.alloc=function(C,d,R){if("number"!=typeof C)throw new TypeError('The "size" argument must be of type number. Received type '+typeof C);if(C<0||C>=2*(1<<30))throw new RangeError('The value "'+C+'" is invalid for option "size"');var h=e(C);return d&&0!==d.length?"string"==typeof R?h.fill(d,R):h.fill(d):h.fill(0),h}),!f.kStringMaxLength)try{f.kStringMaxLength=process.binding("buffer").kStringMaxLength}catch(C){}f.constants||(f.constants={MAX_LENGTH:f.kMaxLength},f.kStringMaxLength&&(f.constants.MAX_STRING_LENGTH=f.kStringMaxLength)),Be.exports=f},6692:(Be,K,p)=>{var t=p(3502).Buffer;function e(f,M){this._block=t.alloc(f),this._finalSize=M,this._blockSize=f,this._len=0}e.prototype.update=function(f,M){"string"==typeof f&&(f=t.from(f,M=M||"utf8"));for(var a=this._block,C=this._blockSize,d=f.length,R=this._len,h=0;h=this._finalSize&&(this._update(this._block),this._block.fill(0));var a=8*this._len;if(a<=4294967295)this._block.writeUInt32BE(a,this._blockSize-4);else{var C=(4294967295&a)>>>0;this._block.writeUInt32BE((a-C)/4294967296,this._blockSize-8),this._block.writeUInt32BE(C,this._blockSize-4)}this._update(this._block);var R=this._hash();return f?R.toString(f):R},e.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Be.exports=e},5244:(Be,K,p)=>{var t=Be.exports=function(f){f=f.toLowerCase();var M=t[f];if(!M)throw new Error(f+" is not supported (we accept pull requests)");return new M};t.sha=p(8932),t.sha1=p(7736),t.sha224=p(5044),t.sha256=p(5014),t.sha384=p(6540),t.sha512=p(117)},8932:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function C(){this.init(),this._w=a,e.call(this,64,56)}function d(L){return L<<5|L>>>27}function R(L){return L<<30|L>>>2}function h(L,w,D,S){return 0===L?w&D|~w&S:2===L?w&D|w&S|D&S:w^D^S}t(C,e),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(L){for(var w=this._w,D=0|this._a,S=0|this._b,k=0|this._c,E=0|this._d,B=0|this._e,Z=0;Z<16;++Z)w[Z]=L.readInt32BE(4*Z);for(;Z<80;++Z)w[Z]=w[Z-3]^w[Z-8]^w[Z-14]^w[Z-16];for(var Y=0;Y<80;++Y){var ae=~~(Y/20),ee=d(D)+h(ae,S,k,E)+B+w[Y]+M[ae]|0;B=E,E=k,k=R(S),S=D,D=ee}this._a=D+this._a|0,this._b=S+this._b|0,this._c=k+this._c|0,this._d=E+this._d|0,this._e=B+this._e|0},C.prototype._hash=function(){var L=f.allocUnsafe(20);return L.writeInt32BE(0|this._a,0),L.writeInt32BE(0|this._b,4),L.writeInt32BE(0|this._c,8),L.writeInt32BE(0|this._d,12),L.writeInt32BE(0|this._e,16),L},Be.exports=C},7736:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function C(){this.init(),this._w=a,e.call(this,64,56)}function d(w){return w<<1|w>>>31}function R(w){return w<<5|w>>>27}function h(w){return w<<30|w>>>2}function L(w,D,S,k){return 0===w?D&S|~D&k:2===w?D&S|D&k|S&k:D^S^k}t(C,e),C.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},C.prototype._update=function(w){for(var D=this._w,S=0|this._a,k=0|this._b,E=0|this._c,B=0|this._d,Z=0|this._e,Y=0;Y<16;++Y)D[Y]=w.readInt32BE(4*Y);for(;Y<80;++Y)D[Y]=d(D[Y-3]^D[Y-8]^D[Y-14]^D[Y-16]);for(var ae=0;ae<80;++ae){var ee=~~(ae/20),ue=R(S)+L(ee,k,E,B)+Z+D[ae]+M[ee]|0;Z=B,B=E,E=h(k),k=S,S=ue}this._a=S+this._a|0,this._b=k+this._b|0,this._c=E+this._c|0,this._d=B+this._d|0,this._e=Z+this._e|0},C.prototype._hash=function(){var w=f.allocUnsafe(20);return w.writeInt32BE(0|this._a,0),w.writeInt32BE(0|this._b,4),w.writeInt32BE(0|this._c,8),w.writeInt32BE(0|this._d,12),w.writeInt32BE(0|this._e,16),w},Be.exports=C},5044:(Be,K,p)=>{var t=p(3894),e=p(5014),f=p(6692),M=p(3502).Buffer,a=new Array(64);function C(){this.init(),this._w=a,f.call(this,64,56)}t(C,e),C.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},C.prototype._hash=function(){var d=M.allocUnsafe(28);return d.writeInt32BE(this._a,0),d.writeInt32BE(this._b,4),d.writeInt32BE(this._c,8),d.writeInt32BE(this._d,12),d.writeInt32BE(this._e,16),d.writeInt32BE(this._f,20),d.writeInt32BE(this._g,24),d},Be.exports=C},5014:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 C(){this.init(),this._w=a,e.call(this,64,56)}function d(S,k,E){return E^S&(k^E)}function R(S,k,E){return S&k|E&(S|k)}function h(S){return(S>>>2|S<<30)^(S>>>13|S<<19)^(S>>>22|S<<10)}function L(S){return(S>>>6|S<<26)^(S>>>11|S<<21)^(S>>>25|S<<7)}function w(S){return(S>>>7|S<<25)^(S>>>18|S<<14)^S>>>3}function D(S){return(S>>>17|S<<15)^(S>>>19|S<<13)^S>>>10}t(C,e),C.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},C.prototype._update=function(S){for(var k=this._w,E=0|this._a,B=0|this._b,Z=0|this._c,Y=0|this._d,ae=0|this._e,ee=0|this._f,ue=0|this._g,ne=0|this._h,re=0;re<16;++re)k[re]=S.readInt32BE(4*re);for(;re<64;++re)k[re]=D(k[re-2])+k[re-7]+w(k[re-15])+k[re-16]|0;for(var ge=0;ge<64;++ge){var q=ne+L(ae)+d(ae,ee,ue)+M[ge]+k[ge]|0,_e=h(E)+R(E,B,Z)|0;ne=ue,ue=ee,ee=ae,ae=Y+q|0,Y=Z,Z=B,B=E,E=q+_e|0}this._a=E+this._a|0,this._b=B+this._b|0,this._c=Z+this._c|0,this._d=Y+this._d|0,this._e=ae+this._e|0,this._f=ee+this._f|0,this._g=ue+this._g|0,this._h=ne+this._h|0},C.prototype._hash=function(){var S=f.allocUnsafe(32);return S.writeInt32BE(this._a,0),S.writeInt32BE(this._b,4),S.writeInt32BE(this._c,8),S.writeInt32BE(this._d,12),S.writeInt32BE(this._e,16),S.writeInt32BE(this._f,20),S.writeInt32BE(this._g,24),S.writeInt32BE(this._h,28),S},Be.exports=C},6540:(Be,K,p)=>{var t=p(3894),e=p(117),f=p(6692),M=p(3502).Buffer,a=new Array(160);function C(){this.init(),this._w=a,f.call(this,128,112)}t(C,e),C.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},C.prototype._hash=function(){var d=M.allocUnsafe(48);function R(h,L,w){d.writeInt32BE(h,w),d.writeInt32BE(L,w+4)}return R(this._ah,this._al,0),R(this._bh,this._bl,8),R(this._ch,this._cl,16),R(this._dh,this._dl,24),R(this._eh,this._el,32),R(this._fh,this._fl,40),d},Be.exports=C},117:(Be,K,p)=>{var t=p(3894),e=p(6692),f=p(3502).Buffer,M=[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 C(){this.init(),this._w=a,e.call(this,128,112)}function d(B,Z,Y){return Y^B&(Z^Y)}function R(B,Z,Y){return B&Z|Y&(B|Z)}function h(B,Z){return(B>>>28|Z<<4)^(Z>>>2|B<<30)^(Z>>>7|B<<25)}function L(B,Z){return(B>>>14|Z<<18)^(B>>>18|Z<<14)^(Z>>>9|B<<23)}function w(B,Z){return(B>>>1|Z<<31)^(B>>>8|Z<<24)^B>>>7}function D(B,Z){return(B>>>1|Z<<31)^(B>>>8|Z<<24)^(B>>>7|Z<<25)}function S(B,Z){return(B>>>19|Z<<13)^(Z>>>29|B<<3)^B>>>6}function k(B,Z){return(B>>>19|Z<<13)^(Z>>>29|B<<3)^(B>>>6|Z<<26)}function E(B,Z){return B>>>0>>0?1:0}t(C,e),C.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},C.prototype._update=function(B){for(var Z=this._w,Y=0|this._ah,ae=0|this._bh,ee=0|this._ch,ue=0|this._dh,ne=0|this._eh,re=0|this._fh,ge=0|this._gh,q=0|this._hh,_e=0|this._al,x=0|this._bl,i=0|this._cl,r=0|this._dl,u=0|this._el,c=0|this._fl,v=0|this._gl,T=0|this._hl,I=0;I<32;I+=2)Z[I]=B.readInt32BE(4*I),Z[I+1]=B.readInt32BE(4*I+4);for(;I<160;I+=2){var y=Z[I-30],n=Z[I-30+1],_=w(y,n),V=D(n,y),N=S(y=Z[I-4],n=Z[I-4+1]),H=k(n,y),be=Z[I-32],Pe=Z[I-32+1],Ee=V+Z[I-14+1]|0,j=_+Z[I-14]+E(Ee,V)|0;j=(j=j+N+E(Ee=Ee+H|0,H)|0)+be+E(Ee=Ee+Pe|0,Pe)|0,Z[I]=j,Z[I+1]=Ee}for(var Ve=0;Ve<160;Ve+=2){j=Z[Ve],Ee=Z[Ve+1];var Me=R(Y,ae,ee),J=R(_e,x,i),Ie=h(Y,_e),ut=h(_e,Y),Oe=L(ne,u),we=L(u,ne),ce=M[Ve],Te=M[Ve+1],xe=d(ne,re,ge),W=d(u,c,v),te=T+we|0,Ce=q+Oe+E(te,T)|0;Ce=(Ce=(Ce=Ce+xe+E(te=te+W|0,W)|0)+ce+E(te=te+Te|0,Te)|0)+j+E(te=te+Ee|0,Ee)|0;var fe=ut+J|0,Q=Ie+Me+E(fe,ut)|0;q=ge,T=v,ge=re,v=c,re=ne,c=u,ne=ue+Ce+E(u=r+te|0,r)|0,ue=ee,r=i,ee=ae,i=x,ae=Y,x=_e,Y=Ce+Q+E(_e=te+fe|0,te)|0}this._al=this._al+_e|0,this._bl=this._bl+x|0,this._cl=this._cl+i|0,this._dl=this._dl+r|0,this._el=this._el+u|0,this._fl=this._fl+c|0,this._gl=this._gl+v|0,this._hl=this._hl+T|0,this._ah=this._ah+Y+E(this._al,_e)|0,this._bh=this._bh+ae+E(this._bl,x)|0,this._ch=this._ch+ee+E(this._cl,i)|0,this._dh=this._dh+ue+E(this._dl,r)|0,this._eh=this._eh+ne+E(this._el,u)|0,this._fh=this._fh+re+E(this._fl,c)|0,this._gh=this._gh+ge+E(this._gl,v)|0,this._hh=this._hh+q+E(this._hl,T)|0},C.prototype._hash=function(){var B=f.allocUnsafe(64);function Z(Y,ae,ee){B.writeInt32BE(Y,ee),B.writeInt32BE(ae,ee+4)}return Z(this._ah,this._al,0),Z(this._bh,this._bl,8),Z(this._ch,this._cl,16),Z(this._dh,this._dl,24),Z(this._eh,this._el,32),Z(this._fh,this._fl,40),Z(this._gh,this._gl,48),Z(this._hh,this._hl,56),B},Be.exports=C},8012:function(Be,K,p){!function(t){"use strict";var e={};Be.exports?(e.bytesToHex=p(6128).bytesToHex,e.convertString=p(5612),Be.exports=R):(e.bytesToHex=t.convertHex.bytesToHex,e.convertString=t.convertString,t.sha256=R);var f=[];!function(){function h(S){for(var k=Math.sqrt(S),E=2;E<=k;E++)if(!(S%E))return!1;return!0}for(var w=2,D=0;D<64;)h(w)&&(f[D]=4294967296*((S=Math.pow(w,1/3))-(0|S))|0,D++),w++;var S}();var C=[],d=function(h,L,w){for(var D=h[0],S=h[1],k=h[2],E=h[3],B=h[4],Z=h[5],Y=h[6],ae=h[7],ee=0;ee<64;ee++){if(ee<16)C[ee]=0|L[w+ee];else{var ue=C[ee-15],re=C[ee-2];C[ee]=((ue<<25|ue>>>7)^(ue<<14|ue>>>18)^ue>>>3)+C[ee-7]+((re<<15|re>>>17)^(re<<13|re>>>19)^re>>>10)+C[ee-16]}var _e=D&S^D&k^S&k,r=ae+((B<<26|B>>>6)^(B<<21|B>>>11)^(B<<7|B>>>25))+(B&Z^~B&Y)+f[ee]+C[ee];ae=Y,Y=Z,Z=B,B=E+r|0,E=k,k=S,S=D,D=r+(((D<<30|D>>>2)^(D<<19|D>>>13)^(D<<10|D>>>22))+_e)|0}h[0]=h[0]+D|0,h[1]=h[1]+S|0,h[2]=h[2]+k|0,h[3]=h[3]+E|0,h[4]=h[4]+B|0,h[5]=h[5]+Z|0,h[6]=h[6]+Y|0,h[7]=h[7]+ae|0};function R(h,L){h.constructor===String&&(h=e.convertString.UTF8.stringToBytes(h));var w=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],D=function(h){for(var L=[],w=0,D=0;w>>5]|=h[w]<<24-D%32;return L}(h),S=8*h.length;D[S>>5]|=128<<24-S%32,D[15+(S+64>>9<<4)]=S;for(var k=0;k>>5]>>>24-w%32&255);return L}(w);return L&&L.asBytes?E:L&&L.asString?e.convertString.bytesToString(E):e.bytesToHex(E)}R.x2=function(h,L){return R(R(h,{asBytes:!0}),L)}}(this)},4315:(Be,K,p)=>{"use strict";const t=Symbol.prototype.valueOf,e=p(2872);Be.exports=function f(h,L){switch(e(h)){case"array":return h.slice();case"object":return Object.assign({},h);case"date":return new h.constructor(Number(h));case"map":return new Map(h);case"set":return new Set(h);case"buffer":return function d(h){const L=h.length,w=Buffer.allocUnsafe?Buffer.allocUnsafe(L):Buffer.from(L);return h.copy(w),w}(h);case"symbol":return function R(h){return t?Object(t.call(h)):{}}(h);case"arraybuffer":return function a(h){const L=new h.constructor(h.byteLength);return new Uint8Array(L).set(new Uint8Array(h)),L}(h);case"float32array":case"float64array":case"int16array":case"int32array":case"int8array":case"uint16array":case"uint32array":case"uint8clampedarray":case"uint8array":return function C(h,L){return new h.constructor(h.buffer,h.byteOffset,h.length)}(h);case"regexp":return function M(h){const L=void 0!==h.flags?h.flags:/\w+$/.exec(h)||void 0,w=new h.constructor(h.source,L);return w.lastIndex=h.lastIndex,w}(h);case"error":return Object.create(h);default:return h}}},295:(Be,K,p)=>{Be.exports=f;var t=p(9069).EventEmitter;function f(){t.call(this)}p(3894)(f,t),f.Readable=p(3154),f.Writable=p(520),f.Duplex=p(1339),f.Transform=p(6025),f.PassThrough=p(6071),f.finished=p(7542),f.pipeline=p(954),f.Stream=f,f.prototype.pipe=function(M,a){var C=this;function d(k){M.writable&&!1===M.write(k)&&C.pause&&C.pause()}function R(){C.readable&&C.resume&&C.resume()}C.on("data",d),M.on("drain",R),!M._isStdio&&(!a||!1!==a.end)&&(C.on("end",L),C.on("close",w));var h=!1;function L(){h||(h=!0,M.end())}function w(){h||(h=!0,"function"==typeof M.destroy&&M.destroy())}function D(k){if(S(),0===t.listenerCount(this,"error"))throw k}function S(){C.removeListener("data",d),M.removeListener("drain",R),C.removeListener("end",L),C.removeListener("close",w),C.removeListener("error",D),M.removeListener("error",D),C.removeListener("end",S),C.removeListener("close",S),M.removeListener("close",S)}return C.on("error",D),M.on("error",D),C.on("end",S),C.on("close",S),M.on("close",S),M.emit("pipe",C),M}},3054:(Be,K,p)=>{"use strict";var t=p(3502).Buffer,e=t.isEncoding||function(Y){switch((Y=""+Y)&&Y.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 a(Y){var ae;switch(this.encoding=function M(Y){var ae=function f(Y){if(!Y)return"utf8";for(var ae;;)switch(Y){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 Y;default:if(ae)return;Y=(""+Y).toLowerCase(),ae=!0}}(Y);if("string"!=typeof ae&&(t.isEncoding===e||!e(Y)))throw new Error("Unknown encoding: "+Y);return ae||Y}(Y),this.encoding){case"utf16le":this.text=D,this.end=S,ae=4;break;case"utf8":this.fillLast=h,ae=4;break;case"base64":this.text=k,this.end=E,ae=3;break;default:return this.write=B,void(this.end=Z)}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(ae)}function C(Y){return Y<=127?0:Y>>5==6?2:Y>>4==14?3:Y>>3==30?4:Y>>6==2?-1:-2}function h(Y){var ae=this.lastTotal-this.lastNeed,ee=function R(Y,ae,ee){if(128!=(192&ae[0]))return Y.lastNeed=0,"\ufffd";if(Y.lastNeed>1&&ae.length>1){if(128!=(192&ae[1]))return Y.lastNeed=1,"\ufffd";if(Y.lastNeed>2&&ae.length>2&&128!=(192&ae[2]))return Y.lastNeed=2,"\ufffd"}}(this,Y);return void 0!==ee?ee:this.lastNeed<=Y.length?(Y.copy(this.lastChar,ae,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(Y.copy(this.lastChar,ae,0,Y.length),void(this.lastNeed-=Y.length))}function D(Y,ae){if((Y.length-ae)%2==0){var ee=Y.toString("utf16le",ae);if(ee){var ue=ee.charCodeAt(ee.length-1);if(ue>=55296&&ue<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=Y[Y.length-2],this.lastChar[1]=Y[Y.length-1],ee.slice(0,-1)}return ee}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=Y[Y.length-1],Y.toString("utf16le",ae,Y.length-1)}function S(Y){var ae=Y&&Y.length?this.write(Y):"";return this.lastNeed?ae+this.lastChar.toString("utf16le",0,this.lastTotal-this.lastNeed):ae}function k(Y,ae){var ee=(Y.length-ae)%3;return 0===ee?Y.toString("base64",ae):(this.lastNeed=3-ee,this.lastTotal=3,1===ee?this.lastChar[0]=Y[Y.length-1]:(this.lastChar[0]=Y[Y.length-2],this.lastChar[1]=Y[Y.length-1]),Y.toString("base64",ae,Y.length-ee))}function E(Y){var ae=Y&&Y.length?this.write(Y):"";return this.lastNeed?ae+this.lastChar.toString("base64",0,3-this.lastNeed):ae}function B(Y){return Y.toString(this.encoding)}function Z(Y){return Y&&Y.length?this.write(Y):""}K.s=a,a.prototype.write=function(Y){if(0===Y.length)return"";var ae,ee;if(this.lastNeed){if(void 0===(ae=this.fillLast(Y)))return"";ee=this.lastNeed,this.lastNeed=0}else ee=0;return ee=0?(ne>0&&(Y.lastNeed=ne-1),ne):--ue=0?(ne>0&&(Y.lastNeed=ne-2),ne):--ue=0?(ne>0&&(2===ne?ne=0:Y.lastNeed=ne-3),ne):0}(this,Y,ae);if(!this.lastNeed)return Y.toString("utf8",ae);this.lastTotal=ee;var ue=Y.length-(ee-this.lastNeed);return Y.copy(this.lastChar,0,ue),Y.toString("utf8",ae,ue)},a.prototype.fillLast=function(Y){if(this.lastNeed<=Y.length)return Y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);Y.copy(this.lastChar,this.lastTotal-this.lastNeed,0,Y.length),this.lastNeed-=Y.length}},2167:(Be,K,p)=>{var t=p(4606);K.encode=t.encode,K.decode=t.decode},4606:(Be,K)=>{"use strict";var t=[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];K.encode=function(f){Buffer.isBuffer(f)||(f=new Buffer(f));for(var M=0,a=0,C=0,d=0,R=new Buffer(8*function e(f){var M=Math.floor(f.length/5);return f.length%5==0?M:M+1}(f));M3?(d=(d=h&255>>C)<<(C=(C+5)%8)|(M+1>8-C,M++):(d=h>>8-(C+5)&31,0==(C=(C+5)%8)&&M++),R[a]="ABCDEFGHIJKLMNOPQRSTUVWXYZ234567".charCodeAt(d),a++}for(M=a;M>>(M=(M+5)%8),d++,C=255&a<<8-M)}return R.slice(0,d)}},4364:Be=>{function p(t){try{if(!global.localStorage)return!1}catch(f){return!1}var e=global.localStorage[t];return null!=e&&"true"===String(e).toLowerCase()}Be.exports=function K(t,e){if(p("noDeprecation"))return t;var f=!1;return function M(){if(!f){if(p("throwDeprecation"))throw new Error(e);p("traceDeprecation")?console.trace(e):console.warn(e),f=!0}return t.apply(this,arguments)}}},655:(Be,K,p)=>{"use strict";function a(i,r,u,c){var I,v=arguments.length,T=v<3?r:null===c?c=Object.getOwnPropertyDescriptor(r,u):c;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)T=Reflect.decorate(i,r,u,c);else for(var y=i.length-1;y>=0;y--)(I=i[y])&&(T=(v<3?I(T):v>3?I(r,u,T):I(r,u))||T);return v>3&&T&&Object.defineProperty(r,u,T),T}function R(i,r,u,c){return new(u||(u=Promise))(function(T,I){function y(V){try{_(c.next(V))}catch(N){I(N)}}function n(V){try{_(c.throw(V))}catch(N){I(N)}}function _(V){V.done?T(V.value):function v(T){return T instanceof u?T:new u(function(I){I(T)})}(V.value).then(y,n)}_((c=c.apply(i,r||[])).next())})}function Z(i){return this instanceof Z?(this.v=i,this):new Z(i)}function Y(i,r,u){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var v,c=u.apply(i,r||[]),T=[];return v={},I("next"),I("throw"),I("return"),v[Symbol.asyncIterator]=function(){return this},v;function I(H){c[H]&&(v[H]=function(X){return new Promise(function(he,be){T.push([H,X,he,be])>1||y(H,X)})})}function y(H,X){try{!function n(H){H.value instanceof Z?Promise.resolve(H.value.v).then(_,V):N(T[0][2],H)}(c[H](X))}catch(he){N(T[0][3],he)}}function _(H){y("next",H)}function V(H){y("throw",H)}function N(H,X){H(X),T.shift(),T.length&&y(T[0][0],T[0][1])}}function ee(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var u,r=i[Symbol.asyncIterator];return r?r.call(i):(i=function D(i){var r="function"==typeof Symbol&&Symbol.iterator,u=r&&i[r],c=0;if(u)return u.call(i);if(i&&"number"==typeof i.length)return{next:function(){return i&&c>=i.length&&(i=void 0),{value:i&&i[c++],done:!i}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}(i),u={},c("next"),c("throw"),c("return"),u[Symbol.asyncIterator]=function(){return this},u);function c(T){u[T]=i[T]&&function(I){return new Promise(function(y,n){!function v(T,I,y,n){Promise.resolve(n).then(function(_){T({value:_,done:y})},I)}(y,n,(I=i[T](I)).done,I.value)})}}}p.d(K,{FC:()=>Y,KL:()=>ee,gn:()=>a,mG:()=>R,qq:()=>Z})},950:()=>{},6601:()=>{},8623:()=>{},7748:()=>{},5568:()=>{},6619:()=>{},7108:()=>{},2361:()=>{},4616:()=>{},1777:(Be,K,p)=>{"use strict";p.d(K,{F4:()=>L,IO:()=>E,LC:()=>e,SB:()=>h,X$:()=>M,ZE:()=>ae,ZN:()=>Y,_j:()=>t,eR:()=>w,jt:()=>a,k1:()=>ee,l3:()=>f,oB:()=>R,pV:()=>S,ru:()=>C,vP:()=>d});class t{}class e{}const f="*";function M(ue,ne){return{type:7,name:ue,definitions:ne,options:{}}}function a(ue,ne=null){return{type:4,styles:ne,timings:ue}}function C(ue,ne=null){return{type:3,steps:ue,options:ne}}function d(ue,ne=null){return{type:2,steps:ue,options:ne}}function R(ue){return{type:6,styles:ue,offset:null}}function h(ue,ne,re){return{type:0,name:ue,styles:ne,options:re}}function L(ue){return{type:5,steps:ue}}function w(ue,ne,re=null){return{type:1,expr:ue,animation:ne,options:re}}function S(ue=null){return{type:9,options:ue}}function E(ue,ne,re=null){return{type:11,selector:ue,animation:ne,options:re}}function Z(ue){Promise.resolve(null).then(ue)}class Y{constructor(ne=0,re=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=ne+re}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ne=>ne()),this._onDoneFns=[])}onStart(ne){this._onStartFns.push(ne)}onDone(ne){this._onDoneFns.push(ne)}onDestroy(ne){this._onDestroyFns.push(ne)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Z(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(ne=>ne()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(ne=>ne()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(ne){this._position=this.totalTime?ne*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(ne){const re="start"==ne?this._onStartFns:this._onDoneFns;re.forEach(ge=>ge()),re.length=0}}class ae{constructor(ne){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=ne;let re=0,ge=0,q=0;const _e=this.players.length;0==_e?Z(()=>this._onFinish()):this.players.forEach(x=>{x.onDone(()=>{++re==_e&&this._onFinish()}),x.onDestroy(()=>{++ge==_e&&this._onDestroy()}),x.onStart(()=>{++q==_e&&this._onStart()})}),this.totalTime=this.players.reduce((x,i)=>Math.max(x,i.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(ne=>ne()),this._onDoneFns=[])}init(){this.players.forEach(ne=>ne.init())}onStart(ne){this._onStartFns.push(ne)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(ne=>ne()),this._onStartFns=[])}onDone(ne){this._onDoneFns.push(ne)}onDestroy(ne){this._onDestroyFns.push(ne)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(ne=>ne.play())}pause(){this.players.forEach(ne=>ne.pause())}restart(){this.players.forEach(ne=>ne.restart())}finish(){this._onFinish(),this.players.forEach(ne=>ne.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(ne=>ne.destroy()),this._onDestroyFns.forEach(ne=>ne()),this._onDestroyFns=[])}reset(){this.players.forEach(ne=>ne.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(ne){const re=ne*this.totalTime;this.players.forEach(ge=>{const q=ge.totalTime?Math.min(1,re/ge.totalTime):1;ge.setPosition(q)})}getPosition(){const ne=this.players.reduce((re,ge)=>null===re||ge.totalTime>re.totalTime?ge:re,null);return null!=ne?ne.getPosition():0}beforeDestroy(){this.players.forEach(ne=>{ne.beforeDestroy&&ne.beforeDestroy()})}triggerCallback(ne){const re="start"==ne?this._onStartFns:this._onDoneFns;re.forEach(ge=>ge()),re.length=0}}const ee="!"},5664:(Be,K,p)=>{"use strict";p.d(K,{$s:()=>x,Em:()=>v,Kd:()=>di,X6:()=>Te,ic:()=>I,kH:()=>Nt,mK:()=>J,qV:()=>Me,qm:()=>ti,rt:()=>Qt,s1:()=>c,tE:()=>Ot,yG:()=>xe});var t=p(9808),e=p(5e3),f=p(925),M=p(7579),a=p(727),C=p(1135),d=p(9646),R=p(1159),h=p(8505),L=p(8372),w=p(9300),D=p(4004),S=p(5698),k=p(5684),E=p(1884),B=p(2722),Z=p(3191),Y=p(7144);function ne(Re,ke){return(Re.getAttribute(ke)||"").match(/\S+/g)||[]}const ge="cdk-describedby-message",q="cdk-describedby-host";let _e=0,x=(()=>{class Re{constructor(de,ye){this._platform=ye,this._messageRegistry=new Map,this._messagesContainer=null,this._id=""+_e++,this._document=de}describe(de,ye,ht){if(!this._canBeDescribed(de,ye))return;const mt=i(ye,ht);"string"!=typeof ye?(r(ye),this._messageRegistry.set(mt,{messageElement:ye,referenceCount:0})):this._messageRegistry.has(mt)||this._createMessageElement(ye,ht),this._isElementDescribedByMessage(de,mt)||this._addMessageReference(de,mt)}removeDescription(de,ye,ht){var mt;if(!ye||!this._isElementNode(de))return;const Ft=i(ye,ht);if(this._isElementDescribedByMessage(de,Ft)&&this._removeMessageReference(de,Ft),"string"==typeof ye){const nt=this._messageRegistry.get(Ft);nt&&0===nt.referenceCount&&this._deleteMessageElement(Ft)}0===(null===(mt=this._messagesContainer)||void 0===mt?void 0:mt.childNodes.length)&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){var de;const ye=this._document.querySelectorAll(`[${q}="${this._id}"]`);for(let ht=0;ht0!=ht.indexOf(ge));de.setAttribute("aria-describedby",ye.join(" "))}_addMessageReference(de,ye){const ht=this._messageRegistry.get(ye);(function ee(Re,ke,de){const ye=ne(Re,ke);ye.some(ht=>ht.trim()==de.trim())||(ye.push(de.trim()),Re.setAttribute(ke,ye.join(" ")))})(de,"aria-describedby",ht.messageElement.id),de.setAttribute(q,this._id),ht.referenceCount++}_removeMessageReference(de,ye){const ht=this._messageRegistry.get(ye);ht.referenceCount--,function ue(Re,ke,de){const ht=ne(Re,ke).filter(mt=>mt!=de.trim());ht.length?Re.setAttribute(ke,ht.join(" ")):Re.removeAttribute(ke)}(de,"aria-describedby",ht.messageElement.id),de.removeAttribute(q)}_isElementDescribedByMessage(de,ye){const ht=ne(de,"aria-describedby"),mt=this._messageRegistry.get(ye),Ft=mt&&mt.messageElement.id;return!!Ft&&-1!=ht.indexOf(Ft)}_canBeDescribed(de,ye){if(!this._isElementNode(de))return!1;if(ye&&"object"==typeof ye)return!0;const ht=null==ye?"":`${ye}`.trim(),mt=de.getAttribute("aria-label");return!(!ht||mt&&mt.trim()===ht)}_isElementNode(de){return de.nodeType===this._document.ELEMENT_NODE}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(t.K0),e.LFG(f.t4))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function i(Re,ke){return"string"==typeof Re?`${ke||""}/${Re}`:Re}function r(Re){Re.id||(Re.id=`${ge}-${_e++}`)}class u{constructor(ke){this._items=ke,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new M.x,this._typeaheadSubscription=a.w0.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=de=>de.disabled,this._pressedLetters=[],this.tabOut=new M.x,this.change=new M.x,ke instanceof e.n_E&&ke.changes.subscribe(de=>{if(this._activeItem){const ht=de.toArray().indexOf(this._activeItem);ht>-1&&ht!==this._activeItemIndex&&(this._activeItemIndex=ht)}})}skipPredicate(ke){return this._skipPredicateFn=ke,this}withWrap(ke=!0){return this._wrap=ke,this}withVerticalOrientation(ke=!0){return this._vertical=ke,this}withHorizontalOrientation(ke){return this._horizontal=ke,this}withAllowedModifierKeys(ke){return this._allowedModifierKeys=ke,this}withTypeAhead(ke=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe((0,h.b)(de=>this._pressedLetters.push(de)),(0,L.b)(ke),(0,w.h)(()=>this._pressedLetters.length>0),(0,D.U)(()=>this._pressedLetters.join(""))).subscribe(de=>{const ye=this._getItemsArray();for(let ht=1;ht!ke[mt]||this._allowedModifierKeys.indexOf(mt)>-1);switch(de){case R.Mf:return void this.tabOut.next();case R.JH:if(this._vertical&&ht){this.setNextItemActive();break}return;case R.LH:if(this._vertical&&ht){this.setPreviousItemActive();break}return;case R.SV:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case R.oh:if(this._horizontal&&ht){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case R.Sd:if(this._homeAndEnd&&ht){this.setFirstItemActive();break}return;case R.uR:if(this._homeAndEnd&&ht){this.setLastItemActive();break}return;default:return void((ht||(0,R.Vb)(ke,"shiftKey"))&&(ke.key&&1===ke.key.length?this._letterKeyStream.next(ke.key.toLocaleUpperCase()):(de>=R.A&&de<=R.Z||de>=R.xE&&de<=R.aO)&&this._letterKeyStream.next(String.fromCharCode(de))))}this._pressedLetters=[],ke.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(ke){const de=this._getItemsArray(),ye="number"==typeof ke?ke:de.indexOf(ke),ht=de[ye];this._activeItem=null==ht?null:ht,this._activeItemIndex=ye}_setActiveItemByDelta(ke){this._wrap?this._setActiveInWrapMode(ke):this._setActiveInDefaultMode(ke)}_setActiveInWrapMode(ke){const de=this._getItemsArray();for(let ye=1;ye<=de.length;ye++){const ht=(this._activeItemIndex+ke*ye+de.length)%de.length;if(!this._skipPredicateFn(de[ht]))return void this.setActiveItem(ht)}}_setActiveInDefaultMode(ke){this._setActiveItemByIndex(this._activeItemIndex+ke,ke)}_setActiveItemByIndex(ke,de){const ye=this._getItemsArray();if(ye[ke]){for(;this._skipPredicateFn(ye[ke]);)if(!ye[ke+=de])return;this.setActiveItem(ke)}}_getItemsArray(){return this._items instanceof e.n_E?this._items.toArray():this._items}}class c extends u{setActiveItem(ke){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(ke),this.activeItem&&this.activeItem.setActiveStyles()}}class v extends u{constructor(){super(...arguments),this._origin="program"}setFocusOrigin(ke){return this._origin=ke,this}setActiveItem(ke){super.setActiveItem(ke),this.activeItem&&this.activeItem.focus(this._origin)}}let I=(()=>{class Re{constructor(de){this._platform=de}isDisabled(de){return de.hasAttribute("disabled")}isVisible(de){return function n(Re){return!!(Re.offsetWidth||Re.offsetHeight||"function"==typeof Re.getClientRects&&Re.getClientRects().length)}(de)&&"visible"===getComputedStyle(de).visibility}isTabbable(de){if(!this._platform.isBrowser)return!1;const ye=function y(Re){try{return Re.frameElement}catch(ke){return null}}(function j(Re){return Re.ownerDocument&&Re.ownerDocument.defaultView||window}(de));if(ye&&(-1===be(ye)||!this.isVisible(ye)))return!1;let ht=de.nodeName.toLowerCase(),mt=be(de);return de.hasAttribute("contenteditable")?-1!==mt:!("iframe"===ht||"object"===ht||this._platform.WEBKIT&&this._platform.IOS&&!function Pe(Re){let ke=Re.nodeName.toLowerCase(),de="input"===ke&&Re.type;return"text"===de||"password"===de||"select"===ke||"textarea"===ke}(de))&&("audio"===ht?!!de.hasAttribute("controls")&&-1!==mt:"video"===ht?-1!==mt&&(null!==mt||this._platform.FIREFOX||de.hasAttribute("controls")):de.tabIndex>=0)}isFocusable(de,ye){return function Ee(Re){return!function V(Re){return function H(Re){return"input"==Re.nodeName.toLowerCase()}(Re)&&"hidden"==Re.type}(Re)&&(function _(Re){let ke=Re.nodeName.toLowerCase();return"input"===ke||"select"===ke||"button"===ke||"textarea"===ke}(Re)||function N(Re){return function X(Re){return"a"==Re.nodeName.toLowerCase()}(Re)&&Re.hasAttribute("href")}(Re)||Re.hasAttribute("contenteditable")||he(Re))}(de)&&!this.isDisabled(de)&&((null==ye?void 0:ye.ignoreVisibility)||this.isVisible(de))}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(f.t4))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();function he(Re){if(!Re.hasAttribute("tabindex")||void 0===Re.tabIndex)return!1;let ke=Re.getAttribute("tabindex");return!(!ke||isNaN(parseInt(ke,10)))}function be(Re){if(!he(Re))return null;const ke=parseInt(Re.getAttribute("tabindex")||"",10);return isNaN(ke)?-1:ke}class Ve{constructor(ke,de,ye,ht,mt=!1){this._element=ke,this._checker=de,this._ngZone=ye,this._document=ht,this._hasAttached=!1,this.startAnchorListener=()=>this.focusLastTabbableElement(),this.endAnchorListener=()=>this.focusFirstTabbableElement(),this._enabled=!0,mt||this.attachAnchors()}get enabled(){return this._enabled}set enabled(ke){this._enabled=ke,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ke,this._startAnchor),this._toggleAnchorTabIndex(ke,this._endAnchor))}destroy(){const ke=this._startAnchor,de=this._endAnchor;ke&&(ke.removeEventListener("focus",this.startAnchorListener),ke.remove()),de&&(de.removeEventListener("focus",this.endAnchorListener),de.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return!!this._hasAttached||(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(ke){return new Promise(de=>{this._executeOnStable(()=>de(this.focusInitialElement(ke)))})}focusFirstTabbableElementWhenReady(ke){return new Promise(de=>{this._executeOnStable(()=>de(this.focusFirstTabbableElement(ke)))})}focusLastTabbableElementWhenReady(ke){return new Promise(de=>{this._executeOnStable(()=>de(this.focusLastTabbableElement(ke)))})}_getRegionBoundary(ke){const de=this._element.querySelectorAll(`[cdk-focus-region-${ke}], [cdkFocusRegion${ke}], [cdk-focus-${ke}]`);return"start"==ke?de.length?de[0]:this._getFirstTabbableElement(this._element):de.length?de[de.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(ke){const de=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(de){if(!this._checker.isFocusable(de)){const ye=this._getFirstTabbableElement(de);return null==ye||ye.focus(ke),!!ye}return de.focus(ke),!0}return this.focusFirstTabbableElement(ke)}focusFirstTabbableElement(ke){const de=this._getRegionBoundary("start");return de&&de.focus(ke),!!de}focusLastTabbableElement(ke){const de=this._getRegionBoundary("end");return de&&de.focus(ke),!!de}hasAttached(){return this._hasAttached}_getFirstTabbableElement(ke){if(this._checker.isFocusable(ke)&&this._checker.isTabbable(ke))return ke;const de=ke.children;for(let ye=0;ye=0;ye--){const ht=de[ye].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(de[ye]):null;if(ht)return ht}return null}_createAnchor(){const ke=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,ke),ke.classList.add("cdk-visually-hidden"),ke.classList.add("cdk-focus-trap-anchor"),ke.setAttribute("aria-hidden","true"),ke}_toggleAnchorTabIndex(ke,de){ke?de.setAttribute("tabindex","0"):de.removeAttribute("tabindex")}toggleAnchors(ke){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(ke,this._startAnchor),this._toggleAnchorTabIndex(ke,this._endAnchor))}_executeOnStable(ke){this._ngZone.isStable?ke():this._ngZone.onStable.pipe((0,S.q)(1)).subscribe(ke)}}let Me=(()=>{class Re{constructor(de,ye,ht){this._checker=de,this._ngZone=ye,this._document=ht}create(de,ye=!1){return new Ve(de,this._checker,this._ngZone,this._document,ye)}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(I),e.LFG(e.R0b),e.LFG(t.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),J=(()=>{class Re{constructor(de,ye,ht){this._elementRef=de,this._focusTrapFactory=ye,this._previouslyFocusedElement=null,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}get enabled(){return this.focusTrap.enabled}set enabled(de){this.focusTrap.enabled=(0,Z.Ig)(de)}get autoCapture(){return this._autoCapture}set autoCapture(de){this._autoCapture=(0,Z.Ig)(de)}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(de){const ye=de.autoCapture;ye&&!ye.firstChange&&this.autoCapture&&this.focusTrap.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=(0,f.ht)(),this.focusTrap.focusInitialElementWhenReady()}}return Re.\u0275fac=function(de){return new(de||Re)(e.Y36(e.SBq),e.Y36(Me),e.Y36(t.K0))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"],features:[e.TTD]}),Re})();function Te(Re){return 0===Re.buttons||0===Re.offsetX&&0===Re.offsetY}function xe(Re){const ke=Re.touches&&Re.touches[0]||Re.changedTouches&&Re.changedTouches[0];return!(!ke||-1!==ke.identifier||null!=ke.radiusX&&1!==ke.radiusX||null!=ke.radiusY&&1!==ke.radiusY)}const W=new e.OlP("cdk-input-modality-detector-options"),te={ignoreKeys:[R.zL,R.jx,R.b2,R.MW,R.JU]},fe=(0,f.i$)({passive:!0,capture:!0});let Q=(()=>{class Re{constructor(de,ye,ht,mt){this._platform=de,this._mostRecentTarget=null,this._modality=new C.X(null),this._lastTouchMs=0,this._onKeydown=Ft=>{var nt,He;(null===(He=null===(nt=this._options)||void 0===nt?void 0:nt.ignoreKeys)||void 0===He?void 0:He.some(rt=>rt===Ft.keyCode))||(this._modality.next("keyboard"),this._mostRecentTarget=(0,f.sA)(Ft))},this._onMousedown=Ft=>{Date.now()-this._lastTouchMs<650||(this._modality.next(Te(Ft)?"keyboard":"mouse"),this._mostRecentTarget=(0,f.sA)(Ft))},this._onTouchstart=Ft=>{xe(Ft)?this._modality.next("keyboard"):(this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=(0,f.sA)(Ft))},this._options=Object.assign(Object.assign({},te),mt),this.modalityDetected=this._modality.pipe((0,k.T)(1)),this.modalityChanged=this.modalityDetected.pipe((0,E.x)()),de.isBrowser&&ye.runOutsideAngular(()=>{ht.addEventListener("keydown",this._onKeydown,fe),ht.addEventListener("mousedown",this._onMousedown,fe),ht.addEventListener("touchstart",this._onTouchstart,fe)})}get mostRecentModality(){return this._modality.value}ngOnDestroy(){this._modality.complete(),this._platform.isBrowser&&(document.removeEventListener("keydown",this._onKeydown,fe),document.removeEventListener("mousedown",this._onMousedown,fe),document.removeEventListener("touchstart",this._onTouchstart,fe))}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(f.t4),e.LFG(e.R0b),e.LFG(t.K0),e.LFG(W,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})();const pt=new e.OlP("liveAnnouncerElement",{providedIn:"root",factory:function tt(){return null}}),Dt=new e.OlP("LIVE_ANNOUNCER_DEFAULT_OPTIONS");let di=(()=>{class Re{constructor(de,ye,ht,mt){this._ngZone=ye,this._defaultOptions=mt,this._document=ht,this._liveElement=de||this._createLiveElement()}announce(de,...ye){const ht=this._defaultOptions;let mt,Ft;return 1===ye.length&&"number"==typeof ye[0]?Ft=ye[0]:[mt,Ft]=ye,this.clear(),clearTimeout(this._previousTimeout),mt||(mt=ht&&ht.politeness?ht.politeness:"polite"),null==Ft&&ht&&(Ft=ht.duration),this._liveElement.setAttribute("aria-live",mt),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(nt=>this._currentResolve=nt)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=de,"number"==typeof Ft&&(this._previousTimeout=setTimeout(()=>this.clear(),Ft)),this._currentResolve(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){var de,ye;clearTimeout(this._previousTimeout),null===(de=this._liveElement)||void 0===de||de.remove(),this._liveElement=null,null===(ye=this._currentResolve)||void 0===ye||ye.call(this),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){const de="cdk-live-announcer-element",ye=this._document.getElementsByClassName(de),ht=this._document.createElement("div");for(let mt=0;mt{class Re{constructor(de,ye,ht,mt,Ft){this._ngZone=de,this._platform=ye,this._inputModalityDetector=ht,this._origin=null,this._windowFocused=!1,this._originFromTouchInteraction=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=window.setTimeout(()=>this._windowFocused=!1)},this._stopInputModalityDetector=new M.x,this._rootNodeFocusAndBlurListener=nt=>{const He=(0,f.sA)(nt),rt="focus"===nt.type?this._onFocus:this._onBlur;for(let et=He;et;et=et.parentElement)rt.call(this,nt,et)},this._document=mt,this._detectionMode=(null==Ft?void 0:Ft.detectionMode)||0}monitor(de,ye=!1){const ht=(0,Z.fI)(de);if(!this._platform.isBrowser||1!==ht.nodeType)return(0,d.of)(null);const mt=(0,f.kV)(ht)||this._getDocument(),Ft=this._elementInfo.get(ht);if(Ft)return ye&&(Ft.checkChildren=!0),Ft.subject;const nt={checkChildren:ye,subject:new M.x,rootNode:mt};return this._elementInfo.set(ht,nt),this._registerGlobalListeners(nt),nt.subject}stopMonitoring(de){const ye=(0,Z.fI)(de),ht=this._elementInfo.get(ye);ht&&(ht.subject.complete(),this._setClasses(ye),this._elementInfo.delete(ye),this._removeGlobalListeners(ht))}focusVia(de,ye,ht){const mt=(0,Z.fI)(de);mt===this._getDocument().activeElement?this._getClosestElementsInfo(mt).forEach(([nt,He])=>this._originChanged(nt,ye,He)):(this._setOrigin(ye),"function"==typeof mt.focus&&mt.focus(ht))}ngOnDestroy(){this._elementInfo.forEach((de,ye)=>this.stopMonitoring(ye))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(de){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(de)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:"program"}_shouldBeAttributedToTouch(de){return 1===this._detectionMode||!!(null==de?void 0:de.contains(this._inputModalityDetector._mostRecentTarget))}_setClasses(de,ye){de.classList.toggle("cdk-focused",!!ye),de.classList.toggle("cdk-touch-focused","touch"===ye),de.classList.toggle("cdk-keyboard-focused","keyboard"===ye),de.classList.toggle("cdk-mouse-focused","mouse"===ye),de.classList.toggle("cdk-program-focused","program"===ye)}_setOrigin(de,ye=!1){this._ngZone.runOutsideAngular(()=>{this._origin=de,this._originFromTouchInteraction="touch"===de&&ye,0===this._detectionMode&&(clearTimeout(this._originTimeoutId),this._originTimeoutId=setTimeout(()=>this._origin=null,this._originFromTouchInteraction?650:1))})}_onFocus(de,ye){const ht=this._elementInfo.get(ye),mt=(0,f.sA)(de);!ht||!ht.checkChildren&&ye!==mt||this._originChanged(ye,this._getFocusOrigin(mt),ht)}_onBlur(de,ye){const ht=this._elementInfo.get(ye);!ht||ht.checkChildren&&de.relatedTarget instanceof Node&&ye.contains(de.relatedTarget)||(this._setClasses(ye),this._emitOrigin(ht.subject,null))}_emitOrigin(de,ye){this._ngZone.run(()=>de.next(ye))}_registerGlobalListeners(de){if(!this._platform.isBrowser)return;const ye=de.rootNode,ht=this._rootNodeFocusListenerCount.get(ye)||0;ht||this._ngZone.runOutsideAngular(()=>{ye.addEventListener("focus",this._rootNodeFocusAndBlurListener,ui),ye.addEventListener("blur",this._rootNodeFocusAndBlurListener,ui)}),this._rootNodeFocusListenerCount.set(ye,ht+1),1==++this._monitoredElementCount&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe((0,B.R)(this._stopInputModalityDetector)).subscribe(mt=>{this._setOrigin(mt,!0)}))}_removeGlobalListeners(de){const ye=de.rootNode;if(this._rootNodeFocusListenerCount.has(ye)){const ht=this._rootNodeFocusListenerCount.get(ye);ht>1?this._rootNodeFocusListenerCount.set(ye,ht-1):(ye.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ui),ye.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ui),this._rootNodeFocusListenerCount.delete(ye))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(de,ye,ht){this._setClasses(de,ye),this._emitOrigin(ht.subject,ye),this._lastFocusOrigin=ye}_getClosestElementsInfo(de){const ye=[];return this._elementInfo.forEach((ht,mt)=>{(mt===de||ht.checkChildren&&mt.contains(de))&&ye.push([mt,ht])}),ye}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(e.R0b),e.LFG(f.t4),e.LFG(Q),e.LFG(t.K0,8),e.LFG(Zt,8))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Nt=(()=>{class Re{constructor(de,ye){this._elementRef=de,this._focusMonitor=ye,this.cdkFocusChange=new e.vpe}ngAfterViewInit(){const de=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(de,1===de.nodeType&&de.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(ye=>this.cdkFocusChange.emit(ye))}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}}return Re.\u0275fac=function(de){return new(de||Re)(e.Y36(e.SBq),e.Y36(Ot))},Re.\u0275dir=e.lG2({type:Re,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"}}),Re})();const gt="cdk-high-contrast-black-on-white",it="cdk-high-contrast-white-on-black",bt="cdk-high-contrast-active";let ti=(()=>{class Re{constructor(de,ye){this._platform=de,this._document=ye}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const de=this._document.createElement("div");de.style.backgroundColor="rgb(1,2,3)",de.style.position="absolute",this._document.body.appendChild(de);const ye=this._document.defaultView||window,ht=ye&&ye.getComputedStyle?ye.getComputedStyle(de):null,mt=(ht&&ht.backgroundColor||"").replace(/ /g,"");switch(de.remove(),mt){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 de=this._document.body.classList;de.remove(bt),de.remove(gt),de.remove(it),this._hasCheckedHighContrastMode=!0;const ye=this.getHighContrastMode();1===ye?(de.add(bt),de.add(gt)):2===ye&&(de.add(bt),de.add(it))}}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(f.t4),e.LFG(t.K0))},Re.\u0275prov=e.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Qt=(()=>{class Re{constructor(de){de._applyBodyHighContrastModeCssClasses()}}return Re.\u0275fac=function(de){return new(de||Re)(e.LFG(ti))},Re.\u0275mod=e.oAB({type:Re}),Re.\u0275inj=e.cJS({imports:[[Y.Q8]]}),Re})()},226:(Be,K,p)=>{"use strict";p.d(K,{Is:()=>d,vT:()=>h});var t=p(5e3),e=p(9808);const f=new t.OlP("cdk-dir-doc",{providedIn:"root",factory:function M(){return(0,t.f3M)(e.K0)}}),a=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let d=(()=>{class L{constructor(D){if(this.value="ltr",this.change=new t.vpe,D){const k=D.documentElement?D.documentElement.dir:null;this.value=function C(L){const w=(null==L?void 0:L.toLowerCase())||"";return"auto"===w&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?a.test(navigator.language)?"rtl":"ltr":"rtl"===w?"rtl":"ltr"}((D.body?D.body.dir:null)||k||"ltr")}}ngOnDestroy(){this.change.complete()}}return L.\u0275fac=function(D){return new(D||L)(t.LFG(f,8))},L.\u0275prov=t.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),h=(()=>{class L{}return L.\u0275fac=function(D){return new(D||L)},L.\u0275mod=t.oAB({type:L}),L.\u0275inj=t.cJS({}),L})()},3191:(Be,K,p)=>{"use strict";p.d(K,{Eq:()=>a,HM:()=>C,Ig:()=>e,du:()=>R,fI:()=>d,su:()=>f,t6:()=>M});var t=p(5e3);function e(h){return null!=h&&"false"!=`${h}`}function f(h,L=0){return M(h)?Number(h):L}function M(h){return!isNaN(parseFloat(h))&&!isNaN(Number(h))}function a(h){return Array.isArray(h)?h:[h]}function C(h){return null==h?"":"string"==typeof h?h:`${h}px`}function d(h){return h instanceof t.SBq?h.nativeElement:h}function R(h,L=/\s+/){const w=[];if(null!=h){const D=Array.isArray(h)?h:`${h}`.split(L);for(const S of D){const k=`${S}`.trim();k&&w.push(k)}}return w}},449:(Be,K,p)=>{"use strict";p.d(K,{A8:()=>L,Ov:()=>R,Z9:()=>M,eX:()=>d,k:()=>w,o2:()=>f,yy:()=>C});var t=p(7579),e=p(5e3);class f{}function M(D){return D&&"function"==typeof D.connect}class C{applyChanges(S,k,E,B,Z){S.forEachOperation((Y,ae,ee)=>{let ue,ne;if(null==Y.previousIndex){const re=E(Y,ae,ee);ue=k.createEmbeddedView(re.templateRef,re.context,re.index),ne=1}else null==ee?(k.remove(ae),ne=3):(ue=k.get(ae),k.move(ue,ee),ne=2);Z&&Z({context:null==ue?void 0:ue.context,operation:ne,record:Y})})}detach(){}}class d{constructor(){this.viewCacheSize=20,this._viewCache=[]}applyChanges(S,k,E,B,Z){S.forEachOperation((Y,ae,ee)=>{let ue,ne;null==Y.previousIndex?(ue=this._insertView(()=>E(Y,ae,ee),ee,k,B(Y)),ne=ue?1:0):null==ee?(this._detachAndCacheView(ae,k),ne=3):(ue=this._moveView(ae,ee,k,B(Y)),ne=2),Z&&Z({context:null==ue?void 0:ue.context,operation:ne,record:Y})})}detach(){for(const S of this._viewCache)S.destroy();this._viewCache=[]}_insertView(S,k,E,B){const Z=this._insertViewFromCache(k,E);if(Z)return void(Z.context.$implicit=B);const Y=S();return E.createEmbeddedView(Y.templateRef,Y.context,Y.index)}_detachAndCacheView(S,k){const E=k.detach(S);this._maybeCacheView(E,k)}_moveView(S,k,E,B){const Z=E.get(S);return E.move(Z,k),Z.context.$implicit=B,Z}_maybeCacheView(S,k){if(this._viewCache.lengththis._markSelected(B)):this._markSelected(k[0]),this._selectedToEmit.length=0)}get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}select(...S){this._verifyValueAssignment(S),S.forEach(k=>this._markSelected(k)),this._emitChangeEvent()}deselect(...S){this._verifyValueAssignment(S),S.forEach(k=>this._unmarkSelected(k)),this._emitChangeEvent()}toggle(S){this.isSelected(S)?this.deselect(S):this.select(S)}clear(){this._unmarkAll(),this._emitChangeEvent()}isSelected(S){return this._selection.has(S)}isEmpty(){return 0===this._selection.size}hasValue(){return!this.isEmpty()}sort(S){this._multiple&&this.selected&&this._selected.sort(S)}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(S){this.isSelected(S)||(this._multiple||this._unmarkAll(),this._selection.add(S),this._emitChanges&&this._selectedToEmit.push(S))}_unmarkSelected(S){this.isSelected(S)&&(this._selection.delete(S),this._emitChanges&&this._deselectedToEmit.push(S))}_unmarkAll(){this.isEmpty()||this._selection.forEach(S=>this._unmarkSelected(S))}_verifyValueAssignment(S){}}let L=(()=>{class D{constructor(){this._listeners=[]}notify(k,E){for(let B of this._listeners)B(k,E)}listen(k){return this._listeners.push(k),()=>{this._listeners=this._listeners.filter(E=>k!==E)}}ngOnDestroy(){this._listeners=[]}}return D.\u0275fac=function(k){return new(k||D)},D.\u0275prov=e.Yz7({token:D,factory:D.\u0275fac,providedIn:"root"}),D})();const w=new e.OlP("_ViewRepeater")},1159:(Be,K,p)=>{"use strict";p.d(K,{A:()=>N,JH:()=>ee,JU:()=>C,K5:()=>a,Ku:()=>S,LH:()=>Y,L_:()=>D,MW:()=>di,Mf:()=>f,SV:()=>ae,Sd:()=>B,VM:()=>k,Vb:()=>Rt,Z:()=>Dt,ZH:()=>e,aO:()=>I,b2:()=>st,hY:()=>w,jx:()=>d,oh:()=>Z,uR:()=>E,xE:()=>q,yY:()=>ge,zL:()=>R});const e=8,f=9,a=13,C=16,d=17,R=18,w=27,D=32,S=33,k=34,E=35,B=36,Z=37,Y=38,ae=39,ee=40,ge=46,q=48,I=57,N=65,Dt=90,di=91,st=224;function Rt(Wt,...fi){return fi.length?fi.some(Ei=>Wt[Ei]):Wt.altKey||Wt.shiftKey||Wt.ctrlKey||Wt.metaKey}},5113:(Be,K,p)=>{"use strict";p.d(K,{Yg:()=>ee,u3:()=>ne,xu:()=>k});var t=p(5e3),e=p(3191),f=p(7579),M=p(9841),a=p(7272),C=p(8306),d=p(5698),R=p(5684),h=p(8372),L=p(4004),w=p(8675),D=p(2722),S=p(925);let k=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})();const E=new Set;let B,Z=(()=>{class re{constructor(q){this._platform=q,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):ae}matchMedia(q){return(this._platform.WEBKIT||this._platform.BLINK)&&function Y(re){if(!E.has(re))try{B||(B=document.createElement("style"),B.setAttribute("type","text/css"),document.head.appendChild(B)),B.sheet&&(B.sheet.insertRule(`@media ${re} {body{ }}`,0),E.add(re))}catch(ge){console.error(ge)}}(q),this._matchMedia(q)}}return re.\u0275fac=function(q){return new(q||re)(t.LFG(S.t4))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ae(re){return{matches:"all"===re||""===re,media:re,addListener:()=>{},removeListener:()=>{}}}let ee=(()=>{class re{constructor(q,_e){this._mediaMatcher=q,this._zone=_e,this._queries=new Map,this._destroySubject=new f.x}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(q){return ue((0,e.Eq)(q)).some(x=>this._registerQuery(x).mql.matches)}observe(q){const x=ue((0,e.Eq)(q)).map(r=>this._registerQuery(r).observable);let i=(0,M.a)(x);return i=(0,a.z)(i.pipe((0,d.q)(1)),i.pipe((0,R.T)(1),(0,h.b)(0))),i.pipe((0,L.U)(r=>{const u={matches:!1,breakpoints:{}};return r.forEach(({matches:c,query:v})=>{u.matches=u.matches||c,u.breakpoints[v]=c}),u}))}_registerQuery(q){if(this._queries.has(q))return this._queries.get(q);const _e=this._mediaMatcher.matchMedia(q),i={observable:new C.y(r=>{const u=c=>this._zone.run(()=>r.next(c));return _e.addListener(u),()=>{_e.removeListener(u)}}).pipe((0,w.O)(_e),(0,L.U)(({matches:r})=>({query:q,matches:r})),(0,D.R)(this._destroySubject)),mql:_e};return this._queries.set(q,i),i}}return re.\u0275fac=function(q){return new(q||re)(t.LFG(Z),t.LFG(t.R0b))},re.\u0275prov=t.Yz7({token:re,factory:re.\u0275fac,providedIn:"root"}),re})();function ue(re){return re.map(ge=>ge.split(",")).reduce((ge,q)=>ge.concat(q)).map(ge=>ge.trim())}const ne={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)"}},7144:(Be,K,p)=>{"use strict";p.d(K,{Q8:()=>h,wD:()=>R});var t=p(3191),e=p(5e3),f=p(8306),M=p(7579),a=p(8372);let C=(()=>{class L{create(D){return"undefined"==typeof MutationObserver?null:new MutationObserver(D)}}return L.\u0275fac=function(D){return new(D||L)},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),d=(()=>{class L{constructor(D){this._mutationObserverFactory=D,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((D,S)=>this._cleanupObserver(S))}observe(D){const S=(0,t.fI)(D);return new f.y(k=>{const B=this._observeElement(S).subscribe(k);return()=>{B.unsubscribe(),this._unobserveElement(S)}})}_observeElement(D){if(this._observedElements.has(D))this._observedElements.get(D).count++;else{const S=new M.x,k=this._mutationObserverFactory.create(E=>S.next(E));k&&k.observe(D,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(D,{observer:k,stream:S,count:1})}return this._observedElements.get(D).stream}_unobserveElement(D){this._observedElements.has(D)&&(this._observedElements.get(D).count--,this._observedElements.get(D).count||this._cleanupObserver(D))}_cleanupObserver(D){if(this._observedElements.has(D)){const{observer:S,stream:k}=this._observedElements.get(D);S&&S.disconnect(),k.complete(),this._observedElements.delete(D)}}}return L.\u0275fac=function(D){return new(D||L)(e.LFG(C))},L.\u0275prov=e.Yz7({token:L,factory:L.\u0275fac,providedIn:"root"}),L})(),R=(()=>{class L{constructor(D,S,k){this._contentObserver=D,this._elementRef=S,this._ngZone=k,this.event=new e.vpe,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(D){this._disabled=(0,t.Ig)(D),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(D){this._debounce=(0,t.su)(D),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const D=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?D.pipe((0,a.b)(this.debounce)):D).subscribe(this.event)})}_unsubscribe(){var D;null===(D=this._currentSubscription)||void 0===D||D.unsubscribe()}}return L.\u0275fac=function(D){return new(D||L)(e.Y36(d),e.Y36(e.SBq),e.Y36(e.R0b))},L.\u0275dir=e.lG2({type:L,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),L})(),h=(()=>{class L{}return L.\u0275fac=function(D){return new(D||L)},L.\u0275mod=e.oAB({type:L}),L.\u0275inj=e.cJS({providers:[C]}),L})()},9776:(Be,K,p)=>{"use strict";p.d(K,{pI:()=>ut,xu:()=>Ie,_G:()=>n,aV:()=>Ve,X_:()=>_e,Xj:()=>T,U8:()=>ce});var t=p(5303),e=p(9808),f=p(5e3),M=p(3191),a=p(925),C=p(226),d=p(7429),R=p(7579),h=p(727),L=p(6451),w=p(4482),D=p(5403),k=p(5698),E=p(2722),B=p(1159);const Z=(0,a.Mq)();class Y{constructor(W,te){this._viewportRuler=W,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=te}attach(){}enable(){if(this._canBeEnabled()){const W=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=W.style.left||"",this._previousHTMLStyles.top=W.style.top||"",W.style.left=(0,M.HM)(-this._previousScrollPosition.left),W.style.top=(0,M.HM)(-this._previousScrollPosition.top),W.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const W=this._document.documentElement,Ce=W.style,fe=this._document.body.style,Q=Ce.scrollBehavior||"",pt=fe.scrollBehavior||"";this._isEnabled=!1,Ce.left=this._previousHTMLStyles.left,Ce.top=this._previousHTMLStyles.top,W.classList.remove("cdk-global-scrollblock"),Z&&(Ce.scrollBehavior=fe.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),Z&&(Ce.scrollBehavior=Q,fe.scrollBehavior=pt)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const te=this._document.body,Ce=this._viewportRuler.getViewportSize();return te.scrollHeight>Ce.height||te.scrollWidth>Ce.width}}class ee{constructor(W,te,Ce,fe){this._scrollDispatcher=W,this._ngZone=te,this._viewportRuler=Ce,this._config=fe,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(W){this._overlayRef=W}enable(){if(this._scrollSubscription)return;const W=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=W.subscribe(()=>{const te=this._viewportRuler.getViewportScrollPosition().top;Math.abs(te-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=W.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ue{enable(){}disable(){}attach(){}}function ne(xe,W){return W.some(te=>xe.bottomte.bottom||xe.rightte.right)}function re(xe,W){return W.some(te=>xe.topte.bottom||xe.leftte.right)}class ge{constructor(W,te,Ce,fe){this._scrollDispatcher=W,this._viewportRuler=te,this._ngZone=Ce,this._config=fe,this._scrollSubscription=null}attach(W){this._overlayRef=W}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 te=this._overlayRef.overlayElement.getBoundingClientRect(),{width:Ce,height:fe}=this._viewportRuler.getViewportSize();ne(te,[{width:Ce,height:fe,bottom:fe,right:Ce,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 q=(()=>{class xe{constructor(te,Ce,fe,Q){this._scrollDispatcher=te,this._viewportRuler=Ce,this._ngZone=fe,this.noop=()=>new ue,this.close=pt=>new ee(this._scrollDispatcher,this._ngZone,this._viewportRuler,pt),this.block=()=>new Y(this._viewportRuler,this._document),this.reposition=pt=>new ge(this._scrollDispatcher,this._viewportRuler,this._ngZone,pt),this._document=Q}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(t.mF),f.LFG(t.rL),f.LFG(f.R0b),f.LFG(e.K0))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();class _e{constructor(W){if(this.scrollStrategy=new ue,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,W){const te=Object.keys(W);for(const Ce of te)void 0!==W[Ce]&&(this[Ce]=W[Ce])}}}class r{constructor(W,te){this.connectionPair=W,this.scrollableViewProperties=te}}class v{constructor(W,te,Ce,fe,Q,pt,tt,Dt,di){this._portalOutlet=W,this._host=te,this._pane=Ce,this._config=fe,this._ngZone=Q,this._keyboardDispatcher=pt,this._document=tt,this._location=Dt,this._outsideClickDispatcher=di,this._backdropElement=null,this._backdropClick=new R.x,this._attachments=new R.x,this._detachments=new R.x,this._locationChanges=h.w0.EMPTY,this._backdropClickHandler=Yt=>this._backdropClick.next(Yt),this._backdropTransitionendHandler=Yt=>{this._disposeBackdrop(Yt.target)},this._keydownEvents=new R.x,this._outsidePointerEvents=new R.x,fe.scrollStrategy&&(this._scrollStrategy=fe.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=fe.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(W){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const te=this._portalOutlet.attach(W);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe((0,k.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),te}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const W=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),W}dispose(){var W;const te=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(W=this._host)||void 0===W||W.remove(),this._previousHostParent=this._pane=this._host=null,te&&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(W){W!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=W,this.hasAttached()&&(W.attach(this),this.updatePosition()))}updateSize(W){this._config=Object.assign(Object.assign({},this._config),W),this._updateElementSize()}setDirection(W){this._config=Object.assign(Object.assign({},this._config),{direction:W}),this._updateElementDirection()}addPanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!0)}removePanelClass(W){this._pane&&this._toggleClasses(this._pane,W,!1)}getDirection(){const W=this._config.direction;return W?"string"==typeof W?W:W.value:"ltr"}updateScrollStrategy(W){W!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=W,this.hasAttached()&&(W.attach(this),W.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const W=this._pane.style;W.width=(0,M.HM)(this._config.width),W.height=(0,M.HM)(this._config.height),W.minWidth=(0,M.HM)(this._config.minWidth),W.minHeight=(0,M.HM)(this._config.minHeight),W.maxWidth=(0,M.HM)(this._config.maxWidth),W.maxHeight=(0,M.HM)(this._config.maxHeight)}_togglePointerEvents(W){this._pane.style.pointerEvents=W?"":"none"}_attachBackdrop(){const W="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(W)})}):this._backdropElement.classList.add(W)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const W=this._backdropElement;!W||(W.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{W.addEventListener("transitionend",this._backdropTransitionendHandler)}),W.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(W)},500)))}_toggleClasses(W,te,Ce){const fe=(0,M.Eq)(te||[]).filter(Q=>!!Q);fe.length&&(Ce?W.classList.add(...fe):W.classList.remove(...fe))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const W=this._ngZone.onStable.pipe((0,E.R)((0,L.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._host.remove()),W.unsubscribe())})})}_disposeScrollStrategy(){const W=this._scrollStrategy;W&&(W.disable(),W.detach&&W.detach())}_disposeBackdrop(W){W&&(W.removeEventListener("click",this._backdropClickHandler),W.removeEventListener("transitionend",this._backdropTransitionendHandler),W.remove(),this._backdropElement===W&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let T=(()=>{class xe{constructor(te,Ce){this._platform=Ce,this._document=te}ngOnDestroy(){var te;null===(te=this._containerElement)||void 0===te||te.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const te="cdk-overlay-container";if(this._platform.isBrowser||(0,a.Oy)()){const fe=this._document.querySelectorAll(`.${te}[platform="server"], .${te}[platform="test"]`);for(let Q=0;Q{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const W=this._originRect,te=this._overlayRect,Ce=this._viewportRect,fe=this._containerRect,Q=[];let pt;for(let tt of this._preferredPositions){let Dt=this._getOriginPoint(W,fe,tt),di=this._getOverlayPoint(Dt,te,tt),Yt=this._getOverlayFit(di,te,Ce,tt);if(Yt.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(tt,Dt);this._canFitWithFlexibleDimensions(Yt,di,Ce)?Q.push({position:tt,origin:Dt,overlayRect:te,boundingBoxRect:this._calculateBoundingBoxRect(Dt,tt)}):(!pt||pt.overlayFit.visibleAreaDt&&(Dt=Yt,tt=di)}return this._isPushed=!1,void this._applyPosition(tt.position,tt.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(pt.position,pt.originPoint);this._applyPosition(pt.position,pt.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&_(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(I),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const W=this._lastPosition;if(W){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const te=this._getOriginPoint(this._originRect,this._containerRect,W);this._applyPosition(W,te)}else this.apply()}withScrollableContainers(W){return this._scrollables=W,this}withPositions(W){return this._preferredPositions=W,-1===W.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(W){return this._viewportMargin=W,this}withFlexibleDimensions(W=!0){return this._hasFlexibleDimensions=W,this}withGrowAfterOpen(W=!0){return this._growAfterOpen=W,this}withPush(W=!0){return this._canPush=W,this}withLockedPosition(W=!0){return this._positionLocked=W,this}setOrigin(W){return this._origin=W,this}withDefaultOffsetX(W){return this._offsetX=W,this}withDefaultOffsetY(W){return this._offsetY=W,this}withTransformOriginOn(W){return this._transformOriginSelector=W,this}_getOriginPoint(W,te,Ce){let fe,Q;if("center"==Ce.originX)fe=W.left+W.width/2;else{const pt=this._isRtl()?W.right:W.left,tt=this._isRtl()?W.left:W.right;fe="start"==Ce.originX?pt:tt}return te.left<0&&(fe-=te.left),Q="center"==Ce.originY?W.top+W.height/2:"top"==Ce.originY?W.top:W.bottom,te.top<0&&(Q-=te.top),{x:fe,y:Q}}_getOverlayPoint(W,te,Ce){let fe,Q;return fe="center"==Ce.overlayX?-te.width/2:"start"===Ce.overlayX?this._isRtl()?-te.width:0:this._isRtl()?0:-te.width,Q="center"==Ce.overlayY?-te.height/2:"top"==Ce.overlayY?0:-te.height,{x:W.x+fe,y:W.y+Q}}_getOverlayFit(W,te,Ce,fe){const Q=N(te);let{x:pt,y:tt}=W,Dt=this._getOffset(fe,"x"),di=this._getOffset(fe,"y");Dt&&(pt+=Dt),di&&(tt+=di);let ui=0-tt,Ot=tt+Q.height-Ce.height,Nt=this._subtractOverflows(Q.width,0-pt,pt+Q.width-Ce.width),gt=this._subtractOverflows(Q.height,ui,Ot),it=Nt*gt;return{visibleArea:it,isCompletelyWithinViewport:Q.width*Q.height===it,fitsInViewportVertically:gt===Q.height,fitsInViewportHorizontally:Nt==Q.width}}_canFitWithFlexibleDimensions(W,te,Ce){if(this._hasFlexibleDimensions){const fe=Ce.bottom-te.y,Q=Ce.right-te.x,pt=V(this._overlayRef.getConfig().minHeight),tt=V(this._overlayRef.getConfig().minWidth),di=W.fitsInViewportHorizontally||null!=tt&&tt<=Q;return(W.fitsInViewportVertically||null!=pt&&pt<=fe)&&di}return!1}_pushOverlayOnScreen(W,te,Ce){if(this._previousPushAmount&&this._positionLocked)return{x:W.x+this._previousPushAmount.x,y:W.y+this._previousPushAmount.y};const fe=N(te),Q=this._viewportRect,pt=Math.max(W.x+fe.width-Q.width,0),tt=Math.max(W.y+fe.height-Q.height,0),Dt=Math.max(Q.top-Ce.top-W.y,0),di=Math.max(Q.left-Ce.left-W.x,0);let Yt=0,Zt=0;return Yt=fe.width<=Q.width?di||-pt:W.xNt&&!this._isInitialRender&&!this._growAfterOpen&&(pt=W.y-Nt/2)}if("end"===te.overlayX&&!fe||"start"===te.overlayX&&fe)ui=Ce.width-W.x+this._viewportMargin,Yt=W.x-this._viewportMargin;else if("start"===te.overlayX&&!fe||"end"===te.overlayX&&fe)Zt=W.x,Yt=Ce.right-W.x;else{const Ot=Math.min(Ce.right-W.x+Ce.left,W.x),Nt=this._lastBoundingBoxSize.width;Yt=2*Ot,Zt=W.x-Ot,Yt>Nt&&!this._isInitialRender&&!this._growAfterOpen&&(Zt=W.x-Nt/2)}return{top:pt,left:Zt,bottom:tt,right:ui,width:Yt,height:Q}}_setBoundingBoxStyles(W,te){const Ce=this._calculateBoundingBoxRect(W,te);!this._isInitialRender&&!this._growAfterOpen&&(Ce.height=Math.min(Ce.height,this._lastBoundingBoxSize.height),Ce.width=Math.min(Ce.width,this._lastBoundingBoxSize.width));const fe={};if(this._hasExactPosition())fe.top=fe.left="0",fe.bottom=fe.right=fe.maxHeight=fe.maxWidth="",fe.width=fe.height="100%";else{const Q=this._overlayRef.getConfig().maxHeight,pt=this._overlayRef.getConfig().maxWidth;fe.height=(0,M.HM)(Ce.height),fe.top=(0,M.HM)(Ce.top),fe.bottom=(0,M.HM)(Ce.bottom),fe.width=(0,M.HM)(Ce.width),fe.left=(0,M.HM)(Ce.left),fe.right=(0,M.HM)(Ce.right),fe.alignItems="center"===te.overlayX?"center":"end"===te.overlayX?"flex-end":"flex-start",fe.justifyContent="center"===te.overlayY?"center":"bottom"===te.overlayY?"flex-end":"flex-start",Q&&(fe.maxHeight=(0,M.HM)(Q)),pt&&(fe.maxWidth=(0,M.HM)(pt))}this._lastBoundingBoxSize=Ce,_(this._boundingBox.style,fe)}_resetBoundingBoxStyles(){_(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){_(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(W,te){const Ce={},fe=this._hasExactPosition(),Q=this._hasFlexibleDimensions,pt=this._overlayRef.getConfig();if(fe){const Yt=this._viewportRuler.getViewportScrollPosition();_(Ce,this._getExactOverlayY(te,W,Yt)),_(Ce,this._getExactOverlayX(te,W,Yt))}else Ce.position="static";let tt="",Dt=this._getOffset(te,"x"),di=this._getOffset(te,"y");Dt&&(tt+=`translateX(${Dt}px) `),di&&(tt+=`translateY(${di}px)`),Ce.transform=tt.trim(),pt.maxHeight&&(fe?Ce.maxHeight=(0,M.HM)(pt.maxHeight):Q&&(Ce.maxHeight="")),pt.maxWidth&&(fe?Ce.maxWidth=(0,M.HM)(pt.maxWidth):Q&&(Ce.maxWidth="")),_(this._pane.style,Ce)}_getExactOverlayY(W,te,Ce){let fe={top:"",bottom:""},Q=this._getOverlayPoint(te,this._overlayRect,W);return this._isPushed&&(Q=this._pushOverlayOnScreen(Q,this._overlayRect,Ce)),"bottom"===W.overlayY?fe.bottom=this._document.documentElement.clientHeight-(Q.y+this._overlayRect.height)+"px":fe.top=(0,M.HM)(Q.y),fe}_getExactOverlayX(W,te,Ce){let pt,fe={left:"",right:""},Q=this._getOverlayPoint(te,this._overlayRect,W);return this._isPushed&&(Q=this._pushOverlayOnScreen(Q,this._overlayRect,Ce)),pt=this._isRtl()?"end"===W.overlayX?"left":"right":"end"===W.overlayX?"right":"left","right"===pt?fe.right=this._document.documentElement.clientWidth-(Q.x+this._overlayRect.width)+"px":fe.left=(0,M.HM)(Q.x),fe}_getScrollVisibility(){const W=this._getOriginRect(),te=this._pane.getBoundingClientRect(),Ce=this._scrollables.map(fe=>fe.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:re(W,Ce),isOriginOutsideView:ne(W,Ce),isOverlayClipped:re(te,Ce),isOverlayOutsideView:ne(te,Ce)}}_subtractOverflows(W,...te){return te.reduce((Ce,fe)=>Ce-Math.max(fe,0),W)}_getNarrowedViewportRect(){const W=this._document.documentElement.clientWidth,te=this._document.documentElement.clientHeight,Ce=this._viewportRuler.getViewportScrollPosition();return{top:Ce.top+this._viewportMargin,left:Ce.left+this._viewportMargin,right:Ce.left+W-this._viewportMargin,bottom:Ce.top+te-this._viewportMargin,width:W-2*this._viewportMargin,height:te-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(W,te){return"x"===te?null==W.offsetX?this._offsetX:W.offsetX:null==W.offsetY?this._offsetY:W.offsetY}_validatePositions(){}_addPanelClasses(W){this._pane&&(0,M.Eq)(W).forEach(te=>{""!==te&&-1===this._appliedPanelClasses.indexOf(te)&&(this._appliedPanelClasses.push(te),this._pane.classList.add(te))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(W=>{this._pane.classList.remove(W)}),this._appliedPanelClasses=[])}_getOriginRect(){const W=this._origin;if(W instanceof f.SBq)return W.nativeElement.getBoundingClientRect();if(W instanceof Element)return W.getBoundingClientRect();const te=W.width||0,Ce=W.height||0;return{top:W.y,bottom:W.y+Ce,left:W.x,right:W.x+te,height:Ce,width:te}}}function _(xe,W){for(let te in W)W.hasOwnProperty(te)&&(xe[te]=W[te]);return xe}function V(xe){if("number"!=typeof xe&&null!=xe){const[W,te]=xe.split(y);return te&&"px"!==te?null:parseFloat(W)}return xe||null}function N(xe){return{top:Math.floor(xe.top),right:Math.floor(xe.right),bottom:Math.floor(xe.bottom),left:Math.floor(xe.left),width:Math.floor(xe.width),height:Math.floor(xe.height)}}const H="cdk-global-overlay-wrapper";class X{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(W){const te=W.getConfig();this._overlayRef=W,this._width&&!te.width&&W.updateSize({width:this._width}),this._height&&!te.height&&W.updateSize({height:this._height}),W.hostElement.classList.add(H),this._isDisposed=!1}top(W=""){return this._bottomOffset="",this._topOffset=W,this._alignItems="flex-start",this}left(W=""){return this._rightOffset="",this._leftOffset=W,this._justifyContent="flex-start",this}bottom(W=""){return this._topOffset="",this._bottomOffset=W,this._alignItems="flex-end",this}right(W=""){return this._leftOffset="",this._rightOffset=W,this._justifyContent="flex-end",this}width(W=""){return this._overlayRef?this._overlayRef.updateSize({width:W}):this._width=W,this}height(W=""){return this._overlayRef?this._overlayRef.updateSize({height:W}):this._height=W,this}centerHorizontally(W=""){return this.left(W),this._justifyContent="center",this}centerVertically(W=""){return this.top(W),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const W=this._overlayRef.overlayElement.style,te=this._overlayRef.hostElement.style,Ce=this._overlayRef.getConfig(),{width:fe,height:Q,maxWidth:pt,maxHeight:tt}=Ce,Dt=!("100%"!==fe&&"100vw"!==fe||pt&&"100%"!==pt&&"100vw"!==pt),di=!("100%"!==Q&&"100vh"!==Q||tt&&"100%"!==tt&&"100vh"!==tt);W.position=this._cssPosition,W.marginLeft=Dt?"0":this._leftOffset,W.marginTop=di?"0":this._topOffset,W.marginBottom=this._bottomOffset,W.marginRight=this._rightOffset,Dt?te.justifyContent="flex-start":"center"===this._justifyContent?te.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?te.justifyContent="flex-end":"flex-end"===this._justifyContent&&(te.justifyContent="flex-start"):te.justifyContent=this._justifyContent,te.alignItems=di?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const W=this._overlayRef.overlayElement.style,te=this._overlayRef.hostElement,Ce=te.style;te.classList.remove(H),Ce.justifyContent=Ce.alignItems=W.marginTop=W.marginBottom=W.marginLeft=W.marginRight=W.position="",this._overlayRef=null,this._isDisposed=!0}}let he=(()=>{class xe{constructor(te,Ce,fe,Q){this._viewportRuler=te,this._document=Ce,this._platform=fe,this._overlayContainer=Q}global(){return new X}flexibleConnectedTo(te){return new n(te,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(t.rL),f.LFG(e.K0),f.LFG(a.t4),f.LFG(T))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),be=(()=>{class xe{constructor(te){this._attachedOverlays=[],this._document=te}ngOnDestroy(){this.detach()}add(te){this.remove(te),this._attachedOverlays.push(te)}remove(te){const Ce=this._attachedOverlays.indexOf(te);Ce>-1&&this._attachedOverlays.splice(Ce,1),0===this._attachedOverlays.length&&this.detach()}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(e.K0))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Pe=(()=>{class xe extends be{constructor(te,Ce){super(te),this._ngZone=Ce,this._keydownListener=fe=>{const Q=this._attachedOverlays;for(let pt=Q.length-1;pt>-1;pt--)if(Q[pt]._keydownEvents.observers.length>0){const tt=Q[pt]._keydownEvents;this._ngZone?this._ngZone.run(()=>tt.next(fe)):tt.next(fe);break}}}add(te){super.add(te),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(e.K0),f.LFG(f.R0b,8))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),Ee=(()=>{class xe extends be{constructor(te,Ce,fe){super(te),this._platform=Ce,this._ngZone=fe,this._cursorStyleIsSet=!1,this._pointerDownListener=Q=>{this._pointerDownEventTarget=(0,a.sA)(Q)},this._clickListener=Q=>{const pt=(0,a.sA)(Q),tt="click"===Q.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:pt;this._pointerDownEventTarget=null;const Dt=this._attachedOverlays.slice();for(let di=Dt.length-1;di>-1;di--){const Yt=Dt[di];if(Yt._outsidePointerEvents.observers.length<1||!Yt.hasAttached())continue;if(Yt.overlayElement.contains(pt)||Yt.overlayElement.contains(tt))break;const Zt=Yt._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>Zt.next(Q)):Zt.next(Q)}}}add(te){if(super.add(te),!this._isAttached){const Ce=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(Ce)):this._addEventListeners(Ce),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=Ce.style.cursor,Ce.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const te=this._document.body;te.removeEventListener("pointerdown",this._pointerDownListener,!0),te.removeEventListener("click",this._clickListener,!0),te.removeEventListener("auxclick",this._clickListener,!0),te.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(te.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(te){te.addEventListener("pointerdown",this._pointerDownListener,!0),te.addEventListener("click",this._clickListener,!0),te.addEventListener("auxclick",this._clickListener,!0),te.addEventListener("contextmenu",this._clickListener,!0)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(e.K0),f.LFG(a.t4),f.LFG(f.R0b,8))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})(),j=0,Ve=(()=>{class xe{constructor(te,Ce,fe,Q,pt,tt,Dt,di,Yt,Zt,ui){this.scrollStrategies=te,this._overlayContainer=Ce,this._componentFactoryResolver=fe,this._positionBuilder=Q,this._keyboardDispatcher=pt,this._injector=tt,this._ngZone=Dt,this._document=di,this._directionality=Yt,this._location=Zt,this._outsideClickDispatcher=ui}create(te){const Ce=this._createHostElement(),fe=this._createPaneElement(Ce),Q=this._createPortalOutlet(fe),pt=new _e(te);return pt.direction=pt.direction||this._directionality.value,new v(Q,Ce,fe,pt,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(te){const Ce=this._document.createElement("div");return Ce.id="cdk-overlay-"+j++,Ce.classList.add("cdk-overlay-pane"),te.appendChild(Ce),Ce}_createHostElement(){const te=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(te),te}_createPortalOutlet(te){return this._appRef||(this._appRef=this._injector.get(f.z2F)),new d.u0(te,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return xe.\u0275fac=function(te){return new(te||xe)(f.LFG(q),f.LFG(T),f.LFG(f._Vd),f.LFG(he),f.LFG(Pe),f.LFG(f.zs3),f.LFG(f.R0b),f.LFG(e.K0),f.LFG(C.Is),f.LFG(e.Ye),f.LFG(Ee))},xe.\u0275prov=f.Yz7({token:xe,factory:xe.\u0275fac}),xe})();const Me=[{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"}],J=new f.OlP("cdk-connected-overlay-scroll-strategy");let Ie=(()=>{class xe{constructor(te){this.elementRef=te}}return xe.\u0275fac=function(te){return new(te||xe)(f.Y36(f.SBq))},xe.\u0275dir=f.lG2({type:xe,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]}),xe})(),ut=(()=>{class xe{constructor(te,Ce,fe,Q,pt){this._overlay=te,this._dir=pt,this._hasBackdrop=!1,this._lockPosition=!1,this._growAfterOpen=!1,this._flexibleDimensions=!1,this._push=!1,this._backdropSubscription=h.w0.EMPTY,this._attachSubscription=h.w0.EMPTY,this._detachSubscription=h.w0.EMPTY,this._positionSubscription=h.w0.EMPTY,this.viewportMargin=0,this.open=!1,this.disableClose=!1,this.backdropClick=new f.vpe,this.positionChange=new f.vpe,this.attach=new f.vpe,this.detach=new f.vpe,this.overlayKeydown=new f.vpe,this.overlayOutsideClick=new f.vpe,this._templatePortal=new d.UE(Ce,fe),this._scrollStrategyFactory=Q,this.scrollStrategy=this._scrollStrategyFactory()}get offsetX(){return this._offsetX}set offsetX(te){this._offsetX=te,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(te){this._offsetY=te,this._position&&this._updatePositionStrategy(this._position)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(te){this._hasBackdrop=(0,M.Ig)(te)}get lockPosition(){return this._lockPosition}set lockPosition(te){this._lockPosition=(0,M.Ig)(te)}get flexibleDimensions(){return this._flexibleDimensions}set flexibleDimensions(te){this._flexibleDimensions=(0,M.Ig)(te)}get growAfterOpen(){return this._growAfterOpen}set growAfterOpen(te){this._growAfterOpen=(0,M.Ig)(te)}get push(){return this._push}set push(te){this._push=(0,M.Ig)(te)}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(te){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),te.origin&&this.open&&this._position.apply()),te.open&&(this.open?this._attachOverlay():this._detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=Me);const te=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=te.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=te.detachments().subscribe(()=>this.detach.emit()),te.keydownEvents().subscribe(Ce=>{this.overlayKeydown.next(Ce),Ce.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(Ce)&&(Ce.preventDefault(),this._detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(Ce=>{this.overlayOutsideClick.next(Ce)})}_buildConfig(){const te=this._position=this.positionStrategy||this._createPositionStrategy(),Ce=new _e({direction:this._dir,positionStrategy:te,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop});return(this.width||0===this.width)&&(Ce.width=this.width),(this.height||0===this.height)&&(Ce.height=this.height),(this.minWidth||0===this.minWidth)&&(Ce.minWidth=this.minWidth),(this.minHeight||0===this.minHeight)&&(Ce.minHeight=this.minHeight),this.backdropClass&&(Ce.backdropClass=this.backdropClass),this.panelClass&&(Ce.panelClass=this.panelClass),Ce}_updatePositionStrategy(te){const Ce=this.positions.map(fe=>({originX:fe.originX,originY:fe.originY,overlayX:fe.overlayX,overlayY:fe.overlayY,offsetX:fe.offsetX||this.offsetX,offsetY:fe.offsetY||this.offsetY,panelClass:fe.panelClass||void 0}));return te.setOrigin(this._getFlexibleConnectedPositionStrategyOrigin()).withPositions(Ce).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){const te=this._overlay.position().flexibleConnectedTo(this._getFlexibleConnectedPositionStrategyOrigin());return this._updatePositionStrategy(te),te}_getFlexibleConnectedPositionStrategyOrigin(){return this.origin instanceof Ie?this.origin.elementRef:this.origin}_attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(te=>{this.backdropClick.emit(te)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(function S(xe,W=!1){return(0,w.e)((te,Ce)=>{let fe=0;te.subscribe((0,D.x)(Ce,Q=>{const pt=xe(Q,fe++);(pt||W)&&Ce.next(Q),!pt&&Ce.complete()}))})}(()=>this.positionChange.observers.length>0)).subscribe(te=>{this.positionChange.emit(te),0===this.positionChange.observers.length&&this._positionSubscription.unsubscribe()}))}_detachOverlay(){this._overlayRef&&this._overlayRef.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe()}}return xe.\u0275fac=function(te){return new(te||xe)(f.Y36(Ve),f.Y36(f.Rgc),f.Y36(f.s_b),f.Y36(J),f.Y36(C.Is,8))},xe.\u0275dir=f.lG2({type:xe,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:["cdkConnectedOverlayOrigin","origin"],positions:["cdkConnectedOverlayPositions","positions"],positionStrategy:["cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:["cdkConnectedOverlayOffsetX","offsetX"],offsetY:["cdkConnectedOverlayOffsetY","offsetY"],width:["cdkConnectedOverlayWidth","width"],height:["cdkConnectedOverlayHeight","height"],minWidth:["cdkConnectedOverlayMinWidth","minWidth"],minHeight:["cdkConnectedOverlayMinHeight","minHeight"],backdropClass:["cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:["cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:["cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:["cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:["cdkConnectedOverlayOpen","open"],disableClose:["cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:["cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:["cdkConnectedOverlayHasBackdrop","hasBackdrop"],lockPosition:["cdkConnectedOverlayLockPosition","lockPosition"],flexibleDimensions:["cdkConnectedOverlayFlexibleDimensions","flexibleDimensions"],growAfterOpen:["cdkConnectedOverlayGrowAfterOpen","growAfterOpen"],push:["cdkConnectedOverlayPush","push"]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[f.TTD]}),xe})();const we={provide:J,deps:[Ve],useFactory:function Oe(xe){return()=>xe.scrollStrategies.reposition()}};let ce=(()=>{class xe{}return xe.\u0275fac=function(te){return new(te||xe)},xe.\u0275mod=f.oAB({type:xe}),xe.\u0275inj=f.cJS({providers:[Ve,we],imports:[[C.vT,d.eL,t.Cl],t.Cl]}),xe})()},925:(Be,K,p)=>{"use strict";p.d(K,{Mq:()=>k,Oy:()=>ue,_i:()=>E,ht:()=>ae,i$:()=>w,kV:()=>Y,qK:()=>R,sA:()=>ee,t4:()=>M});var t=p(5e3),e=p(9808);let f;try{f="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(ne){f=!1}let C,M=(()=>{class ne{constructor(ge){this._platformId=ge,this.isBrowser=this._platformId?(0,e.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&&!f)&&"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 ne.\u0275fac=function(ge){return new(ge||ne)(t.LFG(t.Lbi))},ne.\u0275prov=t.Yz7({token:ne,factory:ne.\u0275fac,providedIn:"root"}),ne})();const d=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function R(){if(C)return C;if("object"!=typeof document||!document)return C=new Set(d),C;let ne=document.createElement("input");return C=new Set(d.filter(re=>(ne.setAttribute("type",re),ne.type===re))),C}let h,D,S,B;function w(ne){return function L(){if(null==h&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>h=!0}))}finally{h=h||!1}return h}()?ne:!!ne.capture}function k(){if(null==S){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return S=!1,S;if("scrollBehavior"in document.documentElement.style)S=!0;else{const ne=Element.prototype.scrollTo;S=!!ne&&!/\{\s*\[native code\]\s*\}/.test(ne.toString())}}return S}function E(){if("object"!=typeof document||!document)return 0;if(null==D){const ne=document.createElement("div"),re=ne.style;ne.dir="rtl",re.width="1px",re.overflow="auto",re.visibility="hidden",re.pointerEvents="none",re.position="absolute";const ge=document.createElement("div"),q=ge.style;q.width="2px",q.height="1px",ne.appendChild(ge),document.body.appendChild(ne),D=0,0===ne.scrollLeft&&(ne.scrollLeft=1,D=0===ne.scrollLeft?1:2),ne.remove()}return D}function Y(ne){if(function Z(){if(null==B){const ne="undefined"!=typeof document?document.head:null;B=!(!ne||!ne.createShadowRoot&&!ne.attachShadow)}return B}()){const re=ne.getRootNode?ne.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&re instanceof ShadowRoot)return re}return null}function ae(){let ne="undefined"!=typeof document&&document?document.activeElement:null;for(;ne&&ne.shadowRoot;){const re=ne.shadowRoot.activeElement;if(re===ne)break;ne=re}return ne}function ee(ne){return ne.composedPath?ne.composedPath()[0]:ne.target}function ue(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}},7429:(Be,K,p)=>{"use strict";p.d(K,{C5:()=>L,Pl:()=>ae,UE:()=>w,eL:()=>ue,en:()=>S,ig:()=>Z,u0:()=>E});var t=p(5e3),e=p(9808);class h{attach(ge){return this._attachedHost=ge,ge.attach(this)}detach(){let ge=this._attachedHost;null!=ge&&(this._attachedHost=null,ge.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(ge){this._attachedHost=ge}}class L extends h{constructor(ge,q,_e,x){super(),this.component=ge,this.viewContainerRef=q,this.injector=_e,this.componentFactoryResolver=x}}class w extends h{constructor(ge,q,_e){super(),this.templateRef=ge,this.viewContainerRef=q,this.context=_e}get origin(){return this.templateRef.elementRef}attach(ge,q=this.context){return this.context=q,super.attach(ge)}detach(){return this.context=void 0,super.detach()}}class D extends h{constructor(ge){super(),this.element=ge instanceof t.SBq?ge.nativeElement:ge}}class S{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(ge){return ge instanceof L?(this._attachedPortal=ge,this.attachComponentPortal(ge)):ge instanceof w?(this._attachedPortal=ge,this.attachTemplatePortal(ge)):this.attachDomPortal&&ge instanceof D?(this._attachedPortal=ge,this.attachDomPortal(ge)):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(ge){this._disposeFn=ge}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}class E extends S{constructor(ge,q,_e,x,i){super(),this.outletElement=ge,this._componentFactoryResolver=q,this._appRef=_e,this._defaultInjector=x,this.attachDomPortal=r=>{const u=r.element,c=this._document.createComment("dom-portal");u.parentNode.insertBefore(c,u),this.outletElement.appendChild(u),this._attachedPortal=r,super.setDisposeFn(()=>{c.parentNode&&c.parentNode.replaceChild(u,c)})},this._document=i}attachComponentPortal(ge){const _e=(ge.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(ge.component);let x;return ge.viewContainerRef?(x=ge.viewContainerRef.createComponent(_e,ge.viewContainerRef.length,ge.injector||ge.viewContainerRef.injector),this.setDisposeFn(()=>x.destroy())):(x=_e.create(ge.injector||this._defaultInjector||t.zs3.NULL),this._appRef.attachView(x.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(x.hostView),x.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(x)),this._attachedPortal=ge,x}attachTemplatePortal(ge){let q=ge.viewContainerRef,_e=q.createEmbeddedView(ge.templateRef,ge.context);return _e.rootNodes.forEach(x=>this.outletElement.appendChild(x)),_e.detectChanges(),this.setDisposeFn(()=>{let x=q.indexOf(_e);-1!==x&&q.remove(x)}),this._attachedPortal=ge,_e}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(ge){return ge.hostView.rootNodes[0]}}let Z=(()=>{class re extends w{constructor(q,_e){super(q,_e)}}return re.\u0275fac=function(q){return new(q||re)(t.Y36(t.Rgc),t.Y36(t.s_b))},re.\u0275dir=t.lG2({type:re,selectors:[["","cdkPortal",""]],exportAs:["cdkPortal"],features:[t.qOj]}),re})(),ae=(()=>{class re extends S{constructor(q,_e,x){super(),this._componentFactoryResolver=q,this._viewContainerRef=_e,this._isInitialized=!1,this.attached=new t.vpe,this.attachDomPortal=i=>{const r=i.element,u=this._document.createComment("dom-portal");i.setAttachedHost(this),r.parentNode.insertBefore(u,r),this._getRootNode().appendChild(r),this._attachedPortal=i,super.setDisposeFn(()=>{u.parentNode&&u.parentNode.replaceChild(r,u)})},this._document=x}get portal(){return this._attachedPortal}set portal(q){this.hasAttached()&&!q&&!this._isInitialized||(this.hasAttached()&&super.detach(),q&&super.attach(q),this._attachedPortal=q||null)}get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedPortal=null,this._attachedRef=null}attachComponentPortal(q){q.setAttachedHost(this);const _e=null!=q.viewContainerRef?q.viewContainerRef:this._viewContainerRef,i=(q.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(q.component),r=_e.createComponent(i,_e.length,q.injector||_e.injector);return _e!==this._viewContainerRef&&this._getRootNode().appendChild(r.hostView.rootNodes[0]),super.setDisposeFn(()=>r.destroy()),this._attachedPortal=q,this._attachedRef=r,this.attached.emit(r),r}attachTemplatePortal(q){q.setAttachedHost(this);const _e=this._viewContainerRef.createEmbeddedView(q.templateRef,q.context);return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=q,this._attachedRef=_e,this.attached.emit(_e),_e}_getRootNode(){const q=this._viewContainerRef.element.nativeElement;return q.nodeType===q.ELEMENT_NODE?q:q.parentNode}}return re.\u0275fac=function(q){return new(q||re)(t.Y36(t._Vd),t.Y36(t.s_b),t.Y36(e.K0))},re.\u0275dir=t.lG2({type:re,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:["cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[t.qOj]}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=t.oAB({type:re}),re.\u0275inj=t.cJS({}),re})()},5303:(Be,K,p)=>{"use strict";p.d(K,{PQ:()=>u,ZD:()=>V,mF:()=>r,Cl:()=>N,rL:()=>v});var t=p(3191),e=p(5e3),f=p(4408),M=p(727);const a={schedule(H){let X=requestAnimationFrame,he=cancelAnimationFrame;const{delegate:be}=a;be&&(X=be.requestAnimationFrame,he=be.cancelAnimationFrame);const Pe=X(Ee=>{he=void 0,H(Ee)});return new M.w0(()=>null==he?void 0:he(Pe))},requestAnimationFrame(...H){const{delegate:X}=a;return((null==X?void 0:X.requestAnimationFrame)||requestAnimationFrame)(...H)},cancelAnimationFrame(...H){const{delegate:X}=a;return((null==X?void 0:X.cancelAnimationFrame)||cancelAnimationFrame)(...H)},delegate:void 0};var d=p(7565);new class R extends d.v{flush(X){this._active=!0;const he=this._scheduled;this._scheduled=void 0;const{actions:be}=this;let Pe;X=X||be.shift();do{if(Pe=X.execute(X.state,X.delay))break}while((X=be[0])&&X.id===he&&be.shift());if(this._active=!1,Pe){for(;(X=be[0])&&X.id===he&&be.shift();)X.unsubscribe();throw Pe}}}(class C extends f.o{constructor(X,he){super(X,he),this.scheduler=X,this.work=he}requestAsyncId(X,he,be=0){return null!==be&&be>0?super.requestAsyncId(X,he,be):(X.actions.push(this),X._scheduled||(X._scheduled=a.requestAnimationFrame(()=>X.flush(void 0))))}recycleAsyncId(X,he,be=0){var Pe;if(null!=be?be>0:this.delay>0)return super.recycleAsyncId(X,he,be);const{actions:Ee}=X;null!=he&&(null===(Pe=Ee[Ee.length-1])||void 0===Pe?void 0:Pe.id)!==he&&(a.cancelAnimationFrame(he),X._scheduled=void 0)}});var w=p(7579),D=p(9646),S=p(8306),k=p(4968),B=(p(3101),p(3601)),Z=p(9300),Y=p(2722),ae=p(9808),ee=p(925),ue=p(226);let r=(()=>{class H{constructor(he,be,Pe){this._ngZone=he,this._platform=be,this._scrolled=new w.x,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=Pe}register(he){this.scrollContainers.has(he)||this.scrollContainers.set(he,he.elementScrolled().subscribe(()=>this._scrolled.next(he)))}deregister(he){const be=this.scrollContainers.get(he);be&&(be.unsubscribe(),this.scrollContainers.delete(he))}scrolled(he=20){return this._platform.isBrowser?new S.y(be=>{this._globalSubscription||this._addGlobalListener();const Pe=he>0?this._scrolled.pipe((0,B.e)(he)).subscribe(be):this._scrolled.subscribe(be);return this._scrolledCount++,()=>{Pe.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):(0,D.of)()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((he,be)=>this.deregister(be)),this._scrolled.complete()}ancestorScrolled(he,be){const Pe=this.getAncestorScrollContainers(he);return this.scrolled(be).pipe((0,Z.h)(Ee=>!Ee||Pe.indexOf(Ee)>-1))}getAncestorScrollContainers(he){const be=[];return this.scrollContainers.forEach((Pe,Ee)=>{this._scrollableContainsElement(Ee,he)&&be.push(Ee)}),be}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(he,be){let Pe=(0,t.fI)(be),Ee=he.getElementRef().nativeElement;do{if(Pe==Ee)return!0}while(Pe=Pe.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>{const he=this._getWindow();return(0,k.R)(he.document,"scroll").subscribe(()=>this._scrolled.next())})}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return H.\u0275fac=function(he){return new(he||H)(e.LFG(e.R0b),e.LFG(ee.t4),e.LFG(ae.K0,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),u=(()=>{class H{constructor(he,be,Pe,Ee){this.elementRef=he,this.scrollDispatcher=be,this.ngZone=Pe,this.dir=Ee,this._destroyed=new w.x,this._elementScrolled=new S.y(j=>this.ngZone.runOutsideAngular(()=>(0,k.R)(this.elementRef.nativeElement,"scroll").pipe((0,Y.R)(this._destroyed)).subscribe(j)))}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(he){const be=this.elementRef.nativeElement,Pe=this.dir&&"rtl"==this.dir.value;null==he.left&&(he.left=Pe?he.end:he.start),null==he.right&&(he.right=Pe?he.start:he.end),null!=he.bottom&&(he.top=be.scrollHeight-be.clientHeight-he.bottom),Pe&&0!=(0,ee._i)()?(null!=he.left&&(he.right=be.scrollWidth-be.clientWidth-he.left),2==(0,ee._i)()?he.left=he.right:1==(0,ee._i)()&&(he.left=he.right?-he.right:he.right)):null!=he.right&&(he.left=be.scrollWidth-be.clientWidth-he.right),this._applyScrollToOptions(he)}_applyScrollToOptions(he){const be=this.elementRef.nativeElement;(0,ee.Mq)()?be.scrollTo(he):(null!=he.top&&(be.scrollTop=he.top),null!=he.left&&(be.scrollLeft=he.left))}measureScrollOffset(he){const be="left",Ee=this.elementRef.nativeElement;if("top"==he)return Ee.scrollTop;if("bottom"==he)return Ee.scrollHeight-Ee.clientHeight-Ee.scrollTop;const j=this.dir&&"rtl"==this.dir.value;return"start"==he?he=j?"right":be:"end"==he&&(he=j?be:"right"),j&&2==(0,ee._i)()?he==be?Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft:Ee.scrollLeft:j&&1==(0,ee._i)()?he==be?Ee.scrollLeft+Ee.scrollWidth-Ee.clientWidth:-Ee.scrollLeft:he==be?Ee.scrollLeft:Ee.scrollWidth-Ee.clientWidth-Ee.scrollLeft}}return H.\u0275fac=function(he){return new(he||H)(e.Y36(e.SBq),e.Y36(r),e.Y36(e.R0b),e.Y36(ue.Is,8))},H.\u0275dir=e.lG2({type:H,selectors:[["","cdk-scrollable",""],["","cdkScrollable",""]]}),H})(),v=(()=>{class H{constructor(he,be,Pe){this._platform=he,this._change=new w.x,this._changeListener=Ee=>{this._change.next(Ee)},this._document=Pe,be.runOutsideAngular(()=>{if(he.isBrowser){const Ee=this._getWindow();Ee.addEventListener("resize",this._changeListener),Ee.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const he=this._getWindow();he.removeEventListener("resize",this._changeListener),he.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const he={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),he}getViewportRect(){const he=this.getViewportScrollPosition(),{width:be,height:Pe}=this.getViewportSize();return{top:he.top,left:he.left,bottom:he.top+Pe,right:he.left+be,height:Pe,width:be}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const he=this._document,be=this._getWindow(),Pe=he.documentElement,Ee=Pe.getBoundingClientRect();return{top:-Ee.top||he.body.scrollTop||be.scrollY||Pe.scrollTop||0,left:-Ee.left||he.body.scrollLeft||be.scrollX||Pe.scrollLeft||0}}change(he=20){return he>0?this._change.pipe((0,B.e)(he)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const he=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:he.innerWidth,height:he.innerHeight}:{width:0,height:0}}}return H.\u0275fac=function(he){return new(he||H)(e.LFG(ee.t4),e.LFG(e.R0b),e.LFG(ae.K0,8))},H.\u0275prov=e.Yz7({token:H,factory:H.\u0275fac,providedIn:"root"}),H})(),V=(()=>{class H{}return H.\u0275fac=function(he){return new(he||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({}),H})(),N=(()=>{class H{}return H.\u0275fac=function(he){return new(he||H)},H.\u0275mod=e.oAB({type:H}),H.\u0275inj=e.cJS({imports:[[ue.vT,V],ue.vT,V]}),H})()},1555:(Be,K,p)=>{"use strict";p.d(K,{B8:()=>ue,KL:()=>k,U5:()=>ge,be:()=>ee,gx:()=>ae,po:()=>re,st:()=>ne,u6:()=>E});var t=p(5664),e=p(3191),f=p(1159),M=p(9808),a=p(5e3),C=p(925),d=p(7579),R=p(9646),h=p(8675),L=p(2722),w=p(226);function D(q,_e){1&q&&a.Hsn(0)}const S=["*"];let k=(()=>{class q{constructor(x){this._elementRef=x}focus(){this._elementRef.nativeElement.focus()}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(a.SBq))},q.\u0275dir=a.lG2({type:q,selectors:[["","cdkStepHeader",""]],hostAttrs:["role","tab"]}),q})(),E=(()=>{class q{constructor(x){this.template=x}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(a.Rgc))},q.\u0275dir=a.lG2({type:q,selectors:[["","cdkStepLabel",""]]}),q})(),B=0;const ae=new a.OlP("STEPPER_GLOBAL_OPTIONS");let ee=(()=>{class q{constructor(x,i){this._stepper=x,this.interacted=!1,this.interactedStream=new a.vpe,this._editable=!0,this._optional=!1,this._completedOverride=null,this._customError=null,this._stepperOptions=i||{},this._displayDefaultIndicatorType=!1!==this._stepperOptions.displayDefaultIndicatorType}get editable(){return this._editable}set editable(x){this._editable=(0,e.Ig)(x)}get optional(){return this._optional}set optional(x){this._optional=(0,e.Ig)(x)}get completed(){return null==this._completedOverride?this._getDefaultCompleted():this._completedOverride}set completed(x){this._completedOverride=(0,e.Ig)(x)}_getDefaultCompleted(){return this.stepControl?this.stepControl.valid&&this.interacted:this.interacted}get hasError(){return null==this._customError?this._getDefaultError():this._customError}set hasError(x){this._customError=(0,e.Ig)(x)}_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))}_showError(){var x;return null!==(x=this._stepperOptions.showError)&&void 0!==x?x:null!=this._customError}}return q.\u0275fac=function(x){return new(x||q)(a.Y36((0,a.Gpc)(()=>ue)),a.Y36(ae,8))},q.\u0275cmp=a.Xpm({type:q,selectors:[["cdk-step"]],contentQueries:function(x,i,r){if(1&x&&a.Suo(r,E,5),2&x){let u;a.iGM(u=a.CRH())&&(i.stepLabel=u.first)}},viewQuery:function(x,i){if(1&x&&a.Gf(a.Rgc,7),2&x){let r;a.iGM(r=a.CRH())&&(i.content=r.first)}},inputs:{stepControl:"stepControl",label:"label",errorMessage:"errorMessage",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],state:"state",editable:"editable",optional:"optional",completed:"completed",hasError:"hasError"},outputs:{interactedStream:"interacted"},exportAs:["cdkStep"],features:[a.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(x,i){1&x&&(a.F$t(),a.YNc(0,D,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),q})(),ue=(()=>{class q{constructor(x,i,r,u){this._dir=x,this._changeDetectorRef=i,this._elementRef=r,this._destroyed=new d.x,this.steps=new a.n_E,this._sortedHeaders=new a.n_E,this._linear=!1,this._selectedIndex=0,this.selectionChange=new a.vpe,this._orientation="horizontal",this._groupId=B++}get linear(){return this._linear}set linear(x){this._linear=(0,e.Ig)(x)}get selectedIndex(){return this._selectedIndex}set selectedIndex(x){var i;const r=(0,e.su)(x);this.steps&&this._steps?(this._isValidIndex(r),null===(i=this.selected)||void 0===i||i._markAsInteracted(),this._selectedIndex!==r&&!this._anyControlsInvalidOrPending(r)&&(r>=this._selectedIndex||this.steps.toArray()[r].editable)&&this._updateSelectedItemIndex(r)):this._selectedIndex=r}get selected(){return this.steps?this.steps.toArray()[this.selectedIndex]:void 0}set selected(x){this.selectedIndex=x&&this.steps?this.steps.toArray().indexOf(x):-1}get orientation(){return this._orientation}set orientation(x){this._orientation=x,this._keyManager&&this._keyManager.withVerticalOrientation("vertical"===x)}ngAfterContentInit(){this._steps.changes.pipe((0,h.O)(this._steps),(0,L.R)(this._destroyed)).subscribe(x=>{this.steps.reset(x.filter(i=>i._stepper===this)),this.steps.notifyOnChanges()})}ngAfterViewInit(){this._stepHeader.changes.pipe((0,h.O)(this._stepHeader),(0,L.R)(this._destroyed)).subscribe(x=>{this._sortedHeaders.reset(x.toArray().sort((i,r)=>i._elementRef.nativeElement.compareDocumentPosition(r._elementRef.nativeElement)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)),this._sortedHeaders.notifyOnChanges()}),this._keyManager=new t.Em(this._sortedHeaders).withWrap().withHomeAndEnd().withVerticalOrientation("vertical"===this._orientation),(this._dir?this._dir.change:(0,R.of)()).pipe((0,h.O)(this._layoutDirection()),(0,L.R)(this._destroyed)).subscribe(x=>this._keyManager.withHorizontalOrientation(x)),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._sortedHeaders.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(x=>x.reset()),this._stateChanged()}_getStepLabelId(x){return`cdk-step-label-${this._groupId}-${x}`}_getStepContentId(x){return`cdk-step-content-${this._groupId}-${x}`}_stateChanged(){this._changeDetectorRef.markForCheck()}_getAnimationDirection(x){const i=x-this._selectedIndex;return i<0?"rtl"===this._layoutDirection()?"next":"previous":i>0?"rtl"===this._layoutDirection()?"previous":"next":"current"}_getIndicatorType(x,i="number"){const r=this.steps.toArray()[x],u=this._isCurrentStep(x);return r._displayDefaultIndicatorType?this._getDefaultIndicatorLogic(r,u):this._getGuidelineLogic(r,u,i)}_getDefaultIndicatorLogic(x,i){return x._showError()&&x.hasError&&!i?"error":!x.completed||i?"number":x.editable?"edit":"done"}_getGuidelineLogic(x,i,r="number"){return x._showError()&&x.hasError&&!i?"error":x.completed&&!i?"done":x.completed&&i?r:x.editable&&i?"edit":r}_isCurrentStep(x){return this._selectedIndex===x}_getFocusIndex(){return this._keyManager?this._keyManager.activeItemIndex:this._selectedIndex}_updateSelectedItemIndex(x){const i=this.steps.toArray();this.selectionChange.emit({selectedIndex:x,previouslySelectedIndex:this._selectedIndex,selectedStep:i[x],previouslySelectedStep:i[this._selectedIndex]}),this._containsFocus()?this._keyManager.setActiveItem(x):this._keyManager.updateActiveItem(x),this._selectedIndex=x,this._stateChanged()}_onKeydown(x){const i=(0,f.Vb)(x),r=x.keyCode,u=this._keyManager;null==u.activeItemIndex||i||r!==f.L_&&r!==f.K5?u.onKeydown(x):(this.selectedIndex=u.activeItemIndex,x.preventDefault())}_anyControlsInvalidOrPending(x){return!!(this._linear&&x>=0)&&this.steps.toArray().slice(0,x).some(i=>{const r=i.stepControl;return(r?r.invalid||r.pending||!i.interacted:!i.completed)&&!i.optional&&!i._completedOverride})}_layoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_containsFocus(){const x=this._elementRef.nativeElement,i=(0,C.ht)();return x===i||x.contains(i)}_isValidIndex(x){return x>-1&&(!this.steps||x{class q{constructor(x){this._stepper=x,this.type="submit"}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(ue))},q.\u0275dir=a.lG2({type:q,selectors:[["button","cdkStepperNext",""]],hostVars:1,hostBindings:function(x,i){1&x&&a.NdJ("click",function(){return i._stepper.next()}),2&x&&a.Ikx("type",i.type)},inputs:{type:"type"}}),q})(),re=(()=>{class q{constructor(x){this._stepper=x,this.type="button"}}return q.\u0275fac=function(x){return new(x||q)(a.Y36(ue))},q.\u0275dir=a.lG2({type:q,selectors:[["button","cdkStepperPrevious",""]],hostVars:1,hostBindings:function(x,i){1&x&&a.NdJ("click",function(){return i._stepper.previous()}),2&x&&a.Ikx("type",i.type)},inputs:{type:"type"}}),q})(),ge=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275mod=a.oAB({type:q}),q.\u0275inj=a.cJS({imports:[[w.vT]]}),q})()},8258:(Be,K,p)=>{"use strict";p.d(K,{HI:()=>E,Hs:()=>q,Ud:()=>c,VY:()=>k,XJ:()=>u,Xx:()=>i,_0:()=>ge,cu:()=>B,nZ:()=>T,rO:()=>Y});var t=p(449),e=p(5191),f=p(7579),M=p(1135),a=p(9646),C=p(5698),d=p(9300),R=p(2722),h=p(5e3),L=p(3191),w=p(226);class k extends class D{constructor(){this.expansionModel=new t.Ov(!0)}toggle(y){this.expansionModel.toggle(this._trackByValue(y))}expand(y){this.expansionModel.select(this._trackByValue(y))}collapse(y){this.expansionModel.deselect(this._trackByValue(y))}isExpanded(y){return this.expansionModel.isSelected(this._trackByValue(y))}toggleDescendants(y){this.expansionModel.isSelected(this._trackByValue(y))?this.collapseDescendants(y):this.expandDescendants(y)}collapseAll(){this.expansionModel.clear()}expandDescendants(y){let n=[y];n.push(...this.getDescendants(y)),this.expansionModel.select(...n.map(_=>this._trackByValue(_)))}collapseDescendants(y){let n=[y];n.push(...this.getDescendants(y)),this.expansionModel.deselect(...n.map(_=>this._trackByValue(_)))}_trackByValue(y){return this.trackBy?this.trackBy(y):y}}{constructor(y,n){super(),this.getChildren=y,this.options=n,this.options&&(this.trackBy=this.options.trackBy)}expandAll(){this.expansionModel.clear();const y=this.dataNodes.reduce((n,_)=>[...n,...this.getDescendants(_),_],[]);this.expansionModel.select(...y.map(n=>this._trackByValue(n)))}getDescendants(y){const n=[];return this._getDescendants(n,y),n.splice(1)}_getDescendants(y,n){y.push(n);const _=this.getChildren(n);Array.isArray(_)?_.forEach(V=>this._getDescendants(y,V)):(0,e.b)(_)&&_.pipe((0,C.q)(1),(0,d.h)(Boolean)).subscribe(V=>{for(const N of V)this._getDescendants(y,N)})}}const E=new h.OlP("CDK_TREE_NODE_OUTLET_NODE");let B=(()=>{class I{constructor(n,_){this.viewContainer=n,this._node=_}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.s_b),h.Y36(E,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeOutlet",""]]}),I})();class Z{constructor(y){this.$implicit=y}}let Y=(()=>{class I{constructor(n){this.template=n}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.Rgc))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeDef",""]],inputs:{when:["cdkTreeNodeDefWhen","when"]}}),I})(),ge=(()=>{class I{constructor(n,_){this._differs=n,this._changeDetectorRef=_,this._onDestroy=new f.x,this._levels=new Map,this.viewChange=new M.X({start:0,end:Number.MAX_VALUE})}get dataSource(){return this._dataSource}set dataSource(n){this._dataSource!==n&&this._switchDataSource(n)}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 n=this._nodeDefs.filter(_=>!_.when);this._defaultNodeDef=n[0],this.dataSource&&this._nodeDefs&&!this._dataSubscription&&this._observeRenderChanges()}_switchDataSource(n){this._dataSource&&"function"==typeof this._dataSource.disconnect&&this.dataSource.disconnect(this),this._dataSubscription&&(this._dataSubscription.unsubscribe(),this._dataSubscription=null),n||this._nodeOutlet.viewContainer.clear(),this._dataSource=n,this._nodeDefs&&this._observeRenderChanges()}_observeRenderChanges(){let n;(0,t.Z9)(this._dataSource)?n=this._dataSource.connect(this):(0,e.b)(this._dataSource)?n=this._dataSource:Array.isArray(this._dataSource)&&(n=(0,a.of)(this._dataSource)),n&&(this._dataSubscription=n.pipe((0,R.R)(this._onDestroy)).subscribe(_=>this.renderNodeChanges(_)))}renderNodeChanges(n,_=this._dataDiffer,V=this._nodeOutlet.viewContainer,N){const H=_.diff(n);!H||(H.forEachOperation((X,he,be)=>{if(null==X.previousIndex)this.insertNode(n[be],be,V,N);else if(null==be)V.remove(he),this._levels.delete(X.item);else{const Pe=V.get(he);V.move(Pe,be)}}),this._changeDetectorRef.detectChanges())}_getNodeDef(n,_){return 1===this._nodeDefs.length?this._nodeDefs.first:this._nodeDefs.find(N=>N.when&&N.when(_,n))||this._defaultNodeDef}insertNode(n,_,V,N){const H=this._getNodeDef(n,_),X=new Z(n);X.level=this.treeControl.getLevel?this.treeControl.getLevel(n):void 0!==N&&this._levels.has(N)?this._levels.get(N)+1:0,this._levels.set(n,X.level),(V||this._nodeOutlet.viewContainer).createEmbeddedView(H.template,X,_),q.mostRecentTreeNode&&(q.mostRecentTreeNode.data=n)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.ZZ4),h.Y36(h.sBO))},I.\u0275cmp=h.Xpm({type:I,selectors:[["cdk-tree"]],contentQueries:function(n,_,V){if(1&n&&h.Suo(V,Y,5),2&n){let N;h.iGM(N=h.CRH())&&(_._nodeDefs=N)}},viewQuery:function(n,_){if(1&n&&h.Gf(B,7),2&n){let V;h.iGM(V=h.CRH())&&(_._nodeOutlet=V.first)}},hostAttrs:["role","tree",1,"cdk-tree"],inputs:{dataSource:"dataSource",treeControl:"treeControl",trackBy:"trackBy"},exportAs:["cdkTree"],decls:1,vars:0,consts:[["cdkTreeNodeOutlet",""]],template:function(n,_){1&n&&h.GkF(0,0)},directives:[B],encapsulation:2}),I})(),q=(()=>{class I{constructor(n,_){this._elementRef=n,this._tree=_,this._destroyed=new f.x,this._dataChanges=new f.x,I.mostRecentTreeNode=this,this.role="treeitem"}get role(){return"treeitem"}set role(n){this._elementRef.nativeElement.setAttribute("role",n)}get data(){return this._data}set data(n){n!==this._data&&(this._data=n,this._setRoleFromData(),this._dataChanges.next())}get isExpanded(){return this._tree.treeControl.isExpanded(this._data)}get level(){return this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._data):this._parentNodeAriaLevel}ngOnInit(){this._parentNodeAriaLevel=function _e(I){let y=I.parentElement;for(;y&&!x(y);)y=y.parentElement;return y?y.classList.contains("cdk-nested-tree-node")?(0,L.su)(y.getAttribute("aria-level")):0:-1}(this._elementRef.nativeElement),this._elementRef.nativeElement.setAttribute("aria-level",`${this.level+1}`)}ngOnDestroy(){I.mostRecentTreeNode===this&&(I.mostRecentTreeNode=null),this._dataChanges.complete(),this._destroyed.next(),this._destroyed.complete()}focus(){this._elementRef.nativeElement.focus()}_setRoleFromData(){this.role="treeitem"}}return I.mostRecentTreeNode=null,I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(ge))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-tree-node"]],hostAttrs:[1,"cdk-tree-node"],hostVars:1,hostBindings:function(n,_){2&n&&h.uIk("aria-expanded",_.isExpanded)},inputs:{role:"role"},exportAs:["cdkTreeNode"]}),I})();function x(I){const y=I.classList;return!(!(null==y?void 0:y.contains("cdk-nested-tree-node"))&&!(null==y?void 0:y.contains("cdk-tree")))}let i=(()=>{class I extends q{constructor(n,_,V){super(n,_),this._differs=V}ngAfterContentInit(){this._dataDiffer=this._differs.find([]).create(this._tree.trackBy);const n=this._tree.treeControl.getChildren(this.data);Array.isArray(n)?this.updateChildrenNodes(n):(0,e.b)(n)&&n.pipe((0,R.R)(this._destroyed)).subscribe(_=>this.updateChildrenNodes(_)),this.nodeOutlet.changes.pipe((0,R.R)(this._destroyed)).subscribe(()=>this.updateChildrenNodes())}ngOnInit(){super.ngOnInit()}ngOnDestroy(){this._clear(),super.ngOnDestroy()}updateChildrenNodes(n){const _=this._getNodeOutlet();n&&(this._children=n),_&&this._children?this._tree.renderNodeChanges(this._children,this._dataDiffer,_.viewContainer,this._data):this._dataDiffer.diff([])}_clear(){const n=this._getNodeOutlet();n&&(n.viewContainer.clear(),this._dataDiffer.diff([]))}_getNodeOutlet(){const n=this.nodeOutlet;return n&&n.find(_=>!_._node||_._node===this)}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(h.SBq),h.Y36(ge),h.Y36(h.ZZ4))},I.\u0275dir=h.lG2({type:I,selectors:[["cdk-nested-tree-node"]],contentQueries:function(n,_,V){if(1&n&&h.Suo(V,B,5),2&n){let N;h.iGM(N=h.CRH())&&(_.nodeOutlet=N)}},hostAttrs:[1,"cdk-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["cdkNestedTreeNode"],features:[h._Bn([{provide:q,useExisting:I},{provide:E,useExisting:I}]),h.qOj]}),I})();const r=/([A-Za-z%]+)$/;let u=(()=>{class I{constructor(n,_,V,N){this._treeNode=n,this._tree=_,this._element=V,this._dir=N,this._destroyed=new f.x,this.indentUnits="px",this._indent=40,this._setPadding(),N&&N.change.pipe((0,R.R)(this._destroyed)).subscribe(()=>this._setPadding(!0)),n._dataChanges.subscribe(()=>this._setPadding())}get level(){return this._level}set level(n){this._setLevelInput(n)}get indent(){return this._indent}set indent(n){this._setIndentInput(n)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_paddingIndent(){const n=this._treeNode.data&&this._tree.treeControl.getLevel?this._tree.treeControl.getLevel(this._treeNode.data):null,_=null==this._level?n:this._level;return"number"==typeof _?`${_*this._indent}${this.indentUnits}`:null}_setPadding(n=!1){const _=this._paddingIndent();if(_!==this._currentPadding||n){const V=this._element.nativeElement,N=this._dir&&"rtl"===this._dir.value?"paddingRight":"paddingLeft",H="paddingLeft"===N?"paddingRight":"paddingLeft";V.style[N]=_||"",V.style[H]="",this._currentPadding=_}}_setLevelInput(n){this._level=(0,L.su)(n,null),this._setPadding()}_setIndentInput(n){let _=n,V="px";if("string"==typeof n){const N=n.split(r);_=N[0],V=N[1]||V}this.indentUnits=V,this._indent=(0,L.su)(_),this._setPadding()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(q),h.Y36(ge),h.Y36(h.SBq),h.Y36(w.Is,8))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodePadding",""]],inputs:{level:["cdkTreeNodePadding","level"],indent:["cdkTreeNodePaddingIndent","indent"]}}),I})(),c=(()=>{class I{constructor(n,_){this._tree=n,this._treeNode=_,this._recursive=!1}get recursive(){return this._recursive}set recursive(n){this._recursive=(0,L.Ig)(n)}_toggle(n){this.recursive?this._tree.treeControl.toggleDescendants(this._treeNode.data):this._tree.treeControl.toggle(this._treeNode.data),n.stopPropagation()}}return I.\u0275fac=function(n){return new(n||I)(h.Y36(ge),h.Y36(q))},I.\u0275dir=h.lG2({type:I,selectors:[["","cdkTreeNodeToggle",""]],hostBindings:function(n,_){1&n&&h.NdJ("click",function(N){return _._toggle(N)})},inputs:{recursive:["cdkTreeNodeToggleRecursive","recursive"]}}),I})(),T=(()=>{class I{}return I.\u0275fac=function(n){return new(n||I)},I.\u0275mod=h.oAB({type:I}),I.\u0275inj=h.cJS({}),I})()},9808:(Be,K,p)=>{"use strict";p.d(K,{Do:()=>ue,ED:()=>In,EM:()=>Yr,HT:()=>a,JF:()=>Xn,JJ:()=>Wa,K0:()=>d,Mx:()=>Xi,NF:()=>or,Nd:()=>Vr,O5:()=>Rt,OU:()=>ya,Ov:()=>fa,PC:()=>Ti,PM:()=>aa,RF:()=>Ni,S$:()=>Z,Ts:()=>Pr,V_:()=>L,Ye:()=>ne,b0:()=>ee,bD:()=>ra,ez:()=>Dr,gd:()=>na,i8:()=>zr,lw:()=>R,mk:()=>Wi,mr:()=>ae,n9:()=>mn,q:()=>f,rS:()=>ia,sg:()=>ii,tP:()=>Ki,uU:()=>Jr,w_:()=>C});var t=p(5e3);let e=null;function f(){return e}function a($e){e||(e=$e)}class C{}const d=new t.OlP("DocumentToken");let R=(()=>{class $e{historyGo(Je){throw new Error("Not implemented")}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function h(){return(0,t.LFG)(w)}()},providedIn:"platform"}),$e})();const L=new t.OlP("Location Initialized");let w=(()=>{class $e extends R{constructor(Je){super(),this._doc=Je,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return f().getBaseHref(this._doc)}onPopState(Je){const kt=f().getGlobalEventTarget(this._doc,"window");return kt.addEventListener("popstate",Je,!1),()=>kt.removeEventListener("popstate",Je)}onHashChange(Je){const kt=f().getGlobalEventTarget(this._doc,"window");return kt.addEventListener("hashchange",Je,!1),()=>kt.removeEventListener("hashchange",Je)}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(Je){this.location.pathname=Je}pushState(Je,kt,Xt){D()?this._history.pushState(Je,kt,Xt):this.location.hash=Xt}replaceState(Je,kt,Xt){D()?this._history.replaceState(Je,kt,Xt):this.location.hash=Xt}forward(){this._history.forward()}back(){this._history.back()}historyGo(Je=0){this._history.go(Je)}getState(){return this._history.state}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(d))},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function S(){return new w((0,t.LFG)(d))}()},providedIn:"platform"}),$e})();function D(){return!!window.history.pushState}function k($e,Et){if(0==$e.length)return Et;if(0==Et.length)return $e;let Je=0;return $e.endsWith("/")&&Je++,Et.startsWith("/")&&Je++,2==Je?$e+Et.substring(1):1==Je?$e+Et:$e+"/"+Et}function E($e){const Et=$e.match(/#|\?|$/),Je=Et&&Et.index||$e.length;return $e.slice(0,Je-("/"===$e[Je-1]?1:0))+$e.slice(Je)}function B($e){return $e&&"?"!==$e[0]?"?"+$e:$e}let Z=(()=>{class $e{historyGo(Je){throw new Error("Not implemented")}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function Y($e){const Et=(0,t.LFG)(d).location;return new ee((0,t.LFG)(R),Et&&Et.origin||"")}()},providedIn:"root"}),$e})();const ae=new t.OlP("appBaseHref");let ee=(()=>{class $e extends Z{constructor(Je,kt){if(super(),this._platformLocation=Je,this._removeListenerFns=[],null==kt&&(kt=this._platformLocation.getBaseHrefFromDOM()),null==kt)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=kt}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}prepareExternalUrl(Je){return k(this._baseHref,Je)}path(Je=!1){const kt=this._platformLocation.pathname+B(this._platformLocation.search),Xt=this._platformLocation.hash;return Xt&&Je?`${kt}${Xt}`:kt}pushState(Je,kt,Xt,Mi){const Pi=this.prepareExternalUrl(Xt+B(Mi));this._platformLocation.pushState(Je,kt,Pi)}replaceState(Je,kt,Xt,Mi){const Pi=this.prepareExternalUrl(Xt+B(Mi));this._platformLocation.replaceState(Je,kt,Pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Je=0){var kt,Xt;null===(Xt=(kt=this._platformLocation).historyGo)||void 0===Xt||Xt.call(kt,Je)}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(R),t.LFG(ae,8))},$e.\u0275prov=t.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),ue=(()=>{class $e extends Z{constructor(Je,kt){super(),this._platformLocation=Je,this._baseHref="",this._removeListenerFns=[],null!=kt&&(this._baseHref=kt)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(Je){this._removeListenerFns.push(this._platformLocation.onPopState(Je),this._platformLocation.onHashChange(Je))}getBaseHref(){return this._baseHref}path(Je=!1){let kt=this._platformLocation.hash;return null==kt&&(kt="#"),kt.length>0?kt.substring(1):kt}prepareExternalUrl(Je){const kt=k(this._baseHref,Je);return kt.length>0?"#"+kt:kt}pushState(Je,kt,Xt,Mi){let Pi=this.prepareExternalUrl(Xt+B(Mi));0==Pi.length&&(Pi=this._platformLocation.pathname),this._platformLocation.pushState(Je,kt,Pi)}replaceState(Je,kt,Xt,Mi){let Pi=this.prepareExternalUrl(Xt+B(Mi));0==Pi.length&&(Pi=this._platformLocation.pathname),this._platformLocation.replaceState(Je,kt,Pi)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(Je=0){var kt,Xt;null===(Xt=(kt=this._platformLocation).historyGo)||void 0===Xt||Xt.call(kt,Je)}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(R),t.LFG(ae,8))},$e.\u0275prov=t.Yz7({token:$e,factory:$e.\u0275fac}),$e})(),ne=(()=>{class $e{constructor(Je,kt){this._subject=new t.vpe,this._urlChangeListeners=[],this._platformStrategy=Je;const Xt=this._platformStrategy.getBaseHref();this._platformLocation=kt,this._baseHref=E(q(Xt)),this._platformStrategy.onPopState(Mi=>{this._subject.emit({url:this.path(!0),pop:!0,state:Mi.state,type:Mi.type})})}path(Je=!1){return this.normalize(this._platformStrategy.path(Je))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(Je,kt=""){return this.path()==this.normalize(Je+B(kt))}normalize(Je){return $e.stripTrailingSlash(function ge($e,Et){return $e&&Et.startsWith($e)?Et.substring($e.length):Et}(this._baseHref,q(Je)))}prepareExternalUrl(Je){return Je&&"/"!==Je[0]&&(Je="/"+Je),this._platformStrategy.prepareExternalUrl(Je)}go(Je,kt="",Xt=null){this._platformStrategy.pushState(Xt,"",Je,kt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+B(kt)),Xt)}replaceState(Je,kt="",Xt=null){this._platformStrategy.replaceState(Xt,"",Je,kt),this._notifyUrlChangeListeners(this.prepareExternalUrl(Je+B(kt)),Xt)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(Je=0){var kt,Xt;null===(Xt=(kt=this._platformStrategy).historyGo)||void 0===Xt||Xt.call(kt,Je)}onUrlChange(Je){this._urlChangeListeners.push(Je),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(kt=>{this._notifyUrlChangeListeners(kt.url,kt.state)}))}_notifyUrlChangeListeners(Je="",kt){this._urlChangeListeners.forEach(Xt=>Xt(Je,kt))}subscribe(Je,kt,Xt){return this._subject.subscribe({next:Je,error:kt,complete:Xt})}}return $e.normalizeQueryParams=B,$e.joinWithSlash=k,$e.stripTrailingSlash=E,$e.\u0275fac=function(Je){return new(Je||$e)(t.LFG(Z),t.LFG(R))},$e.\u0275prov=t.Yz7({token:$e,factory:function(){return function re(){return new ne((0,t.LFG)(Z),(0,t.LFG)(R))}()},providedIn:"root"}),$e})();function q($e){return $e.replace(/\/index.html$/,"")}var x=(()=>((x=x||{})[x.Decimal=0]="Decimal",x[x.Percent=1]="Percent",x[x.Currency=2]="Currency",x[x.Scientific=3]="Scientific",x))(),r=(()=>((r=r||{})[r.Format=0]="Format",r[r.Standalone=1]="Standalone",r))(),u=(()=>((u=u||{})[u.Narrow=0]="Narrow",u[u.Abbreviated=1]="Abbreviated",u[u.Wide=2]="Wide",u[u.Short=3]="Short",u))(),c=(()=>((c=c||{})[c.Short=0]="Short",c[c.Medium=1]="Medium",c[c.Long=2]="Long",c[c.Full=3]="Full",c))(),v=(()=>((v=v||{})[v.Decimal=0]="Decimal",v[v.Group=1]="Group",v[v.List=2]="List",v[v.PercentSign=3]="PercentSign",v[v.PlusSign=4]="PlusSign",v[v.MinusSign=5]="MinusSign",v[v.Exponential=6]="Exponential",v[v.SuperscriptingExponent=7]="SuperscriptingExponent",v[v.PerMille=8]="PerMille",v[v.Infinity=9]="Infinity",v[v.NaN=10]="NaN",v[v.TimeSeparator=11]="TimeSeparator",v[v.CurrencyDecimal=12]="CurrencyDecimal",v[v.CurrencyGroup=13]="CurrencyGroup",v))();function X($e,Et){return Te((0,t.cg1)($e)[t.wAp.DateFormat],Et)}function he($e,Et){return Te((0,t.cg1)($e)[t.wAp.TimeFormat],Et)}function be($e,Et){return Te((0,t.cg1)($e)[t.wAp.DateTimeFormat],Et)}function Pe($e,Et){const Je=(0,t.cg1)($e),kt=Je[t.wAp.NumberSymbols][Et];if(void 0===kt){if(Et===v.CurrencyDecimal)return Je[t.wAp.NumberSymbols][v.Decimal];if(Et===v.CurrencyGroup)return Je[t.wAp.NumberSymbols][v.Group]}return kt}function ut($e){if(!$e[t.wAp.ExtraData])throw new Error(`Missing extra locale data for the locale "${$e[t.wAp.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Te($e,Et){for(let Je=Et;Je>-1;Je--)if(void 0!==$e[Je])return $e[Je];throw new Error("Locale data API: locale data undefined")}function xe($e){const[Et,Je]=$e.split(":");return{hours:+Et,minutes:+Je}}const fe=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Q={},pt=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var tt=(()=>((tt=tt||{})[tt.Short=0]="Short",tt[tt.ShortGMT=1]="ShortGMT",tt[tt.Long=2]="Long",tt[tt.Extended=3]="Extended",tt))(),Dt=(()=>((Dt=Dt||{})[Dt.FullYear=0]="FullYear",Dt[Dt.Month=1]="Month",Dt[Dt.Date=2]="Date",Dt[Dt.Hours=3]="Hours",Dt[Dt.Minutes=4]="Minutes",Dt[Dt.Seconds=5]="Seconds",Dt[Dt.FractionalSeconds=6]="FractionalSeconds",Dt[Dt.Day=7]="Day",Dt))(),di=(()=>((di=di||{})[di.DayPeriods=0]="DayPeriods",di[di.Days=1]="Days",di[di.Months=2]="Months",di[di.Eras=3]="Eras",di))();function Yt($e,Et,Je,kt){let Xt=function Ge($e){if(lt($e))return $e;if("number"==typeof $e&&!isNaN($e))return new Date($e);if("string"==typeof $e){if($e=$e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test($e)){const[Xt,Mi=1,Pi=1]=$e.split("-").map(en=>+en);return Zt(Xt,Mi-1,Pi)}const Je=parseFloat($e);if(!isNaN($e-Je))return new Date(Je);let kt;if(kt=$e.match(fe))return function ot($e){const Et=new Date(0);let Je=0,kt=0;const Xt=$e[8]?Et.setUTCFullYear:Et.setFullYear,Mi=$e[8]?Et.setUTCHours:Et.setHours;$e[9]&&(Je=Number($e[9]+$e[10]),kt=Number($e[9]+$e[11])),Xt.call(Et,Number($e[1]),Number($e[2])-1,Number($e[3]));const Pi=Number($e[4]||0)-Je,en=Number($e[5]||0)-kt,nr=Number($e[6]||0),Bn=Math.floor(1e3*parseFloat("0."+($e[7]||0)));return Mi.call(Et,Pi,en,nr,Bn),Et}(kt)}const Et=new Date($e);if(!lt(Et))throw new Error(`Unable to convert "${$e}" into a date`);return Et}($e);Et=ui(Je,Et)||Et;let en,Pi=[];for(;Et;){if(en=pt.exec(Et),!en){Pi.push(Et);break}{Pi=Pi.concat(en.slice(1));const It=Pi.pop();if(!It)break;Et=It}}let nr=Xt.getTimezoneOffset();kt&&(nr=rt(kt,nr),Xt=function Ae($e,Et,Je){const kt=Je?-1:1,Xt=$e.getTimezoneOffset();return function et($e,Et){return($e=new Date($e.getTime())).setMinutes($e.getMinutes()+Et),$e}($e,kt*(rt(Et,Xt)-Xt))}(Xt,kt,!0));let Bn="";return Pi.forEach(It=>{const ci=function He($e){if(nt[$e])return nt[$e];let Et;switch($e){case"G":case"GG":case"GGG":Et=ti(di.Eras,u.Abbreviated);break;case"GGGG":Et=ti(di.Eras,u.Wide);break;case"GGGGG":Et=ti(di.Eras,u.Narrow);break;case"y":Et=it(Dt.FullYear,1,0,!1,!0);break;case"yy":Et=it(Dt.FullYear,2,0,!0,!0);break;case"yyy":Et=it(Dt.FullYear,3,0,!1,!0);break;case"yyyy":Et=it(Dt.FullYear,4,0,!1,!0);break;case"Y":Et=Ft(1);break;case"YY":Et=Ft(2,!0);break;case"YYY":Et=Ft(3);break;case"YYYY":Et=Ft(4);break;case"M":case"L":Et=it(Dt.Month,1,1);break;case"MM":case"LL":Et=it(Dt.Month,2,1);break;case"MMM":Et=ti(di.Months,u.Abbreviated);break;case"MMMM":Et=ti(di.Months,u.Wide);break;case"MMMMM":Et=ti(di.Months,u.Narrow);break;case"LLL":Et=ti(di.Months,u.Abbreviated,r.Standalone);break;case"LLLL":Et=ti(di.Months,u.Wide,r.Standalone);break;case"LLLLL":Et=ti(di.Months,u.Narrow,r.Standalone);break;case"w":Et=mt(1);break;case"ww":Et=mt(2);break;case"W":Et=mt(1,!0);break;case"d":Et=it(Dt.Date,1);break;case"dd":Et=it(Dt.Date,2);break;case"c":case"cc":Et=it(Dt.Day,1);break;case"ccc":Et=ti(di.Days,u.Abbreviated,r.Standalone);break;case"cccc":Et=ti(di.Days,u.Wide,r.Standalone);break;case"ccccc":Et=ti(di.Days,u.Narrow,r.Standalone);break;case"cccccc":Et=ti(di.Days,u.Short,r.Standalone);break;case"E":case"EE":case"EEE":Et=ti(di.Days,u.Abbreviated);break;case"EEEE":Et=ti(di.Days,u.Wide);break;case"EEEEE":Et=ti(di.Days,u.Narrow);break;case"EEEEEE":Et=ti(di.Days,u.Short);break;case"a":case"aa":case"aaa":Et=ti(di.DayPeriods,u.Abbreviated);break;case"aaaa":Et=ti(di.DayPeriods,u.Wide);break;case"aaaaa":Et=ti(di.DayPeriods,u.Narrow);break;case"b":case"bb":case"bbb":Et=ti(di.DayPeriods,u.Abbreviated,r.Standalone,!0);break;case"bbbb":Et=ti(di.DayPeriods,u.Wide,r.Standalone,!0);break;case"bbbbb":Et=ti(di.DayPeriods,u.Narrow,r.Standalone,!0);break;case"B":case"BB":case"BBB":Et=ti(di.DayPeriods,u.Abbreviated,r.Format,!0);break;case"BBBB":Et=ti(di.DayPeriods,u.Wide,r.Format,!0);break;case"BBBBB":Et=ti(di.DayPeriods,u.Narrow,r.Format,!0);break;case"h":Et=it(Dt.Hours,1,-12);break;case"hh":Et=it(Dt.Hours,2,-12);break;case"H":Et=it(Dt.Hours,1);break;case"HH":Et=it(Dt.Hours,2);break;case"m":Et=it(Dt.Minutes,1);break;case"mm":Et=it(Dt.Minutes,2);break;case"s":Et=it(Dt.Seconds,1);break;case"ss":Et=it(Dt.Seconds,2);break;case"S":Et=it(Dt.FractionalSeconds,1);break;case"SS":Et=it(Dt.FractionalSeconds,2);break;case"SSS":Et=it(Dt.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":Et=Re(tt.Short);break;case"ZZZZZ":Et=Re(tt.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":Et=Re(tt.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":Et=Re(tt.Long);break;default:return null}return nt[$e]=Et,Et}(It);Bn+=ci?ci(Xt,Je,nr):"''"===It?"'":It.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),Bn}function Zt($e,Et,Je){const kt=new Date(0);return kt.setFullYear($e,Et,Je),kt.setHours(0,0,0),kt}function ui($e,Et){const Je=function I($e){return(0,t.cg1)($e)[t.wAp.LocaleId]}($e);if(Q[Je]=Q[Je]||{},Q[Je][Et])return Q[Je][Et];let kt="";switch(Et){case"shortDate":kt=X($e,c.Short);break;case"mediumDate":kt=X($e,c.Medium);break;case"longDate":kt=X($e,c.Long);break;case"fullDate":kt=X($e,c.Full);break;case"shortTime":kt=he($e,c.Short);break;case"mediumTime":kt=he($e,c.Medium);break;case"longTime":kt=he($e,c.Long);break;case"fullTime":kt=he($e,c.Full);break;case"short":const Xt=ui($e,"shortTime"),Mi=ui($e,"shortDate");kt=Ot(be($e,c.Short),[Xt,Mi]);break;case"medium":const Pi=ui($e,"mediumTime"),en=ui($e,"mediumDate");kt=Ot(be($e,c.Medium),[Pi,en]);break;case"long":const nr=ui($e,"longTime"),Bn=ui($e,"longDate");kt=Ot(be($e,c.Long),[nr,Bn]);break;case"full":const It=ui($e,"fullTime"),ci=ui($e,"fullDate");kt=Ot(be($e,c.Full),[It,ci])}return kt&&(Q[Je][Et]=kt),kt}function Ot($e,Et){return Et&&($e=$e.replace(/\{([^}]+)}/g,function(Je,kt){return null!=Et&&kt in Et?Et[kt]:Je})),$e}function Nt($e,Et,Je="-",kt,Xt){let Mi="";($e<0||Xt&&$e<=0)&&(Xt?$e=1-$e:($e=-$e,Mi=Je));let Pi=String($e);for(;Pi.length0||en>-Je)&&(en+=Je),$e===Dt.Hours)0===en&&-12===Je&&(en=12);else if($e===Dt.FractionalSeconds)return function gt($e,Et){return Nt($e,3).substr(0,Et)}(en,Et);const nr=Pe(Pi,v.MinusSign);return Nt(en,Et,nr,kt,Xt)}}function ti($e,Et,Je=r.Format,kt=!1){return function(Xt,Mi){return function Qt($e,Et,Je,kt,Xt,Mi){switch(Je){case di.Months:return function _($e,Et,Je){const kt=(0,t.cg1)($e),Mi=Te([kt[t.wAp.MonthsFormat],kt[t.wAp.MonthsStandalone]],Et);return Te(Mi,Je)}(Et,Xt,kt)[$e.getMonth()];case di.Days:return function n($e,Et,Je){const kt=(0,t.cg1)($e),Mi=Te([kt[t.wAp.DaysFormat],kt[t.wAp.DaysStandalone]],Et);return Te(Mi,Je)}(Et,Xt,kt)[$e.getDay()];case di.DayPeriods:const Pi=$e.getHours(),en=$e.getMinutes();if(Mi){const Bn=function Oe($e){const Et=(0,t.cg1)($e);return ut(Et),(Et[t.wAp.ExtraData][2]||[]).map(kt=>"string"==typeof kt?xe(kt):[xe(kt[0]),xe(kt[1])])}(Et),It=function we($e,Et,Je){const kt=(0,t.cg1)($e);ut(kt);const Mi=Te([kt[t.wAp.ExtraData][0],kt[t.wAp.ExtraData][1]],Et)||[];return Te(Mi,Je)||[]}(Et,Xt,kt),ci=Bn.findIndex(vt=>{if(Array.isArray(vt)){const[jt,Oi]=vt,je=Pi>=jt.hours&&en>=jt.minutes,Ye=Pi0?Math.floor(Xt/60):Math.ceil(Xt/60);switch($e){case tt.Short:return(Xt>=0?"+":"")+Nt(Pi,2,Mi)+Nt(Math.abs(Xt%60),2,Mi);case tt.ShortGMT:return"GMT"+(Xt>=0?"+":"")+Nt(Pi,1,Mi);case tt.Long:return"GMT"+(Xt>=0?"+":"")+Nt(Pi,2,Mi)+":"+Nt(Math.abs(Xt%60),2,Mi);case tt.Extended:return 0===kt?"Z":(Xt>=0?"+":"")+Nt(Pi,2,Mi)+":"+Nt(Math.abs(Xt%60),2,Mi);default:throw new Error(`Unknown zone width "${$e}"`)}}}function ht($e){return Zt($e.getFullYear(),$e.getMonth(),$e.getDate()+(4-$e.getDay()))}function mt($e,Et=!1){return function(Je,kt){let Xt;if(Et){const Mi=new Date(Je.getFullYear(),Je.getMonth(),1).getDay()-1,Pi=Je.getDate();Xt=1+Math.floor((Pi+Mi)/7)}else{const Mi=ht(Je),Pi=function ye($e){const Et=Zt($e,0,1).getDay();return Zt($e,0,1+(Et<=4?4:11)-Et)}(Mi.getFullYear()),en=Mi.getTime()-Pi.getTime();Xt=1+Math.round(en/6048e5)}return Nt(Xt,$e,Pe(kt,v.MinusSign))}}function Ft($e,Et=!1){return function(Je,kt){return Nt(ht(Je).getFullYear(),$e,Pe(kt,v.MinusSign),Et)}}const nt={};function rt($e,Et){$e=$e.replace(/:/g,"");const Je=Date.parse("Jan 01, 1970 00:00:00 "+$e)/6e4;return isNaN(Je)?Et:Je}function lt($e){return $e instanceof Date&&!isNaN($e.valueOf())}const Ct=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Xe($e){const Et=parseInt($e);if(isNaN(Et))throw new Error("Invalid integer literal when parsing "+$e);return Et}function Xi($e,Et){Et=encodeURIComponent(Et);for(const Je of $e.split(";")){const kt=Je.indexOf("="),[Xt,Mi]=-1==kt?[Je,""]:[Je.slice(0,kt),Je.slice(kt+1)];if(Xt.trim()===Et)return decodeURIComponent(Mi)}return null}let Wi=(()=>{class $e{constructor(Je,kt,Xt,Mi){this._iterableDiffers=Je,this._keyValueDiffers=kt,this._ngEl=Xt,this._renderer=Mi,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(Je){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof Je?Je.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(Je){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof Je?Je.split(/\s+/):Je,this._rawClass&&((0,t.sIi)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const Je=this._iterableDiffer.diff(this._rawClass);Je&&this._applyIterableChanges(Je)}else if(this._keyValueDiffer){const Je=this._keyValueDiffer.diff(this._rawClass);Je&&this._applyKeyValueChanges(Je)}}_applyKeyValueChanges(Je){Je.forEachAddedItem(kt=>this._toggleClass(kt.key,kt.currentValue)),Je.forEachChangedItem(kt=>this._toggleClass(kt.key,kt.currentValue)),Je.forEachRemovedItem(kt=>{kt.previousValue&&this._toggleClass(kt.key,!1)})}_applyIterableChanges(Je){Je.forEachAddedItem(kt=>{if("string"!=typeof kt.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${(0,t.AaK)(kt.item)}`);this._toggleClass(kt.item,!0)}),Je.forEachRemovedItem(kt=>this._toggleClass(kt.item,!1))}_applyClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(kt=>this._toggleClass(kt,!0)):Object.keys(Je).forEach(kt=>this._toggleClass(kt,!!Je[kt])))}_removeClasses(Je){Je&&(Array.isArray(Je)||Je instanceof Set?Je.forEach(kt=>this._toggleClass(kt,!1)):Object.keys(Je).forEach(kt=>this._toggleClass(kt,!1)))}_toggleClass(Je,kt){(Je=Je.trim())&&Je.split(/\s+/g).forEach(Xt=>{kt?this._renderer.addClass(this._ngEl.nativeElement,Xt):this._renderer.removeClass(this._ngEl.nativeElement,Xt)})}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.SBq),t.Y36(t.Qsj))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),$e})();class pn{constructor(Et,Je,kt,Xt){this.$implicit=Et,this.ngForOf=Je,this.index=kt,this.count=Xt}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 ii=(()=>{class $e{constructor(Je,kt,Xt){this._viewContainer=Je,this._template=kt,this._differs=Xt,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(Je){this._ngForOf=Je,this._ngForOfDirty=!0}set ngForTrackBy(Je){this._trackByFn=Je}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(Je){Je&&(this._template=Je)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const Je=this._ngForOf;!this._differ&&Je&&(this._differ=this._differs.find(Je).create(this.ngForTrackBy))}if(this._differ){const Je=this._differ.diff(this._ngForOf);Je&&this._applyChanges(Je)}}_applyChanges(Je){const kt=this._viewContainer;Je.forEachOperation((Xt,Mi,Pi)=>{if(null==Xt.previousIndex)kt.createEmbeddedView(this._template,new pn(Xt.item,this._ngForOf,-1,-1),null===Pi?void 0:Pi);else if(null==Pi)kt.remove(null===Mi?void 0:Mi);else if(null!==Mi){const en=kt.get(Mi);kt.move(en,Pi),Ri(en,Xt)}});for(let Xt=0,Mi=kt.length;Xt{Ri(kt.get(Xt.currentIndex),Xt)})}static ngTemplateContextGuard(Je,kt){return!0}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(t.ZZ4))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),$e})();function Ri($e,Et){$e.context.$implicit=Et.item}let Rt=(()=>{class $e{constructor(Je,kt){this._viewContainer=Je,this._context=new Wt,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=kt}set ngIf(Je){this._context.$implicit=this._context.ngIf=Je,this._updateView()}set ngIfThen(Je){fi("ngIfThen",Je),this._thenTemplateRef=Je,this._thenViewRef=null,this._updateView()}set ngIfElse(Je){fi("ngIfElse",Je),this._elseTemplateRef=Je,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(Je,kt){return!0}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),$e})();class Wt{constructor(){this.$implicit=null,this.ngIf=null}}function fi($e,Et){if(Et&&!Et.createEmbeddedView)throw new Error(`${$e} must be a TemplateRef, but received '${(0,t.AaK)(Et)}'.`)}class Ei{constructor(Et,Je){this._viewContainerRef=Et,this._templateRef=Je,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(Et){Et&&!this._created?this.create():!Et&&this._created&&this.destroy()}}let Ni=(()=>{class $e{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(Je){this._ngSwitch=Je,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(Je){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(Je)}_matchCase(Je){const kt=Je==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||kt,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),kt}_updateDefaultCases(Je){if(this._defaultViews&&Je!==this._defaultUsed){this._defaultUsed=Je;for(let kt=0;kt{class $e{constructor(Je,kt,Xt){this.ngSwitch=Xt,Xt._addCase(),this._view=new Ei(Je,kt)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Ni,9))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),$e})(),In=(()=>{class $e{constructor(Je,kt,Xt){Xt._addDefault(new Ei(Je,kt))}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b),t.Y36(t.Rgc),t.Y36(Ni,9))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngSwitchDefault",""]]}),$e})(),Ti=(()=>{class $e{constructor(Je,kt,Xt){this._ngEl=Je,this._differs=kt,this._renderer=Xt,this._ngStyle=null,this._differ=null}set ngStyle(Je){this._ngStyle=Je,!this._differ&&Je&&(this._differ=this._differs.find(Je).create())}ngDoCheck(){if(this._differ){const Je=this._differ.diff(this._ngStyle);Je&&this._applyChanges(Je)}}_setStyle(Je,kt){const[Xt,Mi]=Je.split(".");null!=(kt=null!=kt&&Mi?`${kt}${Mi}`:kt)?this._renderer.setStyle(this._ngEl.nativeElement,Xt,kt):this._renderer.removeStyle(this._ngEl.nativeElement,Xt)}_applyChanges(Je){Je.forEachRemovedItem(kt=>this._setStyle(kt.key,null)),Je.forEachAddedItem(kt=>this._setStyle(kt.key,kt.currentValue)),Je.forEachChangedItem(kt=>this._setStyle(kt.key,kt.currentValue))}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.SBq),t.Y36(t.aQg),t.Y36(t.Qsj))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),$e})(),Ki=(()=>{class $e{constructor(Je){this._viewContainerRef=Je,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null}ngOnChanges(Je){if(Je.ngTemplateOutlet){const kt=this._viewContainerRef;this._viewRef&&kt.remove(kt.indexOf(this._viewRef)),this._viewRef=this.ngTemplateOutlet?kt.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext):null}else this._viewRef&&Je.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.s_b))},$e.\u0275dir=t.lG2({type:$e,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet"},features:[t.TTD]}),$e})();function qn($e,Et){return new t.vHH(2100,"")}class sr{createSubscription(Et,Je){return Et.subscribe({next:Je,error:kt=>{throw kt}})}dispose(Et){Et.unsubscribe()}onDestroy(Et){Et.unsubscribe()}}class ha{createSubscription(Et,Je){return Et.then(Je,kt=>{throw kt})}dispose(Et){}onDestroy(Et){}}const _a=new ha,Sr=new sr;let fa=(()=>{class $e{constructor(Je){this._ref=Je,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(Je){return this._obj?Je!==this._obj?(this._dispose(),this.transform(Je)):this._latestValue:(Je&&this._subscribe(Je),this._latestValue)}_subscribe(Je){this._obj=Je,this._strategy=this._selectStrategy(Je),this._subscription=this._strategy.createSubscription(Je,kt=>this._updateLatestValue(Je,kt))}_selectStrategy(Je){if((0,t.QGY)(Je))return _a;if((0,t.F4k)(Je))return Sr;throw qn()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(Je,kt){Je===this._obj&&(this._latestValue=kt,this._ref.markForCheck())}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.sBO,16))},$e.\u0275pipe=t.Yjl({name:"async",type:$e,pure:!1}),$e})(),zr=(()=>{class $e{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw qn();return Je.toLowerCase()}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"lowercase",type:$e,pure:!0}),$e})();const ta=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;let ia=(()=>{class $e{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw qn();return Je.replace(ta,kt=>kt[0].toUpperCase()+kt.substr(1).toLowerCase())}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"titlecase",type:$e,pure:!0}),$e})(),na=(()=>{class $e{transform(Je){if(null==Je)return null;if("string"!=typeof Je)throw qn();return Je.toUpperCase()}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"uppercase",type:$e,pure:!0}),$e})();const qr=new t.OlP("DATE_PIPE_DEFAULT_TIMEZONE");let Jr=(()=>{class $e{constructor(Je,kt){this.locale=Je,this.defaultTimezone=kt}transform(Je,kt="mediumDate",Xt,Mi){var Pi;if(null==Je||""===Je||Je!=Je)return null;try{return Yt(Je,kt,Mi||this.locale,null!==(Pi=null!=Xt?Xt:this.defaultTimezone)&&void 0!==Pi?Pi:void 0)}catch(en){throw qn()}}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.soG,16),t.Y36(qr,24))},$e.\u0275pipe=t.Yjl({name:"date",type:$e,pure:!0}),$e})(),Pr=(()=>{class $e{transform(Je){return JSON.stringify(Je,null,2)}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"json",type:$e,pure:!1}),$e})(),Vr=(()=>{class $e{constructor(Je){this.differs=Je,this.keyValues=[],this.compareFn=cr}transform(Je,kt=cr){if(!Je||!(Je instanceof Map)&&"object"!=typeof Je)return null;this.differ||(this.differ=this.differs.find(Je).create());const Xt=this.differ.diff(Je),Mi=kt!==this.compareFn;return Xt&&(this.keyValues=[],Xt.forEachItem(Pi=>{this.keyValues.push(function Yn($e,Et){return{key:$e,value:Et}}(Pi.key,Pi.currentValue))})),(Xt||Mi)&&(this.keyValues.sort(kt),this.compareFn=kt),this.keyValues}}return $e.\u0275fac=function(Je){return new(Je||$e)(t.Y36(t.aQg,16))},$e.\u0275pipe=t.Yjl({name:"keyvalue",type:$e,pure:!1}),$e})();function cr($e,Et){const Je=$e.key,kt=Et.key;if(Je===kt)return 0;if(void 0===Je)return 1;if(void 0===kt)return-1;if(null===Je)return 1;if(null===kt)return-1;if("string"==typeof Je&&"string"==typeof kt)return Je{class $e{constructor(Je){this._locale=Je}transform(Je,kt,Xt){if(!function va($e){return!(null==$e||""===$e||$e!=$e)}(Je))return null;Xt=Xt||this._locale;try{return function Tt($e,Et,Je){return function Vi($e,Et,Je,kt,Xt,Mi,Pi=!1){let en="",nr=!1;if(isFinite($e)){let Bn=function _t($e){let kt,Xt,Mi,Pi,en,Et=Math.abs($e)+"",Je=0;for((Xt=Et.indexOf("."))>-1&&(Et=Et.replace(".","")),(Mi=Et.search(/e/i))>0?(Xt<0&&(Xt=Mi),Xt+=+Et.slice(Mi+1),Et=Et.substring(0,Mi)):Xt<0&&(Xt=Et.length),Mi=0;"0"===Et.charAt(Mi);Mi++);if(Mi===(en=Et.length))kt=[0],Xt=1;else{for(en--;"0"===Et.charAt(en);)en--;for(Xt-=Mi,kt=[],Pi=0;Mi<=en;Mi++,Pi++)kt[Pi]=Number(Et.charAt(Mi))}return Xt>22&&(kt=kt.splice(0,21),Je=Xt-1,Xt=1),{digits:kt,exponent:Je,integerLen:Xt}}($e);Pi&&(Bn=function Qe($e){if(0===$e.digits[0])return $e;const Et=$e.digits.length-$e.integerLen;return $e.exponent?$e.exponent+=2:(0===Et?$e.digits.push(0,0):1===Et&&$e.digits.push(0),$e.integerLen+=2),$e}(Bn));let It=Et.minInt,ci=Et.minFrac,vt=Et.maxFrac;if(Mi){const At=Mi.match(Ct);if(null===At)throw new Error(`${Mi} is not a valid digit info`);const wi=At[1],Gi=At[3],Un=At[5];null!=wi&&(It=Xe(wi)),null!=Gi&&(ci=Xe(Gi)),null!=Un?vt=Xe(Un):null!=Gi&&ci>vt&&(vt=ci)}!function se($e,Et,Je){if(Et>Je)throw new Error(`The minimum number of digits after fraction (${Et}) is higher than the maximum (${Je}).`);let kt=$e.digits,Xt=kt.length-$e.integerLen;const Mi=Math.min(Math.max(Et,Xt),Je);let Pi=Mi+$e.integerLen,en=kt[Pi];if(Pi>0){kt.splice(Math.max($e.integerLen,Pi));for(let ci=Pi;ci=5)if(Pi-1<0){for(let ci=0;ci>Pi;ci--)kt.unshift(0),$e.integerLen++;kt.unshift(1),$e.integerLen++}else kt[Pi-1]++;for(;Xt=Bn?Oi.pop():nr=!1),vt>=10?1:0},0);It&&(kt.unshift(It),$e.integerLen++)}(Bn,ci,vt);let jt=Bn.digits,Oi=Bn.integerLen;const je=Bn.exponent;let Ye=[];for(nr=jt.every(At=>!At);Oi0?Ye=jt.splice(Oi,jt.length):(Ye=jt,jt=[0]);const Fe=[];for(jt.length>=Et.lgSize&&Fe.unshift(jt.splice(-Et.lgSize,jt.length).join(""));jt.length>Et.gSize;)Fe.unshift(jt.splice(-Et.gSize,jt.length).join(""));jt.length&&Fe.unshift(jt.join("")),en=Fe.join(Pe(Je,kt)),Ye.length&&(en+=Pe(Je,Xt)+Ye.join("")),je&&(en+=Pe(Je,v.Exponential)+"+"+je)}else en=Pe(Je,v.Infinity);return en=$e<0&&!nr?Et.negPre+en+Et.negSuf:Et.posPre+en+Et.posSuf,en}($e,function ve($e,Et="-"){const Je={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},kt=$e.split(";"),Xt=kt[0],Mi=kt[1],Pi=-1!==Xt.indexOf(".")?Xt.split("."):[Xt.substring(0,Xt.lastIndexOf("0")+1),Xt.substring(Xt.lastIndexOf("0")+1)],en=Pi[0],nr=Pi[1]||"";Je.posPre=en.substr(0,en.indexOf("#"));for(let It=0;It{class $e{transform(Je,kt,Xt){if(null==Je)return null;if(!this.supports(Je))throw qn();return Je.slice(kt,Xt)}supports(Je){return"string"==typeof Je||Array.isArray(Je)}}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275pipe=t.Yjl({name:"slice",type:$e,pure:!1}),$e})(),Dr=(()=>{class $e{}return $e.\u0275fac=function(Je){return new(Je||$e)},$e.\u0275mod=t.oAB({type:$e}),$e.\u0275inj=t.cJS({}),$e})();const ra="browser";function or($e){return $e===ra}function aa($e){return"server"===$e}let Yr=(()=>{class $e{}return $e.\u0275prov=(0,t.Yz7)({token:$e,providedIn:"root",factory:()=>new Nr((0,t.LFG)(d),window)}),$e})();class Nr{constructor(Et,Je){this.document=Et,this.window=Je,this.offset=()=>[0,0]}setOffset(Et){this.offset=Array.isArray(Et)?()=>Et:Et}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(Et){this.supportsScrolling()&&this.window.scrollTo(Et[0],Et[1])}scrollToAnchor(Et){if(!this.supportsScrolling())return;const Je=function Sa($e,Et){const Je=$e.getElementById(Et)||$e.getElementsByName(Et)[0];if(Je)return Je;if("function"==typeof $e.createTreeWalker&&$e.body&&($e.body.createShadowRoot||$e.body.attachShadow)){const kt=$e.createTreeWalker($e.body,NodeFilter.SHOW_ELEMENT);let Xt=kt.currentNode;for(;Xt;){const Mi=Xt.shadowRoot;if(Mi){const Pi=Mi.getElementById(Et)||Mi.querySelector(`[name="${Et}"]`);if(Pi)return Pi}Xt=kt.nextNode()}}return null}(this.document,Et);Je&&(this.scrollToElement(Je),Je.focus())}setHistoryScrollRestoration(Et){if(this.supportScrollRestoration()){const Je=this.window.history;Je&&Je.scrollRestoration&&(Je.scrollRestoration=Et)}}scrollToElement(Et){const Je=Et.getBoundingClientRect(),kt=Je.left+this.window.pageXOffset,Xt=Je.top+this.window.pageYOffset,Mi=this.offset();this.window.scrollTo(kt-Mi[0],Xt-Mi[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const Et=Br(this.window.history)||Br(Object.getPrototypeOf(this.window.history));return!(!Et||!Et.writable&&!Et.set)}catch(Et){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(Et){return!1}}}function Br($e){return Object.getOwnPropertyDescriptor($e,"scrollRestoration")}class Xn{}},8138:(Be,K,p)=>{"use strict";p.d(K,{JF:()=>xe,LE:()=>Z,TP:()=>I,eN:()=>v});var t=p(9808),e=p(5e3),f=p(9646),M=p(8306),a=p(4351),C=p(9300),d=p(4004);class R{}class h{}class L{constructor(fe){this.normalizedNames=new Map,this.lazyUpdate=null,fe?this.lazyInit="string"==typeof fe?()=>{this.headers=new Map,fe.split("\n").forEach(Q=>{const pt=Q.indexOf(":");if(pt>0){const tt=Q.slice(0,pt),Dt=tt.toLowerCase(),di=Q.slice(pt+1).trim();this.maybeSetNormalizedName(tt,Dt),this.headers.has(Dt)?this.headers.get(Dt).push(di):this.headers.set(Dt,[di])}})}:()=>{this.headers=new Map,Object.keys(fe).forEach(Q=>{let pt=fe[Q];const tt=Q.toLowerCase();"string"==typeof pt&&(pt=[pt]),pt.length>0&&(this.headers.set(tt,pt),this.maybeSetNormalizedName(Q,tt))})}:this.headers=new Map}has(fe){return this.init(),this.headers.has(fe.toLowerCase())}get(fe){this.init();const Q=this.headers.get(fe.toLowerCase());return Q&&Q.length>0?Q[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(fe){return this.init(),this.headers.get(fe.toLowerCase())||null}append(fe,Q){return this.clone({name:fe,value:Q,op:"a"})}set(fe,Q){return this.clone({name:fe,value:Q,op:"s"})}delete(fe,Q){return this.clone({name:fe,value:Q,op:"d"})}maybeSetNormalizedName(fe,Q){this.normalizedNames.has(Q)||this.normalizedNames.set(Q,fe)}init(){this.lazyInit&&(this.lazyInit instanceof L?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(fe=>this.applyUpdate(fe)),this.lazyUpdate=null))}copyFrom(fe){fe.init(),Array.from(fe.headers.keys()).forEach(Q=>{this.headers.set(Q,fe.headers.get(Q)),this.normalizedNames.set(Q,fe.normalizedNames.get(Q))})}clone(fe){const Q=new L;return Q.lazyInit=this.lazyInit&&this.lazyInit instanceof L?this.lazyInit:this,Q.lazyUpdate=(this.lazyUpdate||[]).concat([fe]),Q}applyUpdate(fe){const Q=fe.name.toLowerCase();switch(fe.op){case"a":case"s":let pt=fe.value;if("string"==typeof pt&&(pt=[pt]),0===pt.length)return;this.maybeSetNormalizedName(fe.name,Q);const tt=("a"===fe.op?this.headers.get(Q):void 0)||[];tt.push(...pt),this.headers.set(Q,tt);break;case"d":const Dt=fe.value;if(Dt){let di=this.headers.get(Q);if(!di)return;di=di.filter(Yt=>-1===Dt.indexOf(Yt)),0===di.length?(this.headers.delete(Q),this.normalizedNames.delete(Q)):this.headers.set(Q,di)}else this.headers.delete(Q),this.normalizedNames.delete(Q)}}forEach(fe){this.init(),Array.from(this.normalizedNames.keys()).forEach(Q=>fe(this.normalizedNames.get(Q),this.headers.get(Q)))}}class w{encodeKey(fe){return E(fe)}encodeValue(fe){return E(fe)}decodeKey(fe){return decodeURIComponent(fe)}decodeValue(fe){return decodeURIComponent(fe)}}const S=/%(\d[a-f0-9])/gi,k={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function E(Ce){return encodeURIComponent(Ce).replace(S,(fe,Q)=>{var pt;return null!==(pt=k[Q])&&void 0!==pt?pt:fe})}function B(Ce){return`${Ce}`}class Z{constructor(fe={}){if(this.updates=null,this.cloneFrom=null,this.encoder=fe.encoder||new w,fe.fromString){if(fe.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function D(Ce,fe){const Q=new Map;return Ce.length>0&&Ce.replace(/^\?/,"").split("&").forEach(tt=>{const Dt=tt.indexOf("="),[di,Yt]=-1==Dt?[fe.decodeKey(tt),""]:[fe.decodeKey(tt.slice(0,Dt)),fe.decodeValue(tt.slice(Dt+1))],Zt=Q.get(di)||[];Zt.push(Yt),Q.set(di,Zt)}),Q}(fe.fromString,this.encoder)}else fe.fromObject?(this.map=new Map,Object.keys(fe.fromObject).forEach(Q=>{const pt=fe.fromObject[Q];this.map.set(Q,Array.isArray(pt)?pt:[pt])})):this.map=null}has(fe){return this.init(),this.map.has(fe)}get(fe){this.init();const Q=this.map.get(fe);return Q?Q[0]:null}getAll(fe){return this.init(),this.map.get(fe)||null}keys(){return this.init(),Array.from(this.map.keys())}append(fe,Q){return this.clone({param:fe,value:Q,op:"a"})}appendAll(fe){const Q=[];return Object.keys(fe).forEach(pt=>{const tt=fe[pt];Array.isArray(tt)?tt.forEach(Dt=>{Q.push({param:pt,value:Dt,op:"a"})}):Q.push({param:pt,value:tt,op:"a"})}),this.clone(Q)}set(fe,Q){return this.clone({param:fe,value:Q,op:"s"})}delete(fe,Q){return this.clone({param:fe,value:Q,op:"d"})}toString(){return this.init(),this.keys().map(fe=>{const Q=this.encoder.encodeKey(fe);return this.map.get(fe).map(pt=>Q+"="+this.encoder.encodeValue(pt)).join("&")}).filter(fe=>""!==fe).join("&")}clone(fe){const Q=new Z({encoder:this.encoder});return Q.cloneFrom=this.cloneFrom||this,Q.updates=(this.updates||[]).concat(fe),Q}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(fe=>this.map.set(fe,this.cloneFrom.map.get(fe))),this.updates.forEach(fe=>{switch(fe.op){case"a":case"s":const Q=("a"===fe.op?this.map.get(fe.param):void 0)||[];Q.push(B(fe.value)),this.map.set(fe.param,Q);break;case"d":if(void 0===fe.value){this.map.delete(fe.param);break}{let pt=this.map.get(fe.param)||[];const tt=pt.indexOf(B(fe.value));-1!==tt&&pt.splice(tt,1),pt.length>0?this.map.set(fe.param,pt):this.map.delete(fe.param)}}}),this.cloneFrom=this.updates=null)}}class ae{constructor(){this.map=new Map}set(fe,Q){return this.map.set(fe,Q),this}get(fe){return this.map.has(fe)||this.map.set(fe,fe.defaultValue()),this.map.get(fe)}delete(fe){return this.map.delete(fe),this}has(fe){return this.map.has(fe)}keys(){return this.map.keys()}}function ue(Ce){return"undefined"!=typeof ArrayBuffer&&Ce instanceof ArrayBuffer}function ne(Ce){return"undefined"!=typeof Blob&&Ce instanceof Blob}function re(Ce){return"undefined"!=typeof FormData&&Ce instanceof FormData}class q{constructor(fe,Q,pt,tt){let Dt;if(this.url=Q,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=fe.toUpperCase(),function ee(Ce){switch(Ce){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||tt?(this.body=void 0!==pt?pt:null,Dt=tt):Dt=pt,Dt&&(this.reportProgress=!!Dt.reportProgress,this.withCredentials=!!Dt.withCredentials,Dt.responseType&&(this.responseType=Dt.responseType),Dt.headers&&(this.headers=Dt.headers),Dt.context&&(this.context=Dt.context),Dt.params&&(this.params=Dt.params)),this.headers||(this.headers=new L),this.context||(this.context=new ae),this.params){const di=this.params.toString();if(0===di.length)this.urlWithParams=Q;else{const Yt=Q.indexOf("?");this.urlWithParams=Q+(-1===Yt?"?":Ytgt.set(it,fe.setHeaders[it]),ui)),fe.setParams&&(Ot=Object.keys(fe.setParams).reduce((gt,it)=>gt.set(it,fe.setParams[it]),Ot)),new q(pt,tt,di,{params:Ot,headers:ui,context:Nt,reportProgress:Zt,responseType:Dt,withCredentials:Yt})}}var _e=(()=>((_e=_e||{})[_e.Sent=0]="Sent",_e[_e.UploadProgress=1]="UploadProgress",_e[_e.ResponseHeader=2]="ResponseHeader",_e[_e.DownloadProgress=3]="DownloadProgress",_e[_e.Response=4]="Response",_e[_e.User=5]="User",_e))();class x{constructor(fe,Q=200,pt="OK"){this.headers=fe.headers||new L,this.status=void 0!==fe.status?fe.status:Q,this.statusText=fe.statusText||pt,this.url=fe.url||null,this.ok=this.status>=200&&this.status<300}}class i extends x{constructor(fe={}){super(fe),this.type=_e.ResponseHeader}clone(fe={}){return new i({headers:fe.headers||this.headers,status:void 0!==fe.status?fe.status:this.status,statusText:fe.statusText||this.statusText,url:fe.url||this.url||void 0})}}class r extends x{constructor(fe={}){super(fe),this.type=_e.Response,this.body=void 0!==fe.body?fe.body:null}clone(fe={}){return new r({body:void 0!==fe.body?fe.body:this.body,headers:fe.headers||this.headers,status:void 0!==fe.status?fe.status:this.status,statusText:fe.statusText||this.statusText,url:fe.url||this.url||void 0})}}class u extends x{constructor(fe){super(fe,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${fe.url||"(unknown url)"}`:`Http failure response for ${fe.url||"(unknown url)"}: ${fe.status} ${fe.statusText}`,this.error=fe.error||null}}function c(Ce,fe){return{body:fe,headers:Ce.headers,context:Ce.context,observe:Ce.observe,params:Ce.params,reportProgress:Ce.reportProgress,responseType:Ce.responseType,withCredentials:Ce.withCredentials}}let v=(()=>{class Ce{constructor(Q){this.handler=Q}request(Q,pt,tt={}){let Dt;if(Q instanceof q)Dt=Q;else{let Zt,ui;Zt=tt.headers instanceof L?tt.headers:new L(tt.headers),tt.params&&(ui=tt.params instanceof Z?tt.params:new Z({fromObject:tt.params})),Dt=new q(Q,pt,void 0!==tt.body?tt.body:null,{headers:Zt,context:tt.context,params:ui,reportProgress:tt.reportProgress,responseType:tt.responseType||"json",withCredentials:tt.withCredentials})}const di=(0,f.of)(Dt).pipe((0,a.b)(Zt=>this.handler.handle(Zt)));if(Q instanceof q||"events"===tt.observe)return di;const Yt=di.pipe((0,C.h)(Zt=>Zt instanceof r));switch(tt.observe||"body"){case"body":switch(Dt.responseType){case"arraybuffer":return Yt.pipe((0,d.U)(Zt=>{if(null!==Zt.body&&!(Zt.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return Zt.body}));case"blob":return Yt.pipe((0,d.U)(Zt=>{if(null!==Zt.body&&!(Zt.body instanceof Blob))throw new Error("Response is not a Blob.");return Zt.body}));case"text":return Yt.pipe((0,d.U)(Zt=>{if(null!==Zt.body&&"string"!=typeof Zt.body)throw new Error("Response is not a string.");return Zt.body}));default:return Yt.pipe((0,d.U)(Zt=>Zt.body))}case"response":return Yt;default:throw new Error(`Unreachable: unhandled observe type ${tt.observe}}`)}}delete(Q,pt={}){return this.request("DELETE",Q,pt)}get(Q,pt={}){return this.request("GET",Q,pt)}head(Q,pt={}){return this.request("HEAD",Q,pt)}jsonp(Q,pt){return this.request("JSONP",Q,{params:(new Z).append(pt,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(Q,pt={}){return this.request("OPTIONS",Q,pt)}patch(Q,pt,tt={}){return this.request("PATCH",Q,c(tt,pt))}post(Q,pt,tt={}){return this.request("POST",Q,c(tt,pt))}put(Q,pt,tt={}){return this.request("PUT",Q,c(tt,pt))}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(R))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();class T{constructor(fe,Q){this.next=fe,this.interceptor=Q}handle(fe){return this.interceptor.intercept(fe,this.next)}}const I=new e.OlP("HTTP_INTERCEPTORS");let y=(()=>{class Ce{intercept(Q,pt){return pt.handle(Q)}}return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Pe=/^\)\]\}',?\n/;let j=(()=>{class Ce{constructor(Q){this.xhrFactory=Q}handle(Q){if("JSONP"===Q.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new M.y(pt=>{const tt=this.xhrFactory.build();if(tt.open(Q.method,Q.urlWithParams),Q.withCredentials&&(tt.withCredentials=!0),Q.headers.forEach((it,bt)=>tt.setRequestHeader(it,bt.join(","))),Q.headers.has("Accept")||tt.setRequestHeader("Accept","application/json, text/plain, */*"),!Q.headers.has("Content-Type")){const it=Q.detectContentTypeHeader();null!==it&&tt.setRequestHeader("Content-Type",it)}if(Q.responseType){const it=Q.responseType.toLowerCase();tt.responseType="json"!==it?it:"text"}const Dt=Q.serializeBody();let di=null;const Yt=()=>{if(null!==di)return di;const it=tt.statusText||"OK",bt=new L(tt.getAllResponseHeaders()),ti=function Ee(Ce){return"responseURL"in Ce&&Ce.responseURL?Ce.responseURL:/^X-Request-URL:/m.test(Ce.getAllResponseHeaders())?Ce.getResponseHeader("X-Request-URL"):null}(tt)||Q.url;return di=new i({headers:bt,status:tt.status,statusText:it,url:ti}),di},Zt=()=>{let{headers:it,status:bt,statusText:ti,url:Qt}=Yt(),Re=null;204!==bt&&(Re=void 0===tt.response?tt.responseText:tt.response),0===bt&&(bt=Re?200:0);let ke=bt>=200&&bt<300;if("json"===Q.responseType&&"string"==typeof Re){const de=Re;Re=Re.replace(Pe,"");try{Re=""!==Re?JSON.parse(Re):null}catch(ye){Re=de,ke&&(ke=!1,Re={error:ye,text:Re})}}ke?(pt.next(new r({body:Re,headers:it,status:bt,statusText:ti,url:Qt||void 0})),pt.complete()):pt.error(new u({error:Re,headers:it,status:bt,statusText:ti,url:Qt||void 0}))},ui=it=>{const{url:bt}=Yt(),ti=new u({error:it,status:tt.status||0,statusText:tt.statusText||"Unknown Error",url:bt||void 0});pt.error(ti)};let Ot=!1;const Nt=it=>{Ot||(pt.next(Yt()),Ot=!0);let bt={type:_e.DownloadProgress,loaded:it.loaded};it.lengthComputable&&(bt.total=it.total),"text"===Q.responseType&&!!tt.responseText&&(bt.partialText=tt.responseText),pt.next(bt)},gt=it=>{let bt={type:_e.UploadProgress,loaded:it.loaded};it.lengthComputable&&(bt.total=it.total),pt.next(bt)};return tt.addEventListener("load",Zt),tt.addEventListener("error",ui),tt.addEventListener("timeout",ui),tt.addEventListener("abort",ui),Q.reportProgress&&(tt.addEventListener("progress",Nt),null!==Dt&&tt.upload&&tt.upload.addEventListener("progress",gt)),tt.send(Dt),pt.next({type:_e.Sent}),()=>{tt.removeEventListener("error",ui),tt.removeEventListener("abort",ui),tt.removeEventListener("load",Zt),tt.removeEventListener("timeout",ui),Q.reportProgress&&(tt.removeEventListener("progress",Nt),null!==Dt&&tt.upload&&tt.upload.removeEventListener("progress",gt)),tt.readyState!==tt.DONE&&tt.abort()}})}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(t.JF))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})();const Ve=new e.OlP("XSRF_COOKIE_NAME"),Me=new e.OlP("XSRF_HEADER_NAME");class J{}let Ie=(()=>{class Ce{constructor(Q,pt,tt){this.doc=Q,this.platform=pt,this.cookieName=tt,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const Q=this.doc.cookie||"";return Q!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,t.Mx)(Q,this.cookieName),this.lastCookieString=Q),this.lastToken}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(t.K0),e.LFG(e.Lbi),e.LFG(Ve))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),ut=(()=>{class Ce{constructor(Q,pt){this.tokenService=Q,this.headerName=pt}intercept(Q,pt){const tt=Q.url.toLowerCase();if("GET"===Q.method||"HEAD"===Q.method||tt.startsWith("http://")||tt.startsWith("https://"))return pt.handle(Q);const Dt=this.tokenService.getToken();return null!==Dt&&!Q.headers.has(this.headerName)&&(Q=Q.clone({headers:Q.headers.set(this.headerName,Dt)})),pt.handle(Q)}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(J),e.LFG(Me))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Oe=(()=>{class Ce{constructor(Q,pt){this.backend=Q,this.injector=pt,this.chain=null}handle(Q){if(null===this.chain){const pt=this.injector.get(I,[]);this.chain=pt.reduceRight((tt,Dt)=>new T(tt,Dt),this.backend)}return this.chain.handle(Q)}}return Ce.\u0275fac=function(Q){return new(Q||Ce)(e.LFG(h),e.LFG(e.zs3))},Ce.\u0275prov=e.Yz7({token:Ce,factory:Ce.\u0275fac}),Ce})(),Te=(()=>{class Ce{static disable(){return{ngModule:Ce,providers:[{provide:ut,useClass:y}]}}static withOptions(Q={}){return{ngModule:Ce,providers:[Q.cookieName?{provide:Ve,useValue:Q.cookieName}:[],Q.headerName?{provide:Me,useValue:Q.headerName}:[]]}}}return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({providers:[ut,{provide:I,useExisting:ut,multi:!0},{provide:J,useClass:Ie},{provide:Ve,useValue:"XSRF-TOKEN"},{provide:Me,useValue:"X-XSRF-TOKEN"}]}),Ce})(),xe=(()=>{class Ce{}return Ce.\u0275fac=function(Q){return new(Q||Ce)},Ce.\u0275mod=e.oAB({type:Ce}),Ce.\u0275inj=e.cJS({providers:[v,{provide:R,useClass:Oe},j,{provide:h,useExisting:j}],imports:[[Te.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),Ce})()},5e3:(Be,K,p)=>{"use strict";p.d(K,{$8M:()=>Wl,$Z:()=>Ud,AFp:()=>km,ALo:()=>xf,AaK:()=>R,AsE:()=>Z0,BQk:()=>P0,CHM:()=>Hs,CRH:()=>y4,CZH:()=>E4,CqO:()=>N0,DdM:()=>qp,Dn7:()=>lm,EJc:()=>W5,EiD:()=>Le,EpF:()=>Wd,F$t:()=>qd,F4k:()=>k0,FYo:()=>_f,FiY:()=>Sl,G48:()=>ug,Gf:()=>mm,GfV:()=>Gp,GkF:()=>Zd,Gpc:()=>w,Gre:()=>Xh,HOy:()=>a4,Hsn:()=>Ah,Ikx:()=>Nn,JOm:()=>Ks,JVY:()=>h3,Jf7:()=>b2,L6k:()=>f3,LAX:()=>m3,LFG:()=>Ba,LSH:()=>ji,Lbi:()=>B5,MAs:()=>xs,MGl:()=>Fc,NdJ:()=>z1,O4$:()=>xr,OlP:()=>Zr,Oqu:()=>U0,PXZ:()=>Um,PiD:()=>Us,Q6J:()=>D0,QGY:()=>hs,Qsj:()=>J8,R0b:()=>po,RDi:()=>Br,Rgc:()=>t3,SBq:()=>J0,Sil:()=>K5,Suo:()=>gm,TTD:()=>va,TgZ:()=>F1,Tol:()=>Vh,Udp:()=>F0,VKq:()=>Jp,VLi:()=>ag,W1O:()=>Of,WFA:()=>Yd,WLB:()=>bf,X6Q:()=>jm,XFs:()=>we,Xpm:()=>ht,Y36:()=>vl,YKP:()=>Yp,YNc:()=>C0,Yjl:()=>ot,Yz7:()=>X,ZZ4:()=>n6,_Bn:()=>Fp,_UZ:()=>Ul,_Vd:()=>c4,_c5:()=>Sg,_uU:()=>r4,aQg:()=>r6,c2e:()=>G5,cJS:()=>be,cg1:()=>Oa,d8E:()=>Sn,dDg:()=>Fm,deG:()=>go,dqk:()=>ui,eBb:()=>p3,eFA:()=>jf,ekj:()=>i4,f3M:()=>ec,g9A:()=>Bf,h0i:()=>G1,hGG:()=>Eg,hYB:()=>R0,hij:()=>G0,iGM:()=>Df,ifc:()=>tt,ip1:()=>Pm,kEZ:()=>Xp,kL8:()=>Fr,kcU:()=>la,lG2:()=>Ge,lcZ:()=>sm,lnq:()=>W0,mCW:()=>Ro,n5z:()=>Zl,n_E:()=>p4,oAB:()=>rt,oJD:()=>Ht,oxw:()=>Qd,pB0:()=>g3,q3G:()=>We,qLn:()=>f1,qOj:()=>wd,qZA:()=>Hc,qzn:()=>vo,s9C:()=>Jd,sBO:()=>L4,sIi:()=>L1,s_b:()=>g4,soG:()=>Uf,tBr:()=>_o,tb:()=>Rm,tp0:()=>so,uIk:()=>Td,vHH:()=>E,vpe:()=>Ko,wAp:()=>sn,xi3:()=>om,xp6:()=>Z3,yhl:()=>o2,ynx:()=>O0,z2F:()=>Jf,z3N:()=>Ws,zSh:()=>gd,zs3:()=>Co});var t=p(7579),e=p(727),f=p(8306),M=p(6451),a=p(3099);function C(s){for(let l in s)if(s[l]===C)return l;throw Error("Could not find renamed property on target object.")}function d(s,l){for(const g in l)l.hasOwnProperty(g)&&!s.hasOwnProperty(g)&&(s[g]=l[g])}function R(s){if("string"==typeof s)return s;if(Array.isArray(s))return"["+s.map(R).join(", ")+"]";if(null==s)return""+s;if(s.overriddenName)return`${s.overriddenName}`;if(s.name)return`${s.name}`;const l=s.toString();if(null==l)return""+l;const g=l.indexOf("\n");return-1===g?l:l.substring(0,g)}function h(s,l){return null==s||""===s?null===l?"":l:null==l||""===l?s:s+" "+l}const L=C({__forward_ref__:C});function w(s){return s.__forward_ref__=w,s.toString=function(){return R(this())},s}function D(s){return S(s)?s():s}function S(s){return"function"==typeof s&&s.hasOwnProperty(L)&&s.__forward_ref__===w}class E extends Error{constructor(l,g){super(function B(s,l){return`NG0${Math.abs(s)}${l?": "+l:""}`}(l,g)),this.code=l}}function Z(s){return"string"==typeof s?s:null==s?"":String(s)}function Y(s){return"function"==typeof s?s.name||s.toString():"object"==typeof s&&null!=s&&"function"==typeof s.type?s.type.name||s.type.toString():Z(s)}function ne(s,l){const g=l?` in ${l}`:"";throw new E(-201,`No provider for ${Y(s)} found${g}`)}function n(s,l){null==s&&function _(s,l,g,A){throw new Error(`ASSERTION ERROR: ${s}`+(null==A?"":` [Expected=> ${g} ${A} ${l} <=Actual]`))}(l,s,null,"!=")}function X(s){return{token:s.token,providedIn:s.providedIn||null,factory:s.factory,value:void 0}}function be(s){return{providers:s.providers||[],imports:s.imports||[]}}function Pe(s){return Ee(s,J)||Ee(s,ut)}function Ee(s,l){return s.hasOwnProperty(l)?s[l]:null}function Me(s){return s&&(s.hasOwnProperty(Ie)||s.hasOwnProperty(Oe))?s[Ie]:null}const J=C({\u0275prov:C}),Ie=C({\u0275inj:C}),ut=C({ngInjectableDef:C}),Oe=C({ngInjectorDef:C});var we=(()=>((we=we||{})[we.Default=0]="Default",we[we.Host=1]="Host",we[we.Self=2]="Self",we[we.SkipSelf=4]="SkipSelf",we[we.Optional=8]="Optional",we))();let ce;function xe(s){const l=ce;return ce=s,l}function W(s,l,g){const A=Pe(s);return A&&"root"==A.providedIn?void 0===A.value?A.value=A.factory():A.value:g&we.Optional?null:void 0!==l?l:void ne(R(s),"Injector")}function Ce(s){return{toString:s}.toString()}var fe=(()=>((fe=fe||{})[fe.OnPush=0]="OnPush",fe[fe.Default=1]="Default",fe))(),tt=(()=>{return(s=tt||(tt={}))[s.Emulated=0]="Emulated",s[s.None=2]="None",s[s.ShadowDom=3]="ShadowDom",tt;var s})();const Dt="undefined"!=typeof globalThis&&globalThis,di="undefined"!=typeof window&&window,Yt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ui=Dt||"undefined"!=typeof global&&global||di||Yt,gt={},it=[],bt=C({\u0275cmp:C}),ti=C({\u0275dir:C}),Qt=C({\u0275pipe:C}),Re=C({\u0275mod:C}),ke=C({\u0275fac:C}),de=C({__NG_ELEMENT_ID__:C});let ye=0;function ht(s){return Ce(()=>{const g={},A={type:s.type,providersResolver:null,decls:s.decls,vars:s.vars,factory:null,template:s.template||null,consts:s.consts||null,ngContentSelectors:s.ngContentSelectors,hostBindings:s.hostBindings||null,hostVars:s.hostVars||0,hostAttrs:s.hostAttrs||null,contentQueries:s.contentQueries||null,declaredInputs:g,inputs:null,outputs:null,exportAs:s.exportAs||null,onPush:s.changeDetection===fe.OnPush,directiveDefs:null,pipeDefs:null,selectors:s.selectors||it,viewQuery:s.viewQuery||null,features:s.features||null,data:s.data||{},encapsulation:s.encapsulation||tt.Emulated,id:"c",styles:s.styles||it,_:null,setInput:null,schemas:s.schemas||null,tView:null},F=s.directives,U=s.features,le=s.pipes;return A.id+=ye++,A.inputs=Ae(s.inputs,g),A.outputs=Ae(s.outputs),U&&U.forEach(De=>De(A)),A.directiveDefs=F?()=>("function"==typeof F?F():F).map(Ft):null,A.pipeDefs=le?()=>("function"==typeof le?le():le).map(nt):null,A})}function Ft(s){return lt(s)||function Ct(s){return s[ti]||null}(s)}function nt(s){return function mi(s){return s[Qt]||null}(s)}const He={};function rt(s){return Ce(()=>{const l={type:s.type,bootstrap:s.bootstrap||it,declarations:s.declarations||it,imports:s.imports||it,exports:s.exports||it,transitiveCompileScopes:null,schemas:s.schemas||null,id:s.id||null};return null!=s.id&&(He[s.id]=s.type),l})}function Ae(s,l){if(null==s)return gt;const g={};for(const A in s)if(s.hasOwnProperty(A)){let F=s[A],U=F;Array.isArray(F)&&(U=F[1],F=F[0]),g[F]=A,l&&(l[F]=U)}return g}const Ge=ht;function ot(s){return{type:s.type,name:s.name,factory:null,pure:!1!==s.pure,onDestroy:s.type.prototype.ngOnDestroy||null}}function lt(s){return s[bt]||null}function Jt(s,l){const g=s[Re]||null;if(!g&&!0===l)throw new Error(`Type ${R(s)} does not have '\u0275mod' property.`);return g}function Ni(s){return Array.isArray(s)&&"object"==typeof s[1]}function mn(s){return Array.isArray(s)&&!0===s[1]}function In(s){return 0!=(8&s.flags)}function Rn(s){return 2==(2&s.flags)}function tr(s){return 1==(1&s.flags)}function gn(s){return null!==s.template}function Ti(s){return 0!=(512&s[2])}function Wr(s,l){return s.hasOwnProperty(ke)?s[ke]:null}class Ya{constructor(l,g,A){this.previousValue=l,this.currentValue=g,this.firstChange=A}isFirstChange(){return this.firstChange}}function va(){return dr}function dr(s){return s.type.prototype.ngOnChanges&&(s.setInput=kr),ya}function ya(){const s=ra(this),l=null==s?void 0:s.current;if(l){const g=s.previous;if(g===gt)s.previous=l;else for(let A in l)g[A]=l[A];s.current=null,this.ngOnChanges(l)}}function kr(s,l,g,A){const F=ra(s)||function wa(s,l){return s[Dr]=l}(s,{previous:gt,current:null}),U=F.current||(F.current={}),le=F.previous,De=this.declaredInputs[g],Ze=le[De];U[De]=new Ya(Ze&&Ze.currentValue,l,le===gt),s[A]=l}va.ngInherit=!0;const Dr="__ngSimpleChanges__";function ra(s){return s[Dr]||null}let Nr;function Br(s){Nr=s}function Sa(){return void 0!==Nr?Nr:"undefined"!=typeof document?document:void 0}function Xn(s){return!!s.listen}const $e={createRenderer:(s,l)=>Sa()};function Je(s){for(;Array.isArray(s);)s=s[0];return s}function Mi(s,l){return Je(l[s])}function Pi(s,l){return Je(l[s.index])}function nr(s,l){return s.data[l]}function Bn(s,l){return s[l]}function It(s,l){const g=l[s];return Ni(g)?g:g[0]}function ci(s){return 4==(4&s[2])}function vt(s){return 128==(128&s[2])}function Oi(s,l){return null==l?null:s[l]}function je(s){s[18]=0}function Ye(s,l){s[5]+=l;let g=s,A=s[3];for(;null!==A&&(1===l&&1===g[5]||-1===l&&0===g[5]);)A[5]+=l,g=A,A=A[3]}const Fe={lFrame:kn(null),bindingsEnabled:!0};function Fa(){return Fe.bindingsEnabled}function Fi(){return Fe.lFrame.lView}function jn(){return Fe.lFrame.tView}function Hs(s){return Fe.lFrame.contextLView=s,s[8]}function Er(){let s=to();for(;null!==s&&64===s.type;)s=s.parent;return s}function to(){return Fe.lFrame.currentTNode}function Ta(s,l){const g=Fe.lFrame;g.currentTNode=s,g.isParent=l}function Ls(){return Fe.lFrame.isParent}function Ds(){Fe.lFrame.isParent=!1}function Ur(){const s=Fe.lFrame;let l=s.bindingRootIndex;return-1===l&&(l=s.bindingRootIndex=s.tView.bindingStartIndex),l}function ka(){return Fe.lFrame.bindingIndex}function oe(){return Fe.lFrame.bindingIndex++}function pe(s){const l=Fe.lFrame,g=l.bindingIndex;return l.bindingIndex=l.bindingIndex+s,g}function Vt(s,l){const g=Fe.lFrame;g.bindingIndex=g.bindingRootIndex=s,ni(l)}function ni(s){Fe.lFrame.currentDirectiveIndex=s}function gi(s){const l=Fe.lFrame.currentDirectiveIndex;return-1===l?null:s[l]}function ki(){return Fe.lFrame.currentQueryIndex}function $i(s){Fe.lFrame.currentQueryIndex=s}function dn(s){const l=s[1];return 2===l.type?l.declTNode:1===l.type?s[6]:null}function An(s,l,g){if(g&we.SkipSelf){let F=l,U=s;for(;!(F=F.parent,null!==F||g&we.Host||(F=dn(U),null===F||(U=U[15],10&F.type))););if(null===F)return!1;l=F,s=U}const A=Fe.lFrame=En();return A.currentTNode=l,A.lView=s,!0}function Gn(s){const l=En(),g=s[1];Fe.lFrame=l,l.currentTNode=g.firstChild,l.lView=s,l.tView=g,l.contextLView=s,l.bindingIndex=g.bindingStartIndex,l.inI18n=!1}function En(){const s=Fe.lFrame,l=null===s?null:s.child;return null===l?kn(s):l}function kn(s){const l={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:s,child:null,inI18n:!1};return null!==s&&(s.child=l),l}function ar(){const s=Fe.lFrame;return Fe.lFrame=s.parent,s.currentTNode=null,s.lView=null,s}const Rr=ar;function yr(){const s=ar();s.isParent=!0,s.tView=null,s.selectedIndex=-1,s.contextLView=null,s.elementDepthCount=0,s.currentDirectiveIndex=-1,s.currentNamespace=null,s.bindingRootIndex=-1,s.bindingIndex=-1,s.currentQueryIndex=0}function Mr(){return Fe.lFrame.selectedIndex}function jr(s){Fe.lFrame.selectedIndex=s}function Zn(){const s=Fe.lFrame;return nr(s.tView,s.selectedIndex)}function xr(){Fe.lFrame.currentNamespace="svg"}function la(){!function ws(){Fe.lFrame.currentNamespace=null}()}function _s(s,l){for(let g=l.directiveStart,A=l.directiveEnd;g=A)break}else l[Ze]<0&&(s[18]+=65536),(De>11>16&&(3&s[2])===l){s[2]+=2048;try{U.call(De)}finally{}}}else try{U.call(De)}finally{}}class La{constructor(l,g,A){this.factory=l,this.resolving=!1,this.canSeeViewProviders=g,this.injectImpl=A}}function pi(s,l,g){const A=Xn(s);let F=0;for(;Fl){le=U-1;break}}}for(;U>16}(s),A=l;for(;g>0;)A=A[15],g--;return A}let ca=!0;function ze(s){const l=ca;return ca=s,l}let ct=0;function qt(s,l){const g=Di(s,l);if(-1!==g)return g;const A=l[1];A.firstCreatePass&&(s.injectorIndex=l.length,ai(A.data,s),ai(l,null),ai(A.blueprint,null));const F=an(s,l),U=s.injectorIndex;if(nn(F)){const le=un(F),De=rr(F,l),Ze=De[1].data;for(let ft=0;ft<8;ft++)l[U+ft]=De[le+ft]|Ze[le+ft]}return l[U+8]=F,U}function ai(s,l){s.push(0,0,0,0,0,0,0,0,l)}function Di(s,l){return-1===s.injectorIndex||s.parent&&s.parent.injectorIndex===s.injectorIndex||null===l[s.injectorIndex+8]?-1:s.injectorIndex}function an(s,l){if(s.parent&&-1!==s.parent.injectorIndex)return s.parent.injectorIndex;let g=0,A=null,F=l;for(;null!==F;){const U=F[1],le=U.type;if(A=2===le?U.declTNode:1===le?F[6]:null,null===A)return-1;if(g++,F=F[15],-1!==A.injectorIndex)return A.injectorIndex|g<<16}return-1}function Pn(s,l,g){!function Pt(s,l,g){let A;"string"==typeof g?A=g.charCodeAt(0)||0:g.hasOwnProperty(de)&&(A=g[de]),null==A&&(A=g[de]=ct++);const F=255&A;l.data[s+(F>>5)]|=1<=0?255&l:Qo:l}(g);if("function"==typeof U){if(!An(l,s,A))return A&we.Host?gr(F,g,A):hr(l,g,A,F);try{const le=U(A);if(null!=le||A&we.Optional)return le;ne(g)}finally{Rr()}}else if("number"==typeof U){let le=null,De=Di(s,l),Ze=-1,ft=A&we.Host?l[16][6]:null;for((-1===De||A&we.SkipSelf)&&(Ze=-1===De?an(s,l):l[De+8],-1!==Ze&&W1(A,!1)?(le=l[1],De=un(Ze),l=rr(Ze,l)):De=-1);-1!==De;){const Lt=l[1];if(io(U,De,Lt.data)){const Kt=qo(De,l,g,le,A,ft);if(Kt!==za)return Kt}Ze=l[De+8],-1!==Ze&&W1(A,l[1].data[De+8]===ft)&&io(U,De,l)?(le=Lt,De=un(Ze),l=rr(Ze,l)):De=-1}}}return hr(l,g,A,F)}const za={};function Qo(){return new Jo(Er(),Fi())}function qo(s,l,g,A,F,U){const le=l[1],De=le.data[s+8],Lt=Da(De,le,g,null==A?Rn(De)&&ca:A!=le&&0!=(3&De.type),F&we.Host&&U===De);return null!==Lt?Bs(l,le,Lt,De):za}function Da(s,l,g,A,F){const U=s.providerIndexes,le=l.data,De=1048575&U,Ze=s.directiveStart,Lt=U>>20,li=F?De+Lt:s.directiveEnd;for(let vi=A?De:De+Lt;vi=Ze&&Hi.type===g)return vi}if(F){const vi=le[Ze];if(vi&&gn(vi)&&vi.type===g)return Ze}return null}function Bs(s,l,g,A){let F=s[g];const U=l.data;if(function Gr(s){return s instanceof La}(F)){const le=F;le.resolving&&function ae(s,l){const g=l?`. Dependency path: ${l.join(" > ")} > ${s}`:"";throw new E(-200,`Circular dependency in DI detected for ${s}${g}`)}(Y(U[g]));const De=ze(le.canSeeViewProviders);le.resolving=!0;const Ze=le.injectImpl?xe(le.injectImpl):null;An(s,A,we.Default);try{F=s[g]=le.factory(void 0,U,s,A),l.firstCreatePass&&g>=A.directiveStart&&function Aa(s,l,g){const{ngOnChanges:A,ngOnInit:F,ngDoCheck:U}=l.type.prototype;if(A){const le=dr(l);(g.preOrderHooks||(g.preOrderHooks=[])).push(s,le),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,le)}F&&(g.preOrderHooks||(g.preOrderHooks=[])).push(0-s,F),U&&((g.preOrderHooks||(g.preOrderHooks=[])).push(s,U),(g.preOrderCheckHooks||(g.preOrderCheckHooks=[])).push(s,U))}(g,U[g],l)}finally{null!==Ze&&xe(Ze),ze(De),le.resolving=!1,Rr()}}return F}function io(s,l,g){return!!(g[l+(s>>5)]&1<{const l=s.prototype.constructor,g=l[ke]||yl(l),A=Object.prototype;let F=Object.getPrototypeOf(s.prototype).constructor;for(;F&&F!==A;){const U=F[ke]||yl(F);if(U&&U!==g)return U;F=Object.getPrototypeOf(F)}return U=>new U})}function yl(s){return S(s)?()=>{const l=yl(D(s));return l&&l()}:Wr(s)}function Wl(s){return function Cn(s,l){if("class"===l)return s.classes;if("style"===l)return s.styles;const g=s.attrs;if(g){const A=g.length;let F=0;for(;F{const A=function Yl(s){return function(...g){if(s){const A=s(...g);for(const F in A)this[F]=A[F]}}}(l);function F(...U){if(this instanceof F)return A.apply(this,U),this;const le=new F(...U);return De.annotation=le,De;function De(Ze,ft,Lt){const Kt=Ze.hasOwnProperty(Eo)?Ze[Eo]:Object.defineProperty(Ze,Eo,{value:[]})[Eo];for(;Kt.length<=Lt;)Kt.push(null);return(Kt[Lt]=Kt[Lt]||[]).push(le),Ze}}return g&&(F.prototype=Object.create(g.prototype)),F.prototype.ngMetadataName=s,F.annotationCls=F,F})}class Zr{constructor(l,g){this._desc=l,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof g?this.__NG_ELEMENT_ID__=g:void 0!==g&&(this.\u0275prov=X({token:this,providedIn:g.providedIn||"root",factory:g.factory}))}toString(){return`InjectionToken ${this._desc}`}}const go=new Zr("AnalyzeForEntryComponents");function os(s,l){void 0===l&&(l=s);for(let g=0;gArray.isArray(g)?es(g,l):l(g))}function Jc(s,l,g){l>=s.length?s.push(g):s.splice(l,0,g)}function xl(s,l){return l>=s.length-1?s.pop():s.splice(l,1)[0]}function el(s,l){const g=[];for(let A=0;A=0?s[1|A]=g:(A=~A,function s3(s,l,g,A){let F=s.length;if(F==l)s.push(g,A);else if(1===F)s.push(A,s[0]),s[0]=g;else{for(F--,s.push(s[F-1],s[F]);F>l;)s[F]=s[F-2],F--;s[l]=g,s[l+1]=A}}(s,A,l,g)),A}function tl(s,l){const g=ro(s,l);if(g>=0)return s[1|g]}function ro(s,l){return function Ml(s,l,g){let A=0,F=s.length>>g;for(;F!==A;){const U=A+(F-A>>1),le=s[U<l?F=U:A=U+1}return~(F<({token:s})),-1),Sl=Po(To("Optional"),8),Us=Po(To("Self"),2),so=Po(To("SkipSelf"),4);let Os,Ll;function oo(s){var l;return(null===(l=function t1(){if(void 0===Os&&(Os=null,ui.trustedTypes))try{Os=ui.trustedTypes.createPolicy("angular",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Os}())||void 0===l?void 0:l.createHTML(s))||s}function sc(s){var l;return(null===(l=function r1(){if(void 0===Ll&&(Ll=null,ui.trustedTypes))try{Ll=ui.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:s=>s,createScript:s=>s,createScriptURL:s=>s})}catch(s){}return Ll}())||void 0===l?void 0:l.createHTML(s))||s}class is{constructor(l){this.changingThisBreaksApplicationSecurity=l}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}class oc extends is{getTypeName(){return"HTML"}}class Il extends is{getTypeName(){return"Style"}}class a1 extends is{getTypeName(){return"Script"}}class s2 extends is{getTypeName(){return"URL"}}class No extends is{getTypeName(){return"ResourceURL"}}function Ws(s){return s instanceof is?s.changingThisBreaksApplicationSecurity:s}function vo(s,l){const g=o2(s);if(null!=g&&g!==l){if("ResourceURL"===g&&"URL"===l)return!0;throw new Error(`Required a safe ${l}, got a ${g} (see https://g.co/ng/security#xss)`)}return g===l}function o2(s){return s instanceof is&&s.getTypeName()||null}function h3(s){return new oc(s)}function f3(s){return new Il(s)}function p3(s){return new a1(s)}function m3(s){return new s2(s)}function g3(s){return new No(s)}class s1{constructor(l){this.inertDocumentHelper=l}getInertBodyElement(l){l=""+l;try{const g=(new window.DOMParser).parseFromString(oo(l),"text/html").body;return null===g?this.inertDocumentHelper.getInertBodyElement(l):(g.removeChild(g.firstChild),g)}catch(g){return null}}}class c2{constructor(l){if(this.defaultDoc=l,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const g=this.inertDocument.createElement("html");this.inertDocument.appendChild(g);const A=this.inertDocument.createElement("body");g.appendChild(A)}}getInertBodyElement(l){const g=this.inertDocument.createElement("template");if("content"in g)return g.innerHTML=oo(l),g;const A=this.inertDocument.createElement("body");return A.innerHTML=oo(l),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(A),A}stripCustomNsAttrs(l){const g=l.attributes;for(let F=g.length-1;0Ro(l.trim())).join(", ")),this.buf.push(" ",le,'="',dc(Ze),'"')}var s;return this.buf.push(">"),!0}endElement(l){const g=l.nodeName.toLowerCase();da.hasOwnProperty(g)&&!lc.hasOwnProperty(g)&&(this.buf.push(""))}chars(l){this.buf.push(dc(l))}checkClobberedElement(l,g){if(g&&(l.compareDocumentPosition(g)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${l.outerHTML}`);return g}}const d1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,u1=/([^\#-~ |!])/g;function dc(s){return s.replace(/&/g,"&").replace(d1,function(l){return"&#"+(1024*(l.charCodeAt(0)-55296)+(l.charCodeAt(1)-56320)+65536)+";"}).replace(u1,function(l){return"&#"+l.charCodeAt(0)+";"}).replace(//g,">")}let G;function Le(s,l){let g=null;try{G=G||function l2(s){const l=new c2(s);return function d2(){try{return!!(new window.DOMParser).parseFromString(oo(""),"text/html")}catch(s){return!1}}()?new s1(l):l}(s);let A=l?String(l):"";g=G.getInertBodyElement(A);let F=5,U=A;do{if(0===F)throw new Error("Failed to sanitize html because the input is unstable");F--,A=U,U=g.innerHTML,g=G.getInertBodyElement(A)}while(A!==U);return oo((new c1).sanitizeChildren(P(g)||g))}finally{if(g){const A=P(g)||g;for(;A.firstChild;)A.removeChild(A.firstChild)}}}function P(s){return"content"in s&&function ie(s){return s.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===s.nodeName}(s)?s.content:null}var We=(()=>((We=We||{})[We.NONE=0]="NONE",We[We.HTML=1]="HTML",We[We.STYLE=2]="STYLE",We[We.SCRIPT=3]="SCRIPT",We[We.URL=4]="URL",We[We.RESOURCE_URL=5]="RESOURCE_URL",We))();function Ht(s){const l=Ln();return l?sc(l.sanitize(We.HTML,s)||""):vo(s,"HTML")?sc(Ws(s)):Le(Sa(),Z(s))}function ji(s){const l=Ln();return l?l.sanitize(We.URL,s)||"":vo(s,"URL")?Ws(s):Ro(Z(s))}function Ln(){const s=Fi();return s&&s[12]}const f2="__ngContext__";function ns(s,l){s[f2]=l}function p2(s){const l=function uc(s){return s[f2]||null}(s);return l?Array.isArray(l)?l:l.lView:null}function h1(s){return s.ngOriginalError}function C3(s,...l){s.error(...l)}class f1{constructor(){this._console=console}handleError(l){const g=this._findOriginalError(l),A=function Y4(s){return s&&s.ngErrorLogger||C3}(l);A(this._console,"ERROR",l),g&&A(this._console,"ORIGINAL ERROR",g)}_findOriginalError(l){let g=l&&h1(l);for(;g&&h1(g);)g=h1(g);return g||null}}const X4=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(ui))();function b2(s){return s.ownerDocument.defaultView}function js(s){return s instanceof Function?s():s}var Ks=(()=>((Ks=Ks||{})[Ks.Important=1]="Important",Ks[Ks.DashCase=2]="DashCase",Ks))();function M2(s,l){return undefined(s,l)}function dl(s){const l=s[3];return mn(l)?l[3]:l}function S2(s){return ru(s[13])}function A3(s){return ru(s[4])}function ru(s){for(;null!==s&&!mn(s);)s=s[4];return s}function Nl(s,l,g,A,F){if(null!=A){let U,le=!1;mn(A)?U=A:Ni(A)&&(le=!0,A=A[0]);const De=Je(A);0===s&&null!==g?null==F?hc(l,g,De):hl(l,g,De,F||null,!0):1===s&&null!==g?hl(l,g,De,F||null,!0):2===s?function F2(s,l,g){const A=fl(s,l);A&&function cu(s,l,g,A){Xn(s)?s.removeChild(l,g,A):l.removeChild(g)}(s,A,l,g)}(l,De,le):3===s&&l.destroyNode(De),null!=U&&function R3(s,l,g,A,F){const U=g[7];U!==Je(g)&&Nl(l,s,A,U,F);for(let De=10;De0&&(s[g-1][4]=A[4]);const U=xl(s,10+l);!function A2(s,l){gc(s,l,l[11],2,null,null),l[0]=null,l[6]=null}(A[1],A);const le=U[19];null!==le&&le.detachView(U[1]),A[3]=null,A[4]=null,A[2]&=-129}return A}function O3(s,l){if(!(256&l[2])){const g=l[11];Xn(g)&&g.destroyNode&&gc(s,l,g,3,null,null),function D3(s){let l=s[13];if(!l)return I2(s[1],s);for(;l;){let g=null;if(Ni(l))g=l[13];else{const A=l[10];A&&(g=A)}if(!g){for(;l&&!l[4]&&l!==s;)Ni(l)&&I2(l[1],l),l=l[3];null===l&&(l=s),Ni(l)&&I2(l[1],l),g=l&&l[4]}l=g}}(l)}}function I2(s,l){if(!(256&l[2])){l[2]&=-129,l[2]|=256,function P3(s,l){let g;if(null!=s&&null!=(g=s.destroyHooks))for(let A=0;A=0?A[F=ft]():A[F=-ft].unsubscribe(),U+=2}else{const le=A[F=g[U+1]];g[U].call(le)}if(null!==A){for(let U=F+1;UU?"":F[Kt+1].toLowerCase();const vi=8&A?li:null;if(vi&&-1!==F3(vi,ft,0)||2&A&&ft!==li){if(Ps(A))return!1;le=!0}}}}else{if(!le&&!Ps(A)&&!Ps(Ze))return!1;if(le&&Ps(Ze))continue;le=!1,A=Ze|1&A}}return Ps(A)||le}function Ps(s){return 0==(1&s)}function z3(s,l,g,A){if(null===l)return-1;let F=0;if(A||!g){let U=!1;for(;F-1)for(g++;g0?'="'+De+'"':"")+"]"}else 8&A?F+="."+le:4&A&&(F+=" "+le);else""!==F&&!Ps(le)&&(l+=B3(U,F),F=""),A=le,U=U||!Ps(A);g++}return""!==F&&(l+=B3(U,F)),l}const Kn={};function Z3(s){W3(jn(),Fi(),Mr()+s,!1)}function W3(s,l,g,A){if(!A)if(3==(3&l[2])){const U=s.preOrderCheckHooks;null!==U&&vs(l,U,g)}else{const U=s.preOrderHooks;null!==U&&cn(l,U,0,g)}jr(g)}function _c(s,l){return s<<17|l<<2}function Qs(s){return s>>17&32767}function Z2(s){return 2|s}function bo(s){return(131068&s)>>2}function W2(s,l){return-131069&s|l<<2}function Y2(s){return 1|s}function Tu(s,l){const g=s.contentQueries;if(null!==g)for(let A=0;A20&&W3(s,l,20,!1),g(A,F)}finally{jr(U)}}function Du(s,l,g){if(In(l)){const F=l.directiveEnd;for(let U=l.directiveStart;U0;){const g=s[--l];if("number"==typeof g&&g<0)return g}return 0})(De)!=Ze&&De.push(Ze),De.push(A,F,le)}}function zu(s,l){null!==s.hostBindings&&s.hostBindings(1,l)}function Vu(s,l){l.flags|=2,(s.components||(s.components=[])).push(l.index)}function P6(s,l,g){if(g){if(l.exportAs)for(let A=0;A0&&c0(g)}}function c0(s){for(let A=S2(s);null!==A;A=A3(A))for(let F=10;F0&&c0(U)}const g=s[1].components;if(null!==g)for(let A=0;A0&&c0(F)}}function Zu(s,l){const g=It(l,s),A=g[1];(function Wu(s,l){for(let g=l.length;gPromise.resolve(null))();function Ku(s){return s[7]||(s[7]=[])}function h0(s){return s.cleanup||(s.cleanup=[])}function Qu(s,l,g){return(null===s||gn(s))&&(g=function kt(s){for(;Array.isArray(s);){if("object"==typeof s[1])return s;s=s[0]}return null}(g[l.index])),g[11]}function pd(s,l){const g=s[9],A=g?g.get(f1,null):null;A&&A.handleError(l)}function qu(s,l,g,A,F){for(let U=0;Uthis.processProvider(De,l,g)),es([l],De=>this.processInjectorType(De,[],U)),this.records.set(md,xc(void 0,this));const le=this.records.get(gd);this.scope=null!=le?le.value:null,this.source=F||("object"==typeof l?null:R(l))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(l=>l.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(l,g=Kr,A=we.Default){this.assertNotDestroyed();const F=Xl(this),U=xe(void 0);try{if(!(A&we.SkipSelf)){let De=this.records.get(l);if(void 0===De){const Ze=function G6(s){return"function"==typeof s||"object"==typeof s&&s instanceof Zr}(l)&&Pe(l);De=Ze&&this.injectableDefInScope(Ze)?xc(g0(l),T1):null,this.records.set(l,De)}if(null!=De)return this.hydrate(l,De)}return(A&we.Self?m0():this.parent).get(l,g=A&we.Optional&&g===Kr?null:g)}catch(le){if("NullInjectorError"===le.name){if((le[Oo]=le[Oo]||[]).unshift(R(l)),F)throw le;return function l3(s,l,g,A){const F=s[Oo];throw l[nl]&&F.unshift(l[nl]),s.message=function ic(s,l,g,A=null){s=s&&"\n"===s.charAt(0)&&"\u0275"==s.charAt(1)?s.substr(2):s;let F=R(l);if(Array.isArray(l))F=l.map(R).join(" -> ");else if("object"==typeof l){let U=[];for(let le in l)if(l.hasOwnProperty(le)){let De=l[le];U.push(le+":"+("string"==typeof De?JSON.stringify(De):R(De)))}F=`{${U.join(", ")}}`}return`${g}${A?"("+A+")":""}[${F}]: ${s.replace(Jl,"\n ")}`}("\n"+s.message,F,g,A),s.ngTokenPath=F,s[Oo]=null,s}(le,l,"R3InjectorError",this.source)}throw le}finally{xe(U),Xl(F)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(l=>this.get(l))}toString(){const l=[];return this.records.forEach((A,F)=>l.push(R(F))),`R3Injector[${l.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processInjectorType(l,g,A){if(!(l=D(l)))return!1;let F=Me(l);const U=null==F&&l.ngModule||void 0,le=void 0===U?l:U,De=-1!==A.indexOf(le);if(void 0!==U&&(F=Me(U)),null==F)return!1;if(null!=F.imports&&!De){let Lt;A.push(le);try{es(F.imports,Kt=>{this.processInjectorType(Kt,g,A)&&(void 0===Lt&&(Lt=[]),Lt.push(Kt))})}finally{}if(void 0!==Lt)for(let Kt=0;Ktthis.processProvider(Hi,li,vi||it))}}this.injectorDefTypes.add(le);const Ze=Wr(le)||(()=>new le);this.records.set(le,xc(Ze,T1));const ft=F.providers;if(null!=ft&&!De){const Lt=l;es(ft,Kt=>this.processProvider(Kt,Lt,ft))}return void 0!==U&&void 0!==l.providers}processProvider(l,g,A){let F=Cc(l=D(l))?l:D(l&&l.provide);const U=function vd(s,l,g){return _0(s)?xc(void 0,s.useValue):xc(eh(s),T1)}(l);if(Cc(l)||!0!==l.multi)this.records.get(F);else{let le=this.records.get(F);le||(le=xc(void 0,T1,!0),le.factory=()=>$c(le.multi),this.records.set(F,le)),F=l,le.multi.push(l)}this.records.set(F,U)}hydrate(l,g){return g.value===T1&&(g.value=Xu,g.value=g.factory()),"object"==typeof g.value&&g.value&&function nh(s){return null!==s&&"object"==typeof s&&"function"==typeof s.ngOnDestroy}(g.value)&&this.onDestroy.add(g.value),g.value}injectableDefInScope(l){if(!l.providedIn)return!1;const g=D(l.providedIn);return"string"==typeof g?"any"===g||g===this.scope:this.injectorDefTypes.has(g)}}function g0(s){const l=Pe(s),g=null!==l?l.factory:Wr(s);if(null!==g)return g;if(s instanceof Zr)throw new E(204,!1);if(s instanceof Function)return function V6(s){const l=s.length;if(l>0)throw el(l,"?"),new E(204,!1);const g=function j(s){const l=s&&(s[J]||s[ut]);if(l){const g=function Ve(s){if(s.hasOwnProperty("name"))return s.name;const l=(""+s).match(/^function\s*([^\s(]+)/);return null===l?"":l[1]}(s);return console.warn(`DEPRECATED: DI is instantiating a token "${g}" 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 "${g}" class.`),l}return null}(s);return null!==g?()=>g.factory(s):()=>new s}(s);throw new E(204,!1)}function eh(s,l,g){let A;if(Cc(s)){const F=D(s);return Wr(F)||g0(F)}if(_0(s))A=()=>D(s.useValue);else if(function th(s){return!(!s||!s.useFactory)}(s))A=()=>s.useFactory(...$c(s.deps||[]));else if(function B6(s){return!(!s||!s.useExisting)}(s))A=()=>Ba(D(s.useExisting));else{const F=D(s&&(s.useClass||s.provide));if(!function U6(s){return!!s.deps}(s))return Wr(F)||g0(F);A=()=>new F(...$c(s.deps))}return A}function xc(s,l,g=!1){return{factory:s,value:l,multi:g?[]:void 0}}function _0(s){return null!==s&&"object"==typeof s&&X1 in s}function Cc(s){return"function"==typeof s}let Co=(()=>{class s{static create(g,A){var F;if(Array.isArray(g))return $u({name:""},A,g,"");{const U=null!==(F=g.name)&&void 0!==F?F:"";return $u({name:U},g.parent,g.providers,U)}}}return s.THROW_IF_NOT_FOUND=Kr,s.NULL=new f0,s.\u0275prov=X({token:s,providedIn:"any",factory:()=>Ba(md)}),s.__NG_ELEMENT_ID__=-1,s})();function Q6(s,l){_s(p2(s)[1],Er())}function wd(s){let l=function ph(s){return Object.getPrototypeOf(s.prototype).constructor}(s.type),g=!0;const A=[s];for(;l;){let F;if(gn(s))F=l.\u0275cmp||l.\u0275dir;else{if(l.\u0275cmp)throw new E(903,"");F=l.\u0275dir}if(F){if(g){A.push(F);const le=s;le.inputs=Sd(s.inputs),le.declaredInputs=Sd(s.declaredInputs),le.outputs=Sd(s.outputs);const De=F.hostBindings;De&&J6(s,De);const Ze=F.viewQuery,ft=F.contentQueries;if(Ze&&q6(s,Ze),ft&&gh(s,ft),d(s.inputs,F.inputs),d(s.declaredInputs,F.declaredInputs),d(s.outputs,F.outputs),gn(F)&&F.data.animation){const Lt=s.data;Lt.animation=(Lt.animation||[]).concat(F.data.animation)}}const U=F.features;if(U)for(let le=0;le=0;A--){const F=s[A];F.hostVars=l+=F.hostVars,F.hostAttrs=zi(F.hostAttrs,g=zi(g,F.hostAttrs))}}(A)}function Sd(s){return s===gt?{}:s===it?[]:s}function q6(s,l){const g=s.viewQuery;s.viewQuery=g?(A,F)=>{l(A,F),g(A,F)}:l}function gh(s,l){const g=s.contentQueries;s.contentQueries=g?(A,F,U)=>{l(A,F,U),g(A,F,U)}:l}function J6(s,l){const g=s.hostBindings;s.hostBindings=g?(A,F)=>{l(A,F),g(A,F)}:l}let A1=null;function pl(){if(!A1){const s=ui.Symbol;if(s&&s.iterator)A1=s.iterator;else{const l=Object.getOwnPropertyNames(Map.prototype);for(let g=0;gDe(Je(pr[A.index])):A.index;if(Xn(g)){let pr=null;if(!De&&Ze&&(pr=function jd(s,l,g,A){const F=s.cleanup;if(null!=F)for(let U=0;UZe?De[Ze]:null}"string"==typeof le&&(U+=2)}return null}(s,l,F,A.index)),null!==pr)(pr.__ngLastListenerFn__||pr).__ngNextListenerFn__=U,pr.__ngLastListenerFn__=U,vi=!1;else{U=Kd(A,l,Kt,U,!1);const Or=g.listen(bn,F,U);li.push(U,Or),Lt&&Lt.push(F,On,Bi,Bi+1)}}else U=Kd(A,l,Kt,U,!0),bn.addEventListener(F,U,le),li.push(U),Lt&&Lt.push(F,On,Bi,le)}else U=Kd(A,l,Kt,U,!1);const Hi=A.outputs;let qi;if(vi&&null!==Hi&&(qi=Hi[F])){const rn=qi.length;if(rn)for(let bn=0;bn0;)l=l[15],s--;return l}(s,Fe.lFrame.contextLView))[8]}(s)}function ip(s,l){let g=null;const A=function fu(s){const l=s.attrs;if(null!=l){const g=l.indexOf(5);if(0==(1&g))return l[g+1]}return null}(s);for(let F=0;F=0}const Ga={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function H0(s){return s.substring(Ga.key,Ga.keyEnd)}function Ph(s,l){const g=Ga.textEnd;return g===l?-1:(l=Ga.keyEnd=function Rh(s,l,g){for(;l32;)l++;return l}(s,Ga.key=l,g),zc(s,l,g))}function zc(s,l,g){for(;l=0;g=Ph(l,g))_r(s,H0(l),!0)}function fo(s,l,g,A){const F=Fi(),U=jn(),le=pe(2);U.firstUpdatePass&&Uh(U,s,le,A),l!==Kn&&us(F,le,l)&&jh(U,U.data[Mr()],F,F[11],s,F[le+1]=function dp(s,l){return null==s||("string"==typeof l?s+=l:"object"==typeof s&&(s=R(Ws(s)))),s}(l,g),A,le)}function Xs(s,l,g,A){const F=jn(),U=pe(2);F.firstUpdatePass&&Uh(F,null,U,A);const le=Fi();if(g!==Kn&&us(le,U,g)){const De=F.data[Mr()];if(Kh(De,A)&&!Bh(F,U)){let Ze=A?De.classesWithoutHost:De.stylesWithoutHost;null!==Ze&&(g=h(Ze,g||"")),Rc(F,De,le,g,A)}else!function Yh(s,l,g,A,F,U,le,De){F===Kn&&(F=it);let Ze=0,ft=0,Lt=0=s.expandoStartIndex}function Uh(s,l,g,A){const F=s.data;if(null===F[g+1]){const U=F[Mr()],le=Bh(s,g);Kh(U,A)&&null===l&&!le&&(l=!1),l=function Gh(s,l,g,A){const F=gi(s);let U=A?l.residualClasses:l.residualStyles;if(null===F)0===(A?l.classBindings:l.styleBindings)&&(g=B1(g=V0(null,s,l,g,A),l.attrs,A),U=null);else{const le=l.directiveStylingLast;if(-1===le||s[le]!==F)if(g=V0(F,s,l,g,A),null===U){let Ze=function lp(s,l,g){const A=g?l.classBindings:l.styleBindings;if(0!==bo(A))return s[Qs(A)]}(s,l,A);void 0!==Ze&&Array.isArray(Ze)&&(Ze=V0(null,s,l,Ze[1],A),Ze=B1(Ze,l.attrs,A),function Zh(s,l,g,A){s[Qs(g?l.classBindings:l.styleBindings)]=A}(s,l,A,Ze))}else U=function Wh(s,l,g){let A;const F=l.directiveEnd;for(let U=1+l.directiveStylingLast;U0)&&(ft=!0)}else Lt=g;if(F)if(0!==Ze){const li=Qs(s[De+1]);s[A+1]=_c(li,De),0!==li&&(s[li+1]=W2(s[li+1],A)),s[De+1]=function _u(s,l){return 131071&s|l<<17}(s[De+1],A)}else s[A+1]=_c(De,0),0!==De&&(s[De+1]=W2(s[De+1],A)),De=A;else s[A+1]=_c(Ze,0),0===De?De=A:s[Ze+1]=W2(s[Ze+1],A),Ze=A;ft&&(s[A+1]=Z2(s[A+1])),e4(s,Lt,A,!0),e4(s,Lt,A,!1),function Oh(s,l,g,A,F){const U=F?s.residualClasses:s.residualStyles;null!=U&&"string"==typeof l&&ro(U,l)>=0&&(g[A+1]=Y2(g[A+1]))}(l,Lt,s,A,U),le=_c(De,Ze),U?l.classBindings=le:l.styleBindings=le}(F,U,l,g,le,A)}}function V0(s,l,g,A,F){let U=null;const le=g.directiveEnd;let De=g.directiveStylingLast;for(-1===De?De=g.directiveStart:De++;De0;){const Ze=s[F],ft=Array.isArray(Ze),Lt=ft?Ze[1]:Ze,Kt=null===Lt;let li=g[F+1];li===Kn&&(li=Kt?it:void 0);let vi=Kt?tl(li,A):Lt===A?li:void 0;if(ft&&!B0(vi)&&(vi=tl(Ze,A)),B0(vi)&&(De=vi,le))return De;const Hi=s[F+1];F=le?Qs(Hi):bo(Hi)}if(null!==l){let Ze=U?l.residualClasses:l.residualStyles;null!=Ze&&(De=tl(Ze,A))}return De}function B0(s){return void 0!==s}function Kh(s,l){return 0!=(s.flags&(l?16:32))}function r4(s,l=""){const g=Fi(),A=jn(),F=s+20,U=A.firstCreatePass?Hl(A,F,1,l,null):A.data[F],le=g[F]=function E2(s,l){return Xn(s)?s.createText(l):s.createTextNode(l)}(g[11],l);fc(A,g,le,U),Ta(U,!1)}function U0(s){return G0("",s,""),U0}function G0(s,l,g){const A=Fi(),F=wc(A,s,l,g);return F!==Kn&&xo(A,Mr(),F),G0}function Z0(s,l,g,A,F){const U=Fi(),le=Sc(U,s,l,g,A,F);return le!==Kn&&xo(U,Mr(),le),Z0}function W0(s,l,g,A,F,U,le){const De=Fi(),Ze=function Ec(s,l,g,A,F,U,le,De){const ft=D1(s,ka(),g,F,le);return pe(3),ft?l+Z(g)+A+Z(F)+U+Z(le)+De:Kn}(De,s,l,g,A,F,U,le);return Ze!==Kn&&xo(De,Mr(),Ze),W0}function a4(s,l,g,A,F,U,le,De,Ze){const ft=Fi(),Lt=Vl(ft,s,l,g,A,F,U,le,De,Ze);return Lt!==Kn&&xo(ft,Mr(),Lt),a4}function Xh(s,l,g){Xs(_r,ho,wc(Fi(),s,l,g),!0)}function Nn(s,l,g){const A=Fi();return us(A,oe(),l)&&bs(jn(),Zn(),A,s,l,A[11],g,!0),Nn}function Sn(s,l,g){const A=Fi();if(us(A,oe(),l)){const U=jn(),le=Zn();bs(U,le,A,s,l,Qu(gi(U.data),le,A),g,!0)}return Sn}const wr=void 0;var fs=["en",[["a","p"],["AM","PM"],wr],[["AM","PM"],wr,wr],[["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"]],wr,[["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"]],wr,[["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}",wr,"{1} 'at' {0}",wr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Tr(s){const g=Math.floor(Math.abs(s)),A=s.toString().replace(/^[^.]*\.?/,"").length;return 1===g&&0===A?1:5}];let Hr={};function Oa(s){const l=function ps(s){return s.toLowerCase().replace(/_/g,"-")}(s);let g=Cs(l);if(g)return g;const A=l.split("-")[0];if(g=Cs(A),g)return g;if("en"===A)return fs;throw new Error(`Missing locale data for the locale "${s}".`)}function Fr(s){return Oa(s)[sn.PluralCase]}function Cs(s){return s in Hr||(Hr[s]=ui.ng&&ui.ng.common&&ui.ng.common.locales&&ui.ng.common.locales[s]),Hr[s]}var sn=(()=>((sn=sn||{})[sn.LocaleId=0]="LocaleId",sn[sn.DayPeriodsFormat=1]="DayPeriodsFormat",sn[sn.DayPeriodsStandalone=2]="DayPeriodsStandalone",sn[sn.DaysFormat=3]="DaysFormat",sn[sn.DaysStandalone=4]="DaysStandalone",sn[sn.MonthsFormat=5]="MonthsFormat",sn[sn.MonthsStandalone=6]="MonthsStandalone",sn[sn.Eras=7]="Eras",sn[sn.FirstDayOfWeek=8]="FirstDayOfWeek",sn[sn.WeekendRange=9]="WeekendRange",sn[sn.DateFormat=10]="DateFormat",sn[sn.TimeFormat=11]="TimeFormat",sn[sn.DateTimeFormat=12]="DateTimeFormat",sn[sn.NumberSymbols=13]="NumberSymbols",sn[sn.NumberFormats=14]="NumberFormats",sn[sn.CurrencyCode=15]="CurrencyCode",sn[sn.CurrencySymbol=16]="CurrencySymbol",sn[sn.CurrencyName=17]="CurrencyName",sn[sn.Currencies=18]="Currencies",sn[sn.Directionality=19]="Directionality",sn[sn.PluralCase=20]="PluralCase",sn[sn.ExtraData=21]="ExtraData",sn))();const $r="en-US";let Ja=$r;function uf(s,l,g,A,F){if(s=D(s),Array.isArray(s))for(let U=0;U>20;if(Cc(s)||!s.multi){const vi=new La(Ze,F,vl),Hi=pf(De,l,F?Lt:Lt+li,Kt);-1===Hi?(Pn(qt(ft,le),U,De),hf(U,s,l.length),l.push(De),ft.directiveStart++,ft.directiveEnd++,F&&(ft.providerIndexes+=1048576),g.push(vi),le.push(vi)):(g[Hi]=vi,le[Hi]=vi)}else{const vi=pf(De,l,Lt+li,Kt),Hi=pf(De,l,Lt,Lt+li),qi=vi>=0&&g[vi],rn=Hi>=0&&g[Hi];if(F&&!rn||!F&&!qi){Pn(qt(ft,le),U,De);const bn=function Hp(s,l,g,A,F){const U=new La(s,g,vl);return U.multi=[],U.index=l,U.componentProviders=0,ff(U,F,A&&!g),U}(F?j8:Rp,g.length,F,A,Ze);!F&&rn&&(g[Hi].providerFactory=bn),hf(U,s,l.length,0),l.push(De),ft.directiveStart++,ft.directiveEnd++,F&&(ft.providerIndexes+=1048576),g.push(bn),le.push(bn)}else hf(U,s,vi>-1?vi:Hi,ff(g[F?Hi:vi],Ze,!F&&A));!F&&A&&rn&&g[Hi].componentProviders++}}}function hf(s,l,g,A){const F=Cc(l),U=function ih(s){return!!s.useClass}(l);if(F||U){const Ze=(U?D(l.useClass):l).prototype.ngOnDestroy;if(Ze){const ft=s.destroyHooks||(s.destroyHooks=[]);if(!F&&l.multi){const Lt=ft.indexOf(g);-1===Lt?ft.push(g,[A,Ze]):ft[Lt+1].push(A,Ze)}else ft.push(g,Ze)}}}function ff(s,l,g){return g&&s.componentProviders++,s.multi.push(l)-1}function pf(s,l,g,A){for(let F=g;F{g.providersResolver=(A,F)=>function Y8(s,l,g){const A=jn();if(A.firstCreatePass){const F=gn(s);uf(g,A.data,A.blueprint,F,!0),uf(l,A.data,A.blueprint,F,!1)}}(A,F?F(s):s,l)}}class gf{}class Vp{resolveComponentFactory(l){throw function Q8(s){const l=Error(`No component factory found for ${R(s)}. Did you add it to @NgModule.entryComponents?`);return l.ngComponent=s,l}(l)}}let c4=(()=>{class s{}return s.NULL=new Vp,s})();function q8(){return Zc(Er(),Fi())}function Zc(s,l){return new J0(Pi(s,l))}let J0=(()=>{class s{constructor(g){this.nativeElement=g}}return s.__NG_ELEMENT_ID__=q8,s})();function Bp(s){return s instanceof J0?s.nativeElement:s}class _f{}let J8=(()=>{class s{}return s.__NG_ELEMENT_ID__=()=>function X8(){const s=Fi(),g=It(Er().index,s);return function Up(s){return s[11]}(Ni(g)?g:s)}(),s})(),$8=(()=>{class s{}return s.\u0275prov=X({token:s,providedIn:"root",factory:()=>null}),s})();class Gp{constructor(l){this.full=l,this.major=l.split(".")[0],this.minor=l.split(".")[1],this.patch=l.split(".").slice(2).join(".")}}const e5=new Gp("13.3.11"),vf={};function d4(s,l,g,A,F=!1){for(;null!==g;){const U=l[g.index];if(null!==U&&A.push(Je(U)),mn(U))for(let De=10;De-1&&(ul(l,A),xl(g,A))}this._attachedToViewContainer=!1}O3(this._lView[1],this._lView)}onDestroy(l){a0(this._lView[1],this._lView,null,l)}markForCheck(){yc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function bc(s,l,g){const A=l[10];A.begin&&A.begin();try{vc(s,l,s.template,g)}catch(F){throw pd(l,F),F}finally{A.end&&A.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function ou(s,l){gc(s,l,l[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(l){if(this._attachedToViewContainer)throw new E(902,"");this._appRef=l}}class t5 extends X0{constructor(l){super(l),this._view=l}detectChanges(){fd(this._view)}checkNoChanges(){}get context(){return null}}class Zp extends c4{constructor(l){super(),this.ngModule=l}resolveComponentFactory(l){const g=lt(l);return new yf(g,this.ngModule)}}function u4(s){const l=[];for(let g in s)s.hasOwnProperty(g)&&l.push({propName:s[g],templateName:g});return l}class yf extends gf{constructor(l,g){super(),this.componentDef=l,this.ngModule=g,this.componentType=l.type,this.selector=function U3(s){return s.map(gu).join(",")}(l.selectors),this.ngContentSelectors=l.ngContentSelectors?l.ngContentSelectors:[],this.isBoundToModule=!!g}get inputs(){return u4(this.componentDef.inputs)}get outputs(){return u4(this.componentDef.outputs)}create(l,g,A,F){const U=(F=F||this.ngModule)?function n5(s,l){return{get:(g,A,F)=>{const U=s.get(g,vf,F);return U!==vf||A===vf?U:l.get(g,A,F)}}}(l,F.injector):l,le=U.get(_f,$e),De=U.get($8,null),Ze=le.createRenderer(null,this.componentDef),ft=this.componentDef.selectors[0][0]||"div",Lt=A?function Iu(s,l,g){if(Xn(s))return s.selectRootElement(l,g===tt.ShadowDom);let A="string"==typeof l?s.querySelector(l):l;return A.textContent="",A}(Ze,A,this.componentDef.encapsulation):yo(le.createRenderer(null,this.componentDef),ft,function i5(s){const l=s.toLowerCase();return"svg"===l?"svg":"math"===l?"math":null}(ft)),Kt=this.componentDef.onPush?576:528,li=function Md(s,l){return{components:[],scheduler:s||X4,clean:ju,playerHandler:l||null,flags:0}}(),vi=r0(0,null,null,1,0,null,null,null,null,null),Hi=C1(null,vi,li,Kt,null,null,le,Ze,De,U);let qi,rn;Gn(Hi);try{const bn=function xd(s,l,g,A,F,U){const le=g[1];g[20]=s;const Ze=Hl(le,20,2,"#host",null),ft=Ze.mergedAttrs=l.hostAttrs;null!==ft&&(E1(Ze,ft,!0),null!==s&&(pi(F,s,ft),null!==Ze.classes&&_1(F,s,Ze.classes),null!==Ze.styles&&H3(F,s,Ze.styles)));const Lt=A.createRenderer(s,l),Kt=C1(g,sd(l),null,l.onPush?64:16,g[20],Ze,A,Lt,U||null,null);return le.firstCreatePass&&(Pn(qt(Ze,g),le,l.type),Vu(le,Ze),w1(Ze,g.length,1)),S1(g,Kt),g[20]=Kt}(Lt,this.componentDef,Hi,le,Ze);if(Lt)if(A)pi(Ze,Lt,["ng-version",e5.full]);else{const{attrs:Bi,classes:On}=function G3(s){const l=[],g=[];let A=1,F=2;for(;A0&&_1(Ze,Lt,On.join(" "))}if(rn=nr(vi,20),void 0!==g){const Bi=rn.projection=[];for(let On=0;OnZe(le,l)),l.contentQueries){const Ze=Er();l.contentQueries(1,le,Ze.directiveStart)}const De=Er();return!U.firstCreatePass||null===l.hostBindings&&null===l.hostAttrs||(jr(De.index),Hu(g[1],De,0,De.directiveStart,De.directiveEnd,l),zu(l,le)),le}(bn,this.componentDef,Hi,li,[Q6]),ks(vi,Hi,null)}finally{yr()}return new a5(this.componentType,qi,Zc(rn,Hi),Hi,rn)}}class a5 extends class K8{}{constructor(l,g,A,F,U){super(),this.location=A,this._rootLView=F,this._tNode=U,this.instance=g,this.hostView=this.changeDetectorRef=new t5(F),this.componentType=l}get injector(){return new Jo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(l){this.hostView.onDestroy(l)}}class G1{}class Yp{}const Wc=new Map;class Qp extends G1{constructor(l,g){super(),this._parent=g,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Zp(this);const A=Jt(l);this._bootstrapComponents=js(A.bootstrap),this._r3Injector=_d(l,g,[{provide:G1,useValue:this},{provide:c4,useValue:this.componentFactoryResolver}],R(l)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(l)}get(l,g=Co.THROW_IF_NOT_FOUND,A=we.Default){return l===Co||l===G1||l===md?this:this._r3Injector.get(l,g,A)}destroy(){const l=this._r3Injector;!l.destroyed&&l.destroy(),this.destroyCbs.forEach(g=>g()),this.destroyCbs=null}onDestroy(l){this.destroyCbs.push(l)}}class h4 extends Yp{constructor(l){super(),this.moduleType=l,null!==Jt(l)&&function o5(s){const l=new Set;!function g(A){const F=Jt(A,!0),U=F.id;null!==U&&(function jp(s,l,g){if(l&&l!==g)throw new Error(`Duplicate module registered for ${s} - ${R(l)} vs ${R(l.name)}`)}(U,Wc.get(U),A),Wc.set(U,A));const le=js(F.imports);for(const De of le)l.has(De)||(l.add(De),g(De))}(s)}(l)}create(l){return new Qp(this.moduleType,l)}}function qp(s,l,g){const A=Ur()+s,F=Fi();return F[A]===Kn?Mo(F,A,g?l.call(g):l()):function Mc(s,l){return s[l]}(F,A)}function Jp(s,l,g,A){return im(Fi(),Ur(),s,l,g,A)}function bf(s,l,g,A,F){return nm(Fi(),Ur(),s,l,g,A,F)}function Xp(s,l,g,A,F,U){return f4(Fi(),Ur(),s,l,g,A,F,U)}function $0(s,l){const g=s[l];return g===Kn?void 0:g}function im(s,l,g,A,F,U){const le=l+g;return us(s,le,F)?Mo(s,le+1,U?A.call(U,F):A(F)):$0(s,le+1)}function nm(s,l,g,A,F,U,le){const De=l+g;return zl(s,De,F,U)?Mo(s,De+2,le?A.call(le,F,U):A(F,U)):$0(s,De+2)}function f4(s,l,g,A,F,U,le,De){const Ze=l+g;return D1(s,Ze,F,U,le)?Mo(s,Ze+3,De?A.call(De,F,U,le):A(F,U,le)):$0(s,Ze+3)}function xf(s,l){const g=jn();let A;const F=s+20;g.firstCreatePass?(A=function u5(s,l){if(l)for(let g=l.length-1;g>=0;g--){const A=l[g];if(s===A.name)return A}}(l,g.pipeRegistry),g.data[F]=A,A.onDestroy&&(g.destroyHooks||(g.destroyHooks=[])).push(F,A.onDestroy)):A=g.data[F];const U=A.factory||(A.factory=Wr(A.type)),le=xe(vl);try{const De=ze(!1),Ze=U();return ze(De),function M0(s,l,g,A){g>=s.data.length&&(s.data[g]=null,s.blueprint[g]=null),l[g]=A}(g,Fi(),F,Ze),Ze}finally{xe(le)}}function sm(s,l,g){const A=s+20,F=Fi(),U=Bn(F,A);return e3(F,A)?im(F,Ur(),l,U.transform,g,U):U.transform(g)}function om(s,l,g,A){const F=s+20,U=Fi(),le=Bn(U,F);return e3(U,F)?nm(U,Ur(),l,le.transform,g,A,le):le.transform(g,A)}function lm(s,l,g,A,F){const U=s+20,le=Fi(),De=Bn(le,U);return e3(le,U)?f4(le,Ur(),l,De.transform,g,A,F,De):De.transform(g,A,F)}function e3(s,l){return s[1].data[l].pure}function Cf(s){return l=>{setTimeout(s,void 0,l)}}const Ko=class f5 extends t.x{constructor(l=!1){super(),this.__isAsync=l}emit(l){super.next(l)}subscribe(l,g,A){var F,U,le;let De=l,Ze=g||(()=>null),ft=A;if(l&&"object"==typeof l){const Kt=l;De=null===(F=Kt.next)||void 0===F?void 0:F.bind(Kt),Ze=null===(U=Kt.error)||void 0===U?void 0:U.bind(Kt),ft=null===(le=Kt.complete)||void 0===le?void 0:le.bind(Kt)}this.__isAsync&&(Ze=Cf(Ze),De&&(De=Cf(De)),ft&&(ft=Cf(ft)));const Lt=super.subscribe({next:De,error:Ze,complete:ft});return l instanceof e.w0&&l.add(Lt),Lt}};function p5(){return this._results[pl()]()}class p4{constructor(l=!1){this._emitDistinctChangesOnly=l,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const g=pl(),A=p4.prototype;A[g]||(A[g]=p5)}get changes(){return this._changes||(this._changes=new Ko)}get(l){return this._results[l]}map(l){return this._results.map(l)}filter(l){return this._results.filter(l)}find(l){return this._results.find(l)}reduce(l,g){return this._results.reduce(l,g)}forEach(l){this._results.forEach(l)}some(l){return this._results.some(l)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(l,g){const A=this;A.dirty=!1;const F=os(l);(this._changesDetected=!function Q1(s,l,g){if(s.length!==l.length)return!1;for(let A=0;A{class s{}return s.__NG_ELEMENT_ID__=g5,s})();const Mf=t3,m5=class extends Mf{constructor(l,g,A){super(),this._declarationLView=l,this._declarationTContainer=g,this.elementRef=A}createEmbeddedView(l){const g=this._declarationTContainer.tViews,A=C1(this._declarationLView,g,l,16,null,g.declTNode,null,null,null,null);A[17]=this._declarationLView[this._declarationTContainer.index];const U=this._declarationLView[19];return null!==U&&(A[19]=U.createEmbeddedView(g)),ks(g,A,l),new X0(A)}};function g5(){return m4(Er(),Fi())}function m4(s,l){return 4&s.type?new m5(l,s,Zc(s,l)):null}let g4=(()=>{class s{}return s.__NG_ELEMENT_ID__=i3,s})();function i3(){return Sf(Er(),Fi())}const _5=g4,dm=class extends _5{constructor(l,g,A){super(),this._lContainer=l,this._hostTNode=g,this._hostLView=A}get element(){return Zc(this._hostTNode,this._hostLView)}get injector(){return new Jo(this._hostTNode,this._hostLView)}get parentInjector(){const l=an(this._hostTNode,this._hostLView);if(nn(l)){const g=rr(l,this._hostLView),A=un(l);return new Jo(g[1].data[A+8],g)}return new Jo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(l){const g=um(this._lContainer);return null!==g&&g[l]||null}get length(){return this._lContainer.length-10}createEmbeddedView(l,g,A){const F=l.createEmbeddedView(g||{});return this.insert(F,A),F}createComponent(l,g,A,F,U){const le=l&&!function Lo(s){return"function"==typeof s}(l);let De;if(le)De=g;else{const Kt=g||{};De=Kt.index,A=Kt.injector,F=Kt.projectableNodes,U=Kt.ngModuleRef}const Ze=le?l:new yf(lt(l)),ft=A||this.parentInjector;if(!U&&null==Ze.ngModule){const li=(le?ft:this.parentInjector).get(G1,null);li&&(U=li)}const Lt=Ze.create(ft,F,void 0,U);return this.insert(Lt.hostView,De),Lt}insert(l,g){const A=l._lView,F=A[1];if(function jt(s){return mn(s[3])}(A)){const Lt=this.indexOf(l);if(-1!==Lt)this.detach(Lt);else{const Kt=A[3],li=new dm(Kt,Kt[6],Kt[3]);li.detach(li.indexOf(l))}}const U=this._adjustIndex(g),le=this._lContainer;!function I3(s,l,g,A){const F=10+A,U=g.length;A>0&&(g[F-1][4]=l),A0)A.push(le[De/2]);else{const ft=U[De+1],Lt=l[-Ze];for(let Kt=10;Kt{class s{constructor(g){this.appInits=g,this.resolve=S4,this.reject=S4,this.initialized=!1,this.done=!1,this.donePromise=new Promise((A,F)=>{this.resolve=A,this.reject=F})}runInitializers(){if(this.initialized)return;const g=[],A=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let F=0;F{U.subscribe({complete:De,error:Ze})});g.push(le)}}Promise.all(g).then(()=>{A()}).catch(F=>{this.reject(F)}),0===g.length&&A(),this.initialized=!0}}return s.\u0275fac=function(g){return new(g||s)(Ba(Pm,8))},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const km=new Zr("AppId",{providedIn:"root",factory:function Nm(){return`${Vf()}${Vf()}${Vf()}`}});function Vf(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Bf=new Zr("Platform Initializer"),B5=new Zr("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Rm=new Zr("appBootstrapListener");let G5=(()=>{class s{log(g){console.log(g)}warn(g){console.warn(g)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();const Uf=new Zr("LocaleId",{providedIn:"root",factory:()=>ec(Uf,we.Optional|we.SkipSelf)||function Z5(){return"undefined"!=typeof $localize&&$localize.locale||$r}()}),W5=new Zr("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class j5{constructor(l,g){this.ngModuleFactory=l,this.componentFactories=g}}let K5=(()=>{class s{compileModuleSync(g){return new h4(g)}compileModuleAsync(g){return Promise.resolve(this.compileModuleSync(g))}compileModuleAndAllComponentsSync(g){const A=this.compileModuleSync(g),U=js(Jt(g).declarations).reduce((le,De)=>{const Ze=lt(De);return Ze&&le.push(new yf(Ze)),le},[]);return new j5(A,U)}compileModuleAndAllComponentsAsync(g){return Promise.resolve(this.compileModuleAndAllComponentsSync(g))}clearCache(){}clearCacheFor(g){}getModuleId(g){}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();const J5=(()=>Promise.resolve(0))();function Gf(s){"undefined"==typeof Zone?J5.then(()=>{s&&s.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",s)}class po{constructor({enableLongStackTrace:l=!1,shouldCoalesceEventChangeDetection:g=!1,shouldCoalesceRunChangeDetection:A=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ko(!1),this.onMicrotaskEmpty=new Ko(!1),this.onStable=new Ko(!1),this.onError=new Ko(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const F=this;F._nesting=0,F._outer=F._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(F._inner=F._inner.fork(new Zone.TaskTrackingZoneSpec)),l&&Zone.longStackTraceZoneSpec&&(F._inner=F._inner.fork(Zone.longStackTraceZoneSpec)),F.shouldCoalesceEventChangeDetection=!A&&g,F.shouldCoalesceRunChangeDetection=A,F.lastRequestAnimationFrameId=-1,F.nativeRequestAnimationFrame=function X5(){let s=ui.requestAnimationFrame,l=ui.cancelAnimationFrame;if("undefined"!=typeof Zone&&s&&l){const g=s[Zone.__symbol__("OriginalDelegate")];g&&(s=g);const A=l[Zone.__symbol__("OriginalDelegate")];A&&(l=A)}return{nativeRequestAnimationFrame:s,nativeCancelAnimationFrame:l}}().nativeRequestAnimationFrame,function tg(s){const l=()=>{!function eg(s){s.isCheckStableRunning||-1!==s.lastRequestAnimationFrameId||(s.lastRequestAnimationFrameId=s.nativeRequestAnimationFrame.call(ui,()=>{s.fakeTopEventTask||(s.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{s.lastRequestAnimationFrameId=-1,Wf(s),s.isCheckStableRunning=!0,Zf(s),s.isCheckStableRunning=!1},void 0,()=>{},()=>{})),s.fakeTopEventTask.invoke()}),Wf(s))}(s)};s._inner=s._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(g,A,F,U,le,De)=>{try{return Yf(s),g.invokeTask(F,U,le,De)}finally{(s.shouldCoalesceEventChangeDetection&&"eventTask"===U.type||s.shouldCoalesceRunChangeDetection)&&l(),Hm(s)}},onInvoke:(g,A,F,U,le,De,Ze)=>{try{return Yf(s),g.invoke(F,U,le,De,Ze)}finally{s.shouldCoalesceRunChangeDetection&&l(),Hm(s)}},onHasTask:(g,A,F,U)=>{g.hasTask(F,U),A===F&&("microTask"==U.change?(s._hasPendingMicrotasks=U.microTask,Wf(s),Zf(s)):"macroTask"==U.change&&(s.hasPendingMacrotasks=U.macroTask))},onHandleError:(g,A,F,U)=>(g.handleError(F,U),s.runOutsideAngular(()=>s.onError.emit(U)),!1)})}(F)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!po.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(po.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(l,g,A){return this._inner.run(l,g,A)}runTask(l,g,A,F){const U=this._inner,le=U.scheduleEventTask("NgZoneEvent: "+F,l,$5,S4,S4);try{return U.runTask(le,g,A)}finally{U.cancelTask(le)}}runGuarded(l,g,A){return this._inner.runGuarded(l,g,A)}runOutsideAngular(l){return this._outer.run(l)}}const $5={};function Zf(s){if(0==s._nesting&&!s.hasPendingMicrotasks&&!s.isStable)try{s._nesting++,s.onMicrotaskEmpty.emit(null)}finally{if(s._nesting--,!s.hasPendingMicrotasks)try{s.runOutsideAngular(()=>s.onStable.emit(null))}finally{s.isStable=!0}}}function Wf(s){s.hasPendingMicrotasks=!!(s._hasPendingMicrotasks||(s.shouldCoalesceEventChangeDetection||s.shouldCoalesceRunChangeDetection)&&-1!==s.lastRequestAnimationFrameId)}function Yf(s){s._nesting++,s.isStable&&(s.isStable=!1,s.onUnstable.emit(null))}function Hm(s){s._nesting--,Zf(s)}class ig{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ko,this.onMicrotaskEmpty=new Ko,this.onStable=new Ko,this.onError=new Ko}run(l,g,A){return l.apply(g,A)}runGuarded(l,g,A){return l.apply(g,A)}runOutsideAngular(l){return l()}runTask(l,g,A,F){return l.apply(g,A)}}let Fm=(()=>{class s{constructor(g){this._ngZone=g,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),g.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:()=>{po.assertNotInAngularZone(),Gf(()=>{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())Gf(()=>{for(;0!==this._callbacks.length;){let g=this._callbacks.pop();clearTimeout(g.timeoutId),g.doneCb(this._didWork)}this._didWork=!1});else{let g=this.getPendingTasks();this._callbacks=this._callbacks.filter(A=>!A.updateCb||!A.updateCb(g)||(clearTimeout(A.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(g=>({source:g.source,creationLocation:g.creationLocation,data:g.data})):[]}addCallback(g,A,F){let U=-1;A&&A>0&&(U=setTimeout(()=>{this._callbacks=this._callbacks.filter(le=>le.timeoutId!==U),g(this._didWork,this.getPendingTasks())},A)),this._callbacks.push({doneCb:g,timeoutId:U,updateCb:F})}whenStable(g,A,F){if(F&&!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(g,A,F),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(g,A,F){return[]}}return s.\u0275fac=function(g){return new(g||s)(Ba(po))},s.\u0275prov=X({token:s,factory:s.\u0275fac}),s})(),ng=(()=>{class s{constructor(){this._applications=new Map,T4.addToWindow(this)}registerApplication(g,A){this._applications.set(g,A)}unregisterApplication(g){this._applications.delete(g)}unregisterAllApplications(){this._applications.clear()}getTestability(g){return this._applications.get(g)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(g,A=!0){return T4.findTestabilityInTree(this,g,A)}}return s.\u0275fac=function(g){return new(g||s)},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();class rg{addToWindow(l){}findTestabilityInTree(l,g,A){return null}}function ag(s){T4=s}let T4=new rg,Yc=null;const zm=new Zr("AllowMultipleToken"),Vm=new Zr("PlatformOnDestroy");class Um{constructor(l,g){this.name=l,this.token=g}}function jf(s,l,g=[]){const A=`Platform: ${l}`,F=new Zr(A);return(U=[])=>{let le=Qf();if(!le||le.injector.get(zm,!1)){const De=[...g,...U,{provide:F,useValue:!0}];s?s(De):function og(s){if(Yc&&!Yc.get(zm,!1))throw new E(400,"");Yc=s;const l=s.get(Gm),g=s.get(Bf,null);g&&g.forEach(A=>A())}(function Kf(s=[],l){return Co.create({name:l,providers:[{provide:gd,useValue:"platform"},{provide:Vm,useValue:()=>Yc=null},...s]})}(De,A))}return function lg(s){const l=Qf();if(!l)throw new E(401,"");return l}()}}function Qf(){var s;return null!==(s=null==Yc?void 0:Yc.get(Gm))&&void 0!==s?s:null}let Gm=(()=>{class s{constructor(g){this._injector=g,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(g,A){const De=function cg(s,l){let g;return g="noop"===s?new ig:("zone.js"===s?void 0:s)||new po({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==l?void 0:l.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==l?void 0:l.ngZoneRunCoalescing)}),g}(A?A.ngZone:void 0,{ngZoneEventCoalescing:A&&A.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:A&&A.ngZoneRunCoalescing||!1}),Ze=[{provide:po,useValue:De}];return De.run(()=>{const ft=Co.create({providers:Ze,parent:this.injector,name:g.moduleType.name}),Lt=g.create(ft),Kt=Lt.injector.get(f1,null);if(!Kt)throw new E(402,"");return De.runOutsideAngular(()=>{const li=De.onError.subscribe({next:vi=>{Kt.handleError(vi)}});Lt.onDestroy(()=>{A4(this._modules,Lt),li.unsubscribe()})}),function qf(s,l,g){try{const A=g();return hs(A)?A.catch(F=>{throw l.runOutsideAngular(()=>s.handleError(F)),F}):A}catch(A){throw l.runOutsideAngular(()=>s.handleError(A)),A}}(Kt,De,()=>{const li=Lt.injector.get(E4);return li.runInitializers(),li.donePromise.then(()=>(function Uc(s){n(s,"Expected localeId to be defined"),"string"==typeof s&&(Ja=s.toLowerCase().replace(/_/g,"-"))}(Lt.injector.get(Uf,$r)||$r),this._moduleDoBootstrap(Lt),Lt))})})}bootstrapModule(g,A=[]){const F=Zm({},A);return function sg(s,l,g){const A=new h4(g);return Promise.resolve(A)}(0,0,g).then(U=>this.bootstrapModuleFactory(U,F))}_moduleDoBootstrap(g){const A=g.injector.get(Jf);if(g._bootstrapComponents.length>0)g._bootstrapComponents.forEach(F=>A.bootstrap(F));else{if(!g.instance.ngDoBootstrap)throw new E(403,"");g.instance.ngDoBootstrap(A)}this._modules.push(g)}onDestroy(g){this._destroyListeners.push(g)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,"");this._modules.slice().forEach(A=>A.destroy()),this._destroyListeners.forEach(A=>A());const g=this._injector.get(Vm,null);null==g||g(),this._destroyed=!0}get destroyed(){return this._destroyed}}return s.\u0275fac=function(g){return new(g||s)(Ba(Co))},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"platform"}),s})();function Zm(s,l){return Array.isArray(l)?l.reduce(Zm,s):Object.assign(Object.assign({},s),l)}let Jf=(()=>{class s{constructor(g,A,F,U){this._zone=g,this._injector=A,this._exceptionHandler=F,this._initStatus=U,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 le=new f.y(Ze=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{Ze.next(this._stable),Ze.complete()})}),De=new f.y(Ze=>{let ft;this._zone.runOutsideAngular(()=>{ft=this._zone.onStable.subscribe(()=>{po.assertNotInAngularZone(),Gf(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,Ze.next(!0))})})});const Lt=this._zone.onUnstable.subscribe(()=>{po.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{Ze.next(!1)}))});return()=>{ft.unsubscribe(),Lt.unsubscribe()}});this.isStable=(0,M.T)(le,De.pipe((0,a.B)()))}bootstrap(g,A){if(!this._initStatus.done)throw new E(405,"");let F;F=g instanceof gf?g:this._injector.get(c4).resolveComponentFactory(g),this.componentTypes.push(F.componentType);const U=function Bm(s){return s.isBoundToModule}(F)?void 0:this._injector.get(G1),De=F.create(Co.NULL,[],A||F.selector,U),Ze=De.location.nativeElement,ft=De.injector.get(Fm,null),Lt=ft&&De.injector.get(ng);return ft&&Lt&&Lt.registerApplication(Ze,ft),De.onDestroy(()=>{this.detachView(De.hostView),A4(this.components,De),Lt&&Lt.unregisterApplication(Ze)}),this._loadComponent(De),De}tick(){if(this._runningTick)throw new E(101,"");try{this._runningTick=!0;for(let g of this._views)g.detectChanges()}catch(g){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(g))}finally{this._runningTick=!1}}attachView(g){const A=g;this._views.push(A),A.attachToAppRef(this)}detachView(g){const A=g;A4(this._views,A),A.detachFromAppRef()}_loadComponent(g){this.attachView(g.hostView),this.tick(),this.components.push(g),this._injector.get(Rm,[]).concat(this._bootstrapListeners).forEach(F=>F(g))}ngOnDestroy(){this._views.slice().forEach(g=>g.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return s.\u0275fac=function(g){return new(g||s)(Ba(po),Ba(Co),Ba(f1),Ba(E4))},s.\u0275prov=X({token:s,factory:s.\u0275fac,providedIn:"root"}),s})();function A4(s,l){const g=s.indexOf(l);g>-1&&s.splice(g,1)}let Xf=!0,Ym=!1;function jm(){return Ym=!0,Xf}function ug(){if(Ym)throw new Error("Cannot enable prod mode after platform setup.");Xf=!1}let L4=(()=>{class s{}return s.__NG_ELEMENT_ID__=fg,s})();function fg(s){return function pg(s,l,g){if(Rn(s)&&!g){const A=It(s.index,l);return new X0(A,A)}return 47&s.type?new X0(l[16],l):null}(Er(),Fi(),16==(16&s))}class i6{constructor(){}supports(l){return L1(l)}create(l){return new yg(l)}}const vg=(s,l)=>l;class yg{constructor(l){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=l||vg}forEachItem(l){let g;for(g=this._itHead;null!==g;g=g._next)l(g)}forEachOperation(l){let g=this._itHead,A=this._removalsHead,F=0,U=null;for(;g||A;){const le=!A||g&&g.currentIndex<$m(A,F,U)?g:A,De=$m(le,F,U),Ze=le.currentIndex;if(le===A)F--,A=A._nextRemoved;else if(g=g._next,null==le.previousIndex)F++;else{U||(U=[]);const ft=De-F,Lt=Ze-F;if(ft!=Lt){for(let li=0;li{le=this._trackByFn(F,De),null!==g&&Object.is(g.trackById,le)?(A&&(g=this._verifyReinsertion(g,De,le,F)),Object.is(g.item,De)||this._addIdentityChange(g,De)):(g=this._mismatch(g,De,le,F),A=!0),g=g._next,F++}),this.length=F;return this._truncate(g),this.collection=l,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let l;for(l=this._previousItHead=this._itHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._additionsHead;null!==l;l=l._nextAdded)l.previousIndex=l.currentIndex;for(this._additionsHead=this._additionsTail=null,l=this._movesHead;null!==l;l=l._nextMoved)l.previousIndex=l.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(l,g,A,F){let U;return null===l?U=this._itTail:(U=l._prev,this._remove(l)),null!==(l=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._reinsertAfter(l,U,F)):null!==(l=null===this._linkedRecords?null:this._linkedRecords.get(A,F))?(Object.is(l.item,g)||this._addIdentityChange(l,g),this._moveAfter(l,U,F)):l=this._addAfter(new bg(g,A),U,F),l}_verifyReinsertion(l,g,A,F){let U=null===this._unlinkedRecords?null:this._unlinkedRecords.get(A,null);return null!==U?l=this._reinsertAfter(U,l._prev,F):l.currentIndex!=F&&(l.currentIndex=F,this._addToMoves(l,F)),l}_truncate(l){for(;null!==l;){const g=l._next;this._addToRemovals(this._unlink(l)),l=g}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(l,g,A){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(l);const F=l._prevRemoved,U=l._nextRemoved;return null===F?this._removalsHead=U:F._nextRemoved=U,null===U?this._removalsTail=F:U._prevRemoved=F,this._insertAfter(l,g,A),this._addToMoves(l,A),l}_moveAfter(l,g,A){return this._unlink(l),this._insertAfter(l,g,A),this._addToMoves(l,A),l}_addAfter(l,g,A){return this._insertAfter(l,g,A),this._additionsTail=null===this._additionsTail?this._additionsHead=l:this._additionsTail._nextAdded=l,l}_insertAfter(l,g,A){const F=null===g?this._itHead:g._next;return l._next=F,l._prev=g,null===F?this._itTail=l:F._prev=l,null===g?this._itHead=l:g._next=l,null===this._linkedRecords&&(this._linkedRecords=new Xm),this._linkedRecords.put(l),l.currentIndex=A,l}_remove(l){return this._addToRemovals(this._unlink(l))}_unlink(l){null!==this._linkedRecords&&this._linkedRecords.remove(l);const g=l._prev,A=l._next;return null===g?this._itHead=A:g._next=A,null===A?this._itTail=g:A._prev=g,l}_addToMoves(l,g){return l.previousIndex===g||(this._movesTail=null===this._movesTail?this._movesHead=l:this._movesTail._nextMoved=l),l}_addToRemovals(l){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Xm),this._unlinkedRecords.put(l),l.currentIndex=null,l._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=l,l._prevRemoved=null):(l._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=l),l}_addIdentityChange(l,g){return l.item=g,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=l:this._identityChangesTail._nextIdentityChange=l,l}}class bg{constructor(l,g){this.item=l,this.trackById=g,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 xg{constructor(){this._head=null,this._tail=null}add(l){null===this._head?(this._head=this._tail=l,l._nextDup=null,l._prevDup=null):(this._tail._nextDup=l,l._prevDup=this._tail,l._nextDup=null,this._tail=l)}get(l,g){let A;for(A=this._head;null!==A;A=A._nextDup)if((null===g||g<=A.currentIndex)&&Object.is(A.trackById,l))return A;return null}remove(l){const g=l._prevDup,A=l._nextDup;return null===g?this._head=A:g._nextDup=A,null===A?this._tail=g:A._prevDup=g,null===this._head}}class Xm{constructor(){this.map=new Map}put(l){const g=l.trackById;let A=this.map.get(g);A||(A=new xg,this.map.set(g,A)),A.add(l)}get(l,g){const F=this.map.get(l);return F?F.get(l,g):null}remove(l){const g=l.trackById;return this.map.get(g).remove(l)&&this.map.delete(g),l}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function $m(s,l,g){const A=s.previousIndex;if(null===A)return A;let F=0;return g&&A{if(g&&g.key===F)this._maybeAddToChanges(g,A),this._appendAfter=g,g=g._next;else{const U=this._getOrCreateRecordForKey(F,A);g=this._insertBeforeOrAppend(g,U)}}),g){g._prev&&(g._prev._next=null),this._removalsHead=g;for(let A=g;null!==A;A=A._nextRemoved)A===this._mapHead&&(this._mapHead=null),this._records.delete(A.key),A._nextRemoved=A._next,A.previousValue=A.currentValue,A.currentValue=null,A._prev=null,A._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(l,g){if(l){const A=l._prev;return g._next=l,g._prev=A,l._prev=g,A&&(A._next=g),l===this._mapHead&&(this._mapHead=g),this._appendAfter=l,l}return this._appendAfter?(this._appendAfter._next=g,g._prev=this._appendAfter):this._mapHead=g,this._appendAfter=g,null}_getOrCreateRecordForKey(l,g){if(this._records.has(l)){const F=this._records.get(l);this._maybeAddToChanges(F,g);const U=F._prev,le=F._next;return U&&(U._next=le),le&&(le._prev=U),F._next=null,F._prev=null,F}const A=new t8(l);return this._records.set(l,A),A.currentValue=g,this._addToAdditions(A),A}_reset(){if(this.isDirty){let l;for(this._previousMapHead=this._mapHead,l=this._previousMapHead;null!==l;l=l._next)l._nextPrevious=l._next;for(l=this._changesHead;null!==l;l=l._nextChanged)l.previousValue=l.currentValue;for(l=this._additionsHead;null!=l;l=l._nextAdded)l.previousValue=l.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(l,g){Object.is(g,l.currentValue)||(l.previousValue=l.currentValue,l.currentValue=g,this._addToChanges(l))}_addToAdditions(l){null===this._additionsHead?this._additionsHead=this._additionsTail=l:(this._additionsTail._nextAdded=l,this._additionsTail=l)}_addToChanges(l){null===this._changesHead?this._changesHead=this._changesTail=l:(this._changesTail._nextChanged=l,this._changesTail=l)}_forEach(l,g){l instanceof Map?l.forEach(g):Object.keys(l).forEach(A=>g(l[A],A))}}class t8{constructor(l){this.key=l,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 n8(){return new n6([new i6])}let n6=(()=>{class s{constructor(g){this.factories=g}static create(g,A){if(null!=A){const F=A.factories.slice();g=g.concat(F)}return new s(g)}static extend(g){return{provide:s,useFactory:A=>s.create(g,A||n8()),deps:[[s,new so,new Sl]]}}find(g){const A=this.factories.find(F=>F.supports(g));if(null!=A)return A;throw new E(901,"")}}return s.\u0275prov=X({token:s,providedIn:"root",factory:n8}),s})();function k4(){return new r6([new e8])}let r6=(()=>{class s{constructor(g){this.factories=g}static create(g,A){if(A){const F=A.factories.slice();g=g.concat(F)}return new s(g)}static extend(g){return{provide:s,useFactory:A=>s.create(g,A||k4()),deps:[[s,new so,new Sl]]}}find(g){const A=this.factories.find(U=>U.supports(g));if(A)return A;throw new E(901,"")}}return s.\u0275prov=X({token:s,providedIn:"root",factory:k4}),s})();const Sg=jf(null,"core",[]);let Eg=(()=>{class s{constructor(g){}}return s.\u0275fac=function(g){return new(g||s)(Ba(Jf))},s.\u0275mod=rt({type:s}),s.\u0275inj=be({}),s})()},9042:(Be,K,p)=>{"use strict";function t(L){for(let w in L){let D=L[w]||"";switch(w){case"display":L.display="flex"===D?["-webkit-flex","flex"]:"inline-flex"===D?["-webkit-inline-flex","inline-flex"]:D;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":L["-webkit-"+w]=D;break;case"flex-direction":D=D||"row",L["-webkit-flex-direction"]=D,L["flex-direction"]=D;break;case"order":L.order=L["-webkit-"+w]=isNaN(+D)?"0":D}}return L}p.d(K,{Ar:()=>M,GK:()=>t,iQ:()=>f,kt:()=>h,tj:()=>C});const e="inline",f=["row","column","row-reverse","column-reverse"];function M(L){let[w,D,S]=a(L);return function R(L,w=null,D=!1){return{display:D?"inline-flex":"flex","box-sizing":"border-box","flex-direction":L,"flex-wrap":w||null}}(w,D,S)}function a(L){var w;L=null!==(w=null==L?void 0:L.toLowerCase())&&void 0!==w?w:"";let[D,S,k]=L.split(" ");return f.find(E=>E===D)||(D=f[0]),S===e&&(S=k!==e?k:"",k=e),[D,d(S),!!k]}function C(L){let[w]=a(L);return w.indexOf("row")>-1}function d(L){if(L)switch(L.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":L="wrap-reverse";break;case"no":case"none":case"nowrap":L="nowrap";break;default:L="wrap"}return L}function h(L,...w){if(null==L)throw TypeError("Cannot convert undefined or null to object");for(let D of w)if(null!=D)for(let S in D)D.hasOwnProperty(S)&&(L[S]=D[S]);return L}},3270:(Be,K,p)=>{"use strict";p.d(K,{Bs:()=>ae,FL:()=>ui,IR:()=>S,Ot:()=>di,QI:()=>ue,RK:()=>ne,WU:()=>Z,g5:()=>B,iR:()=>xe,wY:()=>Y,yB:()=>ce});var t=p(5e3),e=p(9808),f=p(1135),M=p(8306),a=p(6451),C=p(7579),d=p(9042),R=p(9300),h=p(8505);const w={provide:t.tb,useFactory:function L(Ot,Nt){return()=>{if((0,e.NF)(Nt)){const gt=Array.from(Ot.querySelectorAll(`[class*=${D}]`)),it=/\bflex-layout-.+?\b/g;gt.forEach(bt=>{bt.classList.contains(`${D}ssr`)&&bt.parentNode?bt.parentNode.removeChild(bt):bt.className.replace(it,"")})}}},deps:[e.K0,t.Lbi],multi:!0},D="flex-layout-";let S=(()=>{class Ot{}return Ot.\u0275fac=function(gt){return new(gt||Ot)},Ot.\u0275mod=t.oAB({type:Ot}),Ot.\u0275inj=t.cJS({providers:[w]}),Ot})();class k{constructor(Nt=!1,gt="all",it="",bt="",ti=0){this.matches=Nt,this.mediaQuery=gt,this.mqAlias=it,this.suffix=bt,this.priority=ti,this.property=""}clone(){return new k(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let E=(()=>{class Ot{constructor(){this.stylesheet=new Map}addStyleToElement(gt,it,bt){const ti=this.stylesheet.get(gt);ti?ti.set(it,bt):this.stylesheet.set(gt,new Map([[it,bt]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(gt,it){const bt=this.stylesheet.get(gt);let ti="";if(bt){const Qt=bt.get(it);("number"==typeof Qt||"string"==typeof Qt)&&(ti=Qt+"")}return ti}}return Ot.\u0275fac=function(gt){return new(gt||Ot)},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const B={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[],multiplier:void 0,defaultUnit:"px",detectLayoutDisplay:!1},Z=new t.OlP("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>B}),Y=new t.OlP("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),ae=new t.OlP("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function ee(Ot,Nt){return Ot=Ot?Ot.clone():new k,Nt&&(Ot.mqAlias=Nt.alias,Ot.mediaQuery=Nt.mediaQuery,Ot.suffix=Nt.suffix,Ot.priority=Nt.priority),Ot}class ue{constructor(){this.shouldCache=!0}sideEffect(Nt,gt,it){}}let ne=(()=>{class Ot{constructor(gt,it,bt,ti){this._serverStylesheet=gt,this._serverModuleLoaded=it,this._platformId=bt,this.layoutConfig=ti}applyStyleToElement(gt,it,bt=null){let ti={};"string"==typeof it&&(ti[it]=bt,it=ti),ti=this.layoutConfig.disableVendorPrefixes?it:(0,d.GK)(it),this._applyMultiValueStyleToElement(ti,gt)}applyStyleToElements(gt,it=[]){const bt=this.layoutConfig.disableVendorPrefixes?gt:(0,d.GK)(gt);it.forEach(ti=>{this._applyMultiValueStyleToElement(bt,ti)})}getFlowDirection(gt){const it="flex-direction";let bt=this.lookupStyle(gt,it);return[bt||"row",this.lookupInlineStyle(gt,it)||(0,e.PM)(this._platformId)&&this._serverModuleLoaded?bt:""]}hasWrap(gt){return"wrap"===this.lookupStyle(gt,"flex-wrap")}lookupAttributeValue(gt,it){var bt;return null!==(bt=gt.getAttribute(it))&&void 0!==bt?bt:""}lookupInlineStyle(gt,it){return(0,e.NF)(this._platformId)?gt.style.getPropertyValue(it):function re(Ot,Nt){var gt;return null!==(gt=_e(Ot)[Nt])&&void 0!==gt?gt:""}(gt,it)}lookupStyle(gt,it,bt=!1){let ti="";return gt&&((ti=this.lookupInlineStyle(gt,it))||((0,e.NF)(this._platformId)?bt||(ti=getComputedStyle(gt).getPropertyValue(it)):this._serverModuleLoaded&&(ti=this._serverStylesheet.getStyleForElement(gt,it)))),ti?ti.trim():""}_applyMultiValueStyleToElement(gt,it){Object.keys(gt).sort().forEach(bt=>{const ti=gt[bt],Qt=Array.isArray(ti)?ti:[ti];Qt.sort();for(let Re of Qt)Re=Re?Re+"":"",(0,e.NF)(this._platformId)||!this._serverModuleLoaded?(0,e.NF)(this._platformId)?it.style.setProperty(bt,Re):ge(it,bt,Re):this._serverStylesheet.addStyleToElement(it,bt,Re)})}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(E),t.LFG(Y),t.LFG(t.Lbi),t.LFG(Z))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();function ge(Ot,Nt,gt){Nt=Nt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const it=_e(Ot);it[Nt]=null!=gt?gt:"",function q(Ot,Nt){let gt="";for(const it in Nt)Nt[it]&&(gt+=`${it}:${Nt[it]};`);Ot.setAttribute("style",gt)}(Ot,it)}function _e(Ot){const Nt={},gt=Ot.getAttribute("style");if(gt){const it=gt.split(/;+/g);for(let bt=0;bt0){const Qt=ti.indexOf(":");if(-1===Qt)throw new Error(`Invalid CSS style: ${ti}`);Nt[ti.substr(0,Qt).trim()]=ti.substr(Qt+1).trim()}}}return Nt}function x(Ot,Nt){return(Nt&&Nt.priority||0)-(Ot&&Ot.priority||0)}function i(Ot,Nt){return(Ot.priority||0)-(Nt.priority||0)}let r=(()=>{class Ot{constructor(gt,it,bt){this._zone=gt,this._platformId=it,this._document=bt,this.source=new f.X(new k(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const gt=[];return this.registry.forEach((it,bt)=>{it.matches&>.push(bt)}),gt}isActive(gt){var it;const bt=this.registry.get(gt);return null!==(it=null==bt?void 0:bt.matches)&&void 0!==it?it:this.registerQuery(gt).some(ti=>ti.matches)}observe(gt,it=!1){if(gt&>.length){const bt=this._observable$.pipe((0,R.h)(Qt=>!it||gt.indexOf(Qt.mediaQuery)>-1)),ti=new M.y(Qt=>{const Re=this.registerQuery(gt);if(Re.length){const ke=Re.pop();Re.forEach(de=>{Qt.next(de)}),this.source.next(ke)}Qt.complete()});return(0,a.T)(ti,bt)}return this._observable$}registerQuery(gt){const it=Array.isArray(gt)?gt:[gt],bt=[];return function c(Ot,Nt){const gt=Ot.filter(it=>!u[it]);if(gt.length>0){const it=gt.join(", ");try{const bt=Nt.createElement("style");bt.setAttribute("type","text/css"),bt.styleSheet||bt.appendChild(Nt.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${it} {.fx-query-test{ }}\n`)),Nt.head.appendChild(bt),gt.forEach(ti=>u[ti]=bt)}catch(bt){console.error(bt)}}}(it,this._document),it.forEach(ti=>{const Qt=ke=>{this._zone.run(()=>this.source.next(new k(ke.matches,ti)))};let Re=this.registry.get(ti);Re||(Re=this.buildMQL(ti),Re.addListener(Qt),this.pendingRemoveListenerFns.push(()=>Re.removeListener(Qt)),this.registry.set(ti,Re)),Re.matches&&bt.push(new k(!0,ti))}),bt}ngOnDestroy(){let gt;for(;gt=this.pendingRemoveListenerFns.pop();)gt()}buildMQL(gt){return function v(Ot,Nt){return Nt&&window.matchMedia("all").addListener?window.matchMedia(Ot):{matches:"all"===Ot||""===Ot,media:Ot,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(gt,(0,e.NF)(this._platformId))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(t.R0b),t.LFG(t.Lbi),t.LFG(e.K0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const u={},T=[{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}],I="(orientation: portrait) and (max-width: 599.98px)",y="(orientation: landscape) and (max-width: 959.98px)",n="(orientation: portrait) and (min-width: 600px) and (max-width: 839.98px)",_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.98px)",V="(orientation: portrait) and (min-width: 840px)",N="(orientation: landscape) and (min-width: 1280px)",H={HANDSET:`${I}, ${y}`,TABLET:`${n} , ${_}`,WEB:`${V}, ${N} `,HANDSET_PORTRAIT:`${I}`,TABLET_PORTRAIT:`${n} `,WEB_PORTRAIT:`${V}`,HANDSET_LANDSCAPE:`${y}`,TABLET_LANDSCAPE:`${_}`,WEB_LANDSCAPE:`${N}`},X=[{alias:"handset",priority:2e3,mediaQuery:H.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:H.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:H.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:H.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:H.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:H.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:H.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:H.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:H.WEB_PORTRAIT,overlapping:!0}],he=/(\.|-|_)/g;function be(Ot){let Nt=Ot.length>0?Ot.charAt(0):"",gt=Ot.length>1?Ot.slice(1):"";return Nt.toUpperCase()+gt}const Ve=new t.OlP("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const Ot=(0,t.f3M)(ae),Nt=(0,t.f3M)(Z),gt=[].concat.apply([],(Ot||[]).map(bt=>Array.isArray(bt)?bt:[bt]));return function j(Ot,Nt=[]){const gt={};return Ot.forEach(it=>{gt[it.alias]=it}),Nt.forEach(it=>{gt[it.alias]?(0,d.kt)(gt[it.alias],it):gt[it.alias]=it}),function Ee(Ot){return Ot.forEach(Nt=>{Nt.suffix||(Nt.suffix=function Pe(Ot){return Ot.replace(he,"|").split("|").map(be).join("")}(Nt.alias),Nt.overlapping=!!Nt.overlapping)}),Ot}(Object.keys(gt).map(it=>gt[it]))}((Nt.disableDefaultBps?[]:T).concat(Nt.addOrientationBps?X:[]),gt)}});let Me=(()=>{class Ot{constructor(gt){this.findByMap=new Map,this.items=[...gt].sort(i)}findByAlias(gt){return gt?this.findWithPredicate(gt,it=>it.alias===gt):null}findByQuery(gt){return this.findWithPredicate(gt,it=>it.mediaQuery===gt)}get overlappings(){return this.items.filter(gt=>gt.overlapping)}get aliases(){return this.items.map(gt=>gt.alias)}get suffixes(){return this.items.map(gt=>{var it;return null!==(it=null==gt?void 0:gt.suffix)&&void 0!==it?it:""})}findWithPredicate(gt,it){var bt;let ti=this.findByMap.get(gt);return ti||(ti=null!==(bt=this.items.find(it))&&void 0!==bt?bt:null,this.findByMap.set(gt,ti)),null!=ti?ti:null}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(Ve))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();const J="print",Ie={alias:J,mediaQuery:J,priority:1e3};let ut=(()=>{class Ot{constructor(gt,it,bt){this.breakpoints=gt,this.layoutConfig=it,this._document=bt,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.formerActivations=null,this.isPrinting=!1,this.queue=new Oe,this.deactivations=[]}withPrintQuery(gt){return[...gt,J]}isPrintEvent(gt){return gt.mediaQuery.startsWith(J)}get printAlias(){var gt;return[...null!==(gt=this.layoutConfig.printWithBreakpoints)&&void 0!==gt?gt:[]]}get printBreakPoints(){return this.printAlias.map(gt=>this.breakpoints.findByAlias(gt)).filter(gt=>null!==gt)}getEventBreakpoints({mediaQuery:gt}){const it=this.breakpoints.findByQuery(gt);return(it?[...this.printBreakPoints,it]:this.printBreakPoints).sort(x)}updateEvent(gt){var it;let bt=this.breakpoints.findByQuery(gt.mediaQuery);return this.isPrintEvent(gt)&&(bt=this.getEventBreakpoints(gt)[0],gt.mediaQuery=null!==(it=null==bt?void 0:bt.mediaQuery)&&void 0!==it?it:""),ee(gt,bt)}registerBeforeAfterPrintHooks(gt){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const it=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(gt,this.getEventBreakpoints(new k(!0,J))),gt.updateStyles())},bt=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(gt),gt.updateStyles())};this._document.defaultView.addEventListener("beforeprint",it),this._document.defaultView.addEventListener("afterprint",bt),this.beforePrintEventListeners.push(it),this.afterPrintEventListeners.push(bt)}interceptEvents(gt){return it=>{this.isPrintEvent(it)?it.matches&&!this.isPrinting?(this.startPrinting(gt,this.getEventBreakpoints(it)),gt.updateStyles()):!it.matches&&this.isPrinting&&!this.isPrintingBeforeAfterEvent&&(this.stopPrinting(gt),gt.updateStyles()):this.collectActivations(gt,it)}}blockPropagation(){return gt=>!(this.isPrinting||this.isPrintEvent(gt))}startPrinting(gt,it){this.isPrinting=!0,this.formerActivations=gt.activatedBreakpoints,gt.activatedBreakpoints=this.queue.addPrintBreakpoints(it)}stopPrinting(gt){gt.activatedBreakpoints=this.deactivations,this.deactivations=[],this.formerActivations=null,this.queue.clear(),this.isPrinting=!1}collectActivations(gt,it){if(!this.isPrinting||this.isPrintingBeforeAfterEvent){if(!this.isPrintingBeforeAfterEvent)return void(this.deactivations=[]);if(!it.matches){const bt=this.breakpoints.findByQuery(it.mediaQuery);if(bt){const ti=this.formerActivations&&this.formerActivations.includes(bt),Qt=!this.formerActivations&>.activatedBreakpoints.includes(bt);(ti||Qt)&&(this.deactivations.push(bt),this.deactivations.sort(x))}}}}ngOnDestroy(){this._document.defaultView&&(this.beforePrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("beforeprint",gt)),this.afterPrintEventListeners.forEach(gt=>this._document.defaultView.removeEventListener("afterprint",gt)))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(Me),t.LFG(Z),t.LFG(e.K0))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();class Oe{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(Nt){return Nt.push(Ie),Nt.sort(x),Nt.forEach(gt=>this.addBreakpoint(gt)),this.printBreakpoints}addBreakpoint(Nt){Nt&&void 0===this.printBreakpoints.find(it=>it.mediaQuery===Nt.mediaQuery)&&(this.printBreakpoints=function we(Ot){var Nt;return null!==(Nt=null==Ot?void 0:Ot.mediaQuery.startsWith(J))&&void 0!==Nt&&Nt}(Nt)?[Nt,...this.printBreakpoints]:[...this.printBreakpoints,Nt])}clear(){this.printBreakpoints=[]}}let ce=(()=>{class Ot{constructor(gt,it,bt){this.matchMedia=gt,this.breakpoints=it,this.hook=bt,this._useFallbacks=!0,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 C.x,this.observeActivations()}get activatedAlias(){var gt,it;return null!==(it=null===(gt=this.activatedBreakpoints[0])||void 0===gt?void 0:gt.alias)&&void 0!==it?it:""}set activatedBreakpoints(gt){this._activatedBreakpoints=[...gt]}get activatedBreakpoints(){return[...this._activatedBreakpoints]}set useFallbacks(gt){this._useFallbacks=gt}onMediaChange(gt){const it=this.findByQuery(gt.mediaQuery);if(it){gt=ee(gt,it);const bt=this.activatedBreakpoints.indexOf(it);gt.matches&&-1===bt?(this._activatedBreakpoints.push(it),this._activatedBreakpoints.sort(x),this.updateStyles()):!gt.matches&&-1!==bt&&(this._activatedBreakpoints.splice(bt,1),this._activatedBreakpoints.sort(x),this.updateStyles())}}init(gt,it,bt,ti,Qt=[]){Te(this.updateMap,gt,it,bt),Te(this.clearMap,gt,it,ti),this.buildElementKeyMap(gt,it),this.watchExtraTriggers(gt,it,Qt)}getValue(gt,it,bt){const ti=this.elementMap.get(gt);if(ti){const Qt=void 0!==bt?ti.get(bt):this.getActivatedValues(ti,it);if(Qt)return Qt.get(it)}}hasValue(gt,it){const bt=this.elementMap.get(gt);if(bt){const ti=this.getActivatedValues(bt,it);if(ti)return void 0!==ti.get(it)||!1}return!1}setValue(gt,it,bt,ti){var Qt;let Re=this.elementMap.get(gt);if(Re){const de=(null!==(Qt=Re.get(ti))&&void 0!==Qt?Qt:new Map).set(it,bt);Re.set(ti,de),this.elementMap.set(gt,Re)}else Re=(new Map).set(ti,(new Map).set(it,bt)),this.elementMap.set(gt,Re);const ke=this.getValue(gt,it);void 0!==ke&&this.updateElement(gt,it,ke)}trackValue(gt,it){return this.subject.asObservable().pipe((0,R.h)(bt=>bt.element===gt&&bt.key===it))}updateStyles(){this.elementMap.forEach((gt,it)=>{const bt=new Set(this.elementKeyMap.get(it));let ti=this.getActivatedValues(gt);ti&&ti.forEach((Qt,Re)=>{this.updateElement(it,Re,Qt),bt.delete(Re)}),bt.forEach(Qt=>{if(ti=this.getActivatedValues(gt,Qt),ti){const Re=ti.get(Qt);this.updateElement(it,Qt,Re)}else this.clearElement(it,Qt)})})}clearElement(gt,it){const bt=this.clearMap.get(gt);if(bt){const ti=bt.get(it);ti&&(ti(),this.subject.next({element:gt,key:it,value:""}))}}updateElement(gt,it,bt){const ti=this.updateMap.get(gt);if(ti){const Qt=ti.get(it);Qt&&(Qt(bt),this.subject.next({element:gt,key:it,value:bt}))}}releaseElement(gt){const it=this.watcherMap.get(gt);it&&(it.forEach(ti=>ti.unsubscribe()),this.watcherMap.delete(gt));const bt=this.elementMap.get(gt);bt&&(bt.forEach((ti,Qt)=>bt.delete(Qt)),this.elementMap.delete(gt))}triggerUpdate(gt,it){const bt=this.elementMap.get(gt);if(bt){const ti=this.getActivatedValues(bt,it);ti&&(it?this.updateElement(gt,it,ti.get(it)):ti.forEach((Qt,Re)=>this.updateElement(gt,Re,Qt)))}}buildElementKeyMap(gt,it){let bt=this.elementKeyMap.get(gt);bt||(bt=new Set,this.elementKeyMap.set(gt,bt)),bt.add(it)}watchExtraTriggers(gt,it,bt){if(bt&&bt.length){let ti=this.watcherMap.get(gt);if(ti||(ti=new Map,this.watcherMap.set(gt,ti)),!ti.get(it)){const Re=(0,a.T)(...bt).subscribe(()=>{const ke=this.getValue(gt,it);this.updateElement(gt,it,ke)});ti.set(it,Re)}}}findByQuery(gt){return this.breakpoints.findByQuery(gt)}getActivatedValues(gt,it){for(let ti=0;tiit.mediaQuery);this.hook.registerBeforeAfterPrintHooks(this),this.matchMedia.observe(this.hook.withPrintQuery(gt)).pipe((0,h.b)(this.hook.interceptEvents(this)),(0,R.h)(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.LFG(r),t.LFG(Me),t.LFG(ut))},Ot.\u0275prov=t.Yz7({token:Ot,factory:Ot.\u0275fac,providedIn:"root"}),Ot})();function Te(Ot,Nt,gt,it){var bt;if(void 0!==it){const ti=null!==(bt=Ot.get(Nt))&&void 0!==bt?bt:new Map;ti.set(gt,it),Ot.set(Nt,ti)}}let xe=(()=>{class Ot{constructor(gt,it,bt,ti){this.elementRef=gt,this.styleBuilder=it,this.styler=bt,this.marshal=ti,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new C.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(gt){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,this.marshal.activatedAlias)}ngOnChanges(gt){Object.keys(gt).forEach(it=>{if(-1!==this.inputs.indexOf(it)){const bt=it.split(".").slice(1).join(".");this.setValue(gt[it].currentValue,bt)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(gt=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),gt)}addStyles(gt,it){const bt=this.styleBuilder,ti=bt.shouldCache;let Qt=this.styleCache.get(gt);(!Qt||!ti)&&(Qt=bt.buildStyles(gt,it),ti&&this.styleCache.set(gt,Qt)),this.mru=Object.assign({},Qt),this.applyStyleToElement(Qt),bt.sideEffect(gt,Qt,it)}clearStyles(){Object.keys(this.mru).forEach(gt=>{this.mru[gt]=""}),this.applyStyleToElement(this.mru),this.mru={},this.currentValue=void 0}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(gt,it=!1){if(gt){const[bt,ti]=this.styler.getFlowDirection(gt);if(!ti&&it){const Qt=(0,d.Ar)(bt);this.styler.applyStyleToElements(Qt,[gt])}return bt.trim()}return"row"}hasWrap(gt){return this.styler.hasWrap(gt)}applyStyleToElement(gt,it,bt=this.nativeElement){this.styler.applyStyleToElement(bt,gt,it)}setValue(gt,it){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,gt,it)}updateWithValue(gt){this.currentValue!==gt&&(this.addStyles(gt),this.currentValue=gt)}}return Ot.\u0275fac=function(gt){return new(gt||Ot)(t.Y36(t.SBq),t.Y36(ue),t.Y36(ne),t.Y36(ce))},Ot.\u0275dir=t.lG2({type:Ot,features:[t.TTD]}),Ot})();function di(Ot,Nt="1",gt="1"){let it=[Nt,gt,Ot],bt=Ot.indexOf("calc");if(bt>0){it[2]=Yt(Ot.substring(bt).trim());let ti=Ot.substr(0,bt).trim().split(" ");2==ti.length&&(it[0]=ti[0],it[1]=ti[1])}else if(0==bt)it[2]=Yt(Ot.trim());else{let ti=Ot.split(" ");it=3===ti.length?ti:[Nt,gt,Ot]}return it}function Yt(Ot){return Ot.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}function ui(Ot,Nt){if(void 0===Nt)return Ot;const gt=it=>{const bt=+it.slice(0,-"x".length);return Ot.endsWith("x")&&!isNaN(bt)?`${bt*Nt.value}${Nt.unit}`:Ot};return Ot.includes(" ")?Ot.split(" ").map(gt).join(" "):gt(Ot)}},3322:(Be,K,p)=>{"use strict";p.d(K,{Zl:()=>T,aT:()=>n,oO:()=>B});var t=p(5e3),e=p(3270),f=p(9808),C=(p(3191),p(2722),p(2313));let S=(()=>{class _ extends e.iR{constructor(N,H,X,he,be,Pe,Ee){super(N,null,H,X),this.ngClassInstance=Ee,this.DIRECTIVE_KEY="ngClass",this.ngClassInstance||(this.ngClassInstance=new f.mk(he,be,N,Pe)),this.init(),this.setValue("","")}set klass(N){this.ngClassInstance.klass=N,this.setValue(N,"")}updateWithValue(N){this.ngClassInstance.ngClass=N,this.ngClassInstance.ngDoCheck()}ngDoCheck(){this.ngClassInstance.ngDoCheck()}}return _.\u0275fac=function(N){return new(N||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(t.ZZ4),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.mk,10))},_.\u0275dir=t.lG2({type:_,inputs:{klass:["class","klass"]},features:[t.qOj]}),_})();const k=["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 B=(()=>{class _ extends S{constructor(){super(...arguments),this.inputs=k}}return _.\u0275fac=function(){let V;return function(H){return(V||(V=t.n5z(_)))(H||_)}}(),_.\u0275dir=t.lG2({type:_,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:[t.qOj]}),_})();class re{constructor(V,N,H=!0){this.key=V,this.value=N,this.key=H?V.replace(/['"]/g,"").trim():V.trim(),this.value=H?N.replace(/['"]/g,"").trim():N.trim(),this.value=this.value.replace(/;/,"")}}function ge(_){let V=typeof _;return"object"===V?_.constructor===Array?"array":_.constructor===Set?"set":"object":V}function i(_){const[V,...N]=_.split(":");return new re(V,N.join(":"))}function r(_,V){return V.key&&(_[V.key]=V.value),_}let u=(()=>{class _ extends e.iR{constructor(N,H,X,he,be,Pe,Ee,j,Ve){var Me;super(N,null,H,X),this.sanitizer=he,this.ngStyleInstance=Ee,this.DIRECTIVE_KEY="ngStyle",this.ngStyleInstance||(this.ngStyleInstance=new f.PC(N,be,Pe)),this.init();const J=null!==(Me=this.nativeElement.getAttribute("style"))&&void 0!==Me?Me:"";this.fallbackStyles=this.buildStyleMap(J),this.isServer=j&&(0,f.PM)(Ve)}updateWithValue(N){const H=this.buildStyleMap(N);this.ngStyleInstance.ngStyle=Object.assign(Object.assign({},this.fallbackStyles),H),this.isServer&&this.applyStyleToElement(H),this.ngStyleInstance.ngDoCheck()}clearStyles(){this.ngStyleInstance.ngStyle=this.fallbackStyles,this.ngStyleInstance.ngDoCheck()}buildStyleMap(N){const H=X=>{var he;return null!==(he=this.sanitizer.sanitize(t.q3G.STYLE,X))&&void 0!==he?he:""};if(N)switch(ge(N)){case"string":return I(function q(_,V=";"){return String(_).trim().split(V).map(N=>N.trim()).filter(N=>""!==N)}(N),H);case"array":return I(N,H);default:return function x(_,V){let N=[];return"set"===ge(_)?_.forEach(H=>N.push(H)):Object.keys(_).forEach(H=>{N.push(`${H}:${_[H]}`)}),function _e(_,V){return _.map(i).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}(N,V)}(N,H)}return{}}ngDoCheck(){this.ngStyleInstance.ngDoCheck()}}return _.\u0275fac=function(N){return new(N||_)(t.Y36(t.SBq),t.Y36(e.RK),t.Y36(e.yB),t.Y36(C.H7),t.Y36(t.aQg),t.Y36(t.Qsj),t.Y36(f.PC,10),t.Y36(e.wY),t.Y36(t.Lbi))},_.\u0275dir=t.lG2({type:_,features:[t.qOj]}),_})();const c=["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 T=(()=>{class _ extends u{constructor(){super(...arguments),this.inputs=c}}return _.\u0275fac=function(){let V;return function(H){return(V||(V=t.n5z(_)))(H||_)}}(),_.\u0275dir=t.lG2({type:_,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:[t.qOj]}),_})();function I(_,V){return _.map(i).filter(H=>!!H).map(H=>(V&&(H.value=V(H.value)),H)).reduce(r,{})}let n=(()=>{class _{}return _.\u0275fac=function(N){return new(N||_)},_.\u0275mod=t.oAB({type:_}),_.\u0275inj=t.cJS({imports:[[e.IR]]}),_})()},7093:(Be,K,p)=>{"use strict";p.d(K,{Wh:()=>Yt,ae:()=>Re,xw:()=>w,yH:()=>v});var t=p(5e3),e=p(226),f=p(3270),M=p(9042),C=(p(7579),p(2722));let d=(()=>{class ke extends f.QI{buildStyles(ye,{display:ht}){const mt=(0,M.Ar)(ye);return Object.assign(Object.assign({},mt),{display:"none"===ht?ht:mt.display})}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const R=["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 L=(()=>{class ke extends f.iR{constructor(ye,ht,mt,Ft,nt){super(ye,mt,ht,Ft),this._config=nt,this.DIRECTIVE_KEY="layout",this.init()}updateWithValue(ye){var ht;const Ft=this._config.detectLayoutDisplay?this.styler.lookupStyle(this.nativeElement,"display"):"";this.styleCache=null!==(ht=D.get(Ft))&&void 0!==ht?ht:new Map,D.set(Ft,this.styleCache),this.currentValue!==ye&&(this.addStyles(ye,{display:Ft}),this.currentValue=ye)}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(d),t.Y36(f.yB),t.Y36(f.WU))},ke.\u0275dir=t.lG2({type:ke,features:[t.qOj]}),ke})(),w=(()=>{class ke extends L{constructor(){super(...arguments),this.inputs=R}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275dir=t.lG2({type:ke,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:[t.qOj]}),ke})();const D=new Map;let i=(()=>{class ke extends f.QI{constructor(ye){super(),this.layoutConfig=ye}buildStyles(ye,ht){let[mt,Ft,...nt]=ye.split(" "),He=nt.join(" ");const rt=ht.direction.indexOf("column")>-1?"column":"row",et=(0,M.tj)(rt)?"max-width":"max-height",Ae=(0,M.tj)(rt)?"min-width":"min-height",Ge=String(He).indexOf("calc")>-1,ot=Ge||"auto"===He,lt=String(He).indexOf("%")>-1&&!Ge,Ct=String(He).indexOf("px")>-1||String(He).indexOf("rem")>-1||String(He).indexOf("em")>-1||String(He).indexOf("vw")>-1||String(He).indexOf("vh")>-1;let mi=Ge||Ct;mt="0"==mt?0:mt,Ft="0"==Ft?0:Ft;const Jt=!mt&&!Ft;let ei={};const Qi={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(He||""){case"":const hi=!1!==this.layoutConfig.useColumnBasisZero;He="row"===rt?"0%":hi?"0.000000001px":"auto";break;case"initial":case"nogrow":mt=0,He="auto";break;case"grow":He="100%";break;case"noshrink":Ft=0,He="auto";break;case"auto":break;case"none":mt=0,Ft=0,He="auto";break;default:!mi&&!lt&&!isNaN(He)&&(He+="%"),"0%"===He&&(mi=!0),"0px"===He&&(He="0%"),ei=(0,M.kt)(Qi,Ge?{"flex-grow":mt,"flex-shrink":Ft,"flex-basis":mi?He:"100%"}:{flex:`${mt} ${Ft} ${mi?He:"100%"}`})}return ei.flex||ei["flex-grow"]||(ei=(0,M.kt)(Qi,Ge?{"flex-grow":mt,"flex-shrink":Ft,"flex-basis":He}:{flex:`${mt} ${Ft} ${He}`})),"0%"!==He&&"0px"!==He&&"0.000000001px"!==He&&"auto"!==He&&(ei[Ae]=Jt||mi&&mt?He:null,ei[et]=Jt||!ot&&Ft?He:null),ei[Ae]||ei[et]?ht.hasWrap&&(ei[Ge?"flex-basis":"flex"]=ei[et]?Ge?ei[et]:`${mt} ${Ft} ${ei[et]}`:Ge?ei[Ae]:`${mt} ${Ft} ${ei[Ae]}`):ei=(0,M.kt)(Qi,Ge?{"flex-grow":mt,"flex-shrink":Ft,"flex-basis":He}:{flex:`${mt} ${Ft} ${He}`}),(0,M.kt)(ei,{"box-sizing":"border-box"})}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.LFG(f.WU))},ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const r=["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 c=(()=>{class ke extends f.iR{constructor(ye,ht,mt,Ft,nt){super(ye,Ft,ht,nt),this.layoutConfig=mt,this.marshal=nt,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(ye){this.flexShrink=ye||"1",this.triggerReflow()}get grow(){return this.flexGrow}set grow(ye){this.flexGrow=ye||"1",this.triggerReflow()}ngOnInit(){this.parentElement&&(this.marshal.trackValue(this.parentElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this)),this.marshal.trackValue(this.nativeElement,"layout-align").pipe((0,C.R)(this.destroySubject)).subscribe(this.triggerReflow.bind(this)))}onLayoutChange(ye){const mt=ye.value.split(" ");this.direction=mt[0],this.wrap=void 0!==mt[1]&&"wrap"===mt[1],this.triggerUpdate()}updateWithValue(ye){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 mt=this.direction,Ft=mt.startsWith("row"),nt=this.wrap;Ft&&nt?this.styleCache=y:Ft&&!nt?this.styleCache=T:!Ft&&nt?this.styleCache=n:!Ft&&!nt&&(this.styleCache=I);const He=String(ye).replace(";",""),rt=(0,f.Ot)(He,this.flexGrow,this.flexShrink);this.addStyles(rt.join(" "),{direction:mt,hasWrap:nt})}triggerReflow(){const ye=this.activatedValue;if(void 0!==ye){const ht=(0,f.Ot)(ye+"",this.flexGrow,this.flexShrink);this.marshal.updateElement(this.nativeElement,this.DIRECTIVE_KEY,ht.join(" "))}}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(f.WU),t.Y36(i),t.Y36(f.yB))},ke.\u0275dir=t.lG2({type:ke,inputs:{shrink:["fxShrink","shrink"],grow:["fxGrow","grow"]},features:[t.qOj]}),ke})(),v=(()=>{class ke extends c{constructor(){super(...arguments),this.inputs=r}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275dir=t.lG2({type:ke,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:[t.qOj]}),ke})();const T=new Map,I=new Map,y=new Map,n=new Map;let pt=(()=>{class ke extends f.QI{buildStyles(ye,ht){const mt={},[Ft,nt]=ye.split(" ");switch(Ft){case"center":mt["justify-content"]="center";break;case"space-around":mt["justify-content"]="space-around";break;case"space-between":mt["justify-content"]="space-between";break;case"space-evenly":mt["justify-content"]="space-evenly";break;case"end":case"flex-end":mt["justify-content"]="flex-end";break;default:mt["justify-content"]="flex-start"}switch(nt){case"start":case"flex-start":mt["align-items"]=mt["align-content"]="flex-start";break;case"center":mt["align-items"]=mt["align-content"]="center";break;case"end":case"flex-end":mt["align-items"]=mt["align-content"]="flex-end";break;case"space-between":mt["align-content"]="space-between",mt["align-items"]="stretch";break;case"space-around":mt["align-content"]="space-around",mt["align-items"]="stretch";break;case"baseline":mt["align-content"]="stretch",mt["align-items"]="baseline";break;default:mt["align-items"]=mt["align-content"]="stretch"}return(0,M.kt)(mt,{display:ht.inline?"inline-flex":"flex","flex-direction":ht.layout,"box-sizing":"border-box","max-width":"stretch"===nt?(0,M.tj)(ht.layout)?null:"100%":null,"max-height":"stretch"===nt&&(0,M.tj)(ht.layout)?"100%":null})}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275prov=t.Yz7({token:ke,factory:ke.\u0275fac,providedIn:"root"}),ke})();const tt=["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 di=(()=>{class ke extends f.iR{constructor(ye,ht,mt,Ft){super(ye,mt,ht,Ft),this.DIRECTIVE_KEY="layout-align",this.layout="row",this.inline=!1,this.init(),this.marshal.trackValue(this.nativeElement,"layout").pipe((0,C.R)(this.destroySubject)).subscribe(this.onLayoutChange.bind(this))}updateWithValue(ye){const ht=this.layout||"row",mt=this.inline;"row"===ht&&mt?this.styleCache=gt:"row"!==ht||mt?"row-reverse"===ht&&mt?this.styleCache=bt:"row-reverse"!==ht||mt?"column"===ht&&mt?this.styleCache=it:"column"!==ht||mt?"column-reverse"===ht&&mt?this.styleCache=ti:"column-reverse"===ht&&!mt&&(this.styleCache=Nt):this.styleCache=ui:this.styleCache=Ot:this.styleCache=Zt,this.addStyles(ye,{layout:ht,inline:mt})}onLayoutChange(ye){const ht=ye.value.split(" ");this.layout=ht[0],this.inline=ye.value.includes("inline"),M.iQ.find(mt=>mt===this.layout)||(this.layout="row"),this.triggerUpdate()}}return ke.\u0275fac=function(ye){return new(ye||ke)(t.Y36(t.SBq),t.Y36(f.RK),t.Y36(pt),t.Y36(f.yB))},ke.\u0275dir=t.lG2({type:ke,features:[t.qOj]}),ke})(),Yt=(()=>{class ke extends di{constructor(){super(...arguments),this.inputs=tt}}return ke.\u0275fac=function(){let de;return function(ht){return(de||(de=t.n5z(ke)))(ht||ke)}}(),ke.\u0275dir=t.lG2({type:ke,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:[t.qOj]}),ke})();const Zt=new Map,ui=new Map,Ot=new Map,Nt=new Map,gt=new Map,it=new Map,bt=new Map,ti=new Map;let Re=(()=>{class ke{}return ke.\u0275fac=function(ye){return new(ye||ke)},ke.\u0275mod=t.oAB({type:ke}),ke.\u0275inj=t.cJS({imports:[[f.IR,e.vT]]}),ke})()},3075:(Be,K,p)=>{"use strict";p.d(K,{Cf:()=>Z,F:()=>ii,Fd:()=>Ha,Fj:()=>k,JJ:()=>we,JL:()=>ce,JU:()=>R,NI:()=>Si,On:()=>Rn,Q7:()=>Br,UX:()=>ci,Zs:()=>Sa,_Y:()=>tr,a5:()=>Me,kI:()=>ee,oH:()=>ta,qQ:()=>sa,qu:()=>jt,sg:()=>na,u:()=>Yn,u5:()=>It,wV:()=>Ti});var t=p(5e3),e=p(9808),f=p(457),M=p(4128),a=p(4004);let C=(()=>{class je{constructor(Fe,At){this._renderer=Fe,this._elementRef=At,this.onChange=wi=>{},this.onTouched=()=>{}}setProperty(Fe,At){this._renderer.setProperty(this._elementRef.nativeElement,Fe,At)}registerOnTouched(Fe){this.onTouched=Fe}registerOnChange(Fe){this.onChange=Fe}setDisabledState(Fe){this.setProperty("disabled",Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(t.Qsj),t.Y36(t.SBq))},je.\u0275dir=t.lG2({type:je}),je})(),d=(()=>{class je extends C{}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,features:[t.qOj]}),je})();const R=new t.OlP("NgValueAccessor"),w={provide:R,useExisting:(0,t.Gpc)(()=>k),multi:!0},S=new t.OlP("CompositionEventMode");let k=(()=>{class je extends C{constructor(Fe,At,wi){super(Fe,At),this._compositionMode=wi,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function D(){const je=(0,e.q)()?(0,e.q)().getUserAgent():"";return/android (\d+)/.test(je.toLowerCase())}())}writeValue(Fe){this.setProperty("value",null==Fe?"":Fe)}_handleInput(Fe){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(Fe)}_compositionStart(){this._composing=!0}_compositionEnd(Fe){this._composing=!1,this._compositionMode&&this.onChange(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(t.Qsj),t.Y36(t.SBq),t.Y36(S,8))},je.\u0275dir=t.lG2({type:je,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("input",function(Gi){return At._handleInput(Gi.target.value)})("blur",function(){return At.onTouched()})("compositionstart",function(){return At._compositionStart()})("compositionend",function(Gi){return At._compositionEnd(Gi.target.value)})},features:[t._Bn([w]),t.qOj]}),je})();function E(je){return null==je||0===je.length}function B(je){return null!=je&&"number"==typeof je.length}const Z=new t.OlP("NgValidators"),Y=new t.OlP("NgAsyncValidators"),ae=/^(?=.{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 ee{static min(Ye){return ue(Ye)}static max(Ye){return ne(Ye)}static required(Ye){return re(Ye)}static requiredTrue(Ye){return ge(Ye)}static email(Ye){return function q(je){return E(je.value)||ae.test(je.value)?null:{email:!0}}(Ye)}static minLength(Ye){return function _e(je){return Ye=>E(Ye.value)||!B(Ye.value)?null:Ye.value.lengthB(Ye.value)&&Ye.value.length>je?{maxlength:{requiredLength:je,actualLength:Ye.value.length}}:null}(Ye)}static pattern(Ye){return function i(je){if(!je)return r;let Ye,Fe;return"string"==typeof je?(Fe="","^"!==je.charAt(0)&&(Fe+="^"),Fe+=je,"$"!==je.charAt(je.length-1)&&(Fe+="$"),Ye=new RegExp(Fe)):(Fe=je.toString(),Ye=je),At=>{if(E(At.value))return null;const wi=At.value;return Ye.test(wi)?null:{pattern:{requiredPattern:Fe,actualValue:wi}}}}(Ye)}static nullValidator(Ye){return null}static compose(Ye){return n(Ye)}static composeAsync(Ye){return V(Ye)}}function ue(je){return Ye=>{if(E(Ye.value)||E(je))return null;const Fe=parseFloat(Ye.value);return!isNaN(Fe)&&Fe{if(E(Ye.value)||E(je))return null;const Fe=parseFloat(Ye.value);return!isNaN(Fe)&&Fe>je?{max:{max:je,actual:Ye.value}}:null}}function re(je){return E(je.value)?{required:!0}:null}function ge(je){return!0===je.value?null:{required:!0}}function r(je){return null}function u(je){return null!=je}function c(je){const Ye=(0,t.QGY)(je)?(0,f.D)(je):je;return(0,t.CqO)(Ye),Ye}function v(je){let Ye={};return je.forEach(Fe=>{Ye=null!=Fe?Object.assign(Object.assign({},Ye),Fe):Ye}),0===Object.keys(Ye).length?null:Ye}function T(je,Ye){return Ye.map(Fe=>Fe(je))}function y(je){return je.map(Ye=>function I(je){return!je.validate}(Ye)?Ye:Fe=>Ye.validate(Fe))}function n(je){if(!je)return null;const Ye=je.filter(u);return 0==Ye.length?null:function(Fe){return v(T(Fe,Ye))}}function _(je){return null!=je?n(y(je)):null}function V(je){if(!je)return null;const Ye=je.filter(u);return 0==Ye.length?null:function(Fe){const At=T(Fe,Ye).map(c);return(0,M.D)(At).pipe((0,a.U)(v))}}function N(je){return null!=je?V(y(je)):null}function H(je,Ye){return null===je?[Ye]:Array.isArray(je)?[...je,Ye]:[je,Ye]}function X(je){return je._rawValidators}function he(je){return je._rawAsyncValidators}function be(je){return je?Array.isArray(je)?je:[je]:[]}function Pe(je,Ye){return Array.isArray(je)?je.includes(Ye):je===Ye}function Ee(je,Ye){const Fe=be(Ye);return be(je).forEach(wi=>{Pe(Fe,wi)||Fe.push(wi)}),Fe}function j(je,Ye){return be(Ye).filter(Fe=>!Pe(je,Fe))}class Ve{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(Ye){this._rawValidators=Ye||[],this._composedValidatorFn=_(this._rawValidators)}_setAsyncValidators(Ye){this._rawAsyncValidators=Ye||[],this._composedAsyncValidatorFn=N(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(Ye){this._onDestroyCallbacks.push(Ye)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(Ye=>Ye()),this._onDestroyCallbacks=[]}reset(Ye){this.control&&this.control.reset(Ye)}hasError(Ye,Fe){return!!this.control&&this.control.hasError(Ye,Fe)}getError(Ye,Fe){return this.control?this.control.getError(Ye,Fe):null}}class Me extends Ve{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class J extends Ve{get formDirective(){return null}get path(){return null}}class Ie{constructor(Ye){this._cd=Ye}is(Ye){var Fe,At,wi;return"submitted"===Ye?!!(null===(Fe=this._cd)||void 0===Fe?void 0:Fe.submitted):!!(null===(wi=null===(At=this._cd)||void 0===At?void 0:At.control)||void 0===wi?void 0:wi[Ye])}}let we=(()=>{class je extends Ie{constructor(Fe){super(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Me,2))},je.\u0275dir=t.lG2({type:je,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(Fe,At){2&Fe&&t.ekj("ng-untouched",At.is("untouched"))("ng-touched",At.is("touched"))("ng-pristine",At.is("pristine"))("ng-dirty",At.is("dirty"))("ng-valid",At.is("valid"))("ng-invalid",At.is("invalid"))("ng-pending",At.is("pending"))},features:[t.qOj]}),je})(),ce=(()=>{class je extends Ie{constructor(Fe){super(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(J,10))},je.\u0275dir=t.lG2({type:je,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(Fe,At){2&Fe&&t.ekj("ng-untouched",At.is("untouched"))("ng-touched",At.is("touched"))("ng-pristine",At.is("pristine"))("ng-dirty",At.is("dirty"))("ng-valid",At.is("valid"))("ng-invalid",At.is("invalid"))("ng-pending",At.is("pending"))("ng-submitted",At.is("submitted"))},features:[t.qOj]}),je})();function gt(je,Ye){return[...Ye.path,je]}function it(je,Ye){Re(je,Ye),Ye.valueAccessor.writeValue(je.value),function de(je,Ye){Ye.valueAccessor.registerOnChange(Fe=>{je._pendingValue=Fe,je._pendingChange=!0,je._pendingDirty=!0,"change"===je.updateOn&&ht(je,Ye)})}(je,Ye),function mt(je,Ye){const Fe=(At,wi)=>{Ye.valueAccessor.writeValue(At),wi&&Ye.viewToModelUpdate(At)};je.registerOnChange(Fe),Ye._registerOnDestroy(()=>{je._unregisterOnChange(Fe)})}(je,Ye),function ye(je,Ye){Ye.valueAccessor.registerOnTouched(()=>{je._pendingTouched=!0,"blur"===je.updateOn&&je._pendingChange&&ht(je,Ye),"submit"!==je.updateOn&&je.markAsTouched()})}(je,Ye),function Qt(je,Ye){if(Ye.valueAccessor.setDisabledState){const Fe=At=>{Ye.valueAccessor.setDisabledState(At)};je.registerOnDisabledChange(Fe),Ye._registerOnDestroy(()=>{je._unregisterOnDisabledChange(Fe)})}}(je,Ye)}function bt(je,Ye,Fe=!0){const At=()=>{};Ye.valueAccessor&&(Ye.valueAccessor.registerOnChange(At),Ye.valueAccessor.registerOnTouched(At)),ke(je,Ye),je&&(Ye._invokeOnDestroyCallbacks(),je._registerOnCollectionChange(()=>{}))}function ti(je,Ye){je.forEach(Fe=>{Fe.registerOnValidatorChange&&Fe.registerOnValidatorChange(Ye)})}function Re(je,Ye){const Fe=X(je);null!==Ye.validator?je.setValidators(H(Fe,Ye.validator)):"function"==typeof Fe&&je.setValidators([Fe]);const At=he(je);null!==Ye.asyncValidator?je.setAsyncValidators(H(At,Ye.asyncValidator)):"function"==typeof At&&je.setAsyncValidators([At]);const wi=()=>je.updateValueAndValidity();ti(Ye._rawValidators,wi),ti(Ye._rawAsyncValidators,wi)}function ke(je,Ye){let Fe=!1;if(null!==je){if(null!==Ye.validator){const wi=X(je);if(Array.isArray(wi)&&wi.length>0){const Gi=wi.filter(Un=>Un!==Ye.validator);Gi.length!==wi.length&&(Fe=!0,je.setValidators(Gi))}}if(null!==Ye.asyncValidator){const wi=he(je);if(Array.isArray(wi)&&wi.length>0){const Gi=wi.filter(Un=>Un!==Ye.asyncValidator);Gi.length!==wi.length&&(Fe=!0,je.setAsyncValidators(Gi))}}}const At=()=>{};return ti(Ye._rawValidators,At),ti(Ye._rawAsyncValidators,At),Fe}function ht(je,Ye){je._pendingDirty&&je.markAsDirty(),je.setValue(je._pendingValue,{emitModelToViewChange:!1}),Ye.viewToModelUpdate(je._pendingValue),je._pendingChange=!1}function Ft(je,Ye){Re(je,Ye)}function Ge(je,Ye){if(!je.hasOwnProperty("model"))return!1;const Fe=je.model;return!!Fe.isFirstChange()||!Object.is(Ye,Fe.currentValue)}function lt(je,Ye){je._syncPendingControls(),Ye.forEach(Fe=>{const At=Fe.control;"submit"===At.updateOn&&At._pendingChange&&(Fe.viewToModelUpdate(At._pendingValue),At._pendingChange=!1)})}function Ct(je,Ye){if(!Ye)return null;let Fe,At,wi;return Array.isArray(Ye),Ye.forEach(Gi=>{Gi.constructor===k?Fe=Gi:function ot(je){return Object.getPrototypeOf(je.constructor)===d}(Gi)?At=Gi:wi=Gi}),wi||At||Fe||null}function mi(je,Ye){const Fe=je.indexOf(Ye);Fe>-1&&je.splice(Fe,1)}const Qi="VALID",hi="INVALID",si="PENDING",Ji="DISABLED";function Vi(je){return(ve(je)?je.validators:je)||null}function Ui(je){return Array.isArray(je)?_(je):je||null}function Ue(je,Ye){return(ve(Ye)?Ye.asyncValidators:je)||null}function Tt(je){return Array.isArray(je)?N(je):je||null}function ve(je){return null!=je&&!Array.isArray(je)&&"object"==typeof je}const Qe=je=>je instanceof Si,_t=je=>je instanceof Xi,se=je=>je instanceof Wi;function Xe(je){return Qe(je)?je.value:je.getRawValue()}function xt(je,Ye){const Fe=_t(je),At=je.controls;if(!(Fe?Object.keys(At):At).length)throw new t.vHH(1e3,"");if(!At[Ye])throw new t.vHH(1001,"")}function Bt(je,Ye){_t(je),je._forEachChild((At,wi)=>{if(void 0===Ye[wi])throw new t.vHH(1002,"")})}class bi{constructor(Ye,Fe){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=Ye,this._rawAsyncValidators=Fe,this._composedValidatorFn=Ui(this._rawValidators),this._composedAsyncValidatorFn=Tt(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(Ye){this._rawValidators=this._composedValidatorFn=Ye}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(Ye){this._rawAsyncValidators=this._composedAsyncValidatorFn=Ye}get parent(){return this._parent}get valid(){return this.status===Qi}get invalid(){return this.status===hi}get pending(){return this.status==si}get disabled(){return this.status===Ji}get enabled(){return this.status!==Ji}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(Ye){this._rawValidators=Ye,this._composedValidatorFn=Ui(Ye)}setAsyncValidators(Ye){this._rawAsyncValidators=Ye,this._composedAsyncValidatorFn=Tt(Ye)}addValidators(Ye){this.setValidators(Ee(Ye,this._rawValidators))}addAsyncValidators(Ye){this.setAsyncValidators(Ee(Ye,this._rawAsyncValidators))}removeValidators(Ye){this.setValidators(j(Ye,this._rawValidators))}removeAsyncValidators(Ye){this.setAsyncValidators(j(Ye,this._rawAsyncValidators))}hasValidator(Ye){return Pe(this._rawValidators,Ye)}hasAsyncValidator(Ye){return Pe(this._rawAsyncValidators,Ye)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(Ye={}){this.touched=!0,this._parent&&!Ye.onlySelf&&this._parent.markAsTouched(Ye)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(Ye=>Ye.markAllAsTouched())}markAsUntouched(Ye={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(Fe=>{Fe.markAsUntouched({onlySelf:!0})}),this._parent&&!Ye.onlySelf&&this._parent._updateTouched(Ye)}markAsDirty(Ye={}){this.pristine=!1,this._parent&&!Ye.onlySelf&&this._parent.markAsDirty(Ye)}markAsPristine(Ye={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(Fe=>{Fe.markAsPristine({onlySelf:!0})}),this._parent&&!Ye.onlySelf&&this._parent._updatePristine(Ye)}markAsPending(Ye={}){this.status=si,!1!==Ye.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!Ye.onlySelf&&this._parent.markAsPending(Ye)}disable(Ye={}){const Fe=this._parentMarkedDirty(Ye.onlySelf);this.status=Ji,this.errors=null,this._forEachChild(At=>{At.disable(Object.assign(Object.assign({},Ye),{onlySelf:!0}))}),this._updateValue(),!1!==Ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},Ye),{skipPristineCheck:Fe})),this._onDisabledChange.forEach(At=>At(!0))}enable(Ye={}){const Fe=this._parentMarkedDirty(Ye.onlySelf);this.status=Qi,this._forEachChild(At=>{At.enable(Object.assign(Object.assign({},Ye),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ye.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},Ye),{skipPristineCheck:Fe})),this._onDisabledChange.forEach(At=>At(!1))}_updateAncestors(Ye){this._parent&&!Ye.onlySelf&&(this._parent.updateValueAndValidity(Ye),Ye.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(Ye){this._parent=Ye}updateValueAndValidity(Ye={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qi||this.status===si)&&this._runAsyncValidator(Ye.emitEvent)),!1!==Ye.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!Ye.onlySelf&&this._parent.updateValueAndValidity(Ye)}_updateTreeValidity(Ye={emitEvent:!0}){this._forEachChild(Fe=>Fe._updateTreeValidity(Ye)),this.updateValueAndValidity({onlySelf:!0,emitEvent:Ye.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ji:Qi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(Ye){if(this.asyncValidator){this.status=si,this._hasOwnPendingAsyncValidator=!0;const Fe=c(this.asyncValidator(this));this._asyncValidationSubscription=Fe.subscribe(At=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(At,{emitEvent:Ye})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(Ye,Fe={}){this.errors=Ye,this._updateControlsErrors(!1!==Fe.emitEvent)}get(Ye){return function Zi(je,Ye,Fe){if(null==Ye||(Array.isArray(Ye)||(Ye=Ye.split(Fe)),Array.isArray(Ye)&&0===Ye.length))return null;let At=je;return Ye.forEach(wi=>{At=_t(At)?At.controls.hasOwnProperty(wi)?At.controls[wi]:null:se(At)&&At.at(wi)||null}),At}(this,Ye,".")}getError(Ye,Fe){const At=Fe?this.get(Fe):this;return At&&At.errors?At.errors[Ye]:null}hasError(Ye,Fe){return!!this.getError(Ye,Fe)}get root(){let Ye=this;for(;Ye._parent;)Ye=Ye._parent;return Ye}_updateControlsErrors(Ye){this.status=this._calculateStatus(),Ye&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(Ye)}_initObservables(){this.valueChanges=new t.vpe,this.statusChanges=new t.vpe}_calculateStatus(){return this._allControlsDisabled()?Ji:this.errors?hi:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(si)?si:this._anyControlsHaveStatus(hi)?hi:Qi}_anyControlsHaveStatus(Ye){return this._anyControls(Fe=>Fe.status===Ye)}_anyControlsDirty(){return this._anyControls(Ye=>Ye.dirty)}_anyControlsTouched(){return this._anyControls(Ye=>Ye.touched)}_updatePristine(Ye={}){this.pristine=!this._anyControlsDirty(),this._parent&&!Ye.onlySelf&&this._parent._updatePristine(Ye)}_updateTouched(Ye={}){this.touched=this._anyControlsTouched(),this._parent&&!Ye.onlySelf&&this._parent._updateTouched(Ye)}_isBoxedValue(Ye){return"object"==typeof Ye&&null!==Ye&&2===Object.keys(Ye).length&&"value"in Ye&&"disabled"in Ye}_registerOnCollectionChange(Ye){this._onCollectionChange=Ye}_setUpdateStrategy(Ye){ve(Ye)&&null!=Ye.updateOn&&(this._updateOn=Ye.updateOn)}_parentMarkedDirty(Ye){return!Ye&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Si extends bi{constructor(Ye=null,Fe,At){super(Vi(Fe),Ue(At,Fe)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(Ye),this._setUpdateStrategy(Fe),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ve(Fe)&&Fe.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(Ye)?Ye.value:Ye)}setValue(Ye,Fe={}){this.value=this._pendingValue=Ye,this._onChange.length&&!1!==Fe.emitModelToViewChange&&this._onChange.forEach(At=>At(this.value,!1!==Fe.emitViewToModelChange)),this.updateValueAndValidity(Fe)}patchValue(Ye,Fe={}){this.setValue(Ye,Fe)}reset(Ye=this.defaultValue,Fe={}){this._applyFormState(Ye),this.markAsPristine(Fe),this.markAsUntouched(Fe),this.setValue(this.value,Fe),this._pendingChange=!1}_updateValue(){}_anyControls(Ye){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(Ye){this._onChange.push(Ye)}_unregisterOnChange(Ye){mi(this._onChange,Ye)}registerOnDisabledChange(Ye){this._onDisabledChange.push(Ye)}_unregisterOnDisabledChange(Ye){mi(this._onDisabledChange,Ye)}_forEachChild(Ye){}_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(Ye){this._isBoxedValue(Ye)?(this.value=this._pendingValue=Ye.value,Ye.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=Ye}}class Xi extends bi{constructor(Ye,Fe,At){super(Vi(Fe),Ue(At,Fe)),this.controls=Ye,this._initObservables(),this._setUpdateStrategy(Fe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(Ye,Fe){return this.controls[Ye]?this.controls[Ye]:(this.controls[Ye]=Fe,Fe.setParent(this),Fe._registerOnCollectionChange(this._onCollectionChange),Fe)}addControl(Ye,Fe,At={}){this.registerControl(Ye,Fe),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}removeControl(Ye,Fe={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),delete this.controls[Ye],this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}setControl(Ye,Fe,At={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),delete this.controls[Ye],Fe&&this.registerControl(Ye,Fe),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}contains(Ye){return this.controls.hasOwnProperty(Ye)&&this.controls[Ye].enabled}setValue(Ye,Fe={}){Bt(this,Ye),Object.keys(Ye).forEach(At=>{xt(this,At),this.controls[At].setValue(Ye[At],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe)}patchValue(Ye,Fe={}){null!=Ye&&(Object.keys(Ye).forEach(At=>{this.controls[At]&&this.controls[At].patchValue(Ye[At],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe))}reset(Ye={},Fe={}){this._forEachChild((At,wi)=>{At.reset(Ye[wi],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this._updatePristine(Fe),this._updateTouched(Fe),this.updateValueAndValidity(Fe)}getRawValue(){return this._reduceChildren({},(Ye,Fe,At)=>(Ye[At]=Xe(Fe),Ye))}_syncPendingControls(){let Ye=this._reduceChildren(!1,(Fe,At)=>!!At._syncPendingControls()||Fe);return Ye&&this.updateValueAndValidity({onlySelf:!0}),Ye}_forEachChild(Ye){Object.keys(this.controls).forEach(Fe=>{const At=this.controls[Fe];At&&Ye(At,Fe)})}_setUpControls(){this._forEachChild(Ye=>{Ye.setParent(this),Ye._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(Ye){for(const Fe of Object.keys(this.controls)){const At=this.controls[Fe];if(this.contains(Fe)&&Ye(At))return!0}return!1}_reduceValue(){return this._reduceChildren({},(Ye,Fe,At)=>((Fe.enabled||this.disabled)&&(Ye[At]=Fe.value),Ye))}_reduceChildren(Ye,Fe){let At=Ye;return this._forEachChild((wi,Gi)=>{At=Fe(At,wi,Gi)}),At}_allControlsDisabled(){for(const Ye of Object.keys(this.controls))if(this.controls[Ye].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Wi extends bi{constructor(Ye,Fe,At){super(Vi(Fe),Ue(At,Fe)),this.controls=Ye,this._initObservables(),this._setUpdateStrategy(Fe),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(Ye){return this.controls[Ye]}push(Ye,Fe={}){this.controls.push(Ye),this._registerControl(Ye),this.updateValueAndValidity({emitEvent:Fe.emitEvent}),this._onCollectionChange()}insert(Ye,Fe,At={}){this.controls.splice(Ye,0,Fe),this._registerControl(Fe),this.updateValueAndValidity({emitEvent:At.emitEvent})}removeAt(Ye,Fe={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),this.controls.splice(Ye,1),this.updateValueAndValidity({emitEvent:Fe.emitEvent})}setControl(Ye,Fe,At={}){this.controls[Ye]&&this.controls[Ye]._registerOnCollectionChange(()=>{}),this.controls.splice(Ye,1),Fe&&(this.controls.splice(Ye,0,Fe),this._registerControl(Fe)),this.updateValueAndValidity({emitEvent:At.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(Ye,Fe={}){Bt(this,Ye),Ye.forEach((At,wi)=>{xt(this,wi),this.at(wi).setValue(At,{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe)}patchValue(Ye,Fe={}){null!=Ye&&(Ye.forEach((At,wi)=>{this.at(wi)&&this.at(wi).patchValue(At,{onlySelf:!0,emitEvent:Fe.emitEvent})}),this.updateValueAndValidity(Fe))}reset(Ye=[],Fe={}){this._forEachChild((At,wi)=>{At.reset(Ye[wi],{onlySelf:!0,emitEvent:Fe.emitEvent})}),this._updatePristine(Fe),this._updateTouched(Fe),this.updateValueAndValidity(Fe)}getRawValue(){return this.controls.map(Ye=>Xe(Ye))}clear(Ye={}){this.controls.length<1||(this._forEachChild(Fe=>Fe._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:Ye.emitEvent}))}_syncPendingControls(){let Ye=this.controls.reduce((Fe,At)=>!!At._syncPendingControls()||Fe,!1);return Ye&&this.updateValueAndValidity({onlySelf:!0}),Ye}_forEachChild(Ye){this.controls.forEach((Fe,At)=>{Ye(Fe,At)})}_updateValue(){this.value=this.controls.filter(Ye=>Ye.enabled||this.disabled).map(Ye=>Ye.value)}_anyControls(Ye){return this.controls.some(Fe=>Fe.enabled&&Ye(Fe))}_setUpControls(){this._forEachChild(Ye=>this._registerControl(Ye))}_allControlsDisabled(){for(const Ye of this.controls)if(Ye.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(Ye){Ye.setParent(this),Ye._registerOnCollectionChange(this._onCollectionChange)}}const on={provide:J,useExisting:(0,t.Gpc)(()=>ii)},pn=(()=>Promise.resolve(null))();let ii=(()=>{class je extends J{constructor(Fe,At){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new t.vpe,this.form=new Xi({},_(Fe),N(At))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(Fe){pn.then(()=>{const At=this._findContainer(Fe.path);Fe.control=At.registerControl(Fe.name,Fe.control),it(Fe.control,Fe),Fe.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(Fe)})}getControl(Fe){return this.form.get(Fe.path)}removeControl(Fe){pn.then(()=>{const At=this._findContainer(Fe.path);At&&At.removeControl(Fe.name),this._directives.delete(Fe)})}addFormGroup(Fe){pn.then(()=>{const At=this._findContainer(Fe.path),wi=new Xi({});Ft(wi,Fe),At.registerControl(Fe.name,wi),wi.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(Fe){pn.then(()=>{const At=this._findContainer(Fe.path);At&&At.removeControl(Fe.name)})}getFormGroup(Fe){return this.form.get(Fe.path)}updateModel(Fe,At){pn.then(()=>{this.form.get(Fe.path).setValue(At)})}setValue(Fe){this.control.setValue(Fe)}onSubmit(Fe){return this.submitted=!0,lt(this.form,this._directives),this.ngSubmit.emit(Fe),!1}onReset(){this.resetForm()}resetForm(Fe){this.form.reset(Fe),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(Fe){return Fe.pop(),Fe.length?this.form.get(Fe):this.form}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Z,10),t.Y36(Y,10))},je.\u0275dir=t.lG2({type:je,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("submit",function(Gi){return At.onSubmit(Gi)})("reset",function(){return At.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([on]),t.qOj]}),je})();const mn={provide:Me,useExisting:(0,t.Gpc)(()=>Rn)},In=(()=>Promise.resolve(null))();let Rn=(()=>{class je extends Me{constructor(Fe,At,wi,Gi,Un){super(),this._changeDetectorRef=Un,this.control=new Si,this._registered=!1,this.update=new t.vpe,this._parent=Fe,this._setValidators(At),this._setAsyncValidators(wi),this.valueAccessor=Ct(0,Gi)}ngOnChanges(Fe){if(this._checkForErrors(),!this._registered||"name"in Fe){if(this._registered&&(this._checkName(),this.formDirective)){const At=Fe.name.previousValue;this.formDirective.removeControl({name:At,path:this._getPath(At)})}this._setUpControl()}"isDisabled"in Fe&&this._updateDisabled(Fe),Ge(Fe,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}_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(){it(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(Fe){In.then(()=>{var At;this.control.setValue(Fe,{emitViewToModelChange:!1}),null===(At=this._changeDetectorRef)||void 0===At||At.markForCheck()})}_updateDisabled(Fe){const At=Fe.isDisabled.currentValue,wi=""===At||At&&"false"!==At;In.then(()=>{var Gi;wi&&!this.control.disabled?this.control.disable():!wi&&this.control.disabled&&this.control.enable(),null===(Gi=this._changeDetectorRef)||void 0===Gi||Gi.markForCheck()})}_getPath(Fe){return this._parent?gt(Fe,this._parent):[Fe]}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(J,9),t.Y36(Z,10),t.Y36(Y,10),t.Y36(R,10),t.Y36(t.sBO,8))},je.\u0275dir=t.lG2({type:je,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[t._Bn([mn]),t.qOj,t.TTD]}),je})(),tr=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275dir=t.lG2({type:je,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),je})();const gn={provide:R,useExisting:(0,t.Gpc)(()=>Ti),multi:!0};let Ti=(()=>{class je extends d{writeValue(Fe){this.setProperty("value",null==Fe?"":Fe)}registerOnChange(Fe){this.onChange=At=>{Fe(""==At?null:parseFloat(At))}}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("input",function(Gi){return At.onChange(Gi.target.value)})("blur",function(){return At.onTouched()})},features:[t._Bn([gn]),t.qOj]}),je})(),qn=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({}),je})();const fa=new t.OlP("NgModelWithFormControlWarning"),zr={provide:Me,useExisting:(0,t.Gpc)(()=>ta)};let ta=(()=>{class je extends Me{constructor(Fe,At,wi,Gi){super(),this._ngModelWarningConfig=Gi,this.update=new t.vpe,this._ngModelWarningSent=!1,this._setValidators(Fe),this._setAsyncValidators(At),this.valueAccessor=Ct(0,wi)}set isDisabled(Fe){}ngOnChanges(Fe){if(this._isControlChanged(Fe)){const At=Fe.form.previousValue;At&&bt(At,this,!1),it(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}Ge(Fe,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&bt(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}_isControlChanged(Fe){return Fe.hasOwnProperty("form")}}return je._ngModelWarningSentOnce=!1,je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Z,10),t.Y36(Y,10),t.Y36(R,10),t.Y36(fa,8))},je.\u0275dir=t.lG2({type:je,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[t._Bn([zr]),t.qOj,t.TTD]}),je})();const ia={provide:J,useExisting:(0,t.Gpc)(()=>na)};let na=(()=>{class je extends J{constructor(Fe,At){super(),this.validators=Fe,this.asyncValidators=At,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new t.vpe,this._setValidators(Fe),this._setAsyncValidators(At)}ngOnChanges(Fe){this._checkFormPresent(),Fe.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(ke(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(Fe){const At=this.form.get(Fe.path);return it(At,Fe),At.updateValueAndValidity({emitEvent:!1}),this.directives.push(Fe),At}getControl(Fe){return this.form.get(Fe.path)}removeControl(Fe){bt(Fe.control||null,Fe,!1),mi(this.directives,Fe)}addFormGroup(Fe){this._setUpFormContainer(Fe)}removeFormGroup(Fe){this._cleanUpFormContainer(Fe)}getFormGroup(Fe){return this.form.get(Fe.path)}addFormArray(Fe){this._setUpFormContainer(Fe)}removeFormArray(Fe){this._cleanUpFormContainer(Fe)}getFormArray(Fe){return this.form.get(Fe.path)}updateModel(Fe,At){this.form.get(Fe.path).setValue(At)}onSubmit(Fe){return this.submitted=!0,lt(this.form,this.directives),this.ngSubmit.emit(Fe),!1}onReset(){this.resetForm()}resetForm(Fe){this.form.reset(Fe),this.submitted=!1}_updateDomValue(){this.directives.forEach(Fe=>{const At=Fe.control,wi=this.form.get(Fe.path);At!==wi&&(bt(At||null,Fe),Qe(wi)&&(it(wi,Fe),Fe.control=wi))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(Fe){const At=this.form.get(Fe.path);Ft(At,Fe),At.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(Fe){if(this.form){const At=this.form.get(Fe.path);At&&function nt(je,Ye){return ke(je,Ye)}(At,Fe)&&At.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Re(this.form,this),this._oldForm&&ke(this._oldForm,this)}_checkFormPresent(){}}return je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(Z,10),t.Y36(Y,10))},je.\u0275dir=t.lG2({type:je,selectors:[["","formGroup",""]],hostBindings:function(Fe,At){1&Fe&&t.NdJ("submit",function(Gi){return At.onSubmit(Gi)})("reset",function(){return At.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[t._Bn([ia]),t.qOj,t.TTD]}),je})();const Pr={provide:Me,useExisting:(0,t.Gpc)(()=>Yn)};let Yn=(()=>{class je extends Me{constructor(Fe,At,wi,Gi,Un){super(),this._ngModelWarningConfig=Un,this._added=!1,this.update=new t.vpe,this._ngModelWarningSent=!1,this._parent=Fe,this._setValidators(At),this._setAsyncValidators(wi),this.valueAccessor=Ct(0,Gi)}set isDisabled(Fe){}ngOnChanges(Fe){this._added||this._setUpControl(),Ge(Fe,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(Fe){this.viewModel=Fe,this.update.emit(Fe)}get path(){return gt(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 je._ngModelWarningSentOnce=!1,je.\u0275fac=function(Fe){return new(Fe||je)(t.Y36(J,13),t.Y36(Z,10),t.Y36(Y,10),t.Y36(R,10),t.Y36(fa,8))},je.\u0275dir=t.lG2({type:je,selectors:[["","formControlName",""]],inputs:{name:["formControlName","name"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[t._Bn([Pr]),t.qOj,t.TTD]}),je})();function ba(je){return"number"==typeof je?je:parseFloat(je)}let or=(()=>{class je{constructor(){this._validator=r}ngOnChanges(Fe){if(this.inputName in Fe){const At=this.normalizeInput(Fe[this.inputName].currentValue);this._enabled=this.enabled(At),this._validator=this._enabled?this.createValidator(At):r,this._onChange&&this._onChange()}}validate(Fe){return this._validator(Fe)}registerOnValidatorChange(Fe){this._onChange=Fe}enabled(Fe){return null!=Fe}}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275dir=t.lG2({type:je,features:[t.TTD]}),je})();const aa={provide:Z,useExisting:(0,t.Gpc)(()=>Ha),multi:!0};let Ha=(()=>{class je extends or{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=Fe=>ba(Fe),this.createValidator=Fe=>ne(Fe)}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("max",At._enabled?At.max:null)},inputs:{max:"max"},features:[t._Bn([aa]),t.qOj]}),je})();const ir={provide:Z,useExisting:(0,t.Gpc)(()=>sa),multi:!0};let sa=(()=>{class je extends or{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=Fe=>ba(Fe),this.createValidator=Fe=>ue(Fe)}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("min",At._enabled?At.min:null)},inputs:{min:"min"},features:[t._Bn([ir]),t.qOj]}),je})();const Yr={provide:Z,useExisting:(0,t.Gpc)(()=>Br),multi:!0},Nr={provide:Z,useExisting:(0,t.Gpc)(()=>Sa),multi:!0};let Br=(()=>{class je extends or{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=Fe=>function Pa(je){return null!=je&&!1!==je&&"false"!=`${je}`}(Fe),this.createValidator=Fe=>re}enabled(Fe){return Fe}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("required",At._enabled?"":null)},inputs:{required:"required"},features:[t._Bn([Yr]),t.qOj]}),je})(),Sa=(()=>{class je extends Br{constructor(){super(...arguments),this.createValidator=Fe=>ge}}return je.\u0275fac=function(){let Ye;return function(At){return(Ye||(Ye=t.n5z(je)))(At||je)}}(),je.\u0275dir=t.lG2({type:je,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(Fe,At){2&Fe&&t.uIk("required",At._enabled?"":null)},features:[t._Bn([Nr]),t.qOj]}),je})(),Bn=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({imports:[[qn]]}),je})(),It=(()=>{class je{}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({imports:[Bn]}),je})(),ci=(()=>{class je{static withConfig(Fe){return{ngModule:je,providers:[{provide:fa,useValue:Fe.warnOnNgModelWithFormControl}]}}}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275mod=t.oAB({type:je}),je.\u0275inj=t.cJS({imports:[Bn]}),je})(),jt=(()=>{class je{group(Fe,At=null){const wi=this._reduceControls(Fe);let br,Gi=null,Un=null;return null!=At&&(function vt(je){return void 0!==je.asyncValidators||void 0!==je.validators||void 0!==je.updateOn}(At)?(Gi=null!=At.validators?At.validators:null,Un=null!=At.asyncValidators?At.asyncValidators:null,br=null!=At.updateOn?At.updateOn:void 0):(Gi=null!=At.validator?At.validator:null,Un=null!=At.asyncValidator?At.asyncValidator:null)),new Xi(wi,{asyncValidators:Un,updateOn:br,validators:Gi})}control(Fe,At,wi){return new Si(Fe,At,wi)}array(Fe,At,wi){const Gi=Fe.map(Un=>this._createControl(Un));return new Wi(Gi,At,wi)}_reduceControls(Fe){const At={};return Object.keys(Fe).forEach(wi=>{At[wi]=this._createControl(Fe[wi])}),At}_createControl(Fe){return Qe(Fe)||_t(Fe)||se(Fe)?Fe:Array.isArray(Fe)?this.control(Fe[0],Fe.length>1?Fe[1]:null,Fe.length>2?Fe[2]:null):this.control(Fe)}}return je.\u0275fac=function(Fe){return new(Fe||je)},je.\u0275prov=t.Yz7({token:je,factory:je.\u0275fac,providedIn:ci}),je})()},1079:(Be,K,p)=>{"use strict";p.d(K,{Bb:()=>j,XC:()=>n,ZL:()=>be});var t=p(5664),e=p(3191),f=p(5e3),M=p(508),a=p(727),C=p(7579),d=p(9770),R=p(6451),h=p(9646),L=p(4968),w=p(925),D=p(9808),S=p(9776),k=p(5303),E=p(1159),B=p(7429),Z=p(3075),Y=p(7322),ae=p(8675),ee=p(3900),ue=p(5698),ne=p(9300),re=p(4004),ge=p(8505),q=p(4086),_e=p(226);const x=["panel"];function i(Ve,Me){if(1&Ve&&(f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA()),2&Ve){const J=Me.id,Ie=f.oxw();f.Q6J("id",Ie.id)("ngClass",Ie._classList),f.uIk("aria-label",Ie.ariaLabel||null)("aria-labelledby",Ie._getPanelAriaLabelledby(J))}}const r=["*"];let u=0;class c{constructor(Me,J){this.source=Me,this.option=J}}const v=(0,M.Kr)(class{}),T=new f.OlP("mat-autocomplete-default-options",{providedIn:"root",factory:function I(){return{autoActiveFirstOption:!1}}});let y=(()=>{class Ve extends v{constructor(J,Ie,ut,Oe){super(),this._changeDetectorRef=J,this._elementRef=Ie,this._activeOptionChanges=a.w0.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new f.vpe,this.opened=new f.vpe,this.closed=new f.vpe,this.optionActivated=new f.vpe,this._classList={},this.id="mat-autocomplete-"+u++,this.inertGroups=(null==Oe?void 0:Oe.SAFARI)||!1,this._autoActiveFirstOption=!!ut.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(J){this._autoActiveFirstOption=(0,e.Ig)(J)}set classList(J){this._classList=J&&J.length?(0,e.du)(J).reduce((Ie,ut)=>(Ie[ut]=!0,Ie),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new t.s1(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(J=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[J]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(J){this.panel&&(this.panel.nativeElement.scrollTop=J)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(J){const Ie=new c(this,J);this.optionSelected.emit(Ie)}_getPanelAriaLabelledby(J){return this.ariaLabel?null:this.ariaLabelledby?(J?J+" ":"")+this.ariaLabelledby:J}_setVisibilityClasses(J){J[this._visibleClass]=this.showPanel,J[this._hiddenClass]=!this.showPanel}}return Ve.\u0275fac=function(J){return new(J||Ve)(f.Y36(f.sBO),f.Y36(f.SBq),f.Y36(T),f.Y36(w.t4))},Ve.\u0275dir=f.lG2({type:Ve,viewQuery:function(J,Ie){if(1&J&&(f.Gf(f.Rgc,7),f.Gf(x,5)),2&J){let ut;f.iGM(ut=f.CRH())&&(Ie.template=ut.first),f.iGM(ut=f.CRH())&&(Ie.panel=ut.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[f.qOj]}),Ve})(),n=(()=>{class Ve extends y{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return Ve.\u0275fac=function(){let Me;return function(Ie){return(Me||(Me=f.n5z(Ve)))(Ie||Ve)}}(),Ve.\u0275cmp=f.Xpm({type:Ve,selectors:[["mat-autocomplete"]],contentQueries:function(J,Ie,ut){if(1&J&&(f.Suo(ut,M.K7,5),f.Suo(ut,M.ey,5)),2&J){let Oe;f.iGM(Oe=f.CRH())&&(Ie.optionGroups=Oe),f.iGM(Oe=f.CRH())&&(Ie.options=Oe)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[f._Bn([{provide:M.HF,useExisting:Ve}]),f.qOj],ngContentSelectors:r,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(J,Ie){1&J&&(f.F$t(),f.YNc(0,i,3,4,"ng-template"))},directives:[D.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}),Ve})();const _=new f.OlP("mat-autocomplete-scroll-strategy"),N={provide:_,deps:[S.aV],useFactory:function V(Ve){return()=>Ve.scrollStrategies.reposition()}},H={provide:Z.JU,useExisting:(0,f.Gpc)(()=>be),multi:!0};let he=(()=>{class Ve{constructor(J,Ie,ut,Oe,we,ce,Te,xe,W,te,Ce){this._element=J,this._overlay=Ie,this._viewContainerRef=ut,this._zone=Oe,this._changeDetectorRef=we,this._dir=Te,this._formField=xe,this._document=W,this._viewportRuler=te,this._defaults=Ce,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=a.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,d.P)(()=>{const fe=this.autocomplete?this.autocomplete.options:null;return fe?fe.changes.pipe((0,ae.O)(fe),(0,ee.w)(()=>(0,R.T)(...fe.map(Q=>Q.onSelectionChange)))):this._zone.onStable.pipe((0,ue.q)(1),(0,ee.w)(()=>this.optionSelections))}),this._scrollStrategy=ce}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(J){this._autocompleteDisabled=(0,e.Ig)(J)}ngAfterViewInit(){const J=this._getWindow();void 0!==J&&this._zone.runOutsideAngular(()=>J.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(J){J.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const J=this._getWindow();void 0!==J&&J.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._zone.run(()=>{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,R.T)(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe((0,ne.h)(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe((0,ne.h)(()=>this._overlayAttached)):(0,h.of)()).pipe((0,re.U)(J=>J instanceof M.rN?J:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return(0,R.T)((0,L.R)(this._document,"click"),(0,L.R)(this._document,"auxclick"),(0,L.R)(this._document,"touchend")).pipe((0,ne.h)(J=>{const Ie=(0,w.sA)(J),ut=this._formField?this._formField._elementRef.nativeElement:null,Oe=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&Ie!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!ut||!ut.contains(Ie))&&(!Oe||!Oe.contains(Ie))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(Ie)}))}writeValue(J){Promise.resolve().then(()=>this._setTriggerValue(J))}registerOnChange(J){this._onChange=J}registerOnTouched(J){this._onTouched=J}setDisabledState(J){this._element.nativeElement.disabled=J}_handleKeydown(J){const Ie=J.keyCode,ut=(0,E.Vb)(J);if(Ie===E.hY&&!ut&&J.preventDefault(),this.activeOption&&Ie===E.K5&&this.panelOpen&&!ut)this.activeOption._selectViaInteraction(),this._resetActiveItem(),J.preventDefault();else if(this.autocomplete){const Oe=this.autocomplete._keyManager.activeItem,we=Ie===E.LH||Ie===E.JH;Ie===E.Mf||we&&!ut&&this.panelOpen?this.autocomplete._keyManager.onKeydown(J):we&&this._canOpen()&&this.openPanel(),(we||this.autocomplete._keyManager.activeItem!==Oe)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(J){let Ie=J.target,ut=Ie.value;"number"===Ie.type&&(ut=""==ut?null:parseFloat(ut)),this._previousValue!==ut&&(this._previousValue=ut,this._onChange(ut),this._canOpen()&&this._document.activeElement===J.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(J=!1){this._formField&&"auto"===this._formField.floatLabel&&(J?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){const J=this._zone.onStable.pipe((0,ue.q)(1)),Ie=this.autocomplete.options.changes.pipe((0,ge.b)(()=>this._positionStrategy.reapplyLastPosition()),(0,q.g)(0));return(0,R.T)(J,Ie).pipe((0,ee.w)(()=>(this._zone.run(()=>{const ut=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),ut!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),(0,ue.q)(1)).subscribe(ut=>this._setValueAndClose(ut))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(J){const Ie=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(J):J,ut=null!=Ie?Ie:"";this._formField?this._formField._control.value=ut:this._element.nativeElement.value=ut,this._previousValue=ut}_setValueAndClose(J){const Ie=J&&J.source;Ie&&(this._clearPreviousSelectedOption(Ie),this._setTriggerValue(Ie.value),this._onChange(Ie.value),this.autocomplete._emitSelectEvent(Ie),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(J){this.autocomplete.options.forEach(Ie=>{Ie!==J&&Ie.selected&&Ie.deselect()})}_attachOverlay(){var J;let Ie=this._overlayRef;Ie?(this._positionStrategy.setOrigin(this._getConnectedElement()),Ie.updateSize({width:this._getPanelWidth()})):(this._portal=new B.UE(this.autocomplete.template,this._viewContainerRef,{id:null===(J=this._formField)||void 0===J?void 0:J.getLabelId()}),Ie=this._overlay.create(this._getOverlayConfig()),this._overlayRef=Ie,Ie.keydownEvents().subscribe(Oe=>{(Oe.keyCode===E.hY&&!(0,E.Vb)(Oe)||Oe.keyCode===E.LH&&(0,E.Vb)(Oe,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),Oe.stopPropagation(),Oe.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&Ie&&Ie.updateSize({width:this._getPanelWidth()})})),Ie&&!Ie.hasAttached()&&(Ie.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const ut=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&ut!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var J;return new S.X_({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(J=this._defaults)||void 0===J?void 0:J.overlayPanelClass})}_getOverlayPosition(){const J=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(J),this._positionStrategy=J,J}_setStrategyPositions(J){const Ie=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],ut=this._aboveClass,Oe=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:ut},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:ut}];let we;we="above"===this.position?Oe:"below"===this.position?Ie:[...Ie,...Oe],J.withPositions(we)}_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 J=this.autocomplete;J.autoActiveFirstOption?J._keyManager.setFirstItemActive():J._keyManager.setActiveItem(-1)}_canOpen(){const J=this._element.nativeElement;return!J.readOnly&&!J.disabled&&!this._autocompleteDisabled}_getWindow(){var J;return(null===(J=this._document)||void 0===J?void 0:J.defaultView)||window}_scrollToOption(J){const Ie=this.autocomplete,ut=(0,M.CB)(J,Ie.options,Ie.optionGroups);if(0===J&&1===ut)Ie._setScrollTop(0);else if(Ie.panel){const Oe=Ie.options.toArray()[J];if(Oe){const we=Oe._getHostElement(),ce=(0,M.jH)(we.offsetTop,we.offsetHeight,Ie._getScrollTop(),Ie.panel.nativeElement.offsetHeight);Ie._setScrollTop(ce)}}}}return Ve.\u0275fac=function(J){return new(J||Ve)(f.Y36(f.SBq),f.Y36(S.aV),f.Y36(f.s_b),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(_),f.Y36(_e.Is,8),f.Y36(Y.G_,9),f.Y36(D.K0,8),f.Y36(k.rL),f.Y36(T,8))},Ve.\u0275dir=f.lG2({type:Ve,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[f.TTD]}),Ve})(),be=(()=>{class Ve extends he{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return Ve.\u0275fac=function(){let Me;return function(Ie){return(Me||(Me=f.n5z(Ve)))(Ie||Ve)}}(),Ve.\u0275dir=f.lG2({type:Ve,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(J,Ie){1&J&&f.NdJ("focusin",function(){return Ie._handleFocus()})("blur",function(){return Ie._onTouched()})("input",function(Oe){return Ie._handleInput(Oe)})("keydown",function(Oe){return Ie._handleKeydown(Oe)})("click",function(){return Ie._handleClick()}),2&J&&f.uIk("autocomplete",Ie.autocompleteAttribute)("role",Ie.autocompleteDisabled?null:"combobox")("aria-autocomplete",Ie.autocompleteDisabled?null:"list")("aria-activedescendant",Ie.panelOpen&&Ie.activeOption?Ie.activeOption.id:null)("aria-expanded",Ie.autocompleteDisabled?null:Ie.panelOpen.toString())("aria-owns",Ie.autocompleteDisabled||!Ie.panelOpen||null==Ie.autocomplete?null:Ie.autocomplete.id)("aria-haspopup",Ie.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[f._Bn([H]),f.qOj]}),Ve})(),j=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275mod=f.oAB({type:Ve}),Ve.\u0275inj=f.cJS({providers:[N],imports:[[S.U8,M.Ng,M.BQ,D.ez],k.ZD,M.Ng,M.BQ]}),Ve})()},7544:(Be,K,p)=>{"use strict";p.d(K,{g:()=>L,k:()=>h});var t=p(5e3),e=p(508),f=p(5664),M=p(3191),a=p(6360);let C=0;const d=(0,e.Id)(class{}),R="mat-badge-content";let h=(()=>{class w extends d{constructor(S,k,E,B,Z){super(),this._ngZone=S,this._elementRef=k,this._ariaDescriber=E,this._renderer=B,this._animationMode=Z,this._color="primary",this._overlap=!0,this.position="above after",this.size="medium",this._id=C++,this._isInitialized=!1}get color(){return this._color}set color(S){this._setColor(S),this._color=S}get overlap(){return this._overlap}set overlap(S){this._overlap=(0,M.Ig)(S)}get content(){return this._content}set content(S){this._updateRenderedContent(S)}get description(){return this._description}set description(S){this._updateHostAriaDescription(S)}get hidden(){return this._hidden}set hidden(S){this._hidden=(0,M.Ig)(S)}isAbove(){return-1===this.position.indexOf("below")}isAfter(){return-1===this.position.indexOf("before")}getBadgeElement(){return this._badgeElement}ngOnInit(){this._clearExistingBadges(),this.content&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement(),this._updateRenderedContent(this.content)),this._isInitialized=!0}ngOnDestroy(){this._renderer.destroyNode&&this._renderer.destroyNode(this._badgeElement),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description)}_createBadgeElement(){const S=this._renderer.createElement("span"),k="mat-badge-active";return S.setAttribute("id",`mat-badge-content-${this._id}`),S.setAttribute("aria-hidden","true"),S.classList.add(R),"NoopAnimations"===this._animationMode&&S.classList.add("_mat-animation-noopable"),this._elementRef.nativeElement.appendChild(S),"function"==typeof requestAnimationFrame&&"NoopAnimations"!==this._animationMode?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{S.classList.add(k)})}):S.classList.add(k),S}_updateRenderedContent(S){const k=`${null!=S?S:""}`.trim();this._isInitialized&&k&&!this._badgeElement&&(this._badgeElement=this._createBadgeElement()),this._badgeElement&&(this._badgeElement.textContent=k),this._content=k}_updateHostAriaDescription(S){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.description),S&&this._ariaDescriber.describe(this._elementRef.nativeElement,S),this._description=S}_setColor(S){const k=this._elementRef.nativeElement.classList;k.remove(`mat-badge-${this._color}`),S&&k.add(`mat-badge-${S}`)}_clearExistingBadges(){const S=this._elementRef.nativeElement.querySelectorAll(`:scope > .${R}`);for(const k of Array.from(S))k!==this._badgeElement&&k.remove()}}return w.\u0275fac=function(S){return new(S||w)(t.Y36(t.R0b),t.Y36(t.SBq),t.Y36(f.$s),t.Y36(t.Qsj),t.Y36(a.Qb,8))},w.\u0275dir=t.lG2({type:w,selectors:[["","matBadge",""]],hostAttrs:[1,"mat-badge"],hostVars:20,hostBindings:function(S,k){2&S&&t.ekj("mat-badge-overlap",k.overlap)("mat-badge-above",k.isAbove())("mat-badge-below",!k.isAbove())("mat-badge-before",!k.isAfter())("mat-badge-after",k.isAfter())("mat-badge-small","small"===k.size)("mat-badge-medium","medium"===k.size)("mat-badge-large","large"===k.size)("mat-badge-hidden",k.hidden||!k.content)("mat-badge-disabled",k.disabled)},inputs:{disabled:["matBadgeDisabled","disabled"],color:["matBadgeColor","color"],overlap:["matBadgeOverlap","overlap"],position:["matBadgePosition","position"],content:["matBadge","content"],description:["matBadgeDescription","description"],size:["matBadgeSize","size"],hidden:["matBadgeHidden","hidden"]},features:[t.qOj]}),w})(),L=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[f.rt,e.BQ],e.BQ]}),w})()},7423:(Be,K,p)=>{"use strict";p.d(K,{lW:()=>w,ot:()=>S});var t=p(5e3),e=p(508),f=p(6360),M=p(5664);const a=["mat-button",""],C=["*"],h=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],L=(0,e.pj)((0,e.Id)((0,e.Kr)(class{constructor(k){this._elementRef=k}})));let w=(()=>{class k extends L{constructor(B,Z,Y){super(B),this._focusMonitor=Z,this._animationMode=Y,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const ae of h)this._hasHostAttributes(ae)&&this._getHostElement().classList.add(ae);B.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(B,Z){B?this._focusMonitor.focusVia(this._getHostElement(),B,Z):this._getHostElement().focus(Z)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...B){return B.some(Z=>this._getHostElement().hasAttribute(Z))}}return k.\u0275fac=function(B){return new(B||k)(t.Y36(t.SBq),t.Y36(M.tE),t.Y36(f.Qb,8))},k.\u0275cmp=t.Xpm({type:k,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(B,Z){if(1&B&&t.Gf(e.wG,5),2&B){let Y;t.iGM(Y=t.CRH())&&(Z.ripple=Y.first)}},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(B,Z){2&B&&(t.uIk("disabled",Z.disabled||null),t.ekj("_mat-animation-noopable","NoopAnimations"===Z._animationMode)("mat-button-disabled",Z.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[t.qOj],attrs:a,ngContentSelectors:C,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(B,Z){1&B&&(t.F$t(),t.TgZ(0,"span",0),t.Hsn(1),t.qZA(),t._UZ(2,"span",1)(3,"span",2)),2&B&&(t.xp6(2),t.ekj("mat-button-ripple-round",Z.isRoundButton||Z.isIconButton),t.Q6J("matRippleDisabled",Z._isRippleDisabled())("matRippleCentered",Z.isIconButton)("matRippleTrigger",Z._getHostElement()))},directives:[e.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;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;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;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;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}),k})(),S=(()=>{class k{}return k.\u0275fac=function(B){return new(B||k)},k.\u0275mod=t.oAB({type:k}),k.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),k})()},9224:(Be,K,p)=>{"use strict";p.d(K,{$j:()=>D,QW:()=>ge,a8:()=>ue,dk:()=>ne,dn:()=>L,n5:()=>w});var t=p(5e3),e=p(6360),f=p(508);const M=["*",[["mat-card-footer"]]],a=["*","mat-card-footer"],C=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],d=["[mat-card-avatar], [matCardAvatar]","mat-card-title, mat-card-subtitle,\n [mat-card-title], [mat-card-subtitle],\n [matCardTitle], [matCardSubtitle]","*"];let L=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275dir=t.lG2({type:q,selectors:[["mat-card-content"],["","mat-card-content",""],["","matCardContent",""]],hostAttrs:[1,"mat-card-content"]}),q})(),w=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275dir=t.lG2({type:q,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-card-title"]}),q})(),D=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275dir=t.lG2({type:q,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-card-subtitle"]}),q})(),ue=(()=>{class q{constructor(x){this._animationMode=x}}return q.\u0275fac=function(x){return new(x||q)(t.Y36(e.Qb,8))},q.\u0275cmp=t.Xpm({type:q,selectors:[["mat-card"]],hostAttrs:[1,"mat-card","mat-focus-indicator"],hostVars:2,hostBindings:function(x,i){2&x&&t.ekj("_mat-animation-noopable","NoopAnimations"===i._animationMode)},exportAs:["matCard"],ngContentSelectors:a,decls:2,vars:0,template:function(x,i){1&x&&(t.F$t(M),t.Hsn(0),t.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;display:block;overflow:hidden}.mat-card-image img{width:100%}.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}),q})(),ne=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275cmp=t.Xpm({type:q,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-card-header"],ngContentSelectors:d,decls:4,vars:0,consts:[[1,"mat-card-header-text"]],template:function(x,i){1&x&&(t.F$t(C),t.Hsn(0),t.TgZ(1,"div",0),t.Hsn(2,1),t.qZA(),t.Hsn(3,2))},encapsulation:2,changeDetection:0}),q})(),ge=(()=>{class q{}return q.\u0275fac=function(x){return new(x||q)},q.\u0275mod=t.oAB({type:q}),q.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),q})()},7446:(Be,K,p)=>{"use strict";p.d(K,{oG:()=>Y,p9:()=>ne});var t=p(3191),e=p(5e3),f=p(3075),M=p(508),a=p(6360),C=p(5664),d=p(7144);const R=["input"],h=function(re){return{enterDuration:re}},L=["*"],w=new e.OlP("mat-checkbox-default-options",{providedIn:"root",factory:D});function D(){return{color:"accent",clickAction:"check-indeterminate"}}let S=0;const k=D(),E={provide:f.JU,useExisting:(0,e.Gpc)(()=>Y),multi:!0};class B{}const Z=(0,M.sb)((0,M.pj)((0,M.Kr)((0,M.Id)(class{constructor(re){this._elementRef=re}}))));let Y=(()=>{class re extends Z{constructor(q,_e,x,i,r,u,c){super(q),this._changeDetectorRef=_e,this._focusMonitor=x,this._ngZone=i,this._animationMode=u,this._options=c,this.ariaLabel="",this.ariaLabelledby=null,this._uniqueId="mat-checkbox-"+ ++S,this.id=this._uniqueId,this.labelPosition="after",this.name=null,this.change=new e.vpe,this.indeterminateChange=new e.vpe,this._onTouched=()=>{},this._currentAnimationClass="",this._currentCheckState=0,this._controlValueAccessorChangeFn=()=>{},this._checked=!1,this._disabled=!1,this._indeterminate=!1,this._options=this._options||k,this.color=this.defaultColor=this._options.color||k.color,this.tabIndex=parseInt(r)||0}get inputId(){return`${this.id||this._uniqueId}-input`}get required(){return this._required}set required(q){this._required=(0,t.Ig)(q)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{q||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(q){const _e=(0,t.Ig)(q);_e!=this.checked&&(this._checked=_e,this._changeDetectorRef.markForCheck())}get disabled(){return this._disabled}set disabled(q){const _e=(0,t.Ig)(q);_e!==this.disabled&&(this._disabled=_e,this._changeDetectorRef.markForCheck())}get indeterminate(){return this._indeterminate}set indeterminate(q){const _e=q!=this._indeterminate;this._indeterminate=(0,t.Ig)(q),_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(q){this.checked=!!q}registerOnChange(q){this._controlValueAccessorChangeFn=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q}_getAriaChecked(){return this.checked?"true":this.indeterminate?"mixed":"false"}_transitionCheckState(q){let _e=this._currentCheckState,x=this._elementRef.nativeElement;if(_e!==q&&(this._currentAnimationClass.length>0&&x.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(_e,q),this._currentCheckState=q,this._currentAnimationClass.length>0)){x.classList.add(this._currentAnimationClass);const i=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{x.classList.remove(i)},1e3)})}}_emitChangeEvent(){const q=new B;q.source=this,q.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(q),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_onInputClick(q){var _e;const x=null===(_e=this._options)||void 0===_e?void 0:_e.clickAction;q.stopPropagation(),this.disabled||"noop"===x?!this.disabled&&"noop"===x&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==x&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?1:2),this._emitChangeEvent())}focus(q,_e){q?this._focusMonitor.focusVia(this._inputElement,q,_e):this._inputElement.nativeElement.focus(_e)}_onInteractionEvent(q){q.stopPropagation()}_getAnimationClassForCheckStateTransition(q,_e){if("NoopAnimations"===this._animationMode)return"";let x="";switch(q){case 0:if(1===_e)x="unchecked-checked";else{if(3!=_e)return"";x="unchecked-indeterminate"}break;case 2:x=1===_e?"unchecked-checked":"unchecked-indeterminate";break;case 1:x=2===_e?"checked-unchecked":"checked-indeterminate";break;case 3:x=1===_e?"indeterminate-checked":"indeterminate-unchecked"}return`mat-checkbox-anim-${x}`}_syncIndeterminate(q){const _e=this._inputElement;_e&&(_e.nativeElement.indeterminate=q)}}return re.\u0275fac=function(q){return new(q||re)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(C.tE),e.Y36(e.R0b),e.$8M("tabindex"),e.Y36(a.Qb,8),e.Y36(w,8))},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-checkbox"]],viewQuery:function(q,_e){if(1&q&&(e.Gf(R,5),e.Gf(M.wG,5)),2&q){let x;e.iGM(x=e.CRH())&&(_e._inputElement=x.first),e.iGM(x=e.CRH())&&(_e.ripple=x.first)}},hostAttrs:[1,"mat-checkbox"],hostVars:14,hostBindings:function(q,_e){2&q&&(e.Ikx("id",_e.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null),e.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"],ariaDescribedby:["aria-describedby","ariaDescribedby"],id:"id",required:"required",labelPosition:"labelPosition",name:"name",value:"value",checked:"checked",disabled:"disabled",indeterminate:"indeterminate"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[e._Bn([E]),e.qOj],ngContentSelectors:L,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","aria-hidden","true",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(q,_e){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2)(3,"input",3,4),e.NdJ("change",function(i){return _e._onInteractionEvent(i)})("click",function(i){return _e._onInputClick(i)}),e.qZA(),e.TgZ(5,"span",5),e._UZ(6,"span",6),e.qZA(),e._UZ(7,"span",7),e.TgZ(8,"span",8),e.O4$(),e.TgZ(9,"svg",9),e._UZ(10,"path",10),e.qZA(),e.kcU(),e._UZ(11,"span",11),e.qZA()(),e.TgZ(12,"span",12,13),e.NdJ("cdkObserveContent",function(){return _e._onLabelTextChange()}),e.TgZ(14,"span",14),e._uU(15,"\xa0"),e.qZA(),e.Hsn(16),e.qZA()()),2&q){const x=e.MAs(1),i=e.MAs(13);e.uIk("for",_e.inputId),e.xp6(2),e.ekj("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(1),e.Q6J("id",_e.inputId)("required",_e.required)("checked",_e.checked)("disabled",_e.disabled)("tabIndex",_e.tabIndex),e.uIk("value",_e.value)("name",_e.name)("aria-label",_e.ariaLabel||null)("aria-labelledby",_e.ariaLabelledby)("aria-checked",_e._getAriaChecked())("aria-describedby",_e.ariaDescribedby),e.xp6(2),e.Q6J("matRippleTrigger",x)("matRippleDisabled",_e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",e.VKq(19,h,"NoopAnimations"===_e._animationMode?0:150))}},directives:[M.wG,d.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;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-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}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})(),ne=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[M.si,M.BQ,d.Q8,ue],M.BQ,ue]}),re})()},6688:(Be,K,p)=>{"use strict";p.d(K,{HS:()=>x,Hi:()=>_,qn:()=>y});var t=p(1159),e=p(5e3),f=p(508),M=p(3191),a=p(9808),C=p(6360),d=p(7579),R=p(6451),h=p(5698),L=p(2722),w=p(8675),D=p(925),S=p(5664),k=p(449),E=p(3075),B=p(7322),Z=p(226);const Y=["*"],ee=new e.OlP("MatChipRemove"),ue=new e.OlP("MatChipAvatar"),ne=new e.OlP("MatChipTrailingIcon");class re{constructor(N){this._elementRef=N}}const ge=(0,f.sb)((0,f.pj)((0,f.Kr)(re),"primary"),-1);let x=(()=>{class V extends ge{constructor(H,X,he,be,Pe,Ee,j,Ve){super(H),this._ngZone=X,this._changeDetectorRef=Pe,this._hasFocus=!1,this.chipListSelectable=!0,this._chipListMultiple=!1,this._chipListDisabled=!1,this._selected=!1,this._selectable=!0,this._disabled=!1,this._removable=!0,this._onFocus=new d.x,this._onBlur=new d.x,this.selectionChange=new e.vpe,this.destroyed=new e.vpe,this.removed=new e.vpe,this._addHostClassName(),this._chipRippleTarget=Ee.createElement("div"),this._chipRippleTarget.classList.add("mat-chip-ripple"),this._elementRef.nativeElement.appendChild(this._chipRippleTarget),this._chipRipple=new f.IR(this,X,this._chipRippleTarget,he),this._chipRipple.setupTriggerEvents(H),this.rippleConfig=be||{},this._animationsDisabled="NoopAnimations"===j,this.tabIndex=null!=Ve&&parseInt(Ve)||-1}get rippleDisabled(){return this.disabled||this.disableRipple||this._animationsDisabled||!!this.rippleConfig.disabled}get selected(){return this._selected}set selected(H){const X=(0,M.Ig)(H);X!==this._selected&&(this._selected=X,this._dispatchSelectionChange())}get value(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent}set value(H){this._value=H}get selectable(){return this._selectable&&this.chipListSelectable}set selectable(H){this._selectable=(0,M.Ig)(H)}get disabled(){return this._chipListDisabled||this._disabled}set disabled(H){this._disabled=(0,M.Ig)(H)}get removable(){return this._removable}set removable(H){this._removable=(0,M.Ig)(H)}get ariaSelected(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null}_addHostClassName(){const H="mat-basic-chip",X=this._elementRef.nativeElement;X.hasAttribute(H)||X.tagName.toLowerCase()===H?X.classList.add(H):X.classList.add("mat-standard-chip")}ngOnDestroy(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()}select(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}deselect(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._changeDetectorRef.markForCheck())}selectViaInteraction(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._changeDetectorRef.markForCheck())}toggleSelected(H=!1){return this._selected=!this.selected,this._dispatchSelectionChange(H),this._changeDetectorRef.markForCheck(),this.selected}focus(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0}remove(){this.removable&&this.removed.emit({chip:this})}_handleClick(H){this.disabled&&H.preventDefault()}_handleKeydown(H){if(!this.disabled)switch(H.keyCode){case t.yY:case t.ZH:this.remove(),H.preventDefault();break;case t.L_:this.selectable&&this.toggleSelected(!0),H.preventDefault()}}_blur(){this._ngZone.onStable.pipe((0,h.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._hasFocus=!1,this._onBlur.next({chip:this})})})}_dispatchSelectionChange(H=!1){this.selectionChange.emit({source:this,isUserInput:H,selected:this._selected})}}return V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq),e.Y36(e.R0b),e.Y36(D.t4),e.Y36(f.Y2,8),e.Y36(e.sBO),e.Y36(a.K0),e.Y36(C.Qb,8),e.$8M("tabindex"))},V.\u0275dir=e.lG2({type:V,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(H,X,he){if(1&H&&(e.Suo(he,ue,5),e.Suo(he,ne,5),e.Suo(he,ee,5)),2&H){let be;e.iGM(be=e.CRH())&&(X.avatar=be.first),e.iGM(be=e.CRH())&&(X.trailingIcon=be.first),e.iGM(be=e.CRH())&&(X.removeIcon=be.first)}},hostAttrs:["role","option",1,"mat-chip","mat-focus-indicator"],hostVars:14,hostBindings:function(H,X){1&H&&e.NdJ("click",function(be){return X._handleClick(be)})("keydown",function(be){return X._handleKeydown(be)})("focus",function(){return X.focus()})("blur",function(){return X._blur()}),2&H&&(e.uIk("tabindex",X.disabled?null:X.tabIndex)("disabled",X.disabled||null)("aria-disabled",X.disabled.toString())("aria-selected",X.ariaSelected),e.ekj("mat-chip-selected",X.selected)("mat-chip-with-avatar",X.avatar)("mat-chip-with-trailing-icon",X.trailingIcon||X.removeIcon)("mat-chip-disabled",X.disabled)("_mat-animation-noopable",X._animationsDisabled))},inputs:{color:"color",disableRipple:"disableRipple",tabIndex:"tabIndex",selected:"selected",value:"value",selectable:"selectable",disabled:"disabled",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[e.qOj]}),V})();const r=new e.OlP("mat-chips-default-options"),v=(0,f.FD)(class{constructor(V,N,H,X){this._defaultErrorStateMatcher=V,this._parentForm=N,this._parentFormGroup=H,this.ngControl=X}});let T=0;class I{constructor(N,H){this.source=N,this.value=H}}let y=(()=>{class V extends v{constructor(H,X,he,be,Pe,Ee,j){super(Ee,be,Pe,j),this._elementRef=H,this._changeDetectorRef=X,this._dir=he,this.controlType="mat-chip-list",this._lastDestroyedChipIndex=null,this._destroyed=new d.x,this._uid="mat-chip-list-"+T++,this._tabIndex=0,this._userTabIndex=null,this._onTouched=()=>{},this._onChange=()=>{},this._multiple=!1,this._compareWith=(Ve,Me)=>Ve===Me,this._disabled=!1,this.ariaOrientation="horizontal",this._selectable=!0,this.change=new e.vpe,this.valueChange=new e.vpe,this.ngControl&&(this.ngControl.valueAccessor=this)}get selected(){var H,X;return this.multiple?(null===(H=this._selectionModel)||void 0===H?void 0:H.selected)||[]:null===(X=this._selectionModel)||void 0===X?void 0:X.selected[0]}get role(){return this.empty?null:"listbox"}get multiple(){return this._multiple}set multiple(H){this._multiple=(0,M.Ig)(H),this._syncChipsState()}get compareWith(){return this._compareWith}set compareWith(H){this._compareWith=H,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(H){this.writeValue(H),this._value=H}get id(){return this._chipInput?this._chipInput.id:this._uid}get required(){var H,X,he,be;return null!==(be=null!==(H=this._required)&&void 0!==H?H:null===(he=null===(X=this.ngControl)||void 0===X?void 0:X.control)||void 0===he?void 0:he.hasValidator(E.kI.required))&&void 0!==be&&be}set required(H){this._required=(0,M.Ig)(H),this.stateChanges.next()}get placeholder(){return this._chipInput?this._chipInput.placeholder:this._placeholder}set placeholder(H){this._placeholder=H,this.stateChanges.next()}get focused(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()}get empty(){return(!this._chipInput||this._chipInput.empty)&&(!this.chips||0===this.chips.length)}get shouldLabelFloat(){return!this.empty||this.focused}get disabled(){return this.ngControl?!!this.ngControl.disabled:this._disabled}set disabled(H){this._disabled=(0,M.Ig)(H),this._syncChipsState()}get selectable(){return this._selectable}set selectable(H){this._selectable=(0,M.Ig)(H),this.chips&&this.chips.forEach(X=>X.chipListSelectable=this._selectable)}set tabIndex(H){this._userTabIndex=H,this._tabIndex=H}get chipSelectionChanges(){return(0,R.T)(...this.chips.map(H=>H.selectionChange))}get chipFocusChanges(){return(0,R.T)(...this.chips.map(H=>H._onFocus))}get chipBlurChanges(){return(0,R.T)(...this.chips.map(H=>H._onBlur))}get chipRemoveChanges(){return(0,R.T)(...this.chips.map(H=>H.destroyed))}ngAfterContentInit(){this._keyManager=new S.Em(this.chips).withWrap().withVerticalOrientation().withHomeAndEnd().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe((0,L.R)(this._destroyed)).subscribe(H=>this._keyManager.withHorizontalOrientation(H)),this._keyManager.tabOut.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._allowFocusEscape()}),this.chips.changes.pipe((0,w.O)(null),(0,L.R)(this._destroyed)).subscribe(()=>{this.disabled&&Promise.resolve().then(()=>{this._syncChipsState()}),this._resetChips(),this._initializeSelection(),this._updateTabIndex(),this._updateFocusForDestroyedChips(),this.stateChanges.next()})}ngOnInit(){this._selectionModel=new k.Ov(this.multiple,void 0,!1),this.stateChanges.next()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==this._disabled&&(this.disabled=!!this.ngControl.disabled))}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()}registerInput(H){this._chipInput=H,this._elementRef.nativeElement.setAttribute("data-mat-chip-input",H.id)}setDescribedByIds(H){this._ariaDescribedby=H.join(" ")}writeValue(H){this.chips&&this._setSelectionByValue(H,!1)}registerOnChange(H){this._onChange=H}registerOnTouched(H){this._onTouched=H}setDisabledState(H){this.disabled=H,this.stateChanges.next()}onContainerClick(H){this._originatesFromChip(H)||this.focus()}focus(H){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(H),this.stateChanges.next()))}_focusInput(H){this._chipInput&&this._chipInput.focus(H)}_keydown(H){const X=H.target;X&&X.classList.contains("mat-chip")&&(this._keyManager.onKeydown(H),this.stateChanges.next())}_updateTabIndex(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)}_updateFocusForDestroyedChips(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){const H=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(H)}else this.focus();this._lastDestroyedChipIndex=null}_isValidIndex(H){return H>=0&&Hhe.deselect()),Array.isArray(H))H.forEach(he=>this._selectValue(he,X)),this._sortValues();else{const he=this._selectValue(H,X);he&&X&&this._keyManager.setActiveItem(he)}}_selectValue(H,X=!0){const he=this.chips.find(be=>null!=be.value&&this._compareWith(be.value,H));return he&&(X?he.selectViaInteraction():he.select(),this._selectionModel.select(he)),he}_initializeSelection(){Promise.resolve().then(()=>{(this.ngControl||this._value)&&(this._setSelectionByValue(this.ngControl?this.ngControl.value:this._value,!1),this.stateChanges.next())})}_clearSelection(H){this._selectionModel.clear(),this.chips.forEach(X=>{X!==H&&X.deselect()}),this.stateChanges.next()}_sortValues(){this._multiple&&(this._selectionModel.clear(),this.chips.forEach(H=>{H.selected&&this._selectionModel.select(H)}),this.stateChanges.next())}_propagateChanges(H){let X=null;X=Array.isArray(this.selected)?this.selected.map(he=>he.value):this.selected?this.selected.value:H,this._value=X,this.change.emit(new I(this,X)),this.valueChange.emit(X),this._onChange(X),this._changeDetectorRef.markForCheck()}_blur(){this._hasFocusedChip()||this._keyManager.setActiveItem(-1),this.disabled||(this._chipInput?setTimeout(()=>{this.focused||this._markAsTouched()}):this._markAsTouched())}_markAsTouched(){this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next()}_allowFocusEscape(){-1!==this._tabIndex&&(this._tabIndex=-1,setTimeout(()=>{this._tabIndex=this._userTabIndex||0,this._changeDetectorRef.markForCheck()}))}_resetChips(){this._dropSubscriptions(),this._listenToChipsFocus(),this._listenToChipsSelection(),this._listenToChipsRemoved()}_dropSubscriptions(){this._chipFocusSubscription&&(this._chipFocusSubscription.unsubscribe(),this._chipFocusSubscription=null),this._chipBlurSubscription&&(this._chipBlurSubscription.unsubscribe(),this._chipBlurSubscription=null),this._chipSelectionSubscription&&(this._chipSelectionSubscription.unsubscribe(),this._chipSelectionSubscription=null),this._chipRemoveSubscription&&(this._chipRemoveSubscription.unsubscribe(),this._chipRemoveSubscription=null)}_listenToChipsSelection(){this._chipSelectionSubscription=this.chipSelectionChanges.subscribe(H=>{H.source.selected?this._selectionModel.select(H.source):this._selectionModel.deselect(H.source),this.multiple||this.chips.forEach(X=>{!this._selectionModel.isSelected(X)&&X.selected&&X.deselect()}),H.isUserInput&&this._propagateChanges()})}_listenToChipsFocus(){this._chipFocusSubscription=this.chipFocusChanges.subscribe(H=>{let X=this.chips.toArray().indexOf(H.chip);this._isValidIndex(X)&&this._keyManager.updateActiveItem(X),this.stateChanges.next()}),this._chipBlurSubscription=this.chipBlurChanges.subscribe(()=>{this._blur(),this.stateChanges.next()})}_listenToChipsRemoved(){this._chipRemoveSubscription=this.chipRemoveChanges.subscribe(H=>{const X=H.chip,he=this.chips.toArray().indexOf(H.chip);this._isValidIndex(he)&&X._hasFocus&&(this._lastDestroyedChipIndex=he)})}_originatesFromChip(H){let X=H.target;for(;X&&X!==this._elementRef.nativeElement;){if(X.classList.contains("mat-chip"))return!0;X=X.parentElement}return!1}_hasFocusedChip(){return this.chips&&this.chips.some(H=>H._hasFocus)}_syncChipsState(){this.chips&&this.chips.forEach(H=>{H._chipListDisabled=this._disabled,H._chipListMultiple=this.multiple})}}return V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(Z.Is,8),e.Y36(E.F,8),e.Y36(E.sg,8),e.Y36(f.rD),e.Y36(E.a5,10))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-chip-list"]],contentQueries:function(H,X,he){if(1&H&&e.Suo(he,x,5),2&H){let be;e.iGM(be=e.CRH())&&(X.chips=be)}},hostAttrs:[1,"mat-chip-list"],hostVars:15,hostBindings:function(H,X){1&H&&e.NdJ("focus",function(){return X.focus()})("blur",function(){return X._blur()})("keydown",function(be){return X._keydown(be)}),2&H&&(e.Ikx("id",X._uid),e.uIk("tabindex",X.disabled?null:X._tabIndex)("aria-describedby",X._ariaDescribedby||null)("aria-required",X.role?X.required:null)("aria-disabled",X.disabled.toString())("aria-invalid",X.errorState)("aria-multiselectable",X.multiple)("role",X.role)("aria-orientation",X.ariaOrientation),e.ekj("mat-chip-list-disabled",X.disabled)("mat-chip-list-invalid",X.errorState)("mat-chip-list-required",X.required))},inputs:{errorStateMatcher:"errorStateMatcher",multiple:"multiple",compareWith:"compareWith",value:"value",required:"required",placeholder:"placeholder",disabled:"disabled",ariaOrientation:["aria-orientation","ariaOrientation"],selectable:"selectable",tabIndex:"tabIndex"},outputs:{change:"change",valueChange:"valueChange"},exportAs:["matChipList"],features:[e._Bn([{provide:B.Eo,useExisting:V}]),e.qOj],ngContentSelectors:Y,decls:2,vars:0,consts:[[1,"mat-chip-list-wrapper"]],template:function(H,X){1&H&&(e.F$t(),e.TgZ(0,"div",0),e.Hsn(1),e.qZA())},styles:['.mat-chip{position:relative;box-sizing:border-box;-webkit-tap-highlight-color:transparent;border:none;-webkit-appearance:none;-moz-appearance:none}.mat-standard-chip{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);display:inline-flex;padding:7px 12px;border-radius:16px;align-items:center;cursor:default;min-height:32px;height:1px}._mat-animation-noopable.mat-standard-chip{transition:none;animation:none}.mat-standard-chip .mat-chip-remove{border:none;-webkit-appearance:none;-moz-appearance:none;padding:0;background:none}.mat-standard-chip .mat-chip-remove.mat-icon,.mat-standard-chip .mat-chip-remove .mat-icon{width:18px;height:18px;font-size:18px}.mat-standard-chip::after{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit;opacity:0;content:"";pointer-events:none;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1)}.mat-standard-chip:hover::after{opacity:.12}.mat-standard-chip:focus{outline:none}.mat-standard-chip:focus::after{opacity:.16}.cdk-high-contrast-active .mat-standard-chip{outline:solid 1px}.cdk-high-contrast-active .mat-standard-chip:focus{outline:dotted 2px}.cdk-high-contrast-active .mat-standard-chip.mat-chip-selected{outline-width:3px}.mat-standard-chip.mat-chip-disabled::after{opacity:0}.mat-standard-chip.mat-chip-disabled .mat-chip-remove,.mat-standard-chip.mat-chip-disabled .mat-chip-trailing-icon{cursor:default}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar,.mat-standard-chip.mat-chip-with-avatar{padding-top:0;padding-bottom:0}.mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-right:8px;padding-left:0}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon.mat-chip-with-avatar{padding-left:8px;padding-right:0}.mat-standard-chip.mat-chip-with-trailing-icon{padding-top:7px;padding-bottom:7px;padding-right:8px;padding-left:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-trailing-icon{padding-left:8px;padding-right:12px}.mat-standard-chip.mat-chip-with-avatar{padding-left:0;padding-right:12px}[dir=rtl] .mat-standard-chip.mat-chip-with-avatar{padding-right:0;padding-left:12px}.mat-standard-chip .mat-chip-avatar{width:24px;height:24px;margin-right:8px;margin-left:4px}[dir=rtl] .mat-standard-chip .mat-chip-avatar{margin-left:8px;margin-right:4px}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{width:18px;height:18px;cursor:pointer}.mat-standard-chip .mat-chip-remove,.mat-standard-chip .mat-chip-trailing-icon{margin-left:8px;margin-right:0}[dir=rtl] .mat-standard-chip .mat-chip-remove,[dir=rtl] .mat-standard-chip .mat-chip-trailing-icon{margin-right:8px;margin-left:0}.mat-chip-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit;overflow:hidden;transform:translateZ(0)}.mat-chip-list-wrapper{display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;margin:-4px}.mat-chip-list-wrapper input.mat-input-element,.mat-chip-list-wrapper .mat-standard-chip{margin:4px}.mat-chip-list-stacked .mat-chip-list-wrapper{flex-direction:column;align-items:flex-start}.mat-chip-list-stacked .mat-chip-list-wrapper .mat-standard-chip{width:100%}.mat-chip-avatar{border-radius:50%;justify-content:center;align-items:center;display:flex;overflow:hidden;object-fit:cover}input.mat-chip-input{width:150px;margin:4px;flex:1 0 150px}\n'],encapsulation:2,changeDetection:0}),V})(),_=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({providers:[f.rD,{provide:r,useValue:{separatorKeyCodes:[t.K5]}}],imports:[[f.BQ]]}),V})()},508:(Be,K,p)=>{"use strict";p.d(K,{yN:()=>ae,mZ:()=>ee,_A:()=>y,rD:()=>Pe,sG:()=>n,K7:()=>Zt,HF:()=>tt,Y2:()=>te,BQ:()=>re,X2:()=>Ee,uc:()=>Me,XK:()=>he,ey:()=>it,Ng:()=>Qt,rN:()=>Nt,nP:()=>Q,us:()=>pt,wG:()=>Ce,si:()=>fe,LF:()=>N,IR:()=>Te,CB:()=>bt,jH:()=>ti,pj:()=>i,Kr:()=>r,Id:()=>x,FD:()=>c,dB:()=>v,sb:()=>u,E0:()=>j});var t=p(5e3),e=p(226),M=p(9808),a=p(925),C=p(5664),d=p(3191),R=p(7579),h=p(8306),L=p(8675),w=p(6360),D=p(1159);function E(Re,ke){if(1&Re&&t._UZ(0,"mat-pseudo-checkbox",4),2&Re){const de=t.oxw();t.Q6J("state",de.selected?"checked":"unchecked")("disabled",de.disabled)}}function B(Re,ke){if(1&Re&&(t.TgZ(0,"span",5),t._uU(1),t.qZA()),2&Re){const de=t.oxw();t.xp6(1),t.hij("(",de.group.label,")")}}const Z=["*"];let ae=(()=>{class Re{}return Re.STANDARD_CURVE="cubic-bezier(0.4,0.0,0.2,1)",Re.DECELERATION_CURVE="cubic-bezier(0.0,0.0,0.2,1)",Re.ACCELERATION_CURVE="cubic-bezier(0.4,0.0,1,1)",Re.SHARP_CURVE="cubic-bezier(0.4,0.0,0.6,1)",Re})(),ee=(()=>{class Re{}return Re.COMPLEX="375ms",Re.ENTERING="225ms",Re.EXITING="195ms",Re})();const ne=new t.OlP("mat-sanity-checks",{providedIn:"root",factory:function ue(){return!0}});let re=(()=>{class Re{constructor(de,ye,ht){this._sanityChecks=ye,this._document=ht,this._hasDoneGlobalChecks=!1,de._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(de){return!(0,a.Oy)()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[de])}}return Re.\u0275fac=function(de){return new(de||Re)(t.LFG(C.qm),t.LFG(ne,8),t.LFG(M.K0))},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[e.vT],e.vT]}),Re})();function x(Re){return class extends Re{constructor(...ke){super(...ke),this._disabled=!1}get disabled(){return this._disabled}set disabled(ke){this._disabled=(0,d.Ig)(ke)}}}function i(Re,ke){return class extends Re{constructor(...de){super(...de),this.defaultColor=ke,this.color=ke}get color(){return this._color}set color(de){const ye=de||this.defaultColor;ye!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),ye&&this._elementRef.nativeElement.classList.add(`mat-${ye}`),this._color=ye)}}}function r(Re){return class extends Re{constructor(...ke){super(...ke),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(ke){this._disableRipple=(0,d.Ig)(ke)}}}function u(Re,ke=0){return class extends Re{constructor(...de){super(...de),this._tabIndex=ke,this.defaultTabIndex=ke}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(de){this._tabIndex=null!=de?(0,d.su)(de):this.defaultTabIndex}}}function c(Re){return class extends Re{constructor(...ke){super(...ke),this.stateChanges=new R.x,this.errorState=!1}updateErrorState(){const ke=this.errorState,mt=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);mt!==ke&&(this.errorState=mt,this.stateChanges.next())}}}function v(Re){return class extends Re{constructor(...ke){super(...ke),this._isInitialized=!1,this._pendingSubscribers=[],this.initialized=new h.y(de=>{this._isInitialized?this._notifySubscriber(de):this._pendingSubscribers.push(de)})}_markInitialized(){this._isInitialized=!0,this._pendingSubscribers.forEach(this._notifySubscriber),this._pendingSubscribers=null}_notifySubscriber(ke){ke.next(),ke.complete()}}}const T=new t.OlP("MAT_DATE_LOCALE",{providedIn:"root",factory:function I(){return(0,t.f3M)(t.soG)}});class y{constructor(){this._localeChanges=new R.x,this.localeChanges=this._localeChanges}getValidDateOrNull(ke){return this.isDateInstance(ke)&&this.isValid(ke)?ke:null}deserialize(ke){return null==ke||this.isDateInstance(ke)&&this.isValid(ke)?ke:this.invalid()}setLocale(ke){this.locale=ke,this._localeChanges.next()}compareDate(ke,de){return this.getYear(ke)-this.getYear(de)||this.getMonth(ke)-this.getMonth(de)||this.getDate(ke)-this.getDate(de)}sameDate(ke,de){if(ke&&de){let ye=this.isValid(ke),ht=this.isValid(de);return ye&&ht?!this.compareDate(ke,de):ye==ht}return ke==de}clampDate(ke,de,ye){return de&&this.compareDate(ke,de)<0?de:ye&&this.compareDate(ke,ye)>0?ye:ke}}const n=new t.OlP("mat-date-formats"),_=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function V(Re,ke){const de=Array(Re);for(let ye=0;ye{class Re extends y{constructor(de,ye){super(),this.useUtcForDisplay=!1,super.setLocale(de)}getYear(de){return de.getFullYear()}getMonth(de){return de.getMonth()}getDate(de){return de.getDate()}getDayOfWeek(de){return de.getDay()}getMonthNames(de){const ye=new Intl.DateTimeFormat(this.locale,{month:de,timeZone:"utc"});return V(12,ht=>this._format(ye,new Date(2017,ht,1)))}getDateNames(){const de=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return V(31,ye=>this._format(de,new Date(2017,0,ye+1)))}getDayOfWeekNames(de){const ye=new Intl.DateTimeFormat(this.locale,{weekday:de,timeZone:"utc"});return V(7,ht=>this._format(ye,new Date(2017,0,ht+1)))}getYearName(de){const ye=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(ye,de)}getFirstDayOfWeek(){return 0}getNumDaysInMonth(de){return this.getDate(this._createDateWithOverflow(this.getYear(de),this.getMonth(de)+1,0))}clone(de){return new Date(de.getTime())}createDate(de,ye,ht){let mt=this._createDateWithOverflow(de,ye,ht);return mt.getMonth(),mt}today(){return new Date}parse(de){return"number"==typeof de?new Date(de):de?new Date(Date.parse(de)):null}format(de,ye){if(!this.isValid(de))throw Error("NativeDateAdapter: Cannot format invalid date.");const ht=new Intl.DateTimeFormat(this.locale,Object.assign(Object.assign({},ye),{timeZone:"utc"}));return this._format(ht,de)}addCalendarYears(de,ye){return this.addCalendarMonths(de,12*ye)}addCalendarMonths(de,ye){let ht=this._createDateWithOverflow(this.getYear(de),this.getMonth(de)+ye,this.getDate(de));return this.getMonth(ht)!=((this.getMonth(de)+ye)%12+12)%12&&(ht=this._createDateWithOverflow(this.getYear(ht),this.getMonth(ht),0)),ht}addCalendarDays(de,ye){return this._createDateWithOverflow(this.getYear(de),this.getMonth(de),this.getDate(de)+ye)}toIso8601(de){return[de.getUTCFullYear(),this._2digit(de.getUTCMonth()+1),this._2digit(de.getUTCDate())].join("-")}deserialize(de){if("string"==typeof de){if(!de)return null;if(_.test(de)){let ye=new Date(de);if(this.isValid(ye))return ye}}return super.deserialize(de)}isDateInstance(de){return de instanceof Date}isValid(de){return!isNaN(de.getTime())}invalid(){return new Date(NaN)}_createDateWithOverflow(de,ye,ht){const mt=new Date;return mt.setFullYear(de,ye,ht),mt.setHours(0,0,0,0),mt}_2digit(de){return("00"+de).slice(-2)}_format(de,ye){const ht=new Date;return ht.setUTCFullYear(ye.getFullYear(),ye.getMonth(),ye.getDate()),ht.setUTCHours(ye.getHours(),ye.getMinutes(),ye.getSeconds(),ye.getMilliseconds()),de.format(ht)}}return Re.\u0275fac=function(de){return new(de||Re)(t.LFG(T,8),t.LFG(a.t4))},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const H={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 X=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:y,useClass:N}]}),Re})(),he=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({providers:[{provide:n,useValue:H}],imports:[[X]]}),Re})(),Pe=(()=>{class Re{isErrorState(de,ye){return!!(de&&de.invalid&&(de.touched||ye&&ye.submitted))}}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275prov=t.Yz7({token:Re,factory:Re.\u0275fac,providedIn:"root"}),Re})(),Ee=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275dir=t.lG2({type:Re,selectors:[["","mat-line",""],["","matLine",""]],hostAttrs:[1,"mat-line"]}),Re})();function j(Re,ke,de="mat"){Re.changes.pipe((0,L.O)(Re)).subscribe(({length:ye})=>{Ve(ke,`${de}-2-line`,!1),Ve(ke,`${de}-3-line`,!1),Ve(ke,`${de}-multi-line`,!1),2===ye||3===ye?Ve(ke,`${de}-${ye}-line`,!0):ye>3&&Ve(ke,`${de}-multi-line`,!0)})}function Ve(Re,ke,de){Re.nativeElement.classList.toggle(ke,de)}let Me=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[re],re]}),Re})();class J{constructor(ke,de,ye){this._renderer=ke,this.element=de,this.config=ye,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const Ie={enterDuration:225,exitDuration:150},Oe=(0,a.i$)({passive:!0}),we=["mousedown","touchstart"],ce=["mouseup","mouseleave","touchend","touchcancel"];class Te{constructor(ke,de,ye,ht){this._target=ke,this._ngZone=de,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,ht.isBrowser&&(this._containerElement=(0,d.fI)(ye))}fadeInRipple(ke,de,ye={}){const ht=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),mt=Object.assign(Object.assign({},Ie),ye.animation);ye.centered&&(ke=ht.left+ht.width/2,de=ht.top+ht.height/2);const Ft=ye.radius||function W(Re,ke,de){const ye=Math.max(Math.abs(Re-de.left),Math.abs(Re-de.right)),ht=Math.max(Math.abs(ke-de.top),Math.abs(ke-de.bottom));return Math.sqrt(ye*ye+ht*ht)}(ke,de,ht),nt=ke-ht.left,He=de-ht.top,rt=mt.enterDuration,et=document.createElement("div");et.classList.add("mat-ripple-element"),et.style.left=nt-Ft+"px",et.style.top=He-Ft+"px",et.style.height=2*Ft+"px",et.style.width=2*Ft+"px",null!=ye.color&&(et.style.backgroundColor=ye.color),et.style.transitionDuration=`${rt}ms`,this._containerElement.appendChild(et),function xe(Re){window.getComputedStyle(Re).getPropertyValue("opacity")}(et),et.style.transform="scale(1)";const Ae=new J(this,et,ye);return Ae.state=0,this._activeRipples.add(Ae),ye.persistent||(this._mostRecentTransientRipple=Ae),this._runTimeoutOutsideZone(()=>{const Ge=Ae===this._mostRecentTransientRipple;Ae.state=1,!ye.persistent&&(!Ge||!this._isPointerDown)&&Ae.fadeOut()},rt),Ae}fadeOutRipple(ke){const de=this._activeRipples.delete(ke);if(ke===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!de)return;const ye=ke.element,ht=Object.assign(Object.assign({},Ie),ke.config.animation);ye.style.transitionDuration=`${ht.exitDuration}ms`,ye.style.opacity="0",ke.state=2,this._runTimeoutOutsideZone(()=>{ke.state=3,ye.remove()},ht.exitDuration)}fadeOutAll(){this._activeRipples.forEach(ke=>ke.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(ke=>{ke.config.persistent||ke.fadeOut()})}setupTriggerEvents(ke){const de=(0,d.fI)(ke);!de||de===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=de,this._registerEvents(we))}handleEvent(ke){"mousedown"===ke.type?this._onMousedown(ke):"touchstart"===ke.type?this._onTouchStart(ke):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(ce),this._pointerUpEventsRegistered=!0)}_onMousedown(ke){const de=(0,C.X6)(ke),ye=this._lastTouchStartEvent&&Date.now(){!ke.config.persistent&&(1===ke.state||ke.config.terminateOnPointerUp&&0===ke.state)&&ke.fadeOut()}))}_runTimeoutOutsideZone(ke,de=0){this._ngZone.runOutsideAngular(()=>setTimeout(ke,de))}_registerEvents(ke){this._ngZone.runOutsideAngular(()=>{ke.forEach(de=>{this._triggerElement.addEventListener(de,this,Oe)})})}_removeTriggerEvents(){this._triggerElement&&(we.forEach(ke=>{this._triggerElement.removeEventListener(ke,this,Oe)}),this._pointerUpEventsRegistered&&ce.forEach(ke=>{this._triggerElement.removeEventListener(ke,this,Oe)}))}}const te=new t.OlP("mat-ripple-global-options");let Ce=(()=>{class Re{constructor(de,ye,ht,mt,Ft){this._elementRef=de,this._animationMode=Ft,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=mt||{},this._rippleRenderer=new Te(this,ye,de,ht)}get disabled(){return this._disabled}set disabled(de){de&&this.fadeOutAllNonPersistent(),this._disabled=de,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(de){this._trigger=de,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(de,ye=0,ht){return"number"==typeof de?this._rippleRenderer.fadeInRipple(de,ye,Object.assign(Object.assign({},this.rippleConfig),ht)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),de))}}return Re.\u0275fac=function(de){return new(de||Re)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.t4),t.Y36(te,8),t.Y36(w.Qb,8))},Re.\u0275dir=t.lG2({type:Re,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(de,ye){2&de&&t.ekj("mat-ripple-unbounded",ye.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),Re})(),fe=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[re],re]}),Re})(),Q=(()=>{class Re{constructor(de){this._animationMode=de,this.state="unchecked",this.disabled=!1}}return Re.\u0275fac=function(de){return new(de||Re)(t.Y36(w.Qb,8))},Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(de,ye){2&de&&t.ekj("mat-pseudo-checkbox-indeterminate","indeterminate"===ye.state)("mat-pseudo-checkbox-checked","checked"===ye.state)("mat-pseudo-checkbox-disabled",ye.disabled)("_mat-animation-noopable","NoopAnimations"===ye._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(de,ye){},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}),Re})(),pt=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[re]]}),Re})();const tt=new t.OlP("MAT_OPTION_PARENT_COMPONENT"),Zt=new t.OlP("MatOptgroup");let Ot=0;class Nt{constructor(ke,de=!1){this.source=ke,this.isUserInput=de}}let gt=(()=>{class Re{constructor(de,ye,ht,mt){this._element=de,this._changeDetectorRef=ye,this._parent=ht,this.group=mt,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+Ot++,this.onSelectionChange=new t.vpe,this._stateChanges=new R.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(de){this._disabled=(0,d.Ig)(de)}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(de,ye){const ht=this._getHostElement();"function"==typeof ht.focus&&ht.focus(ye)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(de){(de.keyCode===D.K5||de.keyCode===D.L_)&&!(0,D.Vb)(de)&&(this._selectViaInteraction(),de.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 de=this.viewValue;de!==this._mostRecentViewValue&&(this._mostRecentViewValue=de,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(de=!1){this.onSelectionChange.emit(new Nt(this,de))}}return Re.\u0275fac=function(de){t.$Z()},Re.\u0275dir=t.lG2({type:Re,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),Re})(),it=(()=>{class Re extends gt{constructor(de,ye,ht,mt){super(de,ye,ht,mt)}}return Re.\u0275fac=function(de){return new(de||Re)(t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(tt,8),t.Y36(Zt,8))},Re.\u0275cmp=t.Xpm({type:Re,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(de,ye){1&de&&t.NdJ("click",function(){return ye._selectViaInteraction()})("keydown",function(mt){return ye._handleKeydown(mt)}),2&de&&(t.Ikx("id",ye.id),t.uIk("tabindex",ye._getTabIndex())("aria-selected",ye._getAriaSelected())("aria-disabled",ye.disabled.toString()),t.ekj("mat-selected",ye.selected)("mat-option-multiple",ye.multiple)("mat-active",ye.active)("mat-option-disabled",ye.disabled))},exportAs:["matOption"],features:[t.qOj],ngContentSelectors:Z,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(de,ye){1&de&&(t.F$t(),t.YNc(0,E,1,2,"mat-pseudo-checkbox",0),t.TgZ(1,"span",1),t.Hsn(2),t.qZA(),t.YNc(3,B,2,1,"span",2),t._UZ(4,"div",3)),2&de&&(t.Q6J("ngIf",ye.multiple),t.xp6(3),t.Q6J("ngIf",ye.group&&ye.group._inert),t.xp6(1),t.Q6J("matRippleTrigger",ye._getHostElement())("matRippleDisabled",ye.disabled||ye.disableRipple))},directives:[Q,M.O5,Ce],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;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}),Re})();function bt(Re,ke,de){if(de.length){let ye=ke.toArray(),ht=de.toArray(),mt=0;for(let Ft=0;Ftde+ye?Math.max(0,Re-ye+ke):de}let Qt=(()=>{class Re{}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=t.oAB({type:Re}),Re.\u0275inj=t.cJS({imports:[[fe,M.ez,re,pt]]}),Re})()},6856:(Be,K,p)=>{"use strict";p.d(K,{FA:()=>ve,Mq:()=>He,hl:()=>lt,nW:()=>mi});var t=p(5664),e=p(9776),f=p(7429),M=p(9808),a=p(5e3),C=p(7423),d=p(5303),R=p(508),h=p(7579),L=p(727),w=p(6451),D=p(9646),S=p(1159),k=p(5698),E=p(8675),B=p(9300),Z=p(226),Y=p(3191),ae=p(925),ee=p(1777),ue=p(3075),ne=p(7322),re=p(7531);const ge=["mat-calendar-body",""];function q(Qe,_t){if(1&Qe&&(a.TgZ(0,"tr",2)(1,"td",3),a._uU(2),a.qZA()()),2&Qe){const se=a.oxw();a.xp6(1),a.Udp("padding-top",se._cellPadding)("padding-bottom",se._cellPadding),a.uIk("colspan",se.numCols),a.xp6(1),a.hij(" ",se.label," ")}}function _e(Qe,_t){if(1&Qe&&(a.TgZ(0,"td",3),a._uU(1),a.qZA()),2&Qe){const se=a.oxw(2);a.Udp("padding-top",se._cellPadding)("padding-bottom",se._cellPadding),a.uIk("colspan",se._firstRowOffset),a.xp6(1),a.hij(" ",se._firstRowOffset>=se.labelMinRequiredCells?se.label:""," ")}}function x(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"td",7)(1,"button",8),a.NdJ("click",function(xt){const bi=a.CHM(se).$implicit;return a.oxw(2)._cellClicked(bi,xt)}),a.TgZ(2,"div",9),a._uU(3),a.qZA(),a._UZ(4,"div",10),a.qZA()()}if(2&Qe){const se=_t.$implicit,Xe=_t.index,xt=a.oxw().index,Bt=a.oxw();a.Udp("width",Bt._cellWidth)("padding-top",Bt._cellPadding)("padding-bottom",Bt._cellPadding),a.uIk("data-mat-row",xt)("data-mat-col",Xe),a.xp6(1),a.ekj("mat-calendar-body-disabled",!se.enabled)("mat-calendar-body-active",Bt._isActiveCell(xt,Xe))("mat-calendar-body-range-start",Bt._isRangeStart(se.compareValue))("mat-calendar-body-range-end",Bt._isRangeEnd(se.compareValue))("mat-calendar-body-in-range",Bt._isInRange(se.compareValue))("mat-calendar-body-comparison-bridge-start",Bt._isComparisonBridgeStart(se.compareValue,xt,Xe))("mat-calendar-body-comparison-bridge-end",Bt._isComparisonBridgeEnd(se.compareValue,xt,Xe))("mat-calendar-body-comparison-start",Bt._isComparisonStart(se.compareValue))("mat-calendar-body-comparison-end",Bt._isComparisonEnd(se.compareValue))("mat-calendar-body-in-comparison-range",Bt._isInComparisonRange(se.compareValue))("mat-calendar-body-preview-start",Bt._isPreviewStart(se.compareValue))("mat-calendar-body-preview-end",Bt._isPreviewEnd(se.compareValue))("mat-calendar-body-in-preview",Bt._isInPreview(se.compareValue)),a.Q6J("ngClass",se.cssClasses)("tabindex",Bt._isActiveCell(xt,Xe)?0:-1),a.uIk("aria-label",se.ariaLabel)("aria-disabled",!se.enabled||null)("aria-pressed",Bt._isSelected(se.compareValue))("aria-current",Bt.todayValue===se.compareValue?"date":null),a.xp6(1),a.ekj("mat-calendar-body-selected",Bt._isSelected(se.compareValue))("mat-calendar-body-comparison-identical",Bt._isComparisonIdentical(se.compareValue))("mat-calendar-body-today",Bt.todayValue===se.compareValue),a.xp6(1),a.hij(" ",se.displayValue," ")}}function i(Qe,_t){if(1&Qe&&(a.TgZ(0,"tr",4),a.YNc(1,_e,2,6,"td",5),a.YNc(2,x,5,47,"td",6),a.qZA()),2&Qe){const se=_t.$implicit,Xe=_t.index,xt=a.oxw();a.xp6(1),a.Q6J("ngIf",0===Xe&&xt._firstRowOffset),a.xp6(1),a.Q6J("ngForOf",se)}}function r(Qe,_t){if(1&Qe&&(a.TgZ(0,"th",5)(1,"span",6),a._uU(2),a.qZA(),a.TgZ(3,"span",7),a._uU(4),a.qZA()()),2&Qe){const se=_t.$implicit;a.xp6(2),a.Oqu(se.long),a.xp6(2),a.Oqu(se.narrow)}}const u=["*"];function c(Qe,_t){}function v(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"mat-month-view",5),a.NdJ("activeDateChange",function(xt){return a.CHM(se),a.oxw().activeDate=xt})("_userSelection",function(xt){return a.CHM(se),a.oxw()._dateSelected(xt)}),a.qZA()}if(2&Qe){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)("comparisonStart",se.comparisonStart)("comparisonEnd",se.comparisonEnd)}}function T(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"mat-year-view",6),a.NdJ("activeDateChange",function(xt){return a.CHM(se),a.oxw().activeDate=xt})("monthSelected",function(xt){return a.CHM(se),a.oxw()._monthSelectedInYearView(xt)})("selectedChange",function(xt){return a.CHM(se),a.oxw()._goToDateInView(xt,"month")}),a.qZA()}if(2&Qe){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)}}function I(Qe,_t){if(1&Qe){const se=a.EpF();a.TgZ(0,"mat-multi-year-view",7),a.NdJ("activeDateChange",function(xt){return a.CHM(se),a.oxw().activeDate=xt})("yearSelected",function(xt){return a.CHM(se),a.oxw()._yearSelectedInMultiYearView(xt)})("selectedChange",function(xt){return a.CHM(se),a.oxw()._goToDateInView(xt,"year")}),a.qZA()}if(2&Qe){const se=a.oxw();a.Q6J("activeDate",se.activeDate)("selected",se.selected)("dateFilter",se.dateFilter)("maxDate",se.maxDate)("minDate",se.minDate)("dateClass",se.dateClass)}}function y(Qe,_t){}const n=["button"];function _(Qe,_t){1&Qe&&(a.O4$(),a.TgZ(0,"svg",3),a._UZ(1,"path",4),a.qZA())}const V=[[["","matDatepickerToggleIcon",""]]],N=["[matDatepickerToggleIcon]"];class Pe{constructor(_t,se,Xe,xt,Bt={},bi=_t,Si){this.value=_t,this.displayValue=se,this.ariaLabel=Xe,this.enabled=xt,this.cssClasses=Bt,this.compareValue=bi,this.rawValue=Si}}let Ee=(()=>{class Qe{constructor(se,Xe){this._elementRef=se,this._ngZone=Xe,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=xt=>{if(this._skipNextFocus&&"focus"===xt.type)this._skipNextFocus=!1;else if(xt.target&&this.isRange){const Bt=this._getCellFromElement(xt.target);Bt&&this._ngZone.run(()=>this.previewChange.emit({value:Bt.enabled?Bt:null,event:xt}))}},this._leaveHandler=xt=>{null!==this.previewEnd&&this.isRange&&xt.target&&this._getCellFromElement(xt.target)&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:xt}))},Xe.runOutsideAngular(()=>{const xt=se.nativeElement;xt.addEventListener("mouseenter",this._enterHandler,!0),xt.addEventListener("focus",this._enterHandler,!0),xt.addEventListener("mouseleave",this._leaveHandler,!0),xt.addEventListener("blur",this._leaveHandler,!0)})}_cellClicked(se,Xe){se.enabled&&this.selectedValueChange.emit({value:se.value,event:Xe})}_isSelected(se){return this.startValue===se||this.endValue===se}ngOnChanges(se){const Xe=se.numCols,{rows:xt,numCols:Bt}=this;(se.rows||Xe)&&(this._firstRowOffset=xt&&xt.length&&xt[0].length?Bt-xt[0].length:0),(se.cellAspectRatio||Xe||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/Bt+"%"),(Xe||!this._cellWidth)&&(this._cellWidth=100/Bt+"%")}ngOnDestroy(){const se=this._elementRef.nativeElement;se.removeEventListener("mouseenter",this._enterHandler,!0),se.removeEventListener("focus",this._enterHandler,!0),se.removeEventListener("mouseleave",this._leaveHandler,!0),se.removeEventListener("blur",this._leaveHandler,!0)}_isActiveCell(se,Xe){let xt=se*this.numCols+Xe;return se&&(xt-=this._firstRowOffset),xt==this.activeCell}_focusActiveCell(se=!0){this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>{setTimeout(()=>{const Xe=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");Xe&&(se||(this._skipNextFocus=!0),Xe.focus())})})})}_isRangeStart(se){return Ve(se,this.startValue,this.endValue)}_isRangeEnd(se){return Me(se,this.startValue,this.endValue)}_isInRange(se){return J(se,this.startValue,this.endValue,this.isRange)}_isComparisonStart(se){return Ve(se,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(se,Xe,xt){if(!this._isComparisonStart(se)||this._isRangeStart(se)||!this._isInRange(se))return!1;let Bt=this.rows[Xe][xt-1];if(!Bt){const bi=this.rows[Xe-1];Bt=bi&&bi[bi.length-1]}return Bt&&!this._isRangeEnd(Bt.compareValue)}_isComparisonBridgeEnd(se,Xe,xt){if(!this._isComparisonEnd(se)||this._isRangeEnd(se)||!this._isInRange(se))return!1;let Bt=this.rows[Xe][xt+1];if(!Bt){const bi=this.rows[Xe+1];Bt=bi&&bi[0]}return Bt&&!this._isRangeStart(Bt.compareValue)}_isComparisonEnd(se){return Me(se,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(se){return J(se,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(se){return this.comparisonStart===this.comparisonEnd&&se===this.comparisonStart}_isPreviewStart(se){return Ve(se,this.previewStart,this.previewEnd)}_isPreviewEnd(se){return Me(se,this.previewStart,this.previewEnd)}_isInPreview(se){return J(se,this.previewStart,this.previewEnd,this.isRange)}_getCellFromElement(se){let Xe;if(j(se)?Xe=se:j(se.parentNode)&&(Xe=se.parentNode),Xe){const xt=Xe.getAttribute("data-mat-row"),Bt=Xe.getAttribute("data-mat-col");if(xt&&Bt)return this.rows[parseInt(xt)][parseInt(Bt)]}return null}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(a.R0b))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange"},exportAs:["matCalendarBody"],features:[a.TTD],attrs:ge,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"],["class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom",4,"ngFor","ngForOf"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(se,Xe){1&se&&(a.YNc(0,q,3,6,"tr",0),a.YNc(1,i,3,2,"tr",1)),2&se&&(a.Q6J("ngIf",Xe._firstRowOffset.mat-calendar-body-cell-content,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content{outline:dotted 2px}.cdk-high-contrast-active .cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected,.cdk-high-contrast-active .cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content.mat-calendar-body-selected{outline:solid 3px}.cdk-high-contrast-active .mat-calendar-body-cell::before,.cdk-high-contrast-active .mat-calendar-body-cell::after,.cdk-high-contrast-active .mat-calendar-body-selected{background:none}.cdk-high-contrast-active .mat-calendar-body-in-range::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-start::before,.cdk-high-contrast-active .mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.cdk-high-contrast-active .mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .cdk-high-contrast-active .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}[dir=rtl] .mat-calendar-body-label{text-align:right}\n'],encapsulation:2,changeDetection:0}),Qe})();function j(Qe){return"TD"===Qe.nodeName}function Ve(Qe,_t,se){return null!==se&&_t!==se&&Qe=_t&&Qe===se}function J(Qe,_t,se,Xe){return Xe&&null!==_t&&null!==se&&_t!==se&&Qe>=_t&&Qe<=se}class Ie{constructor(_t,se){this.start=_t,this.end=se}}let ut=(()=>{class Qe{constructor(se,Xe){this.selection=se,this._adapter=Xe,this._selectionChanged=new h.x,this.selectionChanged=this._selectionChanged,this.selection=se}updateSelection(se,Xe){const xt=this.selection;this.selection=se,this._selectionChanged.next({selection:se,source:Xe,oldValue:xt})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(se){return this._adapter.isDateInstance(se)&&this._adapter.isValid(se)}}return Qe.\u0275fac=function(se){a.$Z()},Qe.\u0275prov=a.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})(),Oe=(()=>{class Qe extends ut{constructor(se){super(null,se)}add(se){super.updateSelection(se,this)}isValid(){return null!=this.selection&&this._isValidDateInstance(this.selection)}isComplete(){return null!=this.selection}clone(){const se=new Qe(this._adapter);return se.updateSelection(this.selection,this),se}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.LFG(R._A))},Qe.\u0275prov=a.Yz7({token:Qe,factory:Qe.\u0275fac}),Qe})();const Te={provide:ut,deps:[[new a.FiY,new a.tp0,ut],R._A],useFactory:function ce(Qe,_t){return Qe||new Oe(_t)}},te=new a.OlP("MAT_DATE_RANGE_SELECTION_STRATEGY");let tt=(()=>{class Qe{constructor(se,Xe,xt,Bt,bi){this._changeDetectorRef=se,this._dateFormats=Xe,this._dateAdapter=xt,this._dir=Bt,this._rangeStrategy=bi,this._rerenderSubscription=L.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(se){const Xe=this._activeDate,xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(xt,this.minDate,this.maxDate),this._hasSameMonthAndYear(Xe,this._activeDate)||this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setRanges(this._selected)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnChanges(se){const Xe=se.comparisonStart||se.comparisonEnd;Xe&&!Xe.firstChange&&this._setRanges(this.selected)}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(se){const Xe=se.value,xt=this._dateAdapter.getYear(this.activeDate),Bt=this._dateAdapter.getMonth(this.activeDate),bi=this._dateAdapter.createDate(xt,Bt,Xe);let Si,Xi;this._selected instanceof Ie?(Si=this._getDateInCurrentMonth(this._selected.start),Xi=this._getDateInCurrentMonth(this._selected.end)):Si=Xi=this._getDateInCurrentMonth(this._selected),(Si!==Xe||Xi!==Xe)&&this.selectedChange.emit(bi),this._userSelection.emit({value:bi,event:se.event}),this._previewStart=this._previewEnd=null,this._changeDetectorRef.markForCheck()}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,xt=this._isRtl();switch(se.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,xt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,xt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case S.Ku:this.activeDate=se.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case S.VM:this.activeDate=se.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case S.K5:case S.L_:return this._selectionKeyPressed=!0,void(this._canSelect(this._activeDate)&&se.preventDefault());case S.hY:return void(null!=this._previewEnd&&!(0,S.Vb)(se)&&(this._previewStart=this._previewEnd=null,this.selectedChange.emit(null),this._userSelection.emit({value:null,event:se}),se.preventDefault(),se.stopPropagation()));default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===S.L_||se.keyCode===S.K5)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_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 se=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(se)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(se){this._matCalendarBody._focusActiveCell(se)}_previewChanged({event:se,value:Xe}){if(this._rangeStrategy){const Bt=this._rangeStrategy.createPreview(Xe?Xe.rawValue:null,this.selected,se);this._previewStart=this._getCellCompareValue(Bt.start),this._previewEnd=this._getCellCompareValue(Bt.end),this._changeDetectorRef.detectChanges()}}_initWeekdays(){const se=this._dateAdapter.getFirstDayOfWeek(),Xe=this._dateAdapter.getDayOfWeekNames("narrow");let Bt=this._dateAdapter.getDayOfWeekNames("long").map((bi,Si)=>({long:bi,narrow:Xe[Si]}));this._weekdays=Bt.slice(se).concat(Bt.slice(0,se))}_createWeekCells(){const se=this._dateAdapter.getNumDaysInMonth(this.activeDate),Xe=this._dateAdapter.getDateNames();this._weeks=[[]];for(let xt=0,Bt=this._firstWeekOffset;xt=0)&&(!this.maxDate||this._dateAdapter.compareDate(se,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(se))}_getDateInCurrentMonth(se){return se&&this._hasSameMonthAndYear(se,this.activeDate)?this._dateAdapter.getDate(se):null}_hasSameMonthAndYear(se,Xe){return!(!se||!Xe||this._dateAdapter.getMonth(se)!=this._dateAdapter.getMonth(Xe)||this._dateAdapter.getYear(se)!=this._dateAdapter.getYear(Xe))}_getCellCompareValue(se){if(se){const Xe=this._dateAdapter.getYear(se),xt=this._dateAdapter.getMonth(se),Bt=this._dateAdapter.getDate(se);return new Date(Xe,xt,Bt).getTime()}return null}_isRtl(){return this._dir&&"rtl"===this._dir.value}_setRanges(se){se instanceof Ie?(this._rangeStart=this._getCellCompareValue(se.start),this._rangeEnd=this._getCellCompareValue(se.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(se),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(se){return!this.dateFilter||this.dateFilter(se)}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.sBO),a.Y36(R.sG,8),a.Y36(R._A,8),a.Y36(Z.Is,8),a.Y36(te,8))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-month-view"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(Ee,5),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe._matCalendarBody=xt.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","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["aria-hidden","true","colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","selectedValueChange","previewChange","keyup","keydown"],["scope","col"],[1,"cdk-visually-hidden"],["aria-hidden","true"]],template:function(se,Xe){1&se&&(a.TgZ(0,"table",0)(1,"thead",1)(2,"tr"),a.YNc(3,r,5,2,"th",2),a.qZA(),a.TgZ(4,"tr"),a._UZ(5,"th",3),a.qZA()(),a.TgZ(6,"tbody",4),a.NdJ("selectedValueChange",function(Bt){return Xe._dateSelected(Bt)})("previewChange",function(Bt){return Xe._previewChanged(Bt)})("keyup",function(Bt){return Xe._handleCalendarBodyKeyup(Bt)})("keydown",function(Bt){return Xe._handleCalendarBodyKeydown(Bt)}),a.qZA()()),2&se&&(a.xp6(3),a.Q6J("ngForOf",Xe._weekdays),a.xp6(3),a.Q6J("label",Xe._monthLabel)("rows",Xe._weeks)("todayValue",Xe._todayDate)("startValue",Xe._rangeStart)("endValue",Xe._rangeEnd)("comparisonStart",Xe._comparisonRangeStart)("comparisonEnd",Xe._comparisonRangeEnd)("previewStart",Xe._previewStart)("previewEnd",Xe._previewEnd)("isRange",Xe._isRange)("labelMinRequiredCells",3)("activeCell",Xe._dateAdapter.getDate(Xe.activeDate)-1))},directives:[Ee,M.sg],encapsulation:2,changeDetection:0}),Qe})(),Yt=(()=>{class Qe{constructor(se,Xe,xt){this._changeDetectorRef=se,this._dateAdapter=Xe,this._dir=xt,this._rerenderSubscription=L.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(se){let Xe=this._activeDate;const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(xt,this.minDate,this.maxDate),Zt(this._dateAdapter,Xe,this._activeDate,this.minDate,this.maxDate)||this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setSelectedYear(se)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());const Xe=this._dateAdapter.getYear(this._activeDate)-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let xt=0,Bt=[];xt<24;xt++)Bt.push(Xe+xt),4==Bt.length&&(this._years.push(Bt.map(bi=>this._createCellForYear(bi))),Bt=[]);this._changeDetectorRef.markForCheck()}_yearSelected(se){const Xe=se.value;this.yearSelected.emit(this._dateAdapter.createDate(Xe,0,1));let xt=this._dateAdapter.getMonth(this.activeDate),Bt=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(Xe,xt,1));this.selectedChange.emit(this._dateAdapter.createDate(Xe,xt,Math.min(this._dateAdapter.getDate(this.activeDate),Bt)))}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,xt=this._isRtl();switch(se.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,xt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,xt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?-240:-24);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?240:24);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===S.L_||se.keyCode===S.K5)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_getActiveCell(){return ui(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_createCellForYear(se){const Xe=this._dateAdapter.createDate(se,0,1),xt=this._dateAdapter.getYearName(Xe),Bt=this.dateClass?this.dateClass(Xe,"multi-year"):void 0;return new Pe(se,xt,xt,this._shouldEnableYear(se),Bt)}_shouldEnableYear(se){if(null==se||this.maxDate&&se>this._dateAdapter.getYear(this.maxDate)||this.minDate&&se{class Qe{constructor(se,Xe,xt,Bt){this._changeDetectorRef=se,this._dateFormats=Xe,this._dateAdapter=xt,this._dir=Bt,this._rerenderSubscription=L.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(se){let Xe=this._activeDate;const xt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(xt,this.minDate,this.maxDate),this._dateAdapter.getYear(Xe)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se)),this._setSelectedMonth(se)}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe((0,E.O)(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(se){const Xe=se.value,xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Xe,1);this.monthSelected.emit(xt);const Bt=this._dateAdapter.getNumDaysInMonth(xt);this.selectedChange.emit(this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),Xe,Math.min(this._dateAdapter.getDate(this.activeDate),Bt)))}_handleCalendarBodyKeydown(se){const Xe=this._activeDate,xt=this._isRtl();switch(se.keyCode){case S.oh:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,xt?1:-1);break;case S.SV:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,xt?-1:1);break;case S.LH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case S.JH:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case S.Sd:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case S.uR:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case S.Ku:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?-10:-1);break;case S.VM:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,se.altKey?10:1);break;case S.K5:case S.L_:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(Xe,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),se.preventDefault()}_handleCalendarBodyKeyup(se){(se.keyCode===S.L_||se.keyCode===S.K5)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:se}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let se=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(Xe=>Xe.map(xt=>this._createCellForMonth(xt,se[xt]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_getMonthInCurrentYear(se){return se&&this._dateAdapter.getYear(se)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(se):null}_createCellForMonth(se,Xe){const xt=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),se,1),Bt=this._dateAdapter.format(xt,this._dateFormats.display.monthYearA11yLabel),bi=this.dateClass?this.dateClass(xt,"year"):void 0;return new Pe(se,Xe.toLocaleUpperCase(),Bt,this._shouldEnableMonth(se),bi)}_shouldEnableMonth(se){const Xe=this._dateAdapter.getYear(this.activeDate);if(null==se||this._isYearAndMonthAfterMaxDate(Xe,se)||this._isYearAndMonthBeforeMinDate(Xe,se))return!1;if(!this.dateFilter)return!0;for(let Bt=this._dateAdapter.createDate(Xe,se,1);this._dateAdapter.getMonth(Bt)==se;Bt=this._dateAdapter.addCalendarDays(Bt,1))if(this.dateFilter(Bt))return!0;return!1}_isYearAndMonthAfterMaxDate(se,Xe){if(this.maxDate){const xt=this._dateAdapter.getYear(this.maxDate),Bt=this._dateAdapter.getMonth(this.maxDate);return se>xt||se===xt&&Xe>Bt}return!1}_isYearAndMonthBeforeMinDate(se,Xe){if(this.minDate){const xt=this._dateAdapter.getYear(this.minDate),Bt=this._dateAdapter.getMonth(this.minDate);return se{class Qe{constructor(){this.changes=new h.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(se,Xe){return`${se} \u2013 ${Xe}`}}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275prov=a.Yz7({token:Qe,factory:Qe.\u0275fac,providedIn:"root"}),Qe})(),bt=0,ti=(()=>{class Qe{constructor(se,Xe,xt,Bt,bi){this._intl=se,this.calendar=Xe,this._dateAdapter=xt,this._dateFormats=Bt,this._buttonDescriptionId="mat-calendar-button-"+bt++,this.calendar.stateChanges.subscribe(()=>bi.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 Xe=this._dateAdapter.getYear(this.calendar.activeDate)-ui(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),xt=Xe+24-1,Bt=this._dateAdapter.getYearName(this._dateAdapter.createDate(Xe,0,1)),bi=this._dateAdapter.getYearName(this._dateAdapter.createDate(xt,0,1));return this._intl.formatYearRange(Bt,bi)}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:24)}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(se,Xe){return"month"==this.calendar.currentView?this._dateAdapter.getYear(se)==this._dateAdapter.getYear(Xe)&&this._dateAdapter.getMonth(se)==this._dateAdapter.getMonth(Xe):"year"==this.calendar.currentView?this._dateAdapter.getYear(se)==this._dateAdapter.getYear(Xe):Zt(this._dateAdapter,se,Xe,this.calendar.minDate,this.calendar.maxDate)}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(it),a.Y36((0,a.Gpc)(()=>Qt)),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(a.sBO))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:u,decls:11,vars:10,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["mat-button","","type","button","aria-live","polite",1,"mat-calendar-period-button",3,"click"],["viewBox","0 0 10 5","focusable","false",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[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(se,Xe){1&se&&(a.F$t(),a.TgZ(0,"div",0)(1,"div",1)(2,"button",2),a.NdJ("click",function(){return Xe.currentPeriodClicked()}),a.TgZ(3,"span"),a._uU(4),a.qZA(),a.O4$(),a.TgZ(5,"svg",3),a._UZ(6,"polygon",4),a.qZA()(),a.kcU(),a._UZ(7,"div",5),a.Hsn(8),a.TgZ(9,"button",6),a.NdJ("click",function(){return Xe.previousClicked()}),a.qZA(),a.TgZ(10,"button",7),a.NdJ("click",function(){return Xe.nextClicked()}),a.qZA()()()),2&se&&(a.xp6(2),a.uIk("aria-label",Xe.periodButtonLabel)("aria-describedby",Xe._buttonDescriptionId),a.xp6(1),a.uIk("id",Xe._buttonDescriptionId),a.xp6(1),a.Oqu(Xe.periodButtonText),a.xp6(1),a.ekj("mat-calendar-invert","month"!==Xe.calendar.currentView),a.xp6(4),a.Q6J("disabled",!Xe.previousEnabled()),a.uIk("aria-label",Xe.prevButtonLabel),a.xp6(1),a.Q6J("disabled",!Xe.nextEnabled()),a.uIk("aria-label",Xe.nextButtonLabel))},directives:[C.lW],encapsulation:2,changeDetection:0}),Qe})(),Qt=(()=>{class Qe{constructor(se,Xe,xt,Bt){this._dateAdapter=Xe,this._dateFormats=xt,this._changeDetectorRef=Bt,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 h.x,this._intlChanges=se.changes.subscribe(()=>{Bt.markForCheck(),this.stateChanges.next()})}get startAt(){return this._startAt}set startAt(se){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get selected(){return this._selected}set selected(se){this._selected=se instanceof Ie?se:this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get minDate(){return this._minDate}set minDate(se){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get maxDate(){return this._maxDate}set maxDate(se){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get activeDate(){return this._clampedActiveDate}set activeDate(se){this._clampedActiveDate=this._dateAdapter.clampDate(se,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}get currentView(){return this._currentView}set currentView(se){const Xe=this._currentView!==se?se:null;this._currentView=se,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),Xe&&this.viewChanged.emit(Xe)}ngAfterContentInit(){this._calendarHeaderPortal=new f.C5(this.headerComponent||ti),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(se){const Xe=se.minDate&&!this._dateAdapter.sameDate(se.minDate.previousValue,se.minDate.currentValue)?se.minDate:void 0,xt=se.maxDate&&!this._dateAdapter.sameDate(se.maxDate.previousValue,se.maxDate.currentValue)?se.maxDate:void 0,Bt=Xe||xt||se.dateFilter;if(Bt&&!Bt.firstChange){const bi=this._getCurrentViewComponent();bi&&(this._changeDetectorRef.detectChanges(),bi._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(se){const Xe=se.value;(this.selected instanceof Ie||Xe&&!this._dateAdapter.sameDate(Xe,this.selected))&&this.selectedChange.emit(Xe),this._userSelection.emit(se)}_yearSelectedInMultiYearView(se){this.yearSelected.emit(se)}_monthSelectedInYearView(se){this.monthSelected.emit(se)}_goToDateInView(se,Xe){this.activeDate=se,this.currentView=Xe}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(it),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(a.sBO))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-calendar"]],viewQuery:function(se,Xe){if(1&se&&(a.Gf(tt,5),a.Gf(gt,5),a.Gf(Yt,5)),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe.monthView=xt.first),a.iGM(xt=a.CRH())&&(Xe.yearView=xt.first),a.iGM(xt=a.CRH())&&(Xe.multiYearView=xt.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection"},exportAs:["matCalendar"],features:[a._Bn([Te]),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(se,Xe){1&se&&(a.YNc(0,c,0,0,"ng-template",0),a.TgZ(1,"div",1),a.YNc(2,v,1,8,"mat-month-view",2),a.YNc(3,T,1,6,"mat-year-view",3),a.YNc(4,I,1,6,"mat-multi-year-view",4),a.qZA()),2&se&&(a.Q6J("cdkPortalOutlet",Xe._calendarHeaderPortal),a.xp6(1),a.Q6J("ngSwitch",Xe.currentView),a.xp6(1),a.Q6J("ngSwitchCase","month"),a.xp6(1),a.Q6J("ngSwitchCase","year"),a.xp6(1),a.Q6J("ngSwitchCase","multi-year"))},directives:[tt,gt,Yt,f.Pl,t.kH,M.RF,M.n9],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(4.7142857143% - 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:10px;height:5px;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}.cdk-high-contrast-active .mat-calendar-arrow{fill:CanvasText}.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}),Qe})();const Re={transformPanel:(0,ee.X$)("transformPanel",[(0,ee.eR)("void => enter-dropdown",(0,ee.jt)("120ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(1, 0.8)"}),(0,ee.oB)({opacity:1,transform:"scale(1, 1)"})]))),(0,ee.eR)("void => enter-dialog",(0,ee.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,ee.F4)([(0,ee.oB)({opacity:0,transform:"scale(0.7)"}),(0,ee.oB)({transform:"none",opacity:1})]))),(0,ee.eR)("* => void",(0,ee.jt)("100ms linear",(0,ee.oB)({opacity:0})))]),fadeInCalendar:(0,ee.X$)("fadeInCalendar",[(0,ee.SB)("void",(0,ee.oB)({opacity:0})),(0,ee.SB)("enter",(0,ee.oB)({opacity:1})),(0,ee.eR)("void => *",(0,ee.jt)("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])};let ke=0;const de=new a.OlP("mat-datepicker-scroll-strategy"),ht={provide:de,deps:[e.aV],useFactory:function ye(Qe){return()=>Qe.scrollStrategies.reposition()}},mt=(0,R.pj)(class{constructor(Qe){this._elementRef=Qe}});let Ft=(()=>{class Qe extends mt{constructor(se,Xe,xt,Bt,bi,Si){super(se),this._changeDetectorRef=Xe,this._globalModel=xt,this._dateAdapter=Bt,this._rangeSelectionStrategy=bi,this._subscriptions=new L.w0,this._animationDone=new h.x,this._actionsPortal=null,this._closeButtonText=Si.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(se){const Xe=this._model.selection,xt=se.value,Bt=Xe instanceof Ie;if(Bt&&this._rangeSelectionStrategy){const bi=this._rangeSelectionStrategy.selectionFinished(xt,Xe,se.event);this._model.updateSelection(bi,this)}else xt&&(Bt||!this._dateAdapter.sameDate(xt,Xe))&&this._model.add(xt);(!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 Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(ut),a.Y36(R._A),a.Y36(te,8),a.Y36(it))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-datepicker-content"]],viewQuery:function(se,Xe){if(1&se&&a.Gf(Qt,5),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe._calendar=xt.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(se,Xe){1&se&&a.WFA("@transformPanel.done",function(){return Xe._animationDone.next()}),2&se&&(a.d8E("@transformPanel",Xe._animationState),a.ekj("mat-datepicker-content-touch",Xe.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[a.qOj],decls:5,vars:24,consts:[["cdkTrapFocus","","role","dialog",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(se,Xe){if(1&se&&(a.TgZ(0,"div",0)(1,"mat-calendar",1),a.NdJ("yearSelected",function(Bt){return Xe.datepicker._selectYear(Bt)})("monthSelected",function(Bt){return Xe.datepicker._selectMonth(Bt)})("viewChanged",function(Bt){return Xe.datepicker._viewChanged(Bt)})("_userSelection",function(Bt){return Xe._handleUserSelection(Bt)}),a.qZA(),a.YNc(2,y,0,0,"ng-template",2),a.TgZ(3,"button",3),a.NdJ("focus",function(){return Xe._closeButtonFocused=!0})("blur",function(){return Xe._closeButtonFocused=!1})("click",function(){return Xe.datepicker.close()}),a._uU(4),a.qZA()()),2&se){let xt;a.ekj("mat-datepicker-content-container-with-custom-header",Xe.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",Xe._actionsPortal),a.uIk("aria-modal",!0)("aria-labelledby",null!==(xt=Xe._dialogLabelId)&&void 0!==xt?xt:void 0),a.xp6(1),a.Q6J("id",Xe.datepicker.id)("ngClass",Xe.datepicker.panelClass)("startAt",Xe.datepicker.startAt)("startView",Xe.datepicker.startView)("minDate",Xe.datepicker._getMinDate())("maxDate",Xe.datepicker._getMaxDate())("dateFilter",Xe.datepicker._getDateFilter())("headerComponent",Xe.datepicker.calendarHeaderComponent)("selected",Xe._getSelected())("dateClass",Xe.datepicker.dateClass)("comparisonStart",Xe.comparisonStart)("comparisonEnd",Xe.comparisonEnd)("@fadeInCalendar","enter"),a.xp6(1),a.Q6J("cdkPortalOutlet",Xe._actionsPortal),a.xp6(1),a.ekj("cdk-visually-hidden",!Xe._closeButtonFocused),a.Q6J("color",Xe.color||"primary"),a.xp6(1),a.Oqu(Xe._closeButtonText)}},directives:[Qt,C.lW,t.mK,M.mk,f.Pl],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.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:[Re.transformPanel,Re.fadeInCalendar]},changeDetection:0}),Qe})(),nt=(()=>{class Qe{constructor(se,Xe,xt,Bt,bi,Si,Xi){this._overlay=se,this._ngZone=Xe,this._viewContainerRef=xt,this._dateAdapter=bi,this._dir=Si,this._model=Xi,this._inputStateChanges=L.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-"+ke++,this._focusedElementBeforeOpen=null,this._backdropHarnessClass=`${this.id}-backdrop`,this.stateChanges=new h.x,this._scrollStrategy=Bt}get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(se){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se))}get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(se){this._color=se}get touchUi(){return this._touchUi}set touchUi(se){this._touchUi=(0,Y.Ig)(se)}get disabled(){return void 0===this._disabled&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(se){const Xe=(0,Y.Ig)(se);Xe!==this._disabled&&(this._disabled=Xe,this.stateChanges.next(void 0))}get restoreFocus(){return this._restoreFocus}set restoreFocus(se){this._restoreFocus=(0,Y.Ig)(se)}get panelClass(){return this._panelClass}set panelClass(se){this._panelClass=(0,Y.du)(se)}get opened(){return this._opened}set opened(se){(0,Y.Ig)(se)?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(se){const Xe=se.xPosition||se.yPosition;if(Xe&&!Xe.firstChange&&this._overlayRef){const xt=this._overlayRef.getConfig().positionStrategy;xt instanceof e._G&&(this._setConnectedPositions(xt),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(se){this._model.add(se)}_selectYear(se){this.yearSelected.emit(se)}_selectMonth(se){this.monthSelected.emit(se)}_viewChanged(se){this.viewChanged.emit(se)}registerInput(se){return this._inputStateChanges.unsubscribe(),this.datepickerInput=se,this._inputStateChanges=se.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(se){this._actionsPortal=se}removeActions(se){se===this._actionsPortal&&(this._actionsPortal=null)}open(){this._opened||this.disabled||(this._focusedElementBeforeOpen=(0,ae.ht)(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened)return;if(this._componentRef){const Xe=this._componentRef.instance;Xe._startExitAnimation(),Xe._animationDone.pipe((0,k.q)(1)).subscribe(()=>this._destroyOverlay())}const se=()=>{this._opened&&(this._opened=!1,this.closedStream.emit(),this._focusedElementBeforeOpen=null)};this._restoreFocus&&this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(se)):se()}_applyPendingSelection(){var se,Xe;null===(Xe=null===(se=this._componentRef)||void 0===se?void 0:se.instance)||void 0===Xe||Xe._applyPendingSelection()}_forwardContentValues(se){se.datepicker=this,se.color=this.color,se._actionsPortal=this._actionsPortal,se._dialogLabelId=this.datepickerInput.getOverlayLabelId()}_openOverlay(){this._destroyOverlay();const se=this.touchUi,Xe=new f.C5(Ft,this._viewContainerRef),xt=this._overlayRef=this._overlay.create(new e.X_({positionStrategy:se?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[se?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir,scrollStrategy:se?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:"mat-datepicker-"+(se?"dialog":"popup")}));this._getCloseStream(xt).subscribe(Bt=>{Bt&&Bt.preventDefault(),this.close()}),xt.keydownEvents().subscribe(Bt=>{const bi=Bt.keyCode;(bi===S.LH||bi===S.JH||bi===S.oh||bi===S.SV||bi===S.Ku||bi===S.VM)&&Bt.preventDefault()}),this._componentRef=xt.attach(Xe),this._forwardContentValues(this._componentRef.instance),se||this._ngZone.onStable.pipe((0,k.q)(1)).subscribe(()=>xt.updatePosition())}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){const se=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(se)}_setConnectedPositions(se){const Xe="end"===this.xPosition?"end":"start",xt="start"===Xe?"end":"start",Bt="above"===this.yPosition?"bottom":"top",bi="top"===Bt?"bottom":"top";return se.withPositions([{originX:Xe,originY:bi,overlayX:Xe,overlayY:Bt},{originX:Xe,originY:Bt,overlayX:Xe,overlayY:bi},{originX:xt,originY:bi,overlayX:xt,overlayY:Bt},{originX:xt,originY:Bt,overlayX:xt,overlayY:bi}])}_getCloseStream(se){return(0,w.T)(se.backdropClick(),se.detachments(),se.keydownEvents().pipe((0,B.h)(Xe=>Xe.keyCode===S.hY&&!(0,S.Vb)(Xe)||this.datepickerInput&&(0,S.Vb)(Xe,"altKey")&&Xe.keyCode===S.LH)))}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(e.aV),a.Y36(a.R0b),a.Y36(a.s_b),a.Y36(de),a.Y36(R._A,8),a.Y36(Z.Is,8),a.Y36(ut))},Qe.\u0275dir=a.lG2({type:Qe,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:"touchUi",disabled:"disabled",xPosition:"xPosition",yPosition:"yPosition",restoreFocus:"restoreFocus",dateClass:"dateClass",panelClass:"panelClass",opened:"opened"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[a.TTD]}),Qe})(),He=(()=>{class Qe extends nt{}return Qe.\u0275fac=function(){let _t;return function(Xe){return(_t||(_t=a.n5z(Qe)))(Xe||Qe)}}(),Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[a._Bn([Te,{provide:nt,useExisting:Qe}]),a.qOj],decls:0,vars:0,template:function(se,Xe){},encapsulation:2,changeDetection:0}),Qe})();class rt{constructor(_t,se){this.target=_t,this.targetElement=se,this.value=this.target.value}}let et=(()=>{class Qe{constructor(se,Xe,xt){this._elementRef=se,this._dateAdapter=Xe,this._dateFormats=xt,this.dateChange=new a.vpe,this.dateInput=new a.vpe,this.stateChanges=new h.x,this._onTouched=()=>{},this._validatorOnChange=()=>{},this._cvaOnChange=()=>{},this._valueChangesSubscription=L.w0.EMPTY,this._localeSubscription=L.w0.EMPTY,this._parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}},this._filterValidator=Bt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value));return!bi||this._matchesFilter(bi)?null:{matDatepickerFilter:!0}},this._minValidator=Bt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),Si=this._getMinDate();return!Si||!bi||this._dateAdapter.compareDate(Si,bi)<=0?null:{matDatepickerMin:{min:Si,actual:bi}}},this._maxValidator=Bt=>{const bi=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(Bt.value)),Si=this._getMaxDate();return!Si||!bi||this._dateAdapter.compareDate(Si,bi)>=0?null:{matDatepickerMax:{max:Si,actual:bi}}},this._lastValueValid=!1,this._localeSubscription=Xe.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(se){this._assignValueProgrammatically(se)}get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(se){const Xe=(0,Y.Ig)(se),xt=this._elementRef.nativeElement;this._disabled!==Xe&&(this._disabled=Xe,this.stateChanges.next(void 0)),Xe&&this._isInitialized&&xt.blur&&xt.blur()}_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(se){this._model=se,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(Xe=>{if(this._shouldHandleChangeEvent(Xe)){const xt=this._getValueFromModel(Xe.selection);this._lastValueValid=this._isValidValue(xt),this._cvaOnChange(xt),this._onTouched(),this._formatValue(xt),this.dateInput.emit(new rt(this,this._elementRef.nativeElement)),this.dateChange.emit(new rt(this,this._elementRef.nativeElement))}})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(se){(function Ae(Qe,_t){const se=Object.keys(Qe);for(let Xe of se){const{previousValue:xt,currentValue:Bt}=Qe[Xe];if(!_t.isDateInstance(xt)||!_t.isDateInstance(Bt))return!0;if(!_t.sameDate(xt,Bt))return!0}return!1})(se,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(se){this._validatorOnChange=se}validate(se){return this._validator?this._validator(se):null}writeValue(se){this._assignValueProgrammatically(se)}registerOnChange(se){this._cvaOnChange=se}registerOnTouched(se){this._onTouched=se}setDisabledState(se){this.disabled=se}_onKeydown(se){se.altKey&&se.keyCode===S.JH&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),se.preventDefault())}_onInput(se){const Xe=this._lastValueValid;let xt=this._dateAdapter.parse(se,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(xt),xt=this._dateAdapter.getValidDateOrNull(xt);const Bt=!this._dateAdapter.sameDate(xt,this.value);!xt||Bt?this._cvaOnChange(xt):(se&&!this.value&&this._cvaOnChange(xt),Xe!==this._lastValueValid&&this._validatorOnChange()),Bt&&(this._assignValue(xt),this.dateInput.emit(new rt(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new rt(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(se){this._elementRef.nativeElement.value=null!=se?this._dateAdapter.format(se,this._dateFormats.display.dateInput):""}_assignValue(se){this._model?(this._assignValueToModel(se),this._pendingValue=null):this._pendingValue=se}_isValidValue(se){return!se||this._dateAdapter.isValid(se)}_parentDisabled(){return!1}_assignValueProgrammatically(se){se=this._dateAdapter.deserialize(se),this._lastValueValid=this._isValidValue(se),se=this._dateAdapter.getValidDateOrNull(se),this._assignValue(se),this._formatValue(se)}_matchesFilter(se){const Xe=this._getDateFilter();return!Xe||Xe(se)}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(R._A,8),a.Y36(R.sG,8))},Qe.\u0275dir=a.lG2({type:Qe,inputs:{value:"value",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[a.TTD]}),Qe})();const Ge={provide:ue.JU,useExisting:(0,a.Gpc)(()=>lt),multi:!0},ot={provide:ue.Cf,useExisting:(0,a.Gpc)(()=>lt),multi:!0};let lt=(()=>{class Qe extends et{constructor(se,Xe,xt,Bt){super(se,Xe,xt),this._formField=Bt,this._closedSubscription=L.w0.EMPTY,this._validator=ue.kI.compose(super._getValidators())}set matDatepicker(se){se&&(this._datepicker=se,this._closedSubscription=se.closedStream.subscribe(()=>this._onTouched()),this._registerModel(se.registerInput(this)))}get min(){return this._min}set min(se){const Xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se));this._dateAdapter.sameDate(Xe,this._min)||(this._min=Xe,this._validatorOnChange())}get max(){return this._max}set max(se){const Xe=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(se));this._dateAdapter.sameDate(Xe,this._max)||(this._max=Xe,this._validatorOnChange())}get dateFilter(){return this._dateFilter}set dateFilter(se){const Xe=this._matchesFilter(this.value);this._dateFilter=se,this._matchesFilter(this.value)!==Xe&&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(se){return se}_assignValueToModel(se){this._model&&this._model.updateSelection(se,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(se){return se.source!==this}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(a.SBq),a.Y36(R._A,8),a.Y36(R.sG,8),a.Y36(ne.G_,8))},Qe.\u0275dir=a.lG2({type:Qe,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(se,Xe){1&se&&a.NdJ("input",function(Bt){return Xe._onInput(Bt.target.value)})("change",function(){return Xe._onChange()})("blur",function(){return Xe._onBlur()})("keydown",function(Bt){return Xe._onKeydown(Bt)}),2&se&&(a.Ikx("disabled",Xe.disabled),a.uIk("aria-haspopup",Xe._datepicker?"dialog":null)("aria-owns",(null==Xe._datepicker?null:Xe._datepicker.opened)&&Xe._datepicker.id||null)("min",Xe.min?Xe._dateAdapter.toIso8601(Xe.min):null)("max",Xe.max?Xe._dateAdapter.toIso8601(Xe.max):null)("data-mat-calendar",Xe._datepicker?Xe._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:["matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[a._Bn([Ge,ot,{provide:re.Jk,useExisting:Qe}]),a.qOj]}),Qe})(),Ct=(()=>{class Qe{}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275dir=a.lG2({type:Qe,selectors:[["","matDatepickerToggleIcon",""]]}),Qe})(),mi=(()=>{class Qe{constructor(se,Xe,xt){this._intl=se,this._changeDetectorRef=Xe,this._stateChanges=L.w0.EMPTY;const Bt=Number(xt);this.tabIndex=Bt||0===Bt?Bt:null}get disabled(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(se){this._disabled=(0,Y.Ig)(se)}ngOnChanges(se){se.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(se){this.datepicker&&!this.disabled&&(this.datepicker.open(),se.stopPropagation())}_watchStateChanges(){const se=this.datepicker?this.datepicker.stateChanges:(0,D.of)(),Xe=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:(0,D.of)(),xt=this.datepicker?(0,w.T)(this.datepicker.openedStream,this.datepicker.closedStream):(0,D.of)();this._stateChanges.unsubscribe(),this._stateChanges=(0,w.T)(this._intl.changes,se,Xe,xt).subscribe(()=>this._changeDetectorRef.markForCheck())}}return Qe.\u0275fac=function(se){return new(se||Qe)(a.Y36(it),a.Y36(a.sBO),a.$8M("tabindex"))},Qe.\u0275cmp=a.Xpm({type:Qe,selectors:[["mat-datepicker-toggle"]],contentQueries:function(se,Xe,xt){if(1&se&&a.Suo(xt,Ct,5),2&se){let Bt;a.iGM(Bt=a.CRH())&&(Xe._customIcon=Bt.first)}},viewQuery:function(se,Xe){if(1&se&&a.Gf(n,5),2&se){let xt;a.iGM(xt=a.CRH())&&(Xe._button=xt.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(se,Xe){1&se&&a.NdJ("click",function(Bt){return Xe._open(Bt)}),2&se&&(a.uIk("tabindex",null)("data-mat-calendar",Xe.datepicker?Xe.datepicker.id:null),a.ekj("mat-datepicker-toggle-active",Xe.datepicker&&Xe.datepicker.opened)("mat-accent",Xe.datepicker&&"accent"===Xe.datepicker.color)("mat-warn",Xe.datepicker&&"warn"===Xe.datepicker.color))},inputs:{datepicker:["for","datepicker"],tabIndex:"tabIndex",ariaLabel:["aria-label","ariaLabel"],disabled:"disabled",disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[a.TTD],ngContentSelectors:N,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(se,Xe){1&se&&(a.F$t(V),a.TgZ(0,"button",0,1),a.YNc(2,_,2,0,"svg",2),a.Hsn(3),a.qZA()),2&se&&(a.Q6J("disabled",Xe.disabled)("disableRipple",Xe.disableRipple),a.uIk("aria-haspopup",Xe.datepicker?"dialog":null)("aria-label",Xe.ariaLabel||Xe._intl.openCalendarLabel)("tabindex",Xe.disabled?-1:Xe.tabIndex),a.xp6(2),a.Q6J("ngIf",!Xe._customIcon))},directives:[C.lW,M.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}),Qe})(),ve=(()=>{class Qe{}return Qe.\u0275fac=function(se){return new(se||Qe)},Qe.\u0275mod=a.oAB({type:Qe}),Qe.\u0275inj=a.cJS({providers:[it,ht],imports:[[M.ez,C.ot,e.U8,t.rt,f.eL,R.BQ],d.ZD]}),Qe})()},8966:(Be,K,p)=>{"use strict";p.d(K,{Bq:()=>i,Is:()=>he,WI:()=>x,ZT:()=>_,so:()=>q,uw:()=>I});var t=p(9776),e=p(7429),f=p(5e3),M=p(508),a=p(226),C=p(7579),d=p(9770),R=p(9646),h=p(9300),L=p(5698),w=p(8675),D=p(925),S=p(9808),k=p(1777),E=p(5664),B=p(1159),Z=p(6360);function Y(be,Pe){}class ae{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="first-tabbable",this.restoreFocus=!0,this.delayFocusTrap=!0,this.closeOnNavigation=!0}}const ee={dialogContainer:(0,k.X$)("dialogContainer",[(0,k.SB)("void, exit",(0,k.oB)({opacity:0,transform:"scale(0.7)"})),(0,k.SB)("enter",(0,k.oB)({transform:"none"})),(0,k.eR)("* => enter",(0,k.ru)([(0,k.jt)("150ms cubic-bezier(0, 0, 0.2, 1)",(0,k.oB)({transform:"none",opacity:1})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})])),(0,k.eR)("* => void, * => exit",(0,k.ru)([(0,k.jt)("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",(0,k.oB)({opacity:0})),(0,k.IO)("@*",(0,k.pV)(),{optional:!0})]))])};let ne=(()=>{class be extends e.en{constructor(Ee,j,Ve,Me,J,Ie,ut,Oe){super(),this._elementRef=Ee,this._focusTrapFactory=j,this._changeDetectorRef=Ve,this._config=J,this._interactivityChecker=Ie,this._ngZone=ut,this._focusMonitor=Oe,this._animationStateChanged=new f.vpe,this._elementFocusedBeforeDialogWasOpened=null,this._closeInteractionType=null,this.attachDomPortal=we=>(this._portalOutlet.hasAttached(),this._portalOutlet.attachDomPortal(we)),this._ariaLabelledBy=J.ariaLabelledBy||null,this._document=Me}_initializeWithAttachedContent(){this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=(0,D.ht)())}attachComponentPortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachComponentPortal(Ee)}attachTemplatePortal(Ee){return this._portalOutlet.hasAttached(),this._portalOutlet.attachTemplatePortal(Ee)}_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(Ee,j){this._interactivityChecker.isFocusable(Ee)||(Ee.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ve=()=>{Ee.removeEventListener("blur",Ve),Ee.removeEventListener("mousedown",Ve),Ee.removeAttribute("tabindex")};Ee.addEventListener("blur",Ve),Ee.addEventListener("mousedown",Ve)})),Ee.focus(j)}_focusByCssSelector(Ee,j){let Ve=this._elementRef.nativeElement.querySelector(Ee);Ve&&this._forceFocus(Ve,j)}_trapFocus(){const Ee=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||Ee.focus();break;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(j=>{j||this._focusDialogContainer()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this._config.autoFocus)}}_restoreFocus(){const Ee=this._elementFocusedBeforeDialogWasOpened;if(this._config.restoreFocus&&Ee&&"function"==typeof Ee.focus){const j=(0,D.ht)(),Ve=this._elementRef.nativeElement;(!j||j===this._document.body||j===Ve||Ve.contains(j))&&(this._focusMonitor?(this._focusMonitor.focusVia(Ee,this._closeInteractionType),this._closeInteractionType=null):Ee.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus()}_containsFocus(){const Ee=this._elementRef.nativeElement,j=(0,D.ht)();return Ee===j||Ee.contains(j)}}return be.\u0275fac=function(Ee){return new(Ee||be)(f.Y36(f.SBq),f.Y36(E.qV),f.Y36(f.sBO),f.Y36(S.K0,8),f.Y36(ae),f.Y36(E.ic),f.Y36(f.R0b),f.Y36(E.tE))},be.\u0275dir=f.lG2({type:be,viewQuery:function(Ee,j){if(1&Ee&&f.Gf(e.Pl,7),2&Ee){let Ve;f.iGM(Ve=f.CRH())&&(j._portalOutlet=Ve.first)}},features:[f.qOj]}),be})(),re=(()=>{class be extends ne{constructor(){super(...arguments),this._state="enter"}_onAnimationDone({toState:Ee,totalTime:j}){"enter"===Ee?(this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:j})):"exit"===Ee&&(this._restoreFocus(),this._animationStateChanged.next({state:"closed",totalTime:j}))}_onAnimationStart({toState:Ee,totalTime:j}){"enter"===Ee?this._animationStateChanged.next({state:"opening",totalTime:j}):("exit"===Ee||"void"===Ee)&&this._animationStateChanged.next({state:"closing",totalTime:j})}_startExitAnimation(){this._state="exit",this._changeDetectorRef.markForCheck()}_initializeWithAttachedContent(){super._initializeWithAttachedContent(),this._config.delayFocusTrap||this._trapFocus()}}return be.\u0275fac=function(){let Pe;return function(j){return(Pe||(Pe=f.n5z(be)))(j||be)}}(),be.\u0275cmp=f.Xpm({type:be,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(Ee,j){1&Ee&&f.WFA("@dialogContainer.start",function(Me){return j._onAnimationStart(Me)})("@dialogContainer.done",function(Me){return j._onAnimationDone(Me)}),2&Ee&&(f.Ikx("id",j._id),f.uIk("role",j._config.role)("aria-labelledby",j._config.ariaLabel?null:j._ariaLabelledBy)("aria-label",j._config.ariaLabel)("aria-describedby",j._config.ariaDescribedBy||null),f.d8E("@dialogContainer",j._state))},features:[f.qOj],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(Ee,j){1&Ee&&f.YNc(0,Y,0,0,"ng-template",0)},directives:[e.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:[ee.dialogContainer]}}),be})(),ge=0;class q{constructor(Pe,Ee,j="mat-dialog-"+ge++){this._overlayRef=Pe,this._containerInstance=Ee,this.id=j,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new C.x,this._afterClosed=new C.x,this._beforeClosed=new C.x,this._state=0,Ee._id=j,Ee._animationStateChanged.pipe((0,h.h)(Ve=>"opened"===Ve.state),(0,L.q)(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),Ee._animationStateChanged.pipe((0,h.h)(Ve=>"closed"===Ve.state),(0,L.q)(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),Pe.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._afterClosed.next(this._result),this._afterClosed.complete(),this.componentInstance=null,this._overlayRef.dispose()}),Pe.keydownEvents().pipe((0,h.h)(Ve=>Ve.keyCode===B.hY&&!this.disableClose&&!(0,B.Vb)(Ve))).subscribe(Ve=>{Ve.preventDefault(),_e(this,"keyboard")}),Pe.backdropClick().subscribe(()=>{this.disableClose?this._containerInstance._recaptureFocus():_e(this,"mouse")})}close(Pe){this._result=Pe,this._containerInstance._animationStateChanged.pipe((0,h.h)(Ee=>"closing"===Ee.state),(0,L.q)(1)).subscribe(Ee=>{this._beforeClosed.next(Pe),this._beforeClosed.complete(),this._overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),Ee.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(Pe){let Ee=this._getPositionStrategy();return Pe&&(Pe.left||Pe.right)?Pe.left?Ee.left(Pe.left):Ee.right(Pe.right):Ee.centerHorizontally(),Pe&&(Pe.top||Pe.bottom)?Pe.top?Ee.top(Pe.top):Ee.bottom(Pe.bottom):Ee.centerVertically(),this._overlayRef.updatePosition(),this}updateSize(Pe="",Ee=""){return this._overlayRef.updateSize({width:Pe,height:Ee}),this._overlayRef.updatePosition(),this}addPanelClass(Pe){return this._overlayRef.addPanelClass(Pe),this}removePanelClass(Pe){return this._overlayRef.removePanelClass(Pe),this}getState(){return this._state}_finishDialogClose(){this._state=2,this._overlayRef.dispose()}_getPositionStrategy(){return this._overlayRef.getConfig().positionStrategy}}function _e(be,Pe,Ee){return void 0!==be._containerInstance&&(be._containerInstance._closeInteractionType=Pe),be.close(Ee)}const x=new f.OlP("MatDialogData"),i=new f.OlP("mat-dialog-default-options"),r=new f.OlP("mat-dialog-scroll-strategy"),v={provide:r,deps:[t.aV],useFactory:function c(be){return()=>be.scrollStrategies.block()}};let T=(()=>{class be{constructor(Ee,j,Ve,Me,J,Ie,ut,Oe,we,ce){this._overlay=Ee,this._injector=j,this._defaultOptions=Ve,this._parentDialog=Me,this._overlayContainer=J,this._dialogRefConstructor=ut,this._dialogContainerType=Oe,this._dialogDataToken=we,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new C.x,this._afterOpenedAtThisLevel=new C.x,this._ariaHiddenElements=new Map,this.afterAllClosed=(0,d.P)(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe((0,w.O)(void 0))),this._scrollStrategy=Ie}get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){const Ee=this._parentDialog;return Ee?Ee._getAfterAllClosed():this._afterAllClosedAtThisLevel}open(Ee,j){j=function y(be,Pe){return Object.assign(Object.assign({},Pe),be)}(j,this._defaultOptions||new ae),j.id&&this.getDialogById(j.id);const Ve=this._createOverlay(j),Me=this._attachDialogContainer(Ve,j),J=this._attachDialogContent(Ee,Me,Ve,j);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(J),J.afterClosed().subscribe(()=>this._removeOpenDialog(J)),this.afterOpened.next(J),Me._initializeWithAttachedContent(),J}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(Ee){return this.openDialogs.find(j=>j.id===Ee)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_createOverlay(Ee){const j=this._getOverlayConfig(Ee);return this._overlay.create(j)}_getOverlayConfig(Ee){const j=new t.X_({positionStrategy:this._overlay.position().global(),scrollStrategy:Ee.scrollStrategy||this._scrollStrategy(),panelClass:Ee.panelClass,hasBackdrop:Ee.hasBackdrop,direction:Ee.direction,minWidth:Ee.minWidth,minHeight:Ee.minHeight,maxWidth:Ee.maxWidth,maxHeight:Ee.maxHeight,disposeOnNavigation:Ee.closeOnNavigation});return Ee.backdropClass&&(j.backdropClass=Ee.backdropClass),j}_attachDialogContainer(Ee,j){const Me=f.zs3.create({parent:j&&j.viewContainerRef&&j.viewContainerRef.injector||this._injector,providers:[{provide:ae,useValue:j}]}),J=new e.C5(this._dialogContainerType,j.viewContainerRef,Me,j.componentFactoryResolver);return Ee.attach(J).instance}_attachDialogContent(Ee,j,Ve,Me){const J=new this._dialogRefConstructor(Ve,j,Me.id);if(Ee instanceof f.Rgc)j.attachTemplatePortal(new e.UE(Ee,null,{$implicit:Me.data,dialogRef:J}));else{const Ie=this._createInjector(Me,J,j),ut=j.attachComponentPortal(new e.C5(Ee,Me.viewContainerRef,Ie,Me.componentFactoryResolver));J.componentInstance=ut.instance}return J.updateSize(Me.width,Me.height).updatePosition(Me.position),J}_createInjector(Ee,j,Ve){const Me=Ee&&Ee.viewContainerRef&&Ee.viewContainerRef.injector,J=[{provide:this._dialogContainerType,useValue:Ve},{provide:this._dialogDataToken,useValue:Ee.data},{provide:this._dialogRefConstructor,useValue:j}];return Ee.direction&&(!Me||!Me.get(a.Is,null,f.XFs.Optional))&&J.push({provide:a.Is,useValue:{value:Ee.direction,change:(0,R.of)()}}),f.zs3.create({parent:Me||this._injector,providers:J})}_removeOpenDialog(Ee){const j=this.openDialogs.indexOf(Ee);j>-1&&(this.openDialogs.splice(j,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((Ve,Me)=>{Ve?Me.setAttribute("aria-hidden",Ve):Me.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(){const Ee=this._overlayContainer.getContainerElement();if(Ee.parentElement){const j=Ee.parentElement.children;for(let Ve=j.length-1;Ve>-1;Ve--){let Me=j[Ve];Me!==Ee&&"SCRIPT"!==Me.nodeName&&"STYLE"!==Me.nodeName&&!Me.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(Me,Me.getAttribute("aria-hidden")),Me.setAttribute("aria-hidden","true"))}}}_closeDialogs(Ee){let j=Ee.length;for(;j--;)Ee[j].close()}}return be.\u0275fac=function(Ee){f.$Z()},be.\u0275dir=f.lG2({type:be}),be})(),I=(()=>{class be extends T{constructor(Ee,j,Ve,Me,J,Ie,ut,Oe){super(Ee,j,Me,Ie,ut,J,q,re,x,Oe)}}return be.\u0275fac=function(Ee){return new(Ee||be)(f.LFG(t.aV),f.LFG(f.zs3),f.LFG(S.Ye,8),f.LFG(i,8),f.LFG(r),f.LFG(be,12),f.LFG(t.Xj),f.LFG(Z.Qb,8))},be.\u0275prov=f.Yz7({token:be,factory:be.\u0275fac}),be})(),_=(()=>{class be{constructor(Ee,j,Ve){this.dialogRef=Ee,this._elementRef=j,this._dialog=Ve,this.type="button"}ngOnInit(){this.dialogRef||(this.dialogRef=function X(be,Pe){let Ee=be.nativeElement.parentElement;for(;Ee&&!Ee.classList.contains("mat-dialog-container");)Ee=Ee.parentElement;return Ee?Pe.find(j=>j.id===Ee.id):null}(this._elementRef,this._dialog.openDialogs))}ngOnChanges(Ee){const j=Ee._matDialogClose||Ee._matDialogCloseResult;j&&(this.dialogResult=j.currentValue)}_onButtonClick(Ee){_e(this.dialogRef,0===Ee.screenX&&0===Ee.screenY?"keyboard":"mouse",this.dialogResult)}}return be.\u0275fac=function(Ee){return new(Ee||be)(f.Y36(q,8),f.Y36(f.SBq),f.Y36(I))},be.\u0275dir=f.lG2({type:be,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(Ee,j){1&Ee&&f.NdJ("click",function(Me){return j._onButtonClick(Me)}),2&Ee&&f.uIk("aria-label",j.ariaLabel||null)("type",j.type)},inputs:{ariaLabel:["aria-label","ariaLabel"],type:"type",dialogResult:["mat-dialog-close","dialogResult"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[f.TTD]}),be})(),he=(()=>{class be{}return be.\u0275fac=function(Ee){return new(Ee||be)},be.\u0275mod=f.oAB({type:be}),be.\u0275inj=f.cJS({providers:[I,v],imports:[[t.U8,e.eL,M.BQ],M.BQ]}),be})()},4834:(Be,K,p)=>{"use strict";p.d(K,{d:()=>M,t:()=>a});var t=p(5e3),e=p(3191),f=p(508);let M=(()=>{class C{constructor(){this._vertical=!1,this._inset=!1}get vertical(){return this._vertical}set vertical(R){this._vertical=(0,e.Ig)(R)}get inset(){return this._inset}set inset(R){this._inset=(0,e.Ig)(R)}}return C.\u0275fac=function(R){return new(R||C)},C.\u0275cmp=t.Xpm({type:C,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(R,h){2&R&&(t.uIk("aria-orientation",h.vertical?"vertical":"horizontal"),t.ekj("mat-divider-vertical",h.vertical)("mat-divider-horizontal",!h.vertical)("mat-divider-inset",h.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(R,h){},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}),C})(),a=(()=>{class C{}return C.\u0275fac=function(R){return new(R||C)},C.\u0275mod=t.oAB({type:C}),C.\u0275inj=t.cJS({imports:[[f.BQ],f.BQ]}),C})()},1125:(Be,K,p)=>{"use strict";p.d(K,{pp:()=>Ee,To:()=>j,ib:()=>V,u4:()=>be,yz:()=>he,yK:()=>Pe});var t=p(5e3),e=p(3191),f=p(7579),M=p(727),a=p(449);let C=0;const d=new t.OlP("CdkAccordion");let R=(()=>{class Ve{constructor(){this._stateChanges=new f.x,this._openCloseAllActions=new f.x,this.id="cdk-accordion-"+C++,this._multi=!1}get multi(){return this._multi}set multi(J){this._multi=(0,e.Ig)(J)}openAll(){this._multi&&this._openCloseAllActions.next(!0)}closeAll(){this._openCloseAllActions.next(!1)}ngOnChanges(J){this._stateChanges.next(J)}ngOnDestroy(){this._stateChanges.complete(),this._openCloseAllActions.complete()}}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[t._Bn([{provide:d,useExisting:Ve}]),t.TTD]}),Ve})(),h=0,L=(()=>{class Ve{constructor(J,Ie,ut){this.accordion=J,this._changeDetectorRef=Ie,this._expansionDispatcher=ut,this._openCloseAllSubscription=M.w0.EMPTY,this.closed=new t.vpe,this.opened=new t.vpe,this.destroyed=new t.vpe,this.expandedChange=new t.vpe,this.id="cdk-accordion-child-"+h++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=()=>{},this._removeUniqueSelectionListener=ut.listen((Oe,we)=>{this.accordion&&!this.accordion.multi&&this.accordion.id===we&&this.id!==Oe&&(this.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}get expanded(){return this._expanded}set expanded(J){J=(0,e.Ig)(J),this._expanded!==J&&(this._expanded=J,this.expandedChange.emit(J),J?(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(J){this._disabled=(0,e.Ig)(J)}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(J=>{this.disabled||(this.expanded=J)})}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(d,12),t.Y36(t.sBO),t.Y36(a.A8))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[t._Bn([{provide:d,useValue:void 0}])]}),Ve})(),w=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({}),Ve})();var D=p(7429),S=p(9808),k=p(508),E=p(5664),B=p(1884),Z=p(8675),Y=p(9300),ae=p(5698),ee=p(1159),ue=p(6360),ne=p(515),re=p(6451),ge=p(1777);const q=["body"];function _e(Ve,Me){}const x=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],i=["mat-expansion-panel-header","*","mat-action-row"];function r(Ve,Me){if(1&Ve&&t._UZ(0,"span",2),2&Ve){const J=t.oxw();t.Q6J("@indicatorRotate",J._getExpandedState())}}const u=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],c=["mat-panel-title","mat-panel-description","*"],v=new t.OlP("MAT_ACCORDION"),T="225ms cubic-bezier(0.4,0.0,0.2,1)",I={indicatorRotate:(0,ge.X$)("indicatorRotate",[(0,ge.SB)("collapsed, void",(0,ge.oB)({transform:"rotate(0deg)"})),(0,ge.SB)("expanded",(0,ge.oB)({transform:"rotate(180deg)"})),(0,ge.eR)("expanded <=> collapsed, void => collapsed",(0,ge.jt)(T))]),bodyExpansion:(0,ge.X$)("bodyExpansion",[(0,ge.SB)("collapsed, void",(0,ge.oB)({height:"0px",visibility:"hidden"})),(0,ge.SB)("expanded",(0,ge.oB)({height:"*",visibility:"visible"})),(0,ge.eR)("expanded <=> collapsed, void => collapsed",(0,ge.jt)(T))])};let y=(()=>{class Ve{constructor(J){this._template=J}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(t.Rgc))},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["ng-template","matExpansionPanelContent",""]]}),Ve})(),n=0;const _=new t.OlP("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS");let V=(()=>{class Ve extends L{constructor(J,Ie,ut,Oe,we,ce,Te){super(J,Ie,ut),this._viewContainerRef=Oe,this._animationMode=ce,this._hideToggle=!1,this.afterExpand=new t.vpe,this.afterCollapse=new t.vpe,this._inputChanges=new f.x,this._headerId="mat-expansion-panel-header-"+n++,this._bodyAnimationDone=new f.x,this.accordion=J,this._document=we,this._bodyAnimationDone.pipe((0,B.x)((xe,W)=>xe.fromState===W.fromState&&xe.toState===W.toState)).subscribe(xe=>{"void"!==xe.fromState&&("expanded"===xe.toState?this.afterExpand.emit():"collapsed"===xe.toState&&this.afterCollapse.emit())}),Te&&(this.hideToggle=Te.hideToggle)}get hideToggle(){return this._hideToggle||this.accordion&&this.accordion.hideToggle}set hideToggle(J){this._hideToggle=(0,e.Ig)(J)}get togglePosition(){return this._togglePosition||this.accordion&&this.accordion.togglePosition}set togglePosition(J){this._togglePosition=J}_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,Z.O)(null),(0,Y.h)(()=>this.expanded&&!this._portal),(0,ae.q)(1)).subscribe(()=>{this._portal=new D.UE(this._lazyContent._template,this._viewContainerRef)})}ngOnChanges(J){this._inputChanges.next(J)}ngOnDestroy(){super.ngOnDestroy(),this._bodyAnimationDone.complete(),this._inputChanges.complete()}_containsFocus(){if(this._body){const J=this._document.activeElement,Ie=this._body.nativeElement;return J===Ie||Ie.contains(J)}return!1}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(v,12),t.Y36(t.sBO),t.Y36(a.A8),t.Y36(t.s_b),t.Y36(S.K0),t.Y36(ue.Qb,8),t.Y36(_,8))},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["mat-expansion-panel"]],contentQueries:function(J,Ie,ut){if(1&J&&t.Suo(ut,y,5),2&J){let Oe;t.iGM(Oe=t.CRH())&&(Ie._lazyContent=Oe.first)}},viewQuery:function(J,Ie){if(1&J&&t.Gf(q,5),2&J){let ut;t.iGM(ut=t.CRH())&&(Ie._body=ut.first)}},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(J,Ie){2&J&&t.ekj("mat-expanded",Ie.expanded)("_mat-animation-noopable","NoopAnimations"===Ie._animationMode)("mat-expansion-panel-spacing",Ie._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[t._Bn([{provide:v,useValue:void 0}]),t.qOj,t.TTD],ngContentSelectors:i,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(J,Ie){1&J&&(t.F$t(x),t.Hsn(0),t.TgZ(1,"div",0,1),t.NdJ("@bodyExpansion.done",function(Oe){return Ie._bodyAnimationDone.next(Oe)}),t.TgZ(3,"div",2),t.Hsn(4,1),t.YNc(5,_e,0,0,"ng-template",3),t.qZA(),t.Hsn(6,2),t.qZA()),2&J&&(t.xp6(1),t.Q6J("@bodyExpansion",Ie._getExpandedState())("id",Ie.id),t.uIk("aria-labelledby",Ie._headerId),t.xp6(4),t.Q6J("cdkPortalOutlet",Ie._portal))},directives:[D.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-content[style*="visibility: hidden"] *{visibility:hidden !important}.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 .mat-button-base,.mat-action-row .mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-action-row .mat-button-base,[dir=rtl] .mat-action-row .mat-mdc-button-base{margin-left:0;margin-right:8px}\n'],encapsulation:2,data:{animation:[I.bodyExpansion]},changeDetection:0}),Ve})();class H{}const X=(0,k.sb)(H);let he=(()=>{class Ve extends X{constructor(J,Ie,ut,Oe,we,ce,Te){super(),this.panel=J,this._element=Ie,this._focusMonitor=ut,this._changeDetectorRef=Oe,this._animationMode=ce,this._parentChangeSubscription=M.w0.EMPTY;const xe=J.accordion?J.accordion._stateChanges.pipe((0,Y.h)(W=>!(!W.hideToggle&&!W.togglePosition))):ne.E;this.tabIndex=parseInt(Te||"")||0,this._parentChangeSubscription=(0,re.T)(J.opened,J.closed,xe,J._inputChanges.pipe((0,Y.h)(W=>!!(W.hideToggle||W.disabled||W.togglePosition)))).subscribe(()=>this._changeDetectorRef.markForCheck()),J.closed.pipe((0,Y.h)(()=>J._containsFocus())).subscribe(()=>ut.focusVia(Ie,"program")),we&&(this.expandedHeight=we.expandedHeight,this.collapsedHeight=we.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 J=this._isExpanded();return J&&this.expandedHeight?this.expandedHeight:!J&&this.collapsedHeight?this.collapsedHeight:null}_keydown(J){switch(J.keyCode){case ee.L_:case ee.K5:(0,ee.Vb)(J)||(J.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(J))}}focus(J,Ie){J?this._focusMonitor.focusVia(this._element,J,Ie):this._element.nativeElement.focus(Ie)}ngAfterViewInit(){this._focusMonitor.monitor(this._element).subscribe(J=>{J&&this.panel.accordion&&this.panel.accordion._handleHeaderFocus(this)})}ngOnDestroy(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)}}return Ve.\u0275fac=function(J){return new(J||Ve)(t.Y36(V,1),t.Y36(t.SBq),t.Y36(E.tE),t.Y36(t.sBO),t.Y36(_,8),t.Y36(ue.Qb,8),t.$8M("tabindex"))},Ve.\u0275cmp=t.Xpm({type:Ve,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header","mat-focus-indicator"],hostVars:15,hostBindings:function(J,Ie){1&J&&t.NdJ("click",function(){return Ie._toggle()})("keydown",function(Oe){return Ie._keydown(Oe)}),2&J&&(t.uIk("id",Ie.panel._headerId)("tabindex",Ie.tabIndex)("aria-controls",Ie._getPanelId())("aria-expanded",Ie._isExpanded())("aria-disabled",Ie.panel.disabled),t.Udp("height",Ie._getHeaderHeight()),t.ekj("mat-expanded",Ie._isExpanded())("mat-expansion-toggle-indicator-after","after"===Ie._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===Ie._getTogglePosition())("_mat-animation-noopable","NoopAnimations"===Ie._animationMode))},inputs:{tabIndex:"tabIndex",expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},features:[t.qOj],ngContentSelectors:c,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(J,Ie){1&J&&(t.F$t(u),t.TgZ(0,"span",0),t.Hsn(1),t.Hsn(2,1),t.Hsn(3,2),t.qZA(),t.YNc(4,r,1,1,"span",1)),2&J&&(t.xp6(4),t.Q6J("ngIf",Ie._showToggle()))},directives:[S.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;align-items:center}[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:""}.cdk-high-contrast-active .mat-expansion-panel-content{border-top:1px solid;border-top-left-radius:0;border-top-right-radius:0}\n'],encapsulation:2,data:{animation:[I.indicatorRotate]},changeDetection:0}),Ve})(),be=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),Ve})(),Pe=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275dir=t.lG2({type:Ve,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),Ve})(),Ee=(()=>{class Ve extends R{constructor(){super(...arguments),this._ownHeaders=new t.n_E,this._hideToggle=!1,this.displayMode="default",this.togglePosition="after"}get hideToggle(){return this._hideToggle}set hideToggle(J){this._hideToggle=(0,e.Ig)(J)}ngAfterContentInit(){this._headers.changes.pipe((0,Z.O)(this._headers)).subscribe(J=>{this._ownHeaders.reset(J.filter(Ie=>Ie.panel.accordion===this)),this._ownHeaders.notifyOnChanges()}),this._keyManager=new E.Em(this._ownHeaders).withWrap().withHomeAndEnd()}_handleHeaderKeydown(J){this._keyManager.onKeydown(J)}_handleHeaderFocus(J){this._keyManager.updateActiveItem(J)}ngOnDestroy(){super.ngOnDestroy(),this._ownHeaders.destroy()}}return Ve.\u0275fac=function(){let Me;return function(Ie){return(Me||(Me=t.n5z(Ve)))(Ie||Ve)}}(),Ve.\u0275dir=t.lG2({type:Ve,selectors:[["mat-accordion"]],contentQueries:function(J,Ie,ut){if(1&J&&t.Suo(ut,he,5),2&J){let Oe;t.iGM(Oe=t.CRH())&&(Ie._headers=Oe)}},hostAttrs:[1,"mat-accordion"],hostVars:2,hostBindings:function(J,Ie){2&J&&t.ekj("mat-accordion-multi",Ie.multi)},inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[t._Bn([{provide:v,useExisting:Ve}]),t.qOj]}),Ve})(),j=(()=>{class Ve{}return Ve.\u0275fac=function(J){return new(J||Ve)},Ve.\u0275mod=t.oAB({type:Ve}),Ve.\u0275inj=t.cJS({imports:[[S.ez,k.BQ,w,D.eL]]}),Ve})()},7322:(Be,K,p)=>{"use strict";p.d(K,{Eo:()=>n,G_:()=>ce,KE:()=>Te,R9:()=>Me,TO:()=>I,bx:()=>he,lN:()=>xe});var t=p(7144),e=p(9808),f=p(5e3),M=p(508),a=p(3191),C=p(7579),d=p(6451),R=p(4968),h=p(8675),L=p(2722),w=p(5698),D=p(1777),S=p(6360),k=p(226),E=p(925);const B=["connectionContainer"],Z=["inputContainer"],Y=["label"];function ae(W,te){1&W&&(f.ynx(0),f.TgZ(1,"div",14),f._UZ(2,"div",15)(3,"div",16)(4,"div",17),f.qZA(),f.TgZ(5,"div",18),f._UZ(6,"div",15)(7,"div",16)(8,"div",17),f.qZA(),f.BQk())}function ee(W,te){if(1&W){const Ce=f.EpF();f.TgZ(0,"div",19),f.NdJ("cdkObserveContent",function(){return f.CHM(Ce),f.oxw().updateOutlineGap()}),f.Hsn(1,1),f.qZA()}if(2&W){const Ce=f.oxw();f.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)}}function ue(W,te){if(1&W&&(f.ynx(0),f.Hsn(1,2),f.TgZ(2,"span"),f._uU(3),f.qZA(),f.BQk()),2&W){const Ce=f.oxw(2);f.xp6(3),f.Oqu(Ce._control.placeholder)}}function ne(W,te){1&W&&f.Hsn(0,3,["*ngSwitchCase","true"])}function re(W,te){1&W&&(f.TgZ(0,"span",23),f._uU(1," *"),f.qZA())}function ge(W,te){if(1&W){const Ce=f.EpF();f.TgZ(0,"label",20,21),f.NdJ("cdkObserveContent",function(){return f.CHM(Ce),f.oxw().updateOutlineGap()}),f.YNc(2,ue,4,1,"ng-container",12),f.YNc(3,ne,1,0,"ng-content",12),f.YNc(4,re,2,0,"span",22),f.qZA()}if(2&W){const Ce=f.oxw();f.ekj("mat-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-form-field-empty",Ce._control.empty&&!Ce._shouldAlwaysFloat())("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color),f.Q6J("cdkObserveContentDisabled","outline"!=Ce.appearance)("id",Ce._labelId)("ngSwitch",Ce._hasLabel()),f.uIk("for",Ce._control.id)("aria-owns",Ce._control.id),f.xp6(2),f.Q6J("ngSwitchCase",!1),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngIf",!Ce.hideRequiredMarker&&Ce._control.required&&!Ce._control.disabled)}}function q(W,te){1&W&&(f.TgZ(0,"div",24),f.Hsn(1,4),f.qZA())}function _e(W,te){if(1&W&&(f.TgZ(0,"div",25),f._UZ(1,"span",26),f.qZA()),2&W){const Ce=f.oxw();f.xp6(1),f.ekj("mat-accent","accent"==Ce.color)("mat-warn","warn"==Ce.color)}}function x(W,te){if(1&W&&(f.TgZ(0,"div"),f.Hsn(1,5),f.qZA()),2&W){const Ce=f.oxw();f.Q6J("@transitionMessages",Ce._subscriptAnimationState)}}function i(W,te){if(1&W&&(f.TgZ(0,"div",30),f._uU(1),f.qZA()),2&W){const Ce=f.oxw(2);f.Q6J("id",Ce._hintLabelId),f.xp6(1),f.Oqu(Ce.hintLabel)}}function r(W,te){if(1&W&&(f.TgZ(0,"div",27),f.YNc(1,i,2,2,"div",28),f.Hsn(2,6),f._UZ(3,"div",29),f.Hsn(4,7),f.qZA()),2&W){const Ce=f.oxw();f.Q6J("@transitionMessages",Ce._subscriptAnimationState),f.xp6(1),f.Q6J("ngIf",Ce.hintLabel)}}const u=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],c=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let v=0;const T=new f.OlP("MatError");let I=(()=>{class W{constructor(Ce,fe){this.id="mat-error-"+v++,Ce||fe.nativeElement.setAttribute("aria-live","polite")}}return W.\u0275fac=function(Ce){return new(Ce||W)(f.$8M("aria-live"),f.Y36(f.SBq))},W.\u0275dir=f.lG2({type:W,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(Ce,fe){2&Ce&&f.uIk("id",fe.id)},inputs:{id:"id"},features:[f._Bn([{provide:T,useExisting:W}])]}),W})();const y={transitionMessages:(0,D.X$)("transitionMessages",[(0,D.SB)("enter",(0,D.oB)({opacity:1,transform:"translateY(0%)"})),(0,D.eR)("void => enter",[(0,D.oB)({opacity:0,transform:"translateY(-5px)"}),(0,D.jt)("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let n=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W}),W})(),H=0;const X=new f.OlP("MatHint");let he=(()=>{class W{constructor(){this.align="start",this.id="mat-hint-"+H++}}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(Ce,fe){2&Ce&&(f.uIk("id",fe.id)("align",null),f.ekj("mat-form-field-hint-end","end"===fe.align))},inputs:{align:"align",id:"id"},features:[f._Bn([{provide:X,useExisting:W}])]}),W})(),be=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-label"]]}),W})(),Pe=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["mat-placeholder"]]}),W})();const Ee=new f.OlP("MatPrefix"),Ve=new f.OlP("MatSuffix");let Me=(()=>{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275dir=f.lG2({type:W,selectors:[["","matSuffix",""]],features:[f._Bn([{provide:Ve,useExisting:W}])]}),W})(),J=0;const Oe=(0,M.pj)(class{constructor(W){this._elementRef=W}},"primary"),we=new f.OlP("MAT_FORM_FIELD_DEFAULT_OPTIONS"),ce=new f.OlP("MatFormField");let Te=(()=>{class W extends Oe{constructor(Ce,fe,Q,pt,tt,Dt,di){super(Ce),this._changeDetectorRef=fe,this._dir=Q,this._defaults=pt,this._platform=tt,this._ngZone=Dt,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new C.x,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+J++,this._labelId="mat-form-field-label-"+J++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==di,this.appearance=pt&&pt.appearance?pt.appearance:"legacy",this._hideRequiredMarker=!(!pt||null==pt.hideRequiredMarker)&&pt.hideRequiredMarker}get appearance(){return this._appearance}set appearance(Ce){const fe=this._appearance;this._appearance=Ce||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&fe!==Ce&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(Ce){this._hideRequiredMarker=(0,a.Ig)(Ce)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(Ce){this._hintLabel=Ce,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(Ce){Ce!==this._floatLabel&&(this._floatLabel=Ce||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(Ce){this._explicitFormFieldControl=Ce}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const Ce=this._control;Ce.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${Ce.controlType}`),Ce.stateChanges.pipe((0,h.O)(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),Ce.ngControl&&Ce.ngControl.valueChanges&&Ce.ngControl.valueChanges.pipe((0,L.R)(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe((0,L.R)(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),(0,d.T)(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe((0,h.O)(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe((0,L.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(Ce){const fe=this._control?this._control.ngControl:null;return fe&&fe[Ce]}_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,R.R)(this._label.nativeElement,"transitionend").pipe((0,w.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 Ce=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&Ce.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const fe=this._hintChildren?this._hintChildren.find(pt=>"start"===pt.align):null,Q=this._hintChildren?this._hintChildren.find(pt=>"end"===pt.align):null;fe?Ce.push(fe.id):this._hintLabel&&Ce.push(this._hintLabelId),Q&&Ce.push(Q.id)}else this._errorChildren&&Ce.push(...this._errorChildren.map(fe=>fe.id));this._control.setDescribedByIds(Ce)}}_validateControlChild(){}updateOutlineGap(){const Ce=this._label?this._label.nativeElement:null,fe=this._connectionContainerRef.nativeElement,Q=".mat-form-field-outline-start",pt=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!Ce||!Ce.children.length||!Ce.textContent.trim()){const Zt=fe.querySelectorAll(`${Q}, ${pt}`);for(let ui=0;ui0?.75*gt+10:0}for(let Zt=0;Zt{class W{}return W.\u0275fac=function(Ce){return new(Ce||W)},W.\u0275mod=f.oAB({type:W}),W.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.Q8],M.BQ]}),W})()},3954:(Be,K,p)=>{"use strict";p.d(K,{DX:()=>D,Il:()=>q,N6:()=>_e});var t=p(5e3),e=p(508),f=p(3191),M=p(226);const a=["*"];class h{constructor(){this.columnIndex=0,this.rowIndex=0}get rowCount(){return this.rowIndex+1}get rowspan(){const r=Math.max(...this.tracker);return r>1?this.rowCount+r-1:this.rowCount}update(r,u){this.columnIndex=0,this.rowIndex=0,this.tracker=new Array(r),this.tracker.fill(0,0,this.tracker.length),this.positions=u.map(c=>this._trackTile(c))}_trackTile(r){const u=this._findMatchingGap(r.colspan);return this._markTilePosition(u,r),this.columnIndex=u+r.colspan,new L(this.rowIndex,u)}_findMatchingGap(r){let u=-1,c=-1;do{this.columnIndex+r>this.tracker.length?(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)):(u=this.tracker.indexOf(0,this.columnIndex),-1!=u?(c=this._findGapEndIndex(u),this.columnIndex=u+1):(this._nextRow(),u=this.tracker.indexOf(0,this.columnIndex),c=this._findGapEndIndex(u)))}while(c-u{class i{constructor(u,c){this._element=u,this._gridList=c,this._rowspan=1,this._colspan=1}get rowspan(){return this._rowspan}set rowspan(u){this._rowspan=Math.round((0,f.su)(u))}get colspan(){return this._colspan}set colspan(u){this._colspan=Math.round((0,f.su)(u))}_setStyle(u,c){this._element.nativeElement.style[u]=c}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(w,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-tile"]],hostAttrs:[1,"mat-grid-tile"],hostVars:2,hostBindings:function(u,c){2&u&&t.uIk("rowspan",c.rowspan)("colspan",c.colspan)},inputs:{rowspan:"rowspan",colspan:"colspan"},exportAs:["matGridTile"],ngContentSelectors:a,decls:2,vars:0,consts:[[1,"mat-grid-tile-content"]],template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div",0),t.Hsn(1),t.qZA())},styles:[".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"],encapsulation:2,changeDetection:0}),i})();const Z=/^-?\d+((\.\d+)?[A-Za-z%$]?)+$/;class Y{constructor(){this._rows=0,this._rowspan=0}init(r,u,c,v){this._gutterSize=re(r),this._rows=u.rowCount,this._rowspan=u.rowspan,this._cols=c,this._direction=v}getBaseTileSize(r,u){return`(${r}% - (${this._gutterSize} * ${u}))`}getTilePosition(r,u){return 0===u?"0":ne(`(${r} + ${this._gutterSize}) * ${u}`)}getTileSize(r,u){return`(${r} * ${u}) + (${u-1} * ${this._gutterSize})`}setStyle(r,u,c){let v=100/this._cols,T=(this._cols-1)/this._cols;this.setColStyles(r,c,v,T),this.setRowStyles(r,u,v,T)}setColStyles(r,u,c,v){let T=this.getBaseTileSize(c,v);r._setStyle("rtl"===this._direction?"right":"left",this.getTilePosition(T,u)),r._setStyle("width",ne(this.getTileSize(T,r.colspan)))}getGutterSpan(){return`${this._gutterSize} * (${this._rowspan} - 1)`}getTileSpan(r){return`${this._rowspan} * ${this.getTileSize(r,1)}`}getComputedHeight(){return null}}class ae extends Y{constructor(r){super(),this.fixedRowHeight=r}init(r,u,c,v){super.init(r,u,c,v),this.fixedRowHeight=re(this.fixedRowHeight),Z.test(this.fixedRowHeight)}setRowStyles(r,u){r._setStyle("top",this.getTilePosition(this.fixedRowHeight,u)),r._setStyle("height",ne(this.getTileSize(this.fixedRowHeight,r.rowspan)))}getComputedHeight(){return["height",ne(`${this.getTileSpan(this.fixedRowHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["height",null]),r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}class ee extends Y{constructor(r){super(),this._parseRatio(r)}setRowStyles(r,u,c,v){this.baseTileHeight=this.getBaseTileSize(c/this.rowHeightRatio,v),r._setStyle("marginTop",this.getTilePosition(this.baseTileHeight,u)),r._setStyle("paddingTop",ne(this.getTileSize(this.baseTileHeight,r.rowspan)))}getComputedHeight(){return["paddingBottom",ne(`${this.getTileSpan(this.baseTileHeight)} + ${this.getGutterSpan()}`)]}reset(r){r._setListStyle(["paddingBottom",null]),r._tiles.forEach(u=>{u._setStyle("marginTop",null),u._setStyle("paddingTop",null)})}_parseRatio(r){const u=r.split(":");this.rowHeightRatio=parseFloat(u[0])/parseFloat(u[1])}}class ue extends Y{setRowStyles(r,u){let T=this.getBaseTileSize(100/this._rowspan,(this._rows-1)/this._rows);r._setStyle("top",this.getTilePosition(T,u)),r._setStyle("height",ne(this.getTileSize(T,r.rowspan)))}reset(r){r._tiles&&r._tiles.forEach(u=>{u._setStyle("top",null),u._setStyle("height",null)})}}function ne(i){return`calc(${i})`}function re(i){return i.match(/([A-Za-z%]+)$/)?i:`${i}px`}let q=(()=>{class i{constructor(u,c){this._element=u,this._dir=c,this._gutter="1px"}get cols(){return this._cols}set cols(u){this._cols=Math.max(1,Math.round((0,f.su)(u)))}get gutterSize(){return this._gutter}set gutterSize(u){this._gutter=`${null==u?"":u}`}get rowHeight(){return this._rowHeight}set rowHeight(u){const c=`${null==u?"":u}`;c!==this._rowHeight&&(this._rowHeight=c,this._setTileStyler(this._rowHeight))}ngOnInit(){this._checkCols(),this._checkRowHeight()}ngAfterContentChecked(){this._layoutTiles()}_checkCols(){}_checkRowHeight(){this._rowHeight||this._setTileStyler("1:1")}_setTileStyler(u){this._tileStyler&&this._tileStyler.reset(this),this._tileStyler="fit"===u?new ue:u&&u.indexOf(":")>-1?new ee(u):new ae(u)}_layoutTiles(){this._tileCoordinator||(this._tileCoordinator=new h);const u=this._tileCoordinator,c=this._tiles.filter(T=>!T._gridList||T._gridList===this),v=this._dir?this._dir.value:"ltr";this._tileCoordinator.update(this.cols,c),this._tileStyler.init(this.gutterSize,u,this.cols,v),c.forEach((T,I)=>{const y=u.positions[I];this._tileStyler.setStyle(T,y.row,y.col)}),this._setListStyle(this._tileStyler.getComputedHeight())}_setListStyle(u){u&&(this._element.nativeElement.style[u[0]]=u[1])}}return i.\u0275fac=function(u){return new(u||i)(t.Y36(t.SBq),t.Y36(M.Is,8))},i.\u0275cmp=t.Xpm({type:i,selectors:[["mat-grid-list"]],contentQueries:function(u,c,v){if(1&u&&t.Suo(v,D,5),2&u){let T;t.iGM(T=t.CRH())&&(c._tiles=T)}},hostAttrs:[1,"mat-grid-list"],hostVars:1,hostBindings:function(u,c){2&u&&t.uIk("cols",c.cols)},inputs:{cols:"cols",gutterSize:"gutterSize",rowHeight:"rowHeight"},exportAs:["matGridList"],features:[t._Bn([{provide:w,useExisting:i}])],ngContentSelectors:a,decls:2,vars:0,template:function(u,c){1&u&&(t.F$t(),t.TgZ(0,"div"),t.Hsn(1),t.qZA())},styles:[".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"],encapsulation:2,changeDetection:0}),i})(),_e=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=t.oAB({type:i}),i.\u0275inj=t.cJS({imports:[[e.uc,e.BQ],e.uc,e.BQ]}),i})()},5245:(Be,K,p)=>{"use strict";p.d(K,{Hw:()=>V,Ps:()=>N});var t=p(5e3),e=p(508),f=p(3191),M=p(9808),a=p(9646),C=p(2843),d=p(4128),R=p(727),h=p(8505),L=p(4004),w=p(262),D=p(8746),S=p(3099),k=p(5698),E=p(8138),B=p(2313);const Z=["*"];let Y;function ee(H){var X;return(null===(X=function ae(){if(void 0===Y&&(Y=null,"undefined"!=typeof window)){const H=window;void 0!==H.trustedTypes&&(Y=H.trustedTypes.createPolicy("angular#components",{createHTML:X=>X}))}return Y}())||void 0===X?void 0:X.createHTML(H))||H}function ue(H){return Error(`Unable to find icon with the name "${H}"`)}function re(H){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${H}".`)}function ge(H){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${H}".`)}class q{constructor(X,he,be){this.url=X,this.svgText=he,this.options=be}}let _e=(()=>{class H{constructor(he,be,Pe,Ee){this._httpClient=he,this._sanitizer=be,this._errorHandler=Ee,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=Pe}addSvgIcon(he,be,Pe){return this.addSvgIconInNamespace("",he,be,Pe)}addSvgIconLiteral(he,be,Pe){return this.addSvgIconLiteralInNamespace("",he,be,Pe)}addSvgIconInNamespace(he,be,Pe,Ee){return this._addSvgIconConfig(he,be,new q(Pe,null,Ee))}addSvgIconResolver(he){return this._resolvers.push(he),this}addSvgIconLiteralInNamespace(he,be,Pe,Ee){const j=this._sanitizer.sanitize(t.q3G.HTML,Pe);if(!j)throw ge(Pe);const Ve=ee(j);return this._addSvgIconConfig(he,be,new q("",Ve,Ee))}addSvgIconSet(he,be){return this.addSvgIconSetInNamespace("",he,be)}addSvgIconSetLiteral(he,be){return this.addSvgIconSetLiteralInNamespace("",he,be)}addSvgIconSetInNamespace(he,be,Pe){return this._addSvgIconSetConfig(he,new q(be,null,Pe))}addSvgIconSetLiteralInNamespace(he,be,Pe){const Ee=this._sanitizer.sanitize(t.q3G.HTML,be);if(!Ee)throw ge(be);const j=ee(Ee);return this._addSvgIconSetConfig(he,new q("",j,Pe))}registerFontClassAlias(he,be=he){return this._fontCssClassesByAlias.set(he,be),this}classNameForFontAlias(he){return this._fontCssClassesByAlias.get(he)||he}setDefaultFontSetClass(he){return this._defaultFontSetClass=he,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(he){const be=this._sanitizer.sanitize(t.q3G.RESOURCE_URL,he);if(!be)throw re(he);const Pe=this._cachedIconsByUrl.get(be);return Pe?(0,a.of)(r(Pe)):this._loadSvgIconFromConfig(new q(he,null)).pipe((0,h.b)(Ee=>this._cachedIconsByUrl.set(be,Ee)),(0,L.U)(Ee=>r(Ee)))}getNamedSvgIcon(he,be=""){const Pe=u(be,he);let Ee=this._svgIconConfigs.get(Pe);if(Ee)return this._getSvgFromConfig(Ee);if(Ee=this._getIconConfigFromResolvers(be,he),Ee)return this._svgIconConfigs.set(Pe,Ee),this._getSvgFromConfig(Ee);const j=this._iconSetConfigs.get(be);return j?this._getSvgFromIconSetConfigs(he,j):(0,C._)(ue(Pe))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(he){return he.svgText?(0,a.of)(r(this._svgElementFromConfig(he))):this._loadSvgIconFromConfig(he).pipe((0,L.U)(be=>r(be)))}_getSvgFromIconSetConfigs(he,be){const Pe=this._extractIconWithNameFromAnySet(he,be);if(Pe)return(0,a.of)(Pe);const Ee=be.filter(j=>!j.svgText).map(j=>this._loadSvgIconSetFromConfig(j).pipe((0,w.K)(Ve=>{const J=`Loading icon set URL: ${this._sanitizer.sanitize(t.q3G.RESOURCE_URL,j.url)} failed: ${Ve.message}`;return this._errorHandler.handleError(new Error(J)),(0,a.of)(null)})));return(0,d.D)(Ee).pipe((0,L.U)(()=>{const j=this._extractIconWithNameFromAnySet(he,be);if(!j)throw ue(he);return j}))}_extractIconWithNameFromAnySet(he,be){for(let Pe=be.length-1;Pe>=0;Pe--){const Ee=be[Pe];if(Ee.svgText&&Ee.svgText.toString().indexOf(he)>-1){const j=this._svgElementFromConfig(Ee),Ve=this._extractSvgIconFromSet(j,he,Ee.options);if(Ve)return Ve}}return null}_loadSvgIconFromConfig(he){return this._fetchIcon(he).pipe((0,h.b)(be=>he.svgText=be),(0,L.U)(()=>this._svgElementFromConfig(he)))}_loadSvgIconSetFromConfig(he){return he.svgText?(0,a.of)(null):this._fetchIcon(he).pipe((0,h.b)(be=>he.svgText=be))}_extractSvgIconFromSet(he,be,Pe){const Ee=he.querySelector(`[id="${be}"]`);if(!Ee)return null;const j=Ee.cloneNode(!0);if(j.removeAttribute("id"),"svg"===j.nodeName.toLowerCase())return this._setSvgAttributes(j,Pe);if("symbol"===j.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(j),Pe);const Ve=this._svgElementFromString(ee(""));return Ve.appendChild(j),this._setSvgAttributes(Ve,Pe)}_svgElementFromString(he){const be=this._document.createElement("DIV");be.innerHTML=he;const Pe=be.querySelector("svg");if(!Pe)throw Error(" tag not found");return Pe}_toSvgElement(he){const be=this._svgElementFromString(ee("")),Pe=he.attributes;for(let Ee=0;Eeee(Ie)),(0,D.x)(()=>this._inProgressUrlFetches.delete(Ve)),(0,S.B)());return this._inProgressUrlFetches.set(Ve,J),J}_addSvgIconConfig(he,be,Pe){return this._svgIconConfigs.set(u(he,be),Pe),this}_addSvgIconSetConfig(he,be){const Pe=this._iconSetConfigs.get(he);return Pe?Pe.push(be):this._iconSetConfigs.set(he,[be]),this}_svgElementFromConfig(he){if(!he.svgElement){const be=this._svgElementFromString(he.svgText);this._setSvgAttributes(be,he.options),he.svgElement=be}return he.svgElement}_getIconConfigFromResolvers(he,be){for(let Pe=0;PeX?X.pathname+X.search:""}}}),y=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],n=y.map(H=>`[${H}]`).join(", "),_=/^url\(['"]?#(.*?)['"]?\)$/;let V=(()=>{class H extends v{constructor(he,be,Pe,Ee,j){super(he),this._iconRegistry=be,this._location=Ee,this._errorHandler=j,this._inline=!1,this._currentIconFetch=R.w0.EMPTY,Pe||he.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(he){this._inline=(0,f.Ig)(he)}get svgIcon(){return this._svgIcon}set svgIcon(he){he!==this._svgIcon&&(he?this._updateSvgIcon(he):this._svgIcon&&this._clearSvgElement(),this._svgIcon=he)}get fontSet(){return this._fontSet}set fontSet(he){const be=this._cleanupFontValue(he);be!==this._fontSet&&(this._fontSet=be,this._updateFontIconClasses())}get fontIcon(){return this._fontIcon}set fontIcon(he){const be=this._cleanupFontValue(he);be!==this._fontIcon&&(this._fontIcon=be,this._updateFontIconClasses())}_splitIconName(he){if(!he)return["",""];const be=he.split(":");switch(be.length){case 1:return["",be[0]];case 2:return be;default:throw Error(`Invalid icon name: "${he}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){const he=this._elementsWithExternalReferences;if(he&&he.size){const be=this._location.getPathname();be!==this._previousPath&&(this._previousPath=be,this._prependPathToReferences(be))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(he){this._clearSvgElement();const be=this._location.getPathname();this._previousPath=be,this._cacheChildrenWithExternalReferences(he),this._prependPathToReferences(be),this._elementRef.nativeElement.appendChild(he)}_clearSvgElement(){const he=this._elementRef.nativeElement;let be=he.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();be--;){const Pe=he.childNodes[be];(1!==Pe.nodeType||"svg"===Pe.nodeName.toLowerCase())&&Pe.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const he=this._elementRef.nativeElement,be=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();be!=this._previousFontSetClass&&(this._previousFontSetClass&&he.classList.remove(this._previousFontSetClass),be&&he.classList.add(be),this._previousFontSetClass=be),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&he.classList.remove(this._previousFontIconClass),this.fontIcon&&he.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(he){return"string"==typeof he?he.trim().split(" ")[0]:he}_prependPathToReferences(he){const be=this._elementsWithExternalReferences;be&&be.forEach((Pe,Ee)=>{Pe.forEach(j=>{Ee.setAttribute(j.name,`url('${he}#${j.value}')`)})})}_cacheChildrenWithExternalReferences(he){const be=he.querySelectorAll(n),Pe=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let Ee=0;Ee{const Ve=be[Ee],Me=Ve.getAttribute(j),J=Me?Me.match(_):null;if(J){let Ie=Pe.get(Ve);Ie||(Ie=[],Pe.set(Ve,Ie)),Ie.push({name:j,value:J[1]})}})}_updateSvgIcon(he){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),he){const[be,Pe]=this._splitIconName(he);be&&(this._svgNamespace=be),Pe&&(this._svgName=Pe),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(Pe,be).pipe((0,k.q)(1)).subscribe(Ee=>this._setSvgElement(Ee),Ee=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${be}:${Pe}! ${Ee.message}`))})}}}return H.\u0275fac=function(he){return new(he||H)(t.Y36(t.SBq),t.Y36(_e),t.$8M("aria-hidden"),t.Y36(T),t.Y36(t.qLn))},H.\u0275cmp=t.Xpm({type:H,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(he,be){2&he&&(t.uIk("data-mat-icon-type",be._usingFontIcon()?"font":"svg")("data-mat-icon-name",be._svgName||be.fontIcon)("data-mat-icon-namespace",be._svgNamespace||be.fontSet),t.ekj("mat-icon-inline",be.inline)("mat-icon-no-color","primary"!==be.color&&"accent"!==be.color&&"warn"!==be.color))},inputs:{color:"color",inline:"inline",svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],features:[t.qOj],ngContentSelectors:Z,decls:1,vars:0,template:function(he,be){1&he&&(t.F$t(),t.Hsn(0))},styles:[".mat-icon{-webkit-user-select:none;user-select:none;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}),H})(),N=(()=>{class H{}return H.\u0275fac=function(he){return new(he||H)},H.\u0275mod=t.oAB({type:H}),H.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),H})()},7531:(Be,K,p)=>{"use strict";p.d(K,{Jk:()=>E,Nt:()=>ae,c:()=>ee});var t=p(3191),e=p(925),f=p(5e3),M=p(3075),a=p(508),C=p(7322),d=p(7579),R=p(515);const h=(0,e.i$)({passive:!0});let L=(()=>{class ue{constructor(re,ge){this._platform=re,this._ngZone=ge,this._monitoredElements=new Map}monitor(re){if(!this._platform.isBrowser)return R.E;const ge=(0,t.fI)(re),q=this._monitoredElements.get(ge);if(q)return q.subject;const _e=new d.x,x="cdk-text-field-autofilled",i=r=>{"cdk-text-field-autofill-start"!==r.animationName||ge.classList.contains(x)?"cdk-text-field-autofill-end"===r.animationName&&ge.classList.contains(x)&&(ge.classList.remove(x),this._ngZone.run(()=>_e.next({target:r.target,isAutofilled:!1}))):(ge.classList.add(x),this._ngZone.run(()=>_e.next({target:r.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{ge.addEventListener("animationstart",i,h),ge.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(ge,{subject:_e,unlisten:()=>{ge.removeEventListener("animationstart",i,h)}}),_e}stopMonitoring(re){const ge=(0,t.fI)(re),q=this._monitoredElements.get(ge);q&&(q.unlisten(),q.subject.complete(),ge.classList.remove("cdk-text-field-autofill-monitored"),ge.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(ge))}ngOnDestroy(){this._monitoredElements.forEach((re,ge)=>this.stopMonitoring(ge))}}return ue.\u0275fac=function(re){return new(re||ue)(f.LFG(e.t4),f.LFG(f.R0b))},ue.\u0275prov=f.Yz7({token:ue,factory:ue.\u0275fac,providedIn:"root"}),ue})(),S=(()=>{class ue{}return ue.\u0275fac=function(re){return new(re||ue)},ue.\u0275mod=f.oAB({type:ue}),ue.\u0275inj=f.cJS({}),ue})();const E=new f.OlP("MAT_INPUT_VALUE_ACCESSOR"),B=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Z=0;const Y=(0,a.FD)(class{constructor(ue,ne,re,ge){this._defaultErrorStateMatcher=ue,this._parentForm=ne,this._parentFormGroup=re,this.ngControl=ge}});let ae=(()=>{class ue extends Y{constructor(re,ge,q,_e,x,i,r,u,c,v){super(i,_e,x,q),this._elementRef=re,this._platform=ge,this._autofillMonitor=u,this._formField=v,this._uid="mat-input-"+Z++,this.focused=!1,this.stateChanges=new d.x,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(y=>(0,e.qK)().has(y)),this._iOSKeyupListener=y=>{const n=y.target;!n.value&&0===n.selectionStart&&0===n.selectionEnd&&(n.setSelectionRange(1,1),n.setSelectionRange(0,0))};const T=this._elementRef.nativeElement,I=T.nodeName.toLowerCase();this._inputValueAccessor=r||T,this._previousNativeValue=this.value,this.id=this.id,ge.IOS&&c.runOutsideAngular(()=>{re.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===I,this._isTextarea="textarea"===I,this._isInFormField=!!v,this._isNativeSelect&&(this.controlType=T.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(re){this._disabled=(0,t.Ig)(re),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(re){this._id=re||this._uid}get required(){var re,ge,q,_e;return null!==(_e=null!==(re=this._required)&&void 0!==re?re:null===(q=null===(ge=this.ngControl)||void 0===ge?void 0:ge.control)||void 0===q?void 0:q.hasValidator(M.kI.required))&&void 0!==_e&&_e}set required(re){this._required=(0,t.Ig)(re)}get type(){return this._type}set type(re){this._type=re||"text",this._validateType(),!this._isTextarea&&(0,e.qK)().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(re){re!==this.value&&(this._inputValueAccessor.value=re,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(re){this._readonly=(0,t.Ig)(re)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(re=>{this.autofilled=re.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(re){this._elementRef.nativeElement.focus(re)}_focusChanged(re){re!==this.focused&&(this.focused=re,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var re,ge;const q=(null===(ge=null===(re=this._formField)||void 0===re?void 0:re._hideControlPlaceholder)||void 0===ge?void 0:ge.call(re))?null:this.placeholder;if(q!==this._previousPlaceholder){const _e=this._elementRef.nativeElement;this._previousPlaceholder=q,q?_e.setAttribute("placeholder",q):_e.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const re=this._elementRef.nativeElement.value;this._previousNativeValue!==re&&(this._previousNativeValue=re,this.stateChanges.next())}_validateType(){B.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let re=this._elementRef.nativeElement.validity;return re&&re.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const re=this._elementRef.nativeElement,ge=re.options[0];return this.focused||re.multiple||!this.empty||!!(re.selectedIndex>-1&&ge&&ge.label)}return this.focused||!this.empty}setDescribedByIds(re){re.length?this._elementRef.nativeElement.setAttribute("aria-describedby",re.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const re=this._elementRef.nativeElement;return this._isNativeSelect&&(re.multiple||re.size>1)}}return ue.\u0275fac=function(re){return new(re||ue)(f.Y36(f.SBq),f.Y36(e.t4),f.Y36(M.a5,10),f.Y36(M.F,8),f.Y36(M.sg,8),f.Y36(a.rD),f.Y36(E,10),f.Y36(L),f.Y36(f.R0b),f.Y36(C.G_,8))},ue.\u0275dir=f.lG2({type:ue,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(re,ge){1&re&&f.NdJ("focus",function(){return ge._focusChanged(!0)})("blur",function(){return ge._focusChanged(!1)})("input",function(){return ge._onInput()}),2&re&&(f.Ikx("disabled",ge.disabled)("required",ge.required),f.uIk("id",ge.id)("data-placeholder",ge.placeholder)("name",ge.name||null)("readonly",ge.readonly&&!ge._isNativeSelect||null)("aria-invalid",ge.empty&&ge.required?null:ge.errorState)("aria-required",ge.required),f.ekj("mat-input-server",ge._isServer)("mat-native-select-inline",ge._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[f._Bn([{provide:C.Eo,useExisting:ue}]),f.qOj,f.TTD]}),ue})(),ee=(()=>{class ue{}return ue.\u0275fac=function(re){return new(re||ue)},ue.\u0275mod=f.oAB({type:ue}),ue.\u0275inj=f.cJS({providers:[a.rD],imports:[[S,C.lN,a.BQ],S,C.lN]}),ue})()},4623:(Be,K,p)=>{"use strict";p.d(K,{Tg:()=>u,i$:()=>_e,ie:()=>_});var t=p(9808),e=p(5e3),f=p(508),M=p(3191),a=p(7579),C=p(2722),D=(p(8675),p(5664),p(449),p(1159),p(3075),p(4834));const S=["*"],E=[[["","mat-list-avatar",""],["","mat-list-icon",""],["","matListAvatar",""],["","matListIcon",""]],[["","mat-line",""],["","matLine",""]],"*"],B=["[mat-list-avatar], [mat-list-icon], [matListAvatar], [matListIcon]","[mat-line], [matLine]","*"],ue=(0,f.Id)((0,f.Kr)(class{})),ne=(0,f.Kr)(class{}),re=new e.OlP("MatList"),ge=new e.OlP("MatNavList");let _e=(()=>{class V extends ue{constructor(H){super(),this._elementRef=H,this._stateChanges=new a.x,"action-list"===this._getListType()&&H.nativeElement.classList.add("mat-action-list")}_getListType(){const H=this._elementRef.nativeElement.nodeName.toLowerCase();return"mat-list"===H?"list":"mat-action-list"===H?"action-list":null}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-list"],["mat-action-list"]],hostAttrs:[1,"mat-list","mat-list-base"],inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matList"],features:[e._Bn([{provide:re,useExisting:V}]),e.qOj,e.TTD],ngContentSelectors:S,decls:1,vars:0,template:function(H,X){1&H&&(e.F$t(),e.Hsn(0))},styles:['.mat-subheader{display:flex;box-sizing:border-box;padding:16px;align-items:center}.mat-list-base .mat-subheader{margin:0}button.mat-list-item,button.mat-list-option{padding:0;width:100%;background:none;color:inherit;border:none;outline:inherit;-webkit-tap-highlight-color:transparent;text-align:left}[dir=rtl] button.mat-list-item,[dir=rtl] button.mat-list-option{text-align:right}button.mat-list-item::-moz-focus-inner,button.mat-list-option::-moz-focus-inner{border: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{display:block;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{display:block;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 .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;z-index:1}.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}),V})(),x=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-list-avatar",""],["","matListAvatar",""]],hostAttrs:[1,"mat-list-avatar"]}),V})(),i=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275dir=e.lG2({type:V,selectors:[["","mat-list-icon",""],["","matListIcon",""]],hostAttrs:[1,"mat-list-icon"]}),V})(),u=(()=>{class V extends ne{constructor(H,X,he,be){super(),this._element=H,this._isInteractiveList=!1,this._destroyed=new a.x,this._disabled=!1,this._isInteractiveList=!!(he||be&&"action-list"===be._getListType()),this._list=he||be;const Pe=this._getHostElement();"button"===Pe.nodeName.toLowerCase()&&!Pe.hasAttribute("type")&&Pe.setAttribute("type","button"),this._list&&this._list._stateChanges.pipe((0,C.R)(this._destroyed)).subscribe(()=>{X.markForCheck()})}get disabled(){return this._disabled||!(!this._list||!this._list.disabled)}set disabled(H){this._disabled=(0,M.Ig)(H)}ngAfterContentInit(){(0,f.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 V.\u0275fac=function(H){return new(H||V)(e.Y36(e.SBq),e.Y36(e.sBO),e.Y36(ge,8),e.Y36(re,8))},V.\u0275cmp=e.Xpm({type:V,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(H,X,he){if(1&H&&(e.Suo(he,x,5),e.Suo(he,i,5),e.Suo(he,f.X2,5)),2&H){let be;e.iGM(be=e.CRH())&&(X._avatar=be.first),e.iGM(be=e.CRH())&&(X._icon=be.first),e.iGM(be=e.CRH())&&(X._lines=be)}},hostAttrs:[1,"mat-list-item","mat-focus-indicator"],hostVars:6,hostBindings:function(H,X){2&H&&e.ekj("mat-list-item-disabled",X.disabled)("mat-list-item-avatar",X._avatar||X._icon)("mat-list-item-with-avatar",X._avatar||X._icon)},inputs:{disableRipple:"disableRipple",disabled:"disabled"},exportAs:["matListItem"],features:[e.qOj],ngContentSelectors:B,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(H,X){1&H&&(e.F$t(E),e.TgZ(0,"span",0),e._UZ(1,"span",1),e.Hsn(2),e.TgZ(3,"span",2),e.Hsn(4,1),e.qZA(),e.Hsn(5,2),e.qZA()),2&H&&(e.xp6(1),e.Q6J("matRippleTrigger",X._getHostElement())("matRippleDisabled",X._isRippleDisabled()))},directives:[f.wG],encapsulation:2,changeDetection:0}),V})(),_=(()=>{class V{}return V.\u0275fac=function(H){return new(H||V)},V.\u0275mod=e.oAB({type:V}),V.\u0275inj=e.cJS({imports:[[f.uc,f.si,f.BQ,f.us,t.ez],f.uc,f.BQ,f.us,D.t]}),V})()},2181:(Be,K,p)=>{"use strict";p.d(K,{OP:()=>H,Tx:()=>we,VK:()=>Ee,p6:()=>Oe});var t=p(5664),e=p(3191),f=p(1159),M=p(5e3),a=p(7579),C=p(727),d=p(6451),R=p(9646),h=p(3101),L=p(8675),w=p(3900),D=p(5698),S=p(2722),k=p(9300),E=p(4086),B=p(1777),Z=p(7429),Y=p(9808),ae=p(508),ee=p(9776),ue=p(925),ne=p(226),re=p(5303);const ge=["mat-menu-item",""];function q(ce,Te){1&ce&&(M.O4$(),M.TgZ(0,"svg",2),M._UZ(1,"polygon",3),M.qZA())}const _e=["*"];function x(ce,Te){if(1&ce){const xe=M.EpF();M.TgZ(0,"div",0),M.NdJ("keydown",function(te){return M.CHM(xe),M.oxw()._handleKeydown(te)})("click",function(){return M.CHM(xe),M.oxw().closed.emit("click")})("@transformMenu.start",function(te){return M.CHM(xe),M.oxw()._onAnimationStart(te)})("@transformMenu.done",function(te){return M.CHM(xe),M.oxw()._onAnimationDone(te)}),M.TgZ(1,"div",1),M.Hsn(2),M.qZA()()}if(2&ce){const xe=M.oxw();M.Q6J("id",xe.panelId)("ngClass",xe._classList)("@transformMenu",xe._panelAnimationState),M.uIk("aria-label",xe.ariaLabel||null)("aria-labelledby",xe.ariaLabelledby||null)("aria-describedby",xe.ariaDescribedby||null)}}const i={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)")])])},c=new M.OlP("MatMenuContent"),V=new M.OlP("MAT_MENU_PANEL"),N=(0,ae.Kr)((0,ae.Id)(class{}));let H=(()=>{class ce extends N{constructor(xe,W,te,Ce,fe){var Q;super(),this._elementRef=xe,this._document=W,this._focusMonitor=te,this._parentMenu=Ce,this._changeDetectorRef=fe,this.role="menuitem",this._hovered=new a.x,this._focused=new a.x,this._highlighted=!1,this._triggersSubmenu=!1,null===(Q=null==Ce?void 0:Ce.addItem)||void 0===Q||Q.call(Ce,this)}focus(xe,W){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._getHostElement(),xe,W):this._getHostElement().focus(W),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(xe){this.disabled&&(xe.preventDefault(),xe.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){var xe;const W=this._elementRef.nativeElement.cloneNode(!0),te=W.querySelectorAll("mat-icon, .material-icons");for(let Ce=0;Ce{class ce{constructor(xe,W,te,Ce){this._elementRef=xe,this._ngZone=W,this._defaultOptions=te,this._changeDetectorRef=Ce,this._xPosition=this._defaultOptions.xPosition,this._yPosition=this._defaultOptions.yPosition,this._directDescendantItems=new M.n_E,this._tabSubscription=C.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 M.vpe,this.close=this.closed,this.panelId="mat-menu-panel-"+be++}get xPosition(){return this._xPosition}set xPosition(xe){this._xPosition=xe,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(xe){this._yPosition=xe,this.setPositionClasses()}get overlapTrigger(){return this._overlapTrigger}set overlapTrigger(xe){this._overlapTrigger=(0,e.Ig)(xe)}get hasBackdrop(){return this._hasBackdrop}set hasBackdrop(xe){this._hasBackdrop=(0,e.Ig)(xe)}set panelClass(xe){const W=this._previousPanelClass;W&&W.length&&W.split(" ").forEach(te=>{this._classList[te]=!1}),this._previousPanelClass=xe,xe&&xe.length&&(xe.split(" ").forEach(te=>{this._classList[te]=!0}),this._elementRef.nativeElement.className="")}get classList(){return this.panelClass}set classList(xe){this.panelClass=xe}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new t.Em(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._tabSubscription=this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,w.w)(xe=>(0,d.T)(...xe.map(W=>W._focused)))).subscribe(xe=>this._keyManager.updateActiveItem(xe)),this._directDescendantItems.changes.subscribe(xe=>{var W;const te=this._keyManager;if("enter"===this._panelAnimationState&&(null===(W=te.activeItem)||void 0===W?void 0:W._hasFocus())){const Ce=xe.toArray(),fe=Math.max(0,Math.min(Ce.length-1,te.activeItemIndex||0));Ce[fe]&&!Ce[fe].disabled?te.setActiveItem(fe):te.setNextItemActive()}})}ngOnDestroy(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()}_hovered(){return this._directDescendantItems.changes.pipe((0,L.O)(this._directDescendantItems),(0,w.w)(W=>(0,d.T)(...W.map(te=>te._hovered))))}addItem(xe){}removeItem(xe){}_handleKeydown(xe){const W=xe.keyCode,te=this._keyManager;switch(W){case f.hY:(0,f.Vb)(xe)||(xe.preventDefault(),this.closed.emit("keydown"));break;case f.oh:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case f.SV:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:return(W===f.LH||W===f.JH)&&te.setFocusOrigin("keyboard"),void te.onKeydown(xe)}xe.stopPropagation()}focusFirstItem(xe="program"){this._ngZone.onStable.pipe((0,D.q)(1)).subscribe(()=>{let W=null;if(this._directDescendantItems.length&&(W=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),!W||!W.contains(document.activeElement)){const te=this._keyManager;te.setFocusOrigin(xe).setFirstItemActive(),!te.activeItem&&W&&W.focus()}})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(xe){const W=Math.min(this._baseElevation+xe,24),te=`${this._elevationPrefix}${W}`,Ce=Object.keys(this._classList).find(fe=>fe.startsWith(this._elevationPrefix));(!Ce||Ce===this._previousElevation)&&(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[te]=!0,this._previousElevation=te)}setPositionClasses(xe=this.xPosition,W=this.yPosition){var te;const Ce=this._classList;Ce["mat-menu-before"]="before"===xe,Ce["mat-menu-after"]="after"===xe,Ce["mat-menu-above"]="above"===W,Ce["mat-menu-below"]="below"===W,null===(te=this._changeDetectorRef)||void 0===te||te.markForCheck()}_startAnimation(){this._panelAnimationState="enter"}_resetAnimation(){this._panelAnimationState="void"}_onAnimationDone(xe){this._animationDone.next(xe),this._isAnimating=!1}_onAnimationStart(xe){this._isAnimating=!0,"enter"===xe.toState&&0===this._keyManager.activeItemIndex&&(xe.element.scrollTop=0)}_updateDirectDescendants(){this._allItems.changes.pipe((0,L.O)(this._allItems)).subscribe(xe=>{this._directDescendantItems.reset(xe.filter(W=>W._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}}return ce.\u0275fac=function(xe){return new(xe||ce)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(X),M.Y36(M.sBO))},ce.\u0275dir=M.lG2({type:ce,contentQueries:function(xe,W,te){if(1&xe&&(M.Suo(te,c,5),M.Suo(te,H,5),M.Suo(te,H,4)),2&xe){let Ce;M.iGM(Ce=M.CRH())&&(W.lazyContent=Ce.first),M.iGM(Ce=M.CRH())&&(W._allItems=Ce),M.iGM(Ce=M.CRH())&&(W.items=Ce)}},viewQuery:function(xe,W){if(1&xe&&M.Gf(M.Rgc,5),2&xe){let te;M.iGM(te=M.CRH())&&(W.templateRef=te.first)}},inputs:{backdropClass:"backdropClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),ce})(),Ee=(()=>{class ce extends Pe{constructor(xe,W,te,Ce){super(xe,W,te,Ce),this._elevationPrefix="mat-elevation-z",this._baseElevation=4}}return ce.\u0275fac=function(xe){return new(xe||ce)(M.Y36(M.SBq),M.Y36(M.R0b),M.Y36(X),M.Y36(M.sBO))},ce.\u0275cmp=M.Xpm({type:ce,selectors:[["mat-menu"]],hostVars:3,hostBindings:function(xe,W){2&xe&&M.uIk("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},exportAs:["matMenu"],features:[M._Bn([{provide:V,useExisting:ce}]),M.qOj],ngContentSelectors:_e,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"id","ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(xe,W){1&xe&&(M.F$t(),M.YNc(0,x,3,6,"ng-template"))},directives:[Y.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;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]::before{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.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}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}.mat-menu-submenu-icon{position:absolute;top:50%;right:16px;transform:translateY(-50%);width:5px;height:10px;fill:currentColor}[dir=rtl] .mat-menu-submenu-icon{right:auto;left:16px;transform:translateY(-50%) scaleX(-1)}.cdk-high-contrast-active .mat-menu-submenu-icon{fill:CanvasText}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:[i.transformMenu,i.fadeInItems]},changeDetection:0}),ce})();const j=new M.OlP("mat-menu-scroll-strategy"),Me={provide:j,deps:[ee.aV],useFactory:function Ve(ce){return()=>ce.scrollStrategies.reposition()}},Ie=(0,ue.i$)({passive:!0});let ut=(()=>{class ce{constructor(xe,W,te,Ce,fe,Q,pt,tt,Dt){this._overlay=xe,this._element=W,this._viewContainerRef=te,this._menuItemInstance=Q,this._dir=pt,this._focusMonitor=tt,this._ngZone=Dt,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=C.w0.EMPTY,this._hoverSubscription=C.w0.EMPTY,this._menuCloseSubscription=C.w0.EMPTY,this._handleTouchStart=di=>{(0,t.yG)(di)||(this._openedBy="touch")},this._openedBy=void 0,this.restoreFocus=!0,this.menuOpened=new M.vpe,this.onMenuOpen=this.menuOpened,this.menuClosed=new M.vpe,this.onMenuClose=this.menuClosed,this._scrollStrategy=Ce,this._parentMaterialMenu=fe instanceof Pe?fe:void 0,W.nativeElement.addEventListener("touchstart",this._handleTouchStart,Ie),Q&&(Q._triggersSubmenu=this.triggersSubmenu())}get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(xe){this.menu=xe}get menu(){return this._menu}set menu(xe){xe!==this._menu&&(this._menu=xe,this._menuCloseSubscription.unsubscribe(),xe&&(this._menuCloseSubscription=xe.close.subscribe(W=>{this._destroyMenu(W),("click"===W||"tab"===W)&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(W)})))}ngAfterContentInit(){this._checkMenu(),this._handleHover()}ngOnDestroy(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,Ie),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}triggersSubmenu(){return!(!this._menuItemInstance||!this._parentMaterialMenu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){if(this._menuOpen)return;this._checkMenu();const xe=this._createOverlay(),W=xe.getConfig(),te=W.positionStrategy;this._setPosition(te),W.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,xe.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),this._initMenu(),this.menu instanceof Pe&&(this.menu._startAnimation(),this.menu._directDescendantItems.changes.pipe((0,S.R)(this.menu.close)).subscribe(()=>{te.withLockedPosition(!1).reapplyLastPosition(),te.withLockedPosition(!0)}))}closeMenu(){this.menu.close.emit()}focus(xe,W){this._focusMonitor&&xe?this._focusMonitor.focusVia(this._element,xe,W):this._element.nativeElement.focus(W)}updatePosition(){var xe;null===(xe=this._overlayRef)||void 0===xe||xe.updatePosition()}_destroyMenu(xe){if(!this._overlayRef||!this.menuOpen)return;const W=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),this.restoreFocus&&("keydown"===xe||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,W instanceof Pe?(W._resetAnimation(),W.lazyContent?W._animationDone.pipe((0,k.h)(te=>"void"===te.toState),(0,D.q)(1),(0,S.R)(W.lazyContent._attached)).subscribe({next:()=>W.lazyContent.detach(),complete:()=>this._setIsMenuOpen(!1)}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),W.lazyContent&&W.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 xe=0,W=this.menu.parentMenu;for(;W;)xe++,W=W.parentMenu;this.menu.setElevation(xe)}}_setIsMenuOpen(xe){this._menuOpen=xe,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(xe)}_checkMenu(){}_createOverlay(){if(!this._overlayRef){const xe=this._getOverlayConfig();this._subscribeToPositions(xe.positionStrategy),this._overlayRef=this._overlay.create(xe),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef}_getOverlayConfig(){return new ee.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(xe){this.menu.setPositionClasses&&xe.positionChanges.subscribe(W=>{const te="start"===W.connectionPair.overlayX?"after":"before",Ce="top"===W.connectionPair.overlayY?"below":"above";this._ngZone?this._ngZone.run(()=>this.menu.setPositionClasses(te,Ce)):this.menu.setPositionClasses(te,Ce)})}_setPosition(xe){let[W,te]="before"===this.menu.xPosition?["end","start"]:["start","end"],[Ce,fe]="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],[Q,pt]=[Ce,fe],[tt,Dt]=[W,te],di=0;this.triggersSubmenu()?(Dt=W="before"===this.menu.xPosition?"start":"end",te=tt="end"===W?"start":"end",di="bottom"===Ce?8:-8):this.menu.overlapTrigger||(Q="top"===Ce?"bottom":"top",pt="top"===fe?"bottom":"top"),xe.withPositions([{originX:W,originY:Q,overlayX:tt,overlayY:Ce,offsetY:di},{originX:te,originY:Q,overlayX:Dt,overlayY:Ce,offsetY:di},{originX:W,originY:pt,overlayX:tt,overlayY:fe,offsetY:-di},{originX:te,originY:pt,overlayX:Dt,overlayY:fe,offsetY:-di}])}_menuClosingActions(){const xe=this._overlayRef.backdropClick(),W=this._overlayRef.detachments(),te=this._parentMaterialMenu?this._parentMaterialMenu.closed:(0,R.of)(),Ce=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe((0,k.h)(fe=>fe!==this._menuItemInstance),(0,k.h)(()=>this._menuOpen)):(0,R.of)();return(0,d.T)(xe,te,Ce,W)}_handleMousedown(xe){(0,t.X6)(xe)||(this._openedBy=0===xe.button?"mouse":void 0,this.triggersSubmenu()&&xe.preventDefault())}_handleKeydown(xe){const W=xe.keyCode;(W===f.K5||W===f.L_)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(W===f.SV&&"ltr"===this.dir||W===f.oh&&"rtl"===this.dir)&&(this._openedBy="keyboard",this.openMenu())}_handleClick(xe){this.triggersSubmenu()?(xe.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){!this.triggersSubmenu()||!this._parentMaterialMenu||(this._hoverSubscription=this._parentMaterialMenu._hovered().pipe((0,k.h)(xe=>xe===this._menuItemInstance&&!xe.disabled),(0,E.g)(0,h.E)).subscribe(()=>{this._openedBy="mouse",this.menu instanceof Pe&&this.menu._isAnimating?this.menu._animationDone.pipe((0,D.q)(1),(0,E.g)(0,h.E),(0,S.R)(this._parentMaterialMenu._hovered())).subscribe(()=>this.openMenu()):this.openMenu()}))}_getPortal(){return(!this._portal||this._portal.templateRef!==this.menu.templateRef)&&(this._portal=new Z.UE(this.menu.templateRef,this._viewContainerRef)),this._portal}}return ce.\u0275fac=function(xe){return new(xe||ce)(M.Y36(ee.aV),M.Y36(M.SBq),M.Y36(M.s_b),M.Y36(j),M.Y36(V,8),M.Y36(H,10),M.Y36(ne.Is,8),M.Y36(t.tE),M.Y36(M.R0b))},ce.\u0275dir=M.lG2({type:ce,hostAttrs:["aria-haspopup","true"],hostVars:2,hostBindings:function(xe,W){1&xe&&M.NdJ("click",function(Ce){return W._handleClick(Ce)})("mousedown",function(Ce){return W._handleMousedown(Ce)})("keydown",function(Ce){return W._handleKeydown(Ce)}),2&xe&&M.uIk("aria-expanded",W.menuOpen||null)("aria-controls",W.menuOpen?W.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"],restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"}}),ce})(),Oe=(()=>{class ce extends ut{}return ce.\u0275fac=function(){let Te;return function(W){return(Te||(Te=M.n5z(ce)))(W||ce)}}(),ce.\u0275dir=M.lG2({type:ce,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-menu-trigger"],exportAs:["matMenuTrigger"],features:[M.qOj]}),ce})(),we=(()=>{class ce{}return ce.\u0275fac=function(xe){return new(xe||ce)},ce.\u0275mod=M.oAB({type:ce}),ce.\u0275inj=M.cJS({providers:[Me],imports:[[Y.ez,ae.BQ,ae.si,ee.U8],re.ZD,ae.BQ]}),ce})()},6087:(Be,K,p)=>{"use strict";p.d(K,{NW:()=>ge,TU:()=>q,ye:()=>B});var t=p(9808),e=p(5e3),f=p(508),M=p(7423),a=p(4107),C=p(7238),d=p(3191),R=p(7579),h=p(7322);function L(_e,x){if(1&_e&&(e.TgZ(0,"mat-option",19),e._uU(1),e.qZA()),2&_e){const i=x.$implicit;e.Q6J("value",i),e.xp6(1),e.hij(" ",i," ")}}function w(_e,x){if(1&_e){const i=e.EpF();e.TgZ(0,"mat-form-field",16)(1,"mat-select",17),e.NdJ("selectionChange",function(u){return e.CHM(i),e.oxw(2)._changePageSize(u.value)}),e.YNc(2,L,2,2,"mat-option",18),e.qZA()()}if(2&_e){const i=e.oxw(2);e.Q6J("appearance",i._formFieldAppearance)("color",i.color),e.xp6(1),e.Q6J("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),e.xp6(1),e.Q6J("ngForOf",i._displayedPageSizeOptions)}}function D(_e,x){if(1&_e&&(e.TgZ(0,"div",20),e._uU(1),e.qZA()),2&_e){const i=e.oxw(2);e.xp6(1),e.Oqu(i.pageSize)}}function S(_e,x){if(1&_e&&(e.TgZ(0,"div",12)(1,"div",13),e._uU(2),e.qZA(),e.YNc(3,w,3,6,"mat-form-field",14),e.YNc(4,D,2,1,"div",15),e.qZA()),2&_e){const i=e.oxw();e.xp6(2),e.hij(" ",i._intl.itemsPerPageLabel," "),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length>1),e.xp6(1),e.Q6J("ngIf",i._displayedPageSizeOptions.length<=1)}}function k(_e,x){if(1&_e){const i=e.EpF();e.TgZ(0,"button",21),e.NdJ("click",function(){return e.CHM(i),e.oxw().firstPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",22),e.qZA()()}if(2&_e){const i=e.oxw();e.Q6J("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),e.uIk("aria-label",i._intl.firstPageLabel)}}function E(_e,x){if(1&_e){const i=e.EpF();e.O4$(),e.kcU(),e.TgZ(0,"button",23),e.NdJ("click",function(){return e.CHM(i),e.oxw().lastPage()}),e.O4$(),e.TgZ(1,"svg",7),e._UZ(2,"path",24),e.qZA()()}if(2&_e){const i=e.oxw();e.Q6J("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),e.uIk("aria-label",i._intl.lastPageLabel)}}let B=(()=>{class _e{constructor(){this.changes=new R.x,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=(i,r,u)=>{if(0==u||0==r)return`0 of ${u}`;const c=i*r;return`${c+1} \u2013 ${c<(u=Math.max(u,0))?Math.min(c+r,u):c+r} of ${u}`}}}return _e.\u0275fac=function(i){return new(i||_e)},_e.\u0275prov=e.Yz7({token:_e,factory:_e.\u0275fac,providedIn:"root"}),_e})();const Y={provide:B,deps:[[new e.FiY,new e.tp0,B]],useFactory:function Z(_e){return _e||new B}},ue=new e.OlP("MAT_PAGINATOR_DEFAULT_OPTIONS"),ne=(0,f.Id)((0,f.dB)(class{}));let re=(()=>{class _e extends ne{constructor(i,r,u){if(super(),this._intl=i,this._changeDetectorRef=r,this._pageIndex=0,this._length=0,this._pageSizeOptions=[],this._hidePageSize=!1,this._showFirstLastButtons=!1,this.page=new e.vpe,this._intlChanges=i.changes.subscribe(()=>this._changeDetectorRef.markForCheck()),u){const{pageSize:c,pageSizeOptions:v,hidePageSize:T,showFirstLastButtons:I}=u;null!=c&&(this._pageSize=c),null!=v&&(this._pageSizeOptions=v),null!=T&&(this._hidePageSize=T),null!=I&&(this._showFirstLastButtons=I)}}get pageIndex(){return this._pageIndex}set pageIndex(i){this._pageIndex=Math.max((0,d.su)(i),0),this._changeDetectorRef.markForCheck()}get length(){return this._length}set length(i){this._length=(0,d.su)(i),this._changeDetectorRef.markForCheck()}get pageSize(){return this._pageSize}set pageSize(i){this._pageSize=Math.max((0,d.su)(i),0),this._updateDisplayedPageSizeOptions()}get pageSizeOptions(){return this._pageSizeOptions}set pageSizeOptions(i){this._pageSizeOptions=(i||[]).map(r=>(0,d.su)(r)),this._updateDisplayedPageSizeOptions()}get hidePageSize(){return this._hidePageSize}set hidePageSize(i){this._hidePageSize=(0,d.Ig)(i)}get showFirstLastButtons(){return this._showFirstLastButtons}set showFirstLastButtons(i){this._showFirstLastButtons=(0,d.Ig)(i)}ngOnInit(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()}ngOnDestroy(){this._intlChanges.unsubscribe()}nextPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex+1,this._emitPageEvent(i)}previousPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=this.pageIndex-1,this._emitPageEvent(i)}firstPage(){if(!this.hasPreviousPage())return;const i=this.pageIndex;this.pageIndex=0,this._emitPageEvent(i)}lastPage(){if(!this.hasNextPage())return;const i=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(i)}hasPreviousPage(){return this.pageIndex>=1&&0!=this.pageSize}hasNextPage(){const i=this.getNumberOfPages()-1;return this.pageIndexi-r),this._changeDetectorRef.markForCheck())}_emitPageEvent(i){this.page.emit({previousPageIndex:i,pageIndex:this.pageIndex,pageSize:this.pageSize,length:this.length})}}return _e.\u0275fac=function(i){e.$Z()},_e.\u0275dir=e.lG2({type:_e,inputs:{color:"color",pageIndex:"pageIndex",length:"length",pageSize:"pageSize",pageSizeOptions:"pageSizeOptions",hidePageSize:"hidePageSize",showFirstLastButtons:"showFirstLastButtons"},outputs:{page:"page"},features:[e.qOj]}),_e})(),ge=(()=>{class _e extends re{constructor(i,r,u){super(i,r,u),u&&null!=u.formFieldAppearance&&(this._formFieldAppearance=u.formFieldAppearance)}}return _e.\u0275fac=function(i){return new(i||_e)(e.Y36(B),e.Y36(e.sBO),e.Y36(ue,8))},_e.\u0275cmp=e.Xpm({type:_e,selectors:[["mat-paginator"]],hostAttrs:["role","group",1,"mat-paginator"],inputs:{disabled:"disabled"},exportAs:["matPaginator"],features:[e.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(i,r){1&i&&(e.TgZ(0,"div",0)(1,"div",1),e.YNc(2,S,5,3,"div",2),e.TgZ(3,"div",3)(4,"div",4),e._uU(5),e.qZA(),e.YNc(6,k,3,5,"button",5),e.TgZ(7,"button",6),e.NdJ("click",function(){return r.previousPage()}),e.O4$(),e.TgZ(8,"svg",7),e._UZ(9,"path",8),e.qZA()(),e.kcU(),e.TgZ(10,"button",9),e.NdJ("click",function(){return r.nextPage()}),e.O4$(),e.TgZ(11,"svg",7),e._UZ(12,"path",10),e.qZA()(),e.YNc(13,E,3,5,"button",11),e.qZA()()()),2&i&&(e.xp6(2),e.Q6J("ngIf",!r.hidePageSize),e.xp6(3),e.hij(" ",r._intl.getRangeLabel(r.pageIndex,r.pageSize,r.length)," "),e.xp6(1),e.Q6J("ngIf",r.showFirstLastButtons),e.xp6(1),e.Q6J("matTooltip",r._intl.previousPageLabel)("matTooltipDisabled",r._previousButtonsDisabled())("matTooltipPosition","above")("disabled",r._previousButtonsDisabled()),e.uIk("aria-label",r._intl.previousPageLabel),e.xp6(3),e.Q6J("matTooltip",r._intl.nextPageLabel)("matTooltipDisabled",r._nextButtonsDisabled())("matTooltipPosition","above")("disabled",r._nextButtonsDisabled()),e.uIk("aria-label",r._intl.nextPageLabel),e.xp6(3),e.Q6J("ngIf",r.showFirstLastButtons))},directives:[h.KE,a.gD,f.ey,M.lW,t.O5,t.sg,C.gM],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)}.cdk-high-contrast-active .mat-paginator-icon{fill:CanvasText}\n"],encapsulation:2,changeDetection:0}),_e})(),q=(()=>{class _e{}return _e.\u0275fac=function(i){return new(i||_e)},_e.\u0275mod=e.oAB({type:_e}),_e.\u0275inj=e.cJS({providers:[Y],imports:[[t.ez,M.ot,a.LD,C.AV,f.BQ]]}),_e})()},5899:(Be,K,p)=>{"use strict";p.d(K,{Cv:()=>Z,pW:()=>E});var t=p(5e3),e=p(9808),f=p(508),M=p(3191),a=p(6360),C=p(727),d=p(4968),R=p(9300);const h=["primaryValueBar"],L=(0,f.pj)(class{constructor(Y){this._elementRef=Y}},"primary"),w=new t.OlP("mat-progress-bar-location",{providedIn:"root",factory:function D(){const Y=(0,t.f3M)(e.K0),ae=Y?Y.location:null;return{getPathname:()=>ae?ae.pathname+ae.search:""}}}),S=new t.OlP("MAT_PROGRESS_BAR_DEFAULT_OPTIONS");let k=0,E=(()=>{class Y extends L{constructor(ee,ue,ne,re,ge,q){super(ee),this._ngZone=ue,this._animationMode=ne,this._changeDetectorRef=q,this._isNoopAnimation=!1,this._value=0,this._bufferValue=0,this.animationEnd=new t.vpe,this._animationEndSubscription=C.w0.EMPTY,this.mode="determinate",this.progressbarId="mat-progress-bar-"+k++;const _e=re?re.getPathname().split("#")[0]:"";this._rectangleFillValue=`url('${_e}#${this.progressbarId}')`,this._isNoopAnimation="NoopAnimations"===ne,ge&&(ge.color&&(this.color=this.defaultColor=ge.color),this.mode=ge.mode||this.mode)}get value(){return this._value}set value(ee){var ue;this._value=B((0,M.su)(ee)||0),null===(ue=this._changeDetectorRef)||void 0===ue||ue.markForCheck()}get bufferValue(){return this._bufferValue}set bufferValue(ee){var ue;this._bufferValue=B(ee||0),null===(ue=this._changeDetectorRef)||void 0===ue||ue.markForCheck()}_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 ee=this._primaryValueBar.nativeElement;this._animationEndSubscription=(0,d.R)(ee,"transitionend").pipe((0,R.h)(ue=>ue.target===ee)).subscribe(()=>{0!==this.animationEnd.observers.length&&("determinate"===this.mode||"buffer"===this.mode)&&this._ngZone.run(()=>this.animationEnd.next({value:this.value}))})})}ngOnDestroy(){this._animationEndSubscription.unsubscribe()}}return Y.\u0275fac=function(ee){return new(ee||Y)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(a.Qb,8),t.Y36(w,8),t.Y36(S,8),t.Y36(t.sBO))},Y.\u0275cmp=t.Xpm({type:Y,selectors:[["mat-progress-bar"]],viewQuery:function(ee,ue){if(1&ee&&t.Gf(h,5),2&ee){let ne;t.iGM(ne=t.CRH())&&(ue._primaryValueBar=ne.first)}},hostAttrs:["role","progressbar","aria-valuemin","0","aria-valuemax","100","tabindex","-1",1,"mat-progress-bar"],hostVars:4,hostBindings:function(ee,ue){2&ee&&(t.uIk("aria-valuenow","indeterminate"===ue.mode||"query"===ue.mode?null:ue.value)("mode",ue.mode),t.ekj("_mat-animation-noopable",ue._isNoopAnimation))},inputs:{color:"color",value:"value",bufferValue:"bufferValue",mode:"mode"},outputs:{animationEnd:"animationEnd"},exportAs:["matProgressBar"],features:[t.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(ee,ue){1&ee&&(t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1)(2,"defs")(3,"pattern",2),t._UZ(4,"circle",3),t.qZA()(),t._UZ(5,"rect",4),t.qZA(),t.kcU(),t._UZ(6,"div",5)(7,"div",6,7)(9,"div",8),t.qZA()),2&ee&&(t.xp6(3),t.Q6J("id",ue.progressbarId),t.xp6(2),t.uIk("fill",ue._rectangleFillValue),t.xp6(1),t.Q6J("ngStyle",ue._bufferTransform()),t.xp6(1),t.Q6J("ngStyle",ue._primaryTransform()))},directives:[e.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}),Y})();function B(Y,ae=0,ee=100){return Math.max(ae,Math.min(ee,Y))}let Z=(()=>{class Y{}return Y.\u0275fac=function(ee){return new(ee||Y)},Y.\u0275mod=t.oAB({type:Y}),Y.\u0275inj=t.cJS({imports:[[e.ez,f.BQ],f.BQ]}),Y})()},773:(Be,K,p)=>{"use strict";p.d(K,{Cq:()=>Y,Ou:()=>Z});var t=p(3191),e=p(925),f=p(9808),M=p(5e3),a=p(508),C=p(6360),d=p(727),R=p(5303);function h(ee,ue){if(1&ee&&(M.O4$(),M._UZ(0,"circle",4)),2&ee){const ne=M.oxw(),re=M.MAs(1);M.Udp("animation-name","mat-progress-spinner-stroke-rotate-"+ne._spinnerAnimationLabel)("stroke-dashoffset",ne._getStrokeDashOffset(),"px")("stroke-dasharray",ne._getStrokeCircumference(),"px")("stroke-width",ne._getCircleStrokeWidth(),"%")("transform-origin",ne._getCircleTransformOrigin(re)),M.uIk("r",ne._getCircleRadius())}}function L(ee,ue){if(1&ee&&(M.O4$(),M._UZ(0,"circle",4)),2&ee){const ne=M.oxw(),re=M.MAs(1);M.Udp("stroke-dashoffset",ne._getStrokeDashOffset(),"px")("stroke-dasharray",ne._getStrokeCircumference(),"px")("stroke-width",ne._getCircleStrokeWidth(),"%")("transform-origin",ne._getCircleTransformOrigin(re)),M.uIk("r",ne._getCircleRadius())}}const S=(0,a.pj)(class{constructor(ee){this._elementRef=ee}},"primary"),k=new M.OlP("mat-progress-spinner-default-options",{providedIn:"root",factory:function E(){return{diameter:100}}});class Z extends S{constructor(ue,ne,re,ge,q,_e,x,i){super(ue),this._document=re,this._diameter=100,this._value=0,this._resizeSubscription=d.w0.EMPTY,this.mode="determinate";const r=Z._diameters;this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),r.has(re.head)||r.set(re.head,new Set([100])),this._noopAnimations="NoopAnimations"===ge&&!!q&&!q._forceAnimations,"mat-spinner"===ue.nativeElement.nodeName.toLowerCase()&&(this.mode="indeterminate"),q&&(q.diameter&&(this.diameter=q.diameter),q.strokeWidth&&(this.strokeWidth=q.strokeWidth)),ne.isBrowser&&ne.SAFARI&&x&&_e&&i&&(this._resizeSubscription=x.change(150).subscribe(()=>{"indeterminate"===this.mode&&i.run(()=>_e.markForCheck())}))}get diameter(){return this._diameter}set diameter(ue){this._diameter=(0,t.su)(ue),this._spinnerAnimationLabel=this._getSpinnerAnimationLabel(),this._styleRoot&&this._attachStyleNode()}get strokeWidth(){return this._strokeWidth||this.diameter/10}set strokeWidth(ue){this._strokeWidth=(0,t.su)(ue)}get value(){return"determinate"===this.mode?this._value:0}set value(ue){this._value=Math.max(0,Math.min(100,(0,t.su)(ue)))}ngOnInit(){const ue=this._elementRef.nativeElement;this._styleRoot=(0,e.kV)(ue)||this._document.head,this._attachStyleNode(),ue.classList.add("mat-progress-spinner-indeterminate-animation")}ngOnDestroy(){this._resizeSubscription.unsubscribe()}_getCircleRadius(){return(this.diameter-10)/2}_getViewBox(){const ue=2*this._getCircleRadius()+this.strokeWidth;return`0 0 ${ue} ${ue}`}_getStrokeCircumference(){return 2*Math.PI*this._getCircleRadius()}_getStrokeDashOffset(){return"determinate"===this.mode?this._getStrokeCircumference()*(100-this._value)/100:null}_getCircleStrokeWidth(){return this.strokeWidth/this.diameter*100}_getCircleTransformOrigin(ue){var ne;const re=50*(null!==(ne=ue.currentScale)&&void 0!==ne?ne:1);return`${re}% ${re}%`}_attachStyleNode(){const ue=this._styleRoot,ne=this._diameter,re=Z._diameters;let ge=re.get(ue);if(!ge||!ge.has(ne)){const q=this._document.createElement("style");q.setAttribute("mat-spinner-animation",this._spinnerAnimationLabel),q.textContent=this._getAnimationText(),ue.appendChild(q),ge||(ge=new Set,re.set(ue,ge)),ge.add(ne)}}_getAnimationText(){const ue=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*ue).replace(/END_VALUE/g,""+.2*ue).replace(/DIAMETER/g,`${this._spinnerAnimationLabel}`)}_getSpinnerAnimationLabel(){return this.diameter.toString().replace(".","_")}}Z._diameters=new WeakMap,Z.\u0275fac=function(ue){return new(ue||Z)(M.Y36(M.SBq),M.Y36(e.t4),M.Y36(f.K0,8),M.Y36(C.Qb,8),M.Y36(k),M.Y36(M.sBO),M.Y36(R.rL),M.Y36(M.R0b))},Z.\u0275cmp=M.Xpm({type:Z,selectors:[["mat-progress-spinner"],["mat-spinner"]],hostAttrs:["role","progressbar","tabindex","-1",1,"mat-progress-spinner","mat-spinner"],hostVars:10,hostBindings:function(ue,ne){2&ue&&(M.uIk("aria-valuemin","determinate"===ne.mode?0:null)("aria-valuemax","determinate"===ne.mode?100:null)("aria-valuenow","determinate"===ne.mode?ne.value:null)("mode",ne.mode),M.Udp("width",ne.diameter,"px")("height",ne.diameter,"px"),M.ekj("_mat-animation-noopable",ne._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",mode:"mode",value:"value"},exportAs:["matProgressSpinner"],features:[M.qOj],decls:4,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false","aria-hidden","true",3,"ngSwitch"],["svg",""],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width","transform-origin",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(ue,ne){1&ue&&(M.O4$(),M.TgZ(0,"svg",0,1),M.YNc(2,h,1,11,"circle",2),M.YNc(3,L,1,9,"circle",3),M.qZA()),2&ue&&(M.Udp("width",ne.diameter,"px")("height",ne.diameter,"px"),M.Q6J("ngSwitch","indeterminate"===ne.mode),M.uIk("viewBox",ne._getViewBox()),M.xp6(2),M.Q6J("ngSwitchCase",!0),M.xp6(1),M.Q6J("ngSwitchCase",!1))},directives:[f.RF,f.n9],styles:[".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;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: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}@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)}}\n"],encapsulation:2,changeDetection:0});let Y=(()=>{class ee{}return ee.\u0275fac=function(ne){return new(ne||ee)},ee.\u0275mod=M.oAB({type:ee}),ee.\u0275inj=M.cJS({imports:[[a.BQ,f.ez],a.BQ]}),ee})()},9814:(Be,K,p)=>{"use strict";p.d(K,{Fk:()=>re,U0:()=>ne,VQ:()=>Y});var t=p(5e3),e=p(508),f=p(3191),M=p(3075),a=p(6360),C=p(5664),d=p(449);const R=["input"],h=function(ge){return{enterDuration:ge}},L=["*"],w=new t.OlP("mat-radio-default-options",{providedIn:"root",factory:function D(){return{color:"accent"}}});let S=0;const k={provide:M.JU,useExisting:(0,t.Gpc)(()=>Y),multi:!0};class E{constructor(q,_e){this.source=q,this.value=_e}}const B=new t.OlP("MatRadioGroup");let Z=(()=>{class ge{constructor(_e){this._changeDetector=_e,this._value=null,this._name="mat-radio-group-"+S++,this._selected=null,this._isInitialized=!1,this._labelPosition="after",this._disabled=!1,this._required=!1,this._controlValueAccessorChangeFn=()=>{},this.onTouched=()=>{},this.change=new t.vpe}get name(){return this._name}set name(_e){this._name=_e,this._updateRadioButtonNames()}get labelPosition(){return this._labelPosition}set labelPosition(_e){this._labelPosition="before"===_e?"before":"after",this._markRadiosForCheck()}get value(){return this._value}set value(_e){this._value!==_e&&(this._value=_e,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())}_checkSelectedRadioButton(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)}get selected(){return this._selected}set selected(_e){this._selected=_e,this.value=_e?_e.value:null,this._checkSelectedRadioButton()}get disabled(){return this._disabled}set disabled(_e){this._disabled=(0,f.Ig)(_e),this._markRadiosForCheck()}get required(){return this._required}set required(_e){this._required=(0,f.Ig)(_e),this._markRadiosForCheck()}ngAfterContentInit(){this._isInitialized=!0}_touch(){this.onTouched&&this.onTouched()}_updateRadioButtonNames(){this._radios&&this._radios.forEach(_e=>{_e.name=this.name,_e._markForCheck()})}_updateSelectedRadioFromValue(){this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(x=>{x.checked=this.value===x.value,x.checked&&(this._selected=x)}))}_emitChangeEvent(){this._isInitialized&&this.change.emit(new E(this._selected,this._value))}_markRadiosForCheck(){this._radios&&this._radios.forEach(_e=>_e._markForCheck())}writeValue(_e){this.value=_e,this._changeDetector.markForCheck()}registerOnChange(_e){this._controlValueAccessorChangeFn=_e}registerOnTouched(_e){this.onTouched=_e}setDisabledState(_e){this.disabled=_e,this._changeDetector.markForCheck()}}return ge.\u0275fac=function(_e){return new(_e||ge)(t.Y36(t.sBO))},ge.\u0275dir=t.lG2({type:ge,inputs:{color:"color",name:"name",labelPosition:"labelPosition",value:"value",selected:"selected",disabled:"disabled",required:"required"},outputs:{change:"change"}}),ge})(),Y=(()=>{class ge extends Z{}return ge.\u0275fac=function(){let q;return function(x){return(q||(q=t.n5z(ge)))(x||ge)}}(),ge.\u0275dir=t.lG2({type:ge,selectors:[["mat-radio-group"]],contentQueries:function(_e,x,i){if(1&_e&&t.Suo(i,ne,5),2&_e){let r;t.iGM(r=t.CRH())&&(x._radios=r)}},hostAttrs:["role","radiogroup",1,"mat-radio-group"],exportAs:["matRadioGroup"],features:[t._Bn([k,{provide:B,useExisting:ge}]),t.qOj]}),ge})();class ae{constructor(q){this._elementRef=q}}const ee=(0,e.Kr)((0,e.sb)(ae));let ue=(()=>{class ge extends ee{constructor(_e,x,i,r,u,c,v,T){super(x),this._changeDetector=i,this._focusMonitor=r,this._radioDispatcher=u,this._providerOverride=v,this._uniqueId="mat-radio-"+ ++S,this.id=this._uniqueId,this.change=new t.vpe,this._checked=!1,this._value=null,this._removeUniqueSelectionListener=()=>{},this.radioGroup=_e,this._noopAnimations="NoopAnimations"===c,T&&(this.tabIndex=(0,f.su)(T,0)),this._removeUniqueSelectionListener=u.listen((I,y)=>{I!==this.id&&y===this.name&&(this.checked=!1)})}get checked(){return this._checked}set checked(_e){const x=(0,f.Ig)(_e);this._checked!==x&&(this._checked=x,x&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!x&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),x&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())}get value(){return this._value}set value(_e){this._value!==_e&&(this._value=_e,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===_e),this.checked&&(this.radioGroup.selected=this)))}get labelPosition(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"}set labelPosition(_e){this._labelPosition=_e}get disabled(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled}set disabled(_e){this._setDisabled((0,f.Ig)(_e))}get required(){return this._required||this.radioGroup&&this.radioGroup.required}set required(_e){this._required=(0,f.Ig)(_e)}get color(){return this._color||this.radioGroup&&this.radioGroup.color||this._providerOverride&&this._providerOverride.color||"accent"}set color(_e){this._color=_e}get inputId(){return`${this.id||this._uniqueId}-input`}focus(_e,x){x?this._focusMonitor.focusVia(this._inputElement,x,_e):this._inputElement.nativeElement.focus(_e)}_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)}ngDoCheck(){this._updateTabIndex()}ngAfterViewInit(){this._updateTabIndex(),this._focusMonitor.monitor(this._elementRef,!0).subscribe(_e=>{!_e&&this.radioGroup&&this.radioGroup._touch()})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._removeUniqueSelectionListener()}_emitChangeEvent(){this.change.emit(new E(this,this._value))}_isRippleDisabled(){return this.disableRipple||this.disabled}_onInputClick(_e){_e.stopPropagation()}_onInputInteraction(_e){if(_e.stopPropagation(),!this.checked&&!this.disabled){const x=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),x&&this.radioGroup._emitChangeEvent())}}_setDisabled(_e){this._disabled!==_e&&(this._disabled=_e,this._changeDetector.markForCheck())}_updateTabIndex(){var _e;const x=this.radioGroup;let i;if(i=x&&x.selected&&!this.disabled?x.selected===this?this.tabIndex:-1:this.tabIndex,i!==this._previousTabIndex){const r=null===(_e=this._inputElement)||void 0===_e?void 0:_e.nativeElement;r&&(r.setAttribute("tabindex",i+""),this._previousTabIndex=i)}}}return ge.\u0275fac=function(_e){t.$Z()},ge.\u0275dir=t.lG2({type:ge,viewQuery:function(_e,x){if(1&_e&&t.Gf(R,5),2&_e){let i;t.iGM(i=t.CRH())&&(x._inputElement=i.first)}},inputs:{id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],ariaDescribedby:["aria-describedby","ariaDescribedby"],checked:"checked",value:"value",labelPosition:"labelPosition",disabled:"disabled",required:"required",color:"color"},outputs:{change:"change"},features:[t.qOj]}),ge})(),ne=(()=>{class ge extends ue{constructor(_e,x,i,r,u,c,v,T){super(_e,x,i,r,u,c,v,T)}}return ge.\u0275fac=function(_e){return new(_e||ge)(t.Y36(B,8),t.Y36(t.SBq),t.Y36(t.sBO),t.Y36(C.tE),t.Y36(d.A8),t.Y36(a.Qb,8),t.Y36(w,8),t.$8M("tabindex"))},ge.\u0275cmp=t.Xpm({type:ge,selectors:[["mat-radio-button"]],hostAttrs:[1,"mat-radio-button"],hostVars:17,hostBindings:function(_e,x){1&_e&&t.NdJ("focus",function(){return x._inputElement.nativeElement.focus()}),2&_e&&(t.uIk("tabindex",null)("id",x.id)("aria-label",null)("aria-labelledby",null)("aria-describedby",null),t.ekj("mat-radio-checked",x.checked)("mat-radio-disabled",x.disabled)("_mat-animation-noopable",x._noopAnimations)("mat-primary","primary"===x.color)("mat-accent","accent"===x.color)("mat-warn","warn"===x.color))},inputs:{disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matRadioButton"],features:[t.qOj],ngContentSelectors:L,decls:13,vars:19,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",3,"id","checked","disabled","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(_e,x){if(1&_e&&(t.F$t(),t.TgZ(0,"label",0,1)(2,"span",2),t._UZ(3,"span",3)(4,"span",4),t.TgZ(5,"input",5,6),t.NdJ("change",function(r){return x._onInputInteraction(r)})("click",function(r){return x._onInputClick(r)}),t.qZA(),t.TgZ(7,"span",7),t._UZ(8,"span",8),t.qZA()(),t.TgZ(9,"span",9)(10,"span",10),t._uU(11,"\xa0"),t.qZA(),t.Hsn(12),t.qZA()()),2&_e){const i=t.MAs(1);t.uIk("for",x.inputId),t.xp6(5),t.Q6J("id",x.inputId)("checked",x.checked)("disabled",x.disabled)("required",x.required),t.uIk("name",x.name)("value",x.value)("aria-label",x.ariaLabel)("aria-labelledby",x.ariaLabelledby)("aria-describedby",x.ariaDescribedby),t.xp6(2),t.Q6J("matRippleTrigger",i)("matRippleDisabled",x._isRippleDisabled())("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",t.VKq(17,h,x._noopAnimations?0:150)),t.xp6(2),t.ekj("mat-radio-label-before","before"==x.labelPosition)}},directives:[e.wG],styles:[".mat-radio-button{display:inline-block;-webkit-tap-highlight-color:transparent;outline:0}.mat-radio-label{-webkit-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;opacity:0;transition:transform ease 280ms,background-color ease 280ms,opacity linear 1ms 280ms;width:20px;transform:scale(0.001);-webkit-print-color-adjust:exact;color-adjust:exact}.mat-radio-checked .mat-radio-inner-circle{transform:scale(0.5);opacity:1;transition:transform ease 280ms,background-color ease 280ms}.cdk-high-contrast-active .mat-radio-checked .mat-radio-inner-circle{border:solid 10px}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-label-content{-webkit-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{opacity:0;position:absolute;top:0;left:0;margin:0;width:100%;height:100%;cursor:inherit;z-index:-1}.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}),ge})(),re=(()=>{class ge{}return ge.\u0275fac=function(_e){return new(_e||ge)},ge.\u0275mod=t.oAB({type:ge}),ge.\u0275inj=t.cJS({imports:[[e.si,e.BQ],e.BQ]}),ge})()},4107:(Be,K,p)=>{"use strict";p.d(K,{$L:()=>ut,LD:()=>ce,gD:()=>we});var t=p(9776),e=p(9808),f=p(5e3),M=p(508),a=p(7322),C=p(5303),d=p(5664),R=p(3191),h=p(449),L=p(1159),w=p(3075),D=p(7579),S=p(9770),k=p(6451),E=p(8675),B=p(3900),Z=p(5698),Y=p(9300),ae=p(4004),ee=p(1884),ue=p(2722),ne=p(1777),re=p(226);const ge=["trigger"],q=["panel"];function _e(Te,xe){if(1&Te&&(f.TgZ(0,"span",8),f._uU(1),f.qZA()),2&Te){const W=f.oxw();f.xp6(1),f.Oqu(W.placeholder)}}function x(Te,xe){if(1&Te&&(f.TgZ(0,"span",12),f._uU(1),f.qZA()),2&Te){const W=f.oxw(2);f.xp6(1),f.Oqu(W.triggerValue)}}function i(Te,xe){1&Te&&f.Hsn(0,0,["*ngSwitchCase","true"])}function r(Te,xe){if(1&Te&&(f.TgZ(0,"span",9),f.YNc(1,x,2,1,"span",10),f.YNc(2,i,1,0,"ng-content",11),f.qZA()),2&Te){const W=f.oxw();f.Q6J("ngSwitch",!!W.customTrigger),f.xp6(2),f.Q6J("ngSwitchCase",!0)}}function u(Te,xe){if(1&Te){const W=f.EpF();f.TgZ(0,"div",13)(1,"div",14,15),f.NdJ("@transformPanel.done",function(Ce){return f.CHM(W),f.oxw()._panelDoneAnimatingStream.next(Ce.toState)})("keydown",function(Ce){return f.CHM(W),f.oxw()._handleKeydown(Ce)}),f.Hsn(3,1),f.qZA()()}if(2&Te){const W=f.oxw();f.Q6J("@transformPanelWrap",void 0),f.xp6(1),f.Gre("mat-select-panel ",W._getPanelTheme(),""),f.Udp("transform-origin",W._transformOrigin)("font-size",W._triggerFontSize,"px"),f.Q6J("ngClass",W.panelClass)("@transformPanel",W.multiple?"showing-multiple":"showing"),f.uIk("id",W.id+"-panel")("aria-multiselectable",W.multiple)("aria-label",W.ariaLabel||null)("aria-labelledby",W._getPanelAriaLabelledby())}}const c=[[["mat-select-trigger"]],"*"],v=["mat-select-trigger","*"],T={transformPanelWrap:(0,ne.X$)("transformPanelWrap",[(0,ne.eR)("* => void",(0,ne.IO)("@transformPanel",[(0,ne.pV)()],{optional:!0}))]),transformPanel:(0,ne.X$)("transformPanel",[(0,ne.SB)("void",(0,ne.oB)({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),(0,ne.SB)("showing",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),(0,ne.SB)("showing-multiple",(0,ne.oB)({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),(0,ne.eR)("void => *",(0,ne.jt)("120ms cubic-bezier(0, 0, 0.2, 1)")),(0,ne.eR)("* => void",(0,ne.jt)("100ms 25ms linear",(0,ne.oB)({opacity:0})))])};let _=0;const V=256,Pe=new f.OlP("mat-select-scroll-strategy"),j=new f.OlP("MAT_SELECT_CONFIG"),Ve={provide:Pe,deps:[t.aV],useFactory:function Ee(Te){return()=>Te.scrollStrategies.reposition()}};class Me{constructor(xe,W){this.source=xe,this.value=W}}const J=(0,M.Kr)((0,M.sb)((0,M.Id)((0,M.FD)(class{constructor(Te,xe,W,te,Ce){this._elementRef=Te,this._defaultErrorStateMatcher=xe,this._parentForm=W,this._parentFormGroup=te,this.ngControl=Ce}})))),Ie=new f.OlP("MatSelectTrigger");let ut=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275dir=f.lG2({type:Te,selectors:[["mat-select-trigger"]],features:[f._Bn([{provide:Ie,useExisting:Te}])]}),Te})(),Oe=(()=>{class Te extends J{constructor(W,te,Ce,fe,Q,pt,tt,Dt,di,Yt,Zt,ui,Ot,Nt){var gt,it,bt;super(Q,fe,tt,Dt,Yt),this._viewportRuler=W,this._changeDetectorRef=te,this._ngZone=Ce,this._dir=pt,this._parentFormField=di,this._liveAnnouncer=Ot,this._defaultOptions=Nt,this._panelOpen=!1,this._compareWith=(ti,Qt)=>ti===Qt,this._uid="mat-select-"+_++,this._triggerAriaLabelledBy=null,this._destroy=new D.x,this._onChange=()=>{},this._onTouched=()=>{},this._valueId="mat-select-value-"+_++,this._panelDoneAnimatingStream=new D.x,this._overlayPanelClass=(null===(gt=this._defaultOptions)||void 0===gt?void 0:gt.overlayPanelClass)||"",this._focused=!1,this.controlType="mat-select",this._multiple=!1,this._disableOptionCentering=null!==(bt=null===(it=this._defaultOptions)||void 0===it?void 0:it.disableOptionCentering)&&void 0!==bt&&bt,this.ariaLabel="",this.optionSelectionChanges=(0,S.P)(()=>{const ti=this.options;return ti?ti.changes.pipe((0,E.O)(ti),(0,B.w)(()=>(0,k.T)(...ti.map(Qt=>Qt.onSelectionChange)))):this._ngZone.onStable.pipe((0,Z.q)(1),(0,B.w)(()=>this.optionSelectionChanges))}),this.openedChange=new f.vpe,this._openedStream=this.openedChange.pipe((0,Y.h)(ti=>ti),(0,ae.U)(()=>{})),this._closedStream=this.openedChange.pipe((0,Y.h)(ti=>!ti),(0,ae.U)(()=>{})),this.selectionChange=new f.vpe,this.valueChange=new f.vpe,this.ngControl&&(this.ngControl.valueAccessor=this),null!=(null==Nt?void 0:Nt.typeaheadDebounceInterval)&&(this._typeaheadDebounceInterval=Nt.typeaheadDebounceInterval),this._scrollStrategyFactory=ui,this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=parseInt(Zt)||0,this.id=this.id}get focused(){return this._focused||this._panelOpen}get placeholder(){return this._placeholder}set placeholder(W){this._placeholder=W,this.stateChanges.next()}get required(){var W,te,Ce,fe;return null!==(fe=null!==(W=this._required)&&void 0!==W?W:null===(Ce=null===(te=this.ngControl)||void 0===te?void 0:te.control)||void 0===Ce?void 0:Ce.hasValidator(w.kI.required))&&void 0!==fe&&fe}set required(W){this._required=(0,R.Ig)(W),this.stateChanges.next()}get multiple(){return this._multiple}set multiple(W){this._multiple=(0,R.Ig)(W)}get disableOptionCentering(){return this._disableOptionCentering}set disableOptionCentering(W){this._disableOptionCentering=(0,R.Ig)(W)}get compareWith(){return this._compareWith}set compareWith(W){this._compareWith=W,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(W){this._assignValue(W)&&this._onChange(W)}get typeaheadDebounceInterval(){return this._typeaheadDebounceInterval}set typeaheadDebounceInterval(W){this._typeaheadDebounceInterval=(0,R.su)(W)}get id(){return this._id}set id(W){this._id=W||this._uid,this.stateChanges.next()}ngOnInit(){this._selectionModel=new h.Ov(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe((0,ee.x)(),(0,ue.R)(this._destroy)).subscribe(()=>this._panelDoneAnimating(this.panelOpen))}ngAfterContentInit(){this._initKeyManager(),this._selectionModel.changed.pipe((0,ue.R)(this._destroy)).subscribe(W=>{W.added.forEach(te=>te.select()),W.removed.forEach(te=>te.deselect())}),this.options.changes.pipe((0,E.O)(null),(0,ue.R)(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){const W=this._getTriggerAriaLabelledby(),te=this.ngControl;if(W!==this._triggerAriaLabelledBy){const Ce=this._elementRef.nativeElement;this._triggerAriaLabelledBy=W,W?Ce.setAttribute("aria-labelledby",W):Ce.removeAttribute("aria-labelledby")}te&&(this._previousControl!==te.control&&(void 0!==this._previousControl&&null!==te.disabled&&te.disabled!==this.disabled&&(this.disabled=te.disabled),this._previousControl=te.control),this.updateErrorState())}ngOnChanges(W){W.disabled&&this.stateChanges.next(),W.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(W){this._assignValue(W)}registerOnChange(W){this._onChange=W}registerOnTouched(W){this._onTouched=W}setDisabledState(W){this.disabled=W,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){var W,te;return this.multiple?(null===(W=this._selectionModel)||void 0===W?void 0:W.selected)||[]:null===(te=this._selectionModel)||void 0===te?void 0:te.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){const W=this._selectionModel.selected.map(te=>te.viewValue);return this._isRtl()&&W.reverse(),W.join(", ")}return this._selectionModel.selected[0].viewValue}_isRtl(){return!!this._dir&&"rtl"===this._dir.value}_handleKeydown(W){this.disabled||(this.panelOpen?this._handleOpenKeydown(W):this._handleClosedKeydown(W))}_handleClosedKeydown(W){const te=W.keyCode,Ce=te===L.JH||te===L.LH||te===L.oh||te===L.SV,fe=te===L.K5||te===L.L_,Q=this._keyManager;if(!Q.isTyping()&&fe&&!(0,L.Vb)(W)||(this.multiple||W.altKey)&&Ce)W.preventDefault(),this.open();else if(!this.multiple){const pt=this.selected;Q.onKeydown(W);const tt=this.selected;tt&&pt!==tt&&this._liveAnnouncer.announce(tt.viewValue,1e4)}}_handleOpenKeydown(W){const te=this._keyManager,Ce=W.keyCode,fe=Ce===L.JH||Ce===L.LH,Q=te.isTyping();if(fe&&W.altKey)W.preventDefault(),this.close();else if(Q||Ce!==L.K5&&Ce!==L.L_||!te.activeItem||(0,L.Vb)(W))if(!Q&&this._multiple&&Ce===L.A&&W.ctrlKey){W.preventDefault();const pt=this.options.some(tt=>!tt.disabled&&!tt.selected);this.options.forEach(tt=>{tt.disabled||(pt?tt.select():tt.deselect())})}else{const pt=te.activeItemIndex;te.onKeydown(W),this._multiple&&fe&&W.shiftKey&&te.activeItem&&te.activeItemIndex!==pt&&te.activeItem._selectViaInteraction()}else W.preventDefault(),te.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,Z.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.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(W){if(this._selectionModel.selected.forEach(te=>te.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&W)Array.isArray(W),W.forEach(te=>this._selectOptionByValue(te)),this._sortValues();else{const te=this._selectOptionByValue(W);te?this._keyManager.updateActiveItem(te):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(W){const te=this.options.find(Ce=>{if(this._selectionModel.isSelected(Ce))return!1;try{return null!=Ce.value&&this._compareWith(Ce.value,W)}catch(fe){return!1}});return te&&this._selectionModel.select(te),te}_assignValue(W){return!!(W!==this._value||this._multiple&&Array.isArray(W))&&(this.options&&this._setSelectionByValue(W),this._value=W,!0)}_initKeyManager(){this._keyManager=new d.s1(this.options).withTypeAhead(this._typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe((0,ue.R)(this._destroy)).subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.pipe((0,ue.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 W=(0,k.T)(this.options.changes,this._destroy);this.optionSelectionChanges.pipe((0,ue.R)(W)).subscribe(te=>{this._onSelect(te.source,te.isUserInput),te.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),(0,k.T)(...this.options.map(te=>te._stateChanges)).pipe((0,ue.R)(W)).subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}_onSelect(W,te){const Ce=this._selectionModel.isSelected(W);null!=W.value||this._multiple?(Ce!==W.selected&&(W.selected?this._selectionModel.select(W):this._selectionModel.deselect(W)),te&&this._keyManager.setActiveItem(W),this.multiple&&(this._sortValues(),te&&this.focus())):(W.deselect(),this._selectionModel.clear(),null!=this.value&&this._propagateChanges(W.value)),Ce!==this._selectionModel.isSelected(W)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){const W=this.options.toArray();this._selectionModel.sort((te,Ce)=>this.sortComparator?this.sortComparator(te,Ce,W):W.indexOf(te)-W.indexOf(Ce)),this.stateChanges.next()}}_propagateChanges(W){let te=null;te=this.multiple?this.selected.map(Ce=>Ce.value):this.selected?this.selected.value:W,this._value=te,this.valueChange.emit(te),this._onChange(te),this.selectionChange.emit(this._getChangeEvent(te)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))}_canOpen(){var W;return!this._panelOpen&&!this.disabled&&(null===(W=this.options)||void 0===W?void 0:W.length)>0}focus(W){this._elementRef.nativeElement.focus(W)}_getPanelAriaLabelledby(){var W;if(this.ariaLabel)return null;const te=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();return this.ariaLabelledby?(te?te+" ":"")+this.ariaLabelledby:te}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){var W;if(this.ariaLabel)return null;const te=null===(W=this._parentFormField)||void 0===W?void 0:W.getLabelId();let Ce=(te?te+" ":"")+this._valueId;return this.ariaLabelledby&&(Ce+=" "+this.ariaLabelledby),Ce}_panelDoneAnimating(W){this.openedChange.emit(W)}setDescribedByIds(W){this._ariaDescribedby=W.join(" ")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this._panelOpen||!this.empty||this._focused&&!!this._placeholder}}return Te.\u0275fac=function(W){return new(W||Te)(f.Y36(C.rL),f.Y36(f.sBO),f.Y36(f.R0b),f.Y36(M.rD),f.Y36(f.SBq),f.Y36(re.Is,8),f.Y36(w.F,8),f.Y36(w.sg,8),f.Y36(a.G_,8),f.Y36(w.a5,10),f.$8M("tabindex"),f.Y36(Pe),f.Y36(d.Kd),f.Y36(j,8))},Te.\u0275dir=f.lG2({type:Te,viewQuery:function(W,te){if(1&W&&(f.Gf(ge,5),f.Gf(q,5),f.Gf(t.pI,5)),2&W){let Ce;f.iGM(Ce=f.CRH())&&(te.trigger=Ce.first),f.iGM(Ce=f.CRH())&&(te.panel=Ce.first),f.iGM(Ce=f.CRH())&&(te._overlayDir=Ce.first)}},inputs:{panelClass:"panelClass",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator",id:"id"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},features:[f.qOj,f.TTD]}),Te})(),we=(()=>{class Te extends Oe{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(W,te,Ce){const fe=this._getItemHeight();return Math.min(Math.max(0,fe*W-te+fe/2),Ce)}ngOnInit(){super.ngOnInit(),this._viewportRuler.change().pipe((0,ue.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,Z.q)(1)).subscribe(()=>{this._triggerFontSize&&this._overlayDir.overlayRef&&this._overlayDir.overlayRef.overlayElement&&(this._overlayDir.overlayRef.overlayElement.style.fontSize=`${this._triggerFontSize}px`)}))}_scrollOptionIntoView(W){const te=(0,M.CB)(W,this.options,this.optionGroups),Ce=this._getItemHeight();this.panel.nativeElement.scrollTop=0===W&&1===te?0:(0,M.jH)((W+te)*Ce,Ce,this.panel.nativeElement.scrollTop,V)}_positioningSettled(){this._calculateOverlayOffsetX(),this.panel.nativeElement.scrollTop=this._scrollTop}_panelDoneAnimating(W){this.panelOpen?this._scrollTop=0:(this._overlayDir.offsetX=0,this._changeDetectorRef.markForCheck()),super._panelDoneAnimating(W)}_getChangeEvent(W){return new Me(this,W)}_calculateOverlayOffsetX(){const W=this._overlayDir.overlayRef.overlayElement.getBoundingClientRect(),te=this._viewportRuler.getViewportSize(),Ce=this._isRtl(),fe=this.multiple?56:32;let Q;if(this.multiple)Q=40;else if(this.disableOptionCentering)Q=16;else{let Dt=this._selectionModel.selected[0]||this.options.first;Q=Dt&&Dt.group?32:16}Ce||(Q*=-1);const pt=0-(W.left+Q-(Ce?fe:0)),tt=W.right+Q-te.width+(Ce?0:fe);pt>0?Q+=pt+8:tt>0&&(Q-=tt+8),this._overlayDir.offsetX=Math.round(Q),this._overlayDir.overlayRef.updatePosition()}_calculateOverlayOffsetY(W,te,Ce){const fe=this._getItemHeight(),Q=(fe-this._triggerRect.height)/2,pt=Math.floor(V/fe);let tt;return this.disableOptionCentering?0:(tt=0===this._scrollTop?W*fe:this._scrollTop===Ce?(W-(this._getItemCount()-pt))*fe+(fe-(this._getItemCount()*fe-V)%fe):te-fe/2,Math.round(-1*tt-Q))}_checkOverlayWithinViewport(W){const te=this._getItemHeight(),Ce=this._viewportRuler.getViewportSize(),fe=this._triggerRect.top-8,Q=Ce.height-this._triggerRect.bottom-8,pt=Math.abs(this._offsetY),Dt=Math.min(this._getItemCount()*te,V)-pt-this._triggerRect.height;Dt>Q?this._adjustPanelUp(Dt,Q):pt>fe?this._adjustPanelDown(pt,fe,W):this._transformOrigin=this._getOriginBasedOnOption()}_adjustPanelUp(W,te){const Ce=Math.round(W-te);this._scrollTop-=Ce,this._offsetY-=Ce,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")}_adjustPanelDown(W,te,Ce){const fe=Math.round(W-te);if(this._scrollTop+=fe,this._offsetY+=fe,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=Ce)return this._scrollTop=Ce,this._offsetY=0,void(this._transformOrigin="50% top 0px")}_calculateOverlayPosition(){const W=this._getItemHeight(),te=this._getItemCount(),Ce=Math.min(te*W,V),Q=te*W-Ce;let pt;pt=this.empty?0:Math.max(this.options.toArray().indexOf(this._selectionModel.selected[0]),0),pt+=(0,M.CB)(pt,this.options,this.optionGroups);const tt=Ce/2;this._scrollTop=this._calculateOverlayScroll(pt,tt,Q),this._offsetY=this._calculateOverlayOffsetY(pt,tt,Q),this._checkOverlayWithinViewport(Q)}_getOriginBasedOnOption(){const W=this._getItemHeight(),te=(W-this._triggerRect.height)/2;return`50% ${Math.abs(this._offsetY)-te+W/2}px 0px`}_getItemHeight(){return 3*this._triggerFontSize}_getItemCount(){return this.options.length+this.optionGroups.length}}return Te.\u0275fac=function(){let xe;return function(te){return(xe||(xe=f.n5z(Te)))(te||Te)}}(),Te.\u0275cmp=f.Xpm({type:Te,selectors:[["mat-select"]],contentQueries:function(W,te,Ce){if(1&W&&(f.Suo(Ce,Ie,5),f.Suo(Ce,M.ey,5),f.Suo(Ce,M.K7,5)),2&W){let fe;f.iGM(fe=f.CRH())&&(te.customTrigger=fe.first),f.iGM(fe=f.CRH())&&(te.options=fe),f.iGM(fe=f.CRH())&&(te.optionGroups=fe)}},hostAttrs:["role","combobox","aria-autocomplete","none","aria-haspopup","true",1,"mat-select"],hostVars:20,hostBindings:function(W,te){1&W&&f.NdJ("keydown",function(fe){return te._handleKeydown(fe)})("focus",function(){return te._onFocus()})("blur",function(){return te._onBlur()}),2&W&&(f.uIk("id",te.id)("tabindex",te.tabIndex)("aria-controls",te.panelOpen?te.id+"-panel":null)("aria-expanded",te.panelOpen)("aria-label",te.ariaLabel||null)("aria-required",te.required.toString())("aria-disabled",te.disabled.toString())("aria-invalid",te.errorState)("aria-describedby",te._ariaDescribedby||null)("aria-activedescendant",te._getAriaActiveDescendant()),f.ekj("mat-select-disabled",te.disabled)("mat-select-invalid",te.errorState)("mat-select-required",te.required)("mat-select-empty",te.empty)("mat-select-multiple",te.multiple))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matSelect"],features:[f._Bn([{provide:a.Eo,useExisting:Te},{provide:M.HF,useExisting:Te}]),f.qOj],ngContentSelectors:v,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(W,te){if(1&W&&(f.F$t(c),f.TgZ(0,"div",0,1),f.NdJ("click",function(){return te.toggle()}),f.TgZ(3,"div",2),f.YNc(4,_e,2,1,"span",3),f.YNc(5,r,3,2,"span",4),f.qZA(),f.TgZ(6,"div",5),f._UZ(7,"div",6),f.qZA()(),f.YNc(8,u,4,14,"ng-template",7),f.NdJ("backdropClick",function(){return te.close()})("attach",function(){return te._onAttached()})("detach",function(){return te.close()})),2&W){const Ce=f.MAs(1);f.uIk("aria-owns",te.panelOpen?te.id+"-panel":null),f.xp6(3),f.Q6J("ngSwitch",te.empty),f.uIk("id",te._valueId),f.xp6(1),f.Q6J("ngSwitchCase",!0),f.xp6(1),f.Q6J("ngSwitchCase",!1),f.xp6(3),f.Q6J("cdkConnectedOverlayPanelClass",te._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",te._scrollStrategy)("cdkConnectedOverlayOrigin",Ce)("cdkConnectedOverlayOpen",te.panelOpen)("cdkConnectedOverlayPositions",te._positions)("cdkConnectedOverlayMinWidth",null==te._triggerRect?null:te._triggerRect.width)("cdkConnectedOverlayOffsetY",te._offsetY)}},directives:[t.xu,e.RF,e.n9,e.ED,t.pI,e.mk],styles:['.mat-select{display:inline-block;width:100%;outline:none}.mat-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-select-value{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{height:16px;flex-shrink:0;display:inline-flex;align-items:center}.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-form-field.mat-focused .mat-select-arrow{transform:translateX(0)}.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;display:inline-block;visibility:hidden}\n'],encapsulation:2,data:{animation:[T.transformPanelWrap,T.transformPanel]},changeDetection:0}),Te})(),ce=(()=>{class Te{}return Te.\u0275fac=function(W){return new(W||Te)},Te.\u0275mod=f.oAB({type:Te}),Te.\u0275inj=f.cJS({providers:[Ve],imports:[[e.ez,t.U8,M.Ng,M.BQ],C.ZD,a.lN,M.Ng,M.BQ]}),Te})()},2638:(Be,K,p)=>{"use strict";p.d(K,{JX:()=>be,Rh:()=>he,SJ:()=>Ee,TM:()=>Pe});var t=p(5303),e=p(9808),f=p(5e3),M=p(508),a=p(3191),C=p(1159),d=p(7579),R=p(4968),h=p(6451),L=p(9300),w=p(4004),D=p(9718),S=p(2722),k=p(1884),E=p(5698),B=p(8675),Z=p(8372),Y=p(1777),ae=p(6360),ee=p(5664),ue=p(925),ne=p(226);const re=["*"],ge=["content"];function q(j,Ve){if(1&j){const Me=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(Me),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&j){const Me=f.oxw();f.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function _e(j,Ve){1&j&&(f.TgZ(0,"mat-drawer-content"),f.Hsn(1,2),f.qZA())}const x=[[["mat-drawer"]],[["mat-drawer-content"]],"*"],i=["mat-drawer","mat-drawer-content","*"];function r(j,Ve){if(1&j){const Me=f.EpF();f.TgZ(0,"div",2),f.NdJ("click",function(){return f.CHM(Me),f.oxw()._onBackdropClicked()}),f.qZA()}if(2&j){const Me=f.oxw();f.ekj("mat-drawer-shown",Me._isShowingBackdrop())}}function u(j,Ve){1&j&&(f.TgZ(0,"mat-sidenav-content"),f.Hsn(1,2),f.qZA())}const c=[[["mat-sidenav"]],[["mat-sidenav-content"]],"*"],v=["mat-sidenav","mat-sidenav-content","*"],I={transformDrawer:(0,Y.X$)("transform",[(0,Y.SB)("open, open-instant",(0,Y.oB)({transform:"none",visibility:"visible"})),(0,Y.SB)("void",(0,Y.oB)({"box-shadow":"none",visibility:"hidden"})),(0,Y.eR)("void => open-instant",(0,Y.jt)("0ms")),(0,Y.eR)("void <=> open, open-instant => void",(0,Y.jt)("400ms cubic-bezier(0.25, 0.8, 0.25, 1)"))])},n=new f.OlP("MAT_DRAWER_DEFAULT_AUTOSIZE",{providedIn:"root",factory:function V(){return!1}}),_=new f.OlP("MAT_DRAWER_CONTAINER");let N=(()=>{class j extends t.PQ{constructor(Me,J,Ie,ut,Oe){super(Ie,ut,Oe),this._changeDetectorRef=Me,this._container=J}ngAfterContentInit(){this._container._contentMarginChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()})}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>X)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-drawer-content"]],hostAttrs:[1,"mat-drawer-content"],hostVars:4,hostBindings:function(Me,J){2&Me&&f.Udp("margin-left",J._container._contentMargins.left,"px")("margin-right",J._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:j}]),f.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,J){1&Me&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),j})(),H=(()=>{class j{constructor(Me,J,Ie,ut,Oe,we,ce,Te){this._elementRef=Me,this._focusTrapFactory=J,this._focusMonitor=Ie,this._platform=ut,this._ngZone=Oe,this._interactivityChecker=we,this._doc=ce,this._container=Te,this._elementFocusedBeforeDrawerWasOpened=null,this._enableAnimations=!1,this._position="start",this._mode="over",this._disableClose=!1,this._opened=!1,this._animationStarted=new d.x,this._animationEnd=new d.x,this._animationState="void",this.openedChange=new f.vpe(!0),this._openedStream=this.openedChange.pipe((0,L.h)(xe=>xe),(0,w.U)(()=>{})),this.openedStart=this._animationStarted.pipe((0,L.h)(xe=>xe.fromState!==xe.toState&&0===xe.toState.indexOf("open")),(0,D.h)(void 0)),this._closedStream=this.openedChange.pipe((0,L.h)(xe=>!xe),(0,w.U)(()=>{})),this.closedStart=this._animationStarted.pipe((0,L.h)(xe=>xe.fromState!==xe.toState&&"void"===xe.toState),(0,D.h)(void 0)),this._destroyed=new d.x,this.onPositionChanged=new f.vpe,this._modeChanged=new d.x,this.openedChange.subscribe(xe=>{xe?(this._doc&&(this._elementFocusedBeforeDrawerWasOpened=this._doc.activeElement),this._takeFocus()):this._isFocusWithinDrawer()&&this._restoreFocus(this._openedVia||"program")}),this._ngZone.runOutsideAngular(()=>{(0,R.R)(this._elementRef.nativeElement,"keydown").pipe((0,L.h)(xe=>xe.keyCode===C.hY&&!this.disableClose&&!(0,C.Vb)(xe)),(0,S.R)(this._destroyed)).subscribe(xe=>this._ngZone.run(()=>{this.close(),xe.stopPropagation(),xe.preventDefault()}))}),this._animationEnd.pipe((0,k.x)((xe,W)=>xe.fromState===W.fromState&&xe.toState===W.toState)).subscribe(xe=>{const{fromState:W,toState:te}=xe;(0===te.indexOf("open")&&"void"===W||"void"===te&&0===W.indexOf("open"))&&this.openedChange.emit(this._opened)})}get position(){return this._position}set position(Me){(Me="end"===Me?"end":"start")!==this._position&&(this._isAttached&&this._updatePositionInParent(Me),this._position=Me,this.onPositionChanged.emit())}get mode(){return this._mode}set mode(Me){this._mode=Me,this._updateFocusTrapState(),this._modeChanged.next()}get disableClose(){return this._disableClose}set disableClose(Me){this._disableClose=(0,a.Ig)(Me)}get autoFocus(){const Me=this._autoFocus;return null==Me?"side"===this.mode?"dialog":"first-tabbable":Me}set autoFocus(Me){("true"===Me||"false"===Me||null==Me)&&(Me=(0,a.Ig)(Me)),this._autoFocus=Me}get opened(){return this._opened}set opened(Me){this.toggle((0,a.Ig)(Me))}_forceFocus(Me,J){this._interactivityChecker.isFocusable(Me)||(Me.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{const Ie=()=>{Me.removeEventListener("blur",Ie),Me.removeEventListener("mousedown",Ie),Me.removeAttribute("tabindex")};Me.addEventListener("blur",Ie),Me.addEventListener("mousedown",Ie)})),Me.focus(J)}_focusByCssSelector(Me,J){let Ie=this._elementRef.nativeElement.querySelector(Me);Ie&&this._forceFocus(Ie,J)}_takeFocus(){if(!this._focusTrap)return;const Me=this._elementRef.nativeElement;switch(this.autoFocus){case!1:case"dialog":return;case!0:case"first-tabbable":this._focusTrap.focusInitialElementWhenReady().then(J=>{!J&&"function"==typeof this._elementRef.nativeElement.focus&&Me.focus()});break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]');break;default:this._focusByCssSelector(this.autoFocus)}}_restoreFocus(Me){"dialog"!==this.autoFocus&&(this._elementFocusedBeforeDrawerWasOpened?this._focusMonitor.focusVia(this._elementFocusedBeforeDrawerWasOpened,Me):this._elementRef.nativeElement.blur(),this._elementFocusedBeforeDrawerWasOpened=null)}_isFocusWithinDrawer(){const Me=this._doc.activeElement;return!!Me&&this._elementRef.nativeElement.contains(Me)}ngAfterViewInit(){this._isAttached=!0,this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._updateFocusTrapState(),"end"===this._position&&this._updatePositionInParent("end")}ngAfterContentChecked(){this._platform.isBrowser&&(this._enableAnimations=!0)}ngOnDestroy(){var Me;this._focusTrap&&this._focusTrap.destroy(),null===(Me=this._anchor)||void 0===Me||Me.remove(),this._anchor=null,this._animationStarted.complete(),this._animationEnd.complete(),this._modeChanged.complete(),this._destroyed.next(),this._destroyed.complete()}open(Me){return this.toggle(!0,Me)}close(){return this.toggle(!1)}_closeViaBackdropClick(){return this._setOpen(!1,!0,"mouse")}toggle(Me=!this.opened,J){Me&&J&&(this._openedVia=J);const Ie=this._setOpen(Me,!Me&&this._isFocusWithinDrawer(),this._openedVia||"program");return Me||(this._openedVia=null),Ie}_setOpen(Me,J,Ie){return this._opened=Me,Me?this._animationState=this._enableAnimations?"open":"open-instant":(this._animationState="void",J&&this._restoreFocus(Ie)),this._updateFocusTrapState(),new Promise(ut=>{this.openedChange.pipe((0,E.q)(1)).subscribe(Oe=>ut(Oe?"open":"close"))})}_getWidth(){return this._elementRef.nativeElement&&this._elementRef.nativeElement.offsetWidth||0}_updateFocusTrapState(){this._focusTrap&&(this._focusTrap.enabled=this.opened&&"side"!==this.mode)}_updatePositionInParent(Me){const J=this._elementRef.nativeElement,Ie=J.parentNode;"end"===Me?(this._anchor||(this._anchor=this._doc.createComment("mat-drawer-anchor"),Ie.insertBefore(this._anchor,J)),Ie.appendChild(J)):this._anchor&&this._anchor.parentNode.insertBefore(J,this._anchor)}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(f.SBq),f.Y36(ee.qV),f.Y36(ee.tE),f.Y36(ue.t4),f.Y36(f.R0b),f.Y36(ee.ic),f.Y36(e.K0,8),f.Y36(_,8))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-drawer"]],viewQuery:function(Me,J){if(1&Me&&f.Gf(ge,5),2&Me){let Ie;f.iGM(Ie=f.CRH())&&(J._content=Ie.first)}},hostAttrs:["tabIndex","-1",1,"mat-drawer"],hostVars:12,hostBindings:function(Me,J){1&Me&&f.WFA("@transform.start",function(ut){return J._animationStarted.next(ut)})("@transform.done",function(ut){return J._animationEnd.next(ut)}),2&Me&&(f.uIk("align",null),f.d8E("@transform",J._animationState),f.ekj("mat-drawer-end","end"===J.position)("mat-drawer-over","over"===J.mode)("mat-drawer-push","push"===J.mode)("mat-drawer-side","side"===J.mode)("mat-drawer-opened",J.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:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Me,J){1&Me&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),j})(),X=(()=>{class j{constructor(Me,J,Ie,ut,Oe,we=!1,ce){this._dir=Me,this._element=J,this._ngZone=Ie,this._changeDetectorRef=ut,this._animationMode=ce,this._drawers=new f.n_E,this.backdropClick=new f.vpe,this._destroyed=new d.x,this._doCheckSubject=new d.x,this._contentMargins={left:null,right:null},this._contentMarginChanges=new d.x,Me&&Me.change.pipe((0,S.R)(this._destroyed)).subscribe(()=>{this._validateDrawers(),this.updateContentMargins()}),Oe.change().pipe((0,S.R)(this._destroyed)).subscribe(()=>this.updateContentMargins()),this._autosize=we}get start(){return this._start}get end(){return this._end}get autosize(){return this._autosize}set autosize(Me){this._autosize=(0,a.Ig)(Me)}get hasBackdrop(){return null==this._backdropOverride?!this._start||"side"!==this._start.mode||!this._end||"side"!==this._end.mode:this._backdropOverride}set hasBackdrop(Me){this._backdropOverride=null==Me?null:(0,a.Ig)(Me)}get scrollable(){return this._userContent||this._content}ngAfterContentInit(){this._allDrawers.changes.pipe((0,B.O)(this._allDrawers),(0,S.R)(this._destroyed)).subscribe(Me=>{this._drawers.reset(Me.filter(J=>!J._container||J._container===this)),this._drawers.notifyOnChanges()}),this._drawers.changes.pipe((0,B.O)(null)).subscribe(()=>{this._validateDrawers(),this._drawers.forEach(Me=>{this._watchDrawerToggle(Me),this._watchDrawerPosition(Me),this._watchDrawerMode(Me)}),(!this._drawers.length||this._isDrawerOpen(this._start)||this._isDrawerOpen(this._end))&&this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),this._ngZone.runOutsideAngular(()=>{this._doCheckSubject.pipe((0,Z.b)(10),(0,S.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(Me=>Me.open())}close(){this._drawers.forEach(Me=>Me.close())}updateContentMargins(){let Me=0,J=0;if(this._left&&this._left.opened)if("side"==this._left.mode)Me+=this._left._getWidth();else if("push"==this._left.mode){const Ie=this._left._getWidth();Me+=Ie,J-=Ie}if(this._right&&this._right.opened)if("side"==this._right.mode)J+=this._right._getWidth();else if("push"==this._right.mode){const Ie=this._right._getWidth();J+=Ie,Me-=Ie}Me=Me||null,J=J||null,(Me!==this._contentMargins.left||J!==this._contentMargins.right)&&(this._contentMargins={left:Me,right:J},this._ngZone.run(()=>this._contentMarginChanges.next(this._contentMargins)))}ngDoCheck(){this._autosize&&this._isPushed()&&this._ngZone.runOutsideAngular(()=>this._doCheckSubject.next())}_watchDrawerToggle(Me){Me._animationStarted.pipe((0,L.h)(J=>J.fromState!==J.toState),(0,S.R)(this._drawers.changes)).subscribe(J=>{"open-instant"!==J.toState&&"NoopAnimations"!==this._animationMode&&this._element.nativeElement.classList.add("mat-drawer-transition"),this.updateContentMargins(),this._changeDetectorRef.markForCheck()}),"side"!==Me.mode&&Me.openedChange.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>this._setContainerClass(Me.opened))}_watchDrawerPosition(Me){!Me||Me.onPositionChanged.pipe((0,S.R)(this._drawers.changes)).subscribe(()=>{this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1)).subscribe(()=>{this._validateDrawers()})})}_watchDrawerMode(Me){Me&&Me._modeChanged.pipe((0,S.R)((0,h.T)(this._drawers.changes,this._destroyed))).subscribe(()=>{this.updateContentMargins(),this._changeDetectorRef.markForCheck()})}_setContainerClass(Me){const J=this._element.nativeElement.classList,Ie="mat-drawer-container-has-open";Me?J.add(Ie):J.remove(Ie)}_validateDrawers(){this._start=this._end=null,this._drawers.forEach(Me=>{"end"==Me.position?this._end=Me:this._start=Me}),this._right=this._left=null,this._dir&&"rtl"===this._dir.value?(this._left=this._end,this._right=this._start):(this._left=this._start,this._right=this._end)}_isPushed(){return this._isDrawerOpen(this._start)&&"over"!=this._start.mode||this._isDrawerOpen(this._end)&&"over"!=this._end.mode}_onBackdropClicked(){this.backdropClick.emit(),this._closeModalDrawersViaBackdrop()}_closeModalDrawersViaBackdrop(){[this._start,this._end].filter(Me=>Me&&!Me.disableClose&&this._canHaveBackdrop(Me)).forEach(Me=>Me._closeViaBackdropClick())}_isShowingBackdrop(){return this._isDrawerOpen(this._start)&&this._canHaveBackdrop(this._start)||this._isDrawerOpen(this._end)&&this._canHaveBackdrop(this._end)}_canHaveBackdrop(Me){return"side"!==Me.mode||!!this._backdropOverride}_isDrawerOpen(Me){return null!=Me&&Me.opened}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(ne.Is,8),f.Y36(f.SBq),f.Y36(f.R0b),f.Y36(f.sBO),f.Y36(t.rL),f.Y36(n),f.Y36(ae.Qb,8))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-drawer-container"]],contentQueries:function(Me,J,Ie){if(1&Me&&(f.Suo(Ie,N,5),f.Suo(Ie,H,5)),2&Me){let ut;f.iGM(ut=f.CRH())&&(J._content=ut.first),f.iGM(ut=f.CRH())&&(J._allDrawers=ut)}},viewQuery:function(Me,J){if(1&Me&&f.Gf(N,5),2&Me){let Ie;f.iGM(Ie=f.CRH())&&(J._userContent=Ie.first)}},hostAttrs:[1,"mat-drawer-container"],hostVars:2,hostBindings:function(Me,J){2&Me&&f.ekj("mat-drawer-container-explicit-backdrop",J._backdropOverride)},inputs:{autosize:"autosize",hasBackdrop:"hasBackdrop"},outputs:{backdropClick:"backdropClick"},exportAs:["matDrawerContainer"],features:[f._Bn([{provide:_,useExisting:j}])],ngContentSelectors:i,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(Me,J){1&Me&&(f.F$t(x),f.YNc(0,q,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,_e,2,0,"mat-drawer-content",1)),2&Me&&(f.Q6J("ngIf",J.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!J._content))},directives:[N,e.O5],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),j})(),he=(()=>{class j extends N{constructor(Me,J,Ie,ut,Oe){super(Me,J,Ie,ut,Oe)}}return j.\u0275fac=function(Me){return new(Me||j)(f.Y36(f.sBO),f.Y36((0,f.Gpc)(()=>Pe)),f.Y36(f.SBq),f.Y36(t.mF),f.Y36(f.R0b))},j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-sidenav-content"]],hostAttrs:[1,"mat-drawer-content","mat-sidenav-content"],hostVars:4,hostBindings:function(Me,J){2&Me&&f.Udp("margin-left",J._container._contentMargins.left,"px")("margin-right",J._container._contentMargins.right,"px")},features:[f._Bn([{provide:t.PQ,useExisting:j}]),f.qOj],ngContentSelectors:re,decls:1,vars:0,template:function(Me,J){1&Me&&(f.F$t(),f.Hsn(0))},encapsulation:2,changeDetection:0}),j})(),be=(()=>{class j extends H{constructor(){super(...arguments),this._fixedInViewport=!1,this._fixedTopGap=0,this._fixedBottomGap=0}get fixedInViewport(){return this._fixedInViewport}set fixedInViewport(Me){this._fixedInViewport=(0,a.Ig)(Me)}get fixedTopGap(){return this._fixedTopGap}set fixedTopGap(Me){this._fixedTopGap=(0,a.su)(Me)}get fixedBottomGap(){return this._fixedBottomGap}set fixedBottomGap(Me){this._fixedBottomGap=(0,a.su)(Me)}}return j.\u0275fac=function(){let Ve;return function(J){return(Ve||(Ve=f.n5z(j)))(J||j)}}(),j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-sidenav"]],hostAttrs:["tabIndex","-1",1,"mat-drawer","mat-sidenav"],hostVars:17,hostBindings:function(Me,J){2&Me&&(f.uIk("align",null),f.Udp("top",J.fixedInViewport?J.fixedTopGap:null,"px")("bottom",J.fixedInViewport?J.fixedBottomGap:null,"px"),f.ekj("mat-drawer-end","end"===J.position)("mat-drawer-over","over"===J.mode)("mat-drawer-push","push"===J.mode)("mat-drawer-side","side"===J.mode)("mat-drawer-opened",J.opened)("mat-sidenav-fixed",J.fixedInViewport))},inputs:{fixedInViewport:"fixedInViewport",fixedTopGap:"fixedTopGap",fixedBottomGap:"fixedBottomGap"},exportAs:["matSidenav"],features:[f.qOj],ngContentSelectors:re,decls:3,vars:0,consts:[["cdkScrollable","",1,"mat-drawer-inner-container"],["content",""]],template:function(Me,J){1&Me&&(f.F$t(),f.TgZ(0,"div",0,1),f.Hsn(2),f.qZA())},directives:[t.PQ],encapsulation:2,data:{animation:[I.transformDrawer]},changeDetection:0}),j})(),Pe=(()=>{class j extends X{}return j.\u0275fac=function(){let Ve;return function(J){return(Ve||(Ve=f.n5z(j)))(J||j)}}(),j.\u0275cmp=f.Xpm({type:j,selectors:[["mat-sidenav-container"]],contentQueries:function(Me,J,Ie){if(1&Me&&(f.Suo(Ie,he,5),f.Suo(Ie,be,5)),2&Me){let ut;f.iGM(ut=f.CRH())&&(J._content=ut.first),f.iGM(ut=f.CRH())&&(J._allDrawers=ut)}},hostAttrs:[1,"mat-drawer-container","mat-sidenav-container"],hostVars:2,hostBindings:function(Me,J){2&Me&&f.ekj("mat-drawer-container-explicit-backdrop",J._backdropOverride)},exportAs:["matSidenavContainer"],features:[f._Bn([{provide:_,useExisting:j}]),f.qOj],ngContentSelectors:v,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(Me,J){1&Me&&(f.F$t(c),f.YNc(0,r,1,2,"div",0),f.Hsn(1),f.Hsn(2,1),f.YNc(3,u,2,0,"mat-sidenav-content",1)),2&Me&&(f.Q6J("ngIf",J.hasBackdrop),f.xp6(3),f.Q6J("ngIf",!J._content))},directives:[he,e.O5],styles:['.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[style*="visibility: hidden"]{display:none}.mat-drawer-inner-container{width:100%;height:100%;overflow:auto;-webkit-overflow-scrolling:touch}.mat-sidenav-fixed{position:fixed}\n'],encapsulation:2,changeDetection:0}),j})(),Ee=(()=>{class j{}return j.\u0275fac=function(Me){return new(Me||j)},j.\u0275mod=f.oAB({type:j}),j.\u0275inj=f.cJS({imports:[[e.ez,M.BQ,t.ZD],t.ZD,M.BQ]}),j})()},2368:(Be,K,p)=>{"use strict";p.d(K,{Rr:()=>Y,rP:()=>ne});var t=p(7144),e=p(5e3),f=p(508),M=p(3191),a=p(3075),C=p(6360),d=p(5664);const R=["thumbContainer"],h=["toggleBar"],L=["input"],w=function(re){return{enterDuration:re}},D=["*"],S=new e.OlP("mat-slide-toggle-default-options",{providedIn:"root",factory:()=>({disableToggleValue:!1})});let k=0;const E={provide:a.JU,useExisting:(0,e.Gpc)(()=>Y),multi:!0};class B{constructor(ge,q){this.source=ge,this.checked=q}}const Z=(0,f.sb)((0,f.pj)((0,f.Kr)((0,f.Id)(class{constructor(re){this._elementRef=re}}))));let Y=(()=>{class re extends Z{constructor(q,_e,x,i,r,u){super(q),this._focusMonitor=_e,this._changeDetectorRef=x,this.defaults=r,this._onChange=c=>{},this._onTouched=()=>{},this._uniqueId="mat-slide-toggle-"+ ++k,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 e.vpe,this.toggleChange=new e.vpe,this.tabIndex=parseInt(i)||0,this.color=this.defaultColor=r.color||"accent",this._noopAnimations="NoopAnimations"===u}get required(){return this._required}set required(q){this._required=(0,M.Ig)(q)}get checked(){return this._checked}set checked(q){this._checked=(0,M.Ig)(q),this._changeDetectorRef.markForCheck()}get inputId(){return`${this.id||this._uniqueId}-input`}ngAfterContentInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(q=>{q||Promise.resolve().then(()=>this._onTouched())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}_onChangeEvent(q){q.stopPropagation(),this.toggleChange.emit(),this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())}_onInputClick(q){q.stopPropagation()}writeValue(q){this.checked=!!q}registerOnChange(q){this._onChange=q}registerOnTouched(q){this._onTouched=q}setDisabledState(q){this.disabled=q,this._changeDetectorRef.markForCheck()}focus(q,_e){_e?this._focusMonitor.focusVia(this._inputElement,_e,q):this._inputElement.nativeElement.focus(q)}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 re.\u0275fac=function(q){return new(q||re)(e.Y36(e.SBq),e.Y36(d.tE),e.Y36(e.sBO),e.$8M("tabindex"),e.Y36(S),e.Y36(C.Qb,8))},re.\u0275cmp=e.Xpm({type:re,selectors:[["mat-slide-toggle"]],viewQuery:function(q,_e){if(1&q&&(e.Gf(R,5),e.Gf(h,5),e.Gf(L,5)),2&q){let x;e.iGM(x=e.CRH())&&(_e._thumbEl=x.first),e.iGM(x=e.CRH())&&(_e._thumbBarEl=x.first),e.iGM(x=e.CRH())&&(_e._inputElement=x.first)}},hostAttrs:[1,"mat-slide-toggle"],hostVars:13,hostBindings:function(q,_e){2&q&&(e.Ikx("id",_e.id),e.uIk("tabindex",null)("aria-label",null)("aria-labelledby",null)("name",null),e.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"],ariaDescribedby:["aria-describedby","ariaDescribedby"],required:"required",checked:"checked"},outputs:{change:"change",toggleChange:"toggleChange"},exportAs:["matSlideToggle"],features:[e._Bn([E]),e.qOj],ngContentSelectors:D,decls:16,vars:20,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(q,_e){if(1&q&&(e.F$t(),e.TgZ(0,"label",0,1)(2,"span",2,3)(4,"input",4,5),e.NdJ("change",function(i){return _e._onChangeEvent(i)})("click",function(i){return _e._onInputClick(i)}),e.qZA(),e.TgZ(6,"span",6,7),e._UZ(8,"span",8),e.TgZ(9,"span",9),e._UZ(10,"span",10),e.qZA()()(),e.TgZ(11,"span",11,12),e.NdJ("cdkObserveContent",function(){return _e._onLabelTextChange()}),e.TgZ(13,"span",13),e._uU(14,"\xa0"),e.qZA(),e.Hsn(15),e.qZA()()),2&q){const x=e.MAs(1),i=e.MAs(12);e.uIk("for",_e.inputId),e.xp6(2),e.ekj("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),e.xp6(2),e.Q6J("id",_e.inputId)("required",_e.required)("tabIndex",_e.tabIndex)("checked",_e.checked)("disabled",_e.disabled),e.uIk("name",_e.name)("aria-checked",_e.checked)("aria-label",_e.ariaLabel)("aria-labelledby",_e.ariaLabelledby)("aria-describedby",_e.ariaDescribedby),e.xp6(5),e.Q6J("matRippleTrigger",x)("matRippleDisabled",_e.disableRipple||_e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",e.VKq(18,w,_e._noopAnimations?0:150))}},directives:[f.wG,t.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{-webkit-user-select:none;user-select:none;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%;display:block}.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}),re})(),ue=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({}),re})(),ne=(()=>{class re{}return re.\u0275fac=function(q){return new(q||re)},re.\u0275mod=e.oAB({type:re}),re.\u0275inj=e.cJS({imports:[[ue,f.si,f.BQ,t.Q8],ue,f.BQ]}),re})()},7261:(Be,K,p)=>{"use strict";p.d(K,{Ve:()=>ge,ZX:()=>re,ux:()=>x});var t=p(9776),e=p(7429),f=p(9808),M=p(5e3),a=p(508),C=p(7423),d=p(7579),R=p(5698),h=p(2722),L=p(1777),w=p(925),D=p(5113),S=p(5664);function k(i,r){if(1&i){const u=M.EpF();M.TgZ(0,"div",2)(1,"button",3),M.NdJ("click",function(){return M.CHM(u),M.oxw().action()}),M._uU(2),M.qZA()()}if(2&i){const u=M.oxw();M.xp6(2),M.Oqu(u.data.action)}}function E(i,r){}const B=new M.OlP("MatSnackBarData");class Z{constructor(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}const Y=Math.pow(2,31)-1;class ae{constructor(r,u){this._overlayRef=u,this._afterDismissed=new d.x,this._afterOpened=new d.x,this._onAction=new d.x,this._dismissedByAction=!1,this.containerInstance=r,r._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(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(r){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(r,Y))}_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 ee=(()=>{class i{constructor(u,c){this.snackBarRef=u,this.data=c}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(ae),M.Y36(B))},i.\u0275cmp=M.Xpm({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[[1,"mat-simple-snack-bar-content"],["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(u,c){1&u&&(M.TgZ(0,"span",0),M._uU(1),M.qZA(),M.YNc(2,k,3,1,"div",1)),2&u&&(M.xp6(1),M.Oqu(c.data.message),M.xp6(1),M.Q6J("ngIf",c.hasAction))},directives:[C.lW,f.O5],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}.mat-simple-snack-bar-content{overflow:hidden;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),i})();const ue={snackBarState:(0,L.X$)("state",[(0,L.SB)("void, hidden",(0,L.oB)({transform:"scale(0.8)",opacity:0})),(0,L.SB)("visible",(0,L.oB)({transform:"scale(1)",opacity:1})),(0,L.eR)("* => visible",(0,L.jt)("150ms cubic-bezier(0, 0, 0.2, 1)")),(0,L.eR)("* => void, * => hidden",(0,L.jt)("75ms cubic-bezier(0.4, 0.0, 1, 1)",(0,L.oB)({opacity:0})))])};let ne=(()=>{class i extends e.en{constructor(u,c,v,T,I){super(),this._ngZone=u,this._elementRef=c,this._changeDetectorRef=v,this._platform=T,this.snackBarConfig=I,this._announceDelay=150,this._destroyed=!1,this._onAnnounce=new d.x,this._onExit=new d.x,this._onEnter=new d.x,this._animationState="void",this.attachDomPortal=y=>(this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachDomPortal(y)),this._live="assertive"!==I.politeness||I.announcementMessage?"off"===I.politeness?"off":"polite":"assertive",this._platform.FIREFOX&&("polite"===this._live&&(this._role="status"),"assertive"===this._live&&(this._role="alert"))}attachComponentPortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(u)}attachTemplatePortal(u){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(u)}onAnimationEnd(u){const{fromState:c,toState:v}=u;if(("void"===v&&"void"!==c||"hidden"===v)&&this._completeExit(),"visible"===v){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._ngZone.run(()=>{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,R.q)(1)).subscribe(()=>{this._ngZone.run(()=>{this._onExit.next(),this._onExit.complete()})})}_applySnackBarClasses(){const u=this._elementRef.nativeElement,c=this.snackBarConfig.panelClass;c&&(Array.isArray(c)?c.forEach(v=>u.classList.add(v)):u.classList.add(c)),"center"===this.snackBarConfig.horizontalPosition&&u.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&u.classList.add("mat-snack-bar-top")}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{const u=this._elementRef.nativeElement.querySelector("[aria-hidden]"),c=this._elementRef.nativeElement.querySelector("[aria-live]");if(u&&c){let v=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&u.contains(document.activeElement)&&(v=document.activeElement),u.removeAttribute("aria-hidden"),c.appendChild(u),null==v||v.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}}return i.\u0275fac=function(u){return new(u||i)(M.Y36(M.R0b),M.Y36(M.SBq),M.Y36(M.sBO),M.Y36(w.t4),M.Y36(Z))},i.\u0275cmp=M.Xpm({type:i,selectors:[["snack-bar-container"]],viewQuery:function(u,c){if(1&u&&M.Gf(e.Pl,7),2&u){let v;M.iGM(v=M.CRH())&&(c._portalOutlet=v.first)}},hostAttrs:[1,"mat-snack-bar-container"],hostVars:1,hostBindings:function(u,c){1&u&&M.WFA("@state.done",function(T){return c.onAnimationEnd(T)}),2&u&&M.d8E("@state",c._animationState)},features:[M.qOj],decls:3,vars:2,consts:[["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(u,c){1&u&&(M.TgZ(0,"div",0),M.YNc(1,E,0,0,"ng-template",1),M.qZA(),M._UZ(2,"div")),2&u&&(M.xp6(2),M.uIk("aria-live",c._live)("role",c._role))},directives:[e.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:[ue.snackBarState]}}),i})(),re=(()=>{class i{}return i.\u0275fac=function(u){return new(u||i)},i.\u0275mod=M.oAB({type:i}),i.\u0275inj=M.cJS({imports:[[t.U8,e.eL,f.ez,C.ot,a.BQ],a.BQ]}),i})();const ge=new M.OlP("mat-snack-bar-default-options",{providedIn:"root",factory:function q(){return new Z}});let _e=(()=>{class i{constructor(u,c,v,T,I,y){this._overlay=u,this._live=c,this._injector=v,this._breakpointObserver=T,this._parentSnackBar=I,this._defaultConfig=y,this._snackBarRefAtThisLevel=null}get _openedSnackBarRef(){const u=this._parentSnackBar;return u?u._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(u){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=u:this._snackBarRefAtThisLevel=u}openFromComponent(u,c){return this._attach(u,c)}openFromTemplate(u,c){return this._attach(u,c)}open(u,c="",v){const T=Object.assign(Object.assign({},this._defaultConfig),v);return T.data={message:u,action:c},T.announcementMessage===u&&(T.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,T)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(u,c){const T=M.zs3.create({parent:c&&c.viewContainerRef&&c.viewContainerRef.injector||this._injector,providers:[{provide:Z,useValue:c}]}),I=new e.C5(this.snackBarContainerComponent,c.viewContainerRef,T),y=u.attach(I);return y.instance.snackBarConfig=c,y.instance}_attach(u,c){const v=Object.assign(Object.assign(Object.assign({},new Z),this._defaultConfig),c),T=this._createOverlay(v),I=this._attachSnackBarContainer(T,v),y=new ae(I,T);if(u instanceof M.Rgc){const n=new e.UE(u,null,{$implicit:v.data,snackBarRef:y});y.instance=I.attachTemplatePortal(n)}else{const n=this._createInjector(v,y),_=new e.C5(u,void 0,n),V=I.attachComponentPortal(_);y.instance=V.instance}return this._breakpointObserver.observe(D.u3.HandsetPortrait).pipe((0,h.R)(T.detachments())).subscribe(n=>{T.overlayElement.classList.toggle(this.handsetCssClass,n.matches)}),v.announcementMessage&&I._onAnnounce.subscribe(()=>{this._live.announce(v.announcementMessage,v.politeness)}),this._animateSnackBar(y,v),this._openedSnackBarRef=y,this._openedSnackBarRef}_animateSnackBar(u,c){u.afterDismissed().subscribe(()=>{this._openedSnackBarRef==u&&(this._openedSnackBarRef=null),c.announcementMessage&&this._live.clear()}),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{u.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):u.containerInstance.enter(),c.duration&&c.duration>0&&u.afterOpened().subscribe(()=>u._dismissAfter(c.duration))}_createOverlay(u){const c=new t.X_;c.direction=u.direction;let v=this._overlay.position().global();const T="rtl"===u.direction,I="left"===u.horizontalPosition||"start"===u.horizontalPosition&&!T||"end"===u.horizontalPosition&&T,y=!I&&"center"!==u.horizontalPosition;return I?v.left("0"):y?v.right("0"):v.centerHorizontally(),"top"===u.verticalPosition?v.top("0"):v.bottom("0"),c.positionStrategy=v,this._overlay.create(c)}_createInjector(u,c){return M.zs3.create({parent:u&&u.viewContainerRef&&u.viewContainerRef.injector||this._injector,providers:[{provide:ae,useValue:c},{provide:B,useValue:u.data}]})}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(ge))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac}),i})(),x=(()=>{class i extends _e{constructor(u,c,v,T,I,y){super(u,c,v,T,I,y),this.simpleSnackBarComponent=ee,this.snackBarContainerComponent=ne,this.handsetCssClass="mat-snack-bar-handset"}}return i.\u0275fac=function(u){return new(u||i)(M.LFG(t.aV),M.LFG(S.Kd),M.LFG(M.zs3),M.LFG(D.Yg),M.LFG(i,12),M.LFG(ge))},i.\u0275prov=M.Yz7({token:i,factory:i.\u0275fac,providedIn:re}),i})()},4847:(Be,K,p)=>{"use strict";p.d(K,{JX:()=>i,YE:()=>ge,nU:()=>x});var t=p(5e3),e=p(3191),f=p(1159),M=p(508),a=p(7579),C=p(6451),d=p(1777),R=p(5664),h=p(9808);const L=["mat-sort-header",""];function w(r,u){if(1&r){const c=t.EpF();t.TgZ(0,"div",3),t.NdJ("@arrowPosition.start",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!0})("@arrowPosition.done",function(){return t.CHM(c),t.oxw()._disableViewStateAnimation=!1}),t._UZ(1,"div",4),t.TgZ(2,"div",5),t._UZ(3,"div",6)(4,"div",7)(5,"div",8),t.qZA()()}if(2&r){const c=t.oxw();t.Q6J("@arrowOpacity",c._getArrowViewState())("@arrowPosition",c._getArrowViewState())("@allowChildren",c._getArrowDirectionState()),t.xp6(2),t.Q6J("@indicator",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@leftPointer",c._getArrowDirectionState()),t.xp6(1),t.Q6J("@rightPointer",c._getArrowDirectionState())}}const D=["*"],S=M.mZ.ENTERING+" "+M.yN.STANDARD_CURVE,k={indicator:(0,d.X$)("indicator",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"translateY(0px)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"translateY(10px)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),leftPointer:(0,d.X$)("leftPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),rightPointer:(0,d.X$)("rightPointer",[(0,d.SB)("active-asc, asc",(0,d.oB)({transform:"rotate(45deg)"})),(0,d.SB)("active-desc, desc",(0,d.oB)({transform:"rotate(-45deg)"})),(0,d.eR)("active-asc <=> active-desc",(0,d.jt)(S))]),arrowOpacity:(0,d.X$)("arrowOpacity",[(0,d.SB)("desc-to-active, asc-to-active, active",(0,d.oB)({opacity:1})),(0,d.SB)("desc-to-hint, asc-to-hint, hint",(0,d.oB)({opacity:.54})),(0,d.SB)("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",(0,d.oB)({opacity:0})),(0,d.eR)("* => asc, * => desc, * => active, * => hint, * => void",(0,d.jt)("0ms")),(0,d.eR)("* <=> *",(0,d.jt)(S))]),arrowPosition:(0,d.X$)("arrowPosition",[(0,d.eR)("* => desc-to-hint, * => desc-to-active",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(-25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-desc, * => active-to-desc",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(25%)"})]))),(0,d.eR)("* => asc-to-hint, * => asc-to-active",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(25%)"}),(0,d.oB)({transform:"translateY(0)"})]))),(0,d.eR)("* => hint-to-asc, * => active-to-asc",(0,d.jt)(S,(0,d.F4)([(0,d.oB)({transform:"translateY(0)"}),(0,d.oB)({transform:"translateY(-25%)"})]))),(0,d.SB)("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",(0,d.oB)({transform:"translateY(0)"})),(0,d.SB)("hint-to-desc, active-to-desc, desc",(0,d.oB)({transform:"translateY(-25%)"})),(0,d.SB)("hint-to-asc, active-to-asc, asc",(0,d.oB)({transform:"translateY(25%)"}))]),allowChildren:(0,d.X$)("allowChildren",[(0,d.eR)("* <=> *",[(0,d.IO)("@*",(0,d.pV)(),{optional:!0})])])};let ae=(()=>{class r{constructor(){this.changes=new a.x}}return r.\u0275fac=function(c){return new(c||r)},r.\u0275prov=t.Yz7({token:r,factory:r.\u0275fac,providedIn:"root"}),r})();const ue={provide:ae,deps:[[new t.FiY,new t.tp0,ae]],useFactory:function ee(r){return r||new ae}},ne=new t.OlP("MAT_SORT_DEFAULT_OPTIONS"),re=(0,M.dB)((0,M.Id)(class{}));let ge=(()=>{class r extends re{constructor(c){super(),this._defaultOptions=c,this.sortables=new Map,this._stateChanges=new a.x,this.start="asc",this._direction="",this.sortChange=new t.vpe}get direction(){return this._direction}set direction(c){this._direction=c}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.Ig)(c)}register(c){this.sortables.set(c.id,c)}deregister(c){this.sortables.delete(c.id)}sort(c){this.active!=c.id?(this.active=c.id,this.direction=c.start?c.start:this.start):this.direction=this.getNextSortDirection(c),this.sortChange.emit({active:this.active,direction:this.direction})}getNextSortDirection(c){var v,T,I;if(!c)return"";const y=null!==(T=null!==(v=null==c?void 0:c.disableClear)&&void 0!==v?v:this.disableClear)&&void 0!==T?T:!!(null===(I=this._defaultOptions)||void 0===I?void 0:I.disableClear);let n=function q(r,u){let c=["asc","desc"];return"desc"==r&&c.reverse(),u||c.push(""),c}(c.start||this.start,y),_=n.indexOf(this.direction)+1;return _>=n.length&&(_=0),n[_]}ngOnInit(){this._markInitialized()}ngOnChanges(){this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}}return r.\u0275fac=function(c){return new(c||r)(t.Y36(ne,8))},r.\u0275dir=t.lG2({type:r,selectors:[["","matSort",""]],hostAttrs:[1,"mat-sort"],inputs:{disabled:["matSortDisabled","disabled"],active:["matSortActive","active"],start:["matSortStart","start"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[t.qOj,t.TTD]}),r})();const _e=(0,M.Id)(class{});let x=(()=>{class r extends _e{constructor(c,v,T,I,y,n,_){super(),this._intl=c,this._changeDetectorRef=v,this._sort=T,this._columnDef=I,this._focusMonitor=y,this._elementRef=n,this._ariaDescriber=_,this._showIndicatorHint=!1,this._viewState={},this._arrowDirection="",this._disableViewStateAnimation=!1,this.arrowPosition="after",this._sortActionDescription="Sort",this._handleStateChanges()}get sortActionDescription(){return this._sortActionDescription}set sortActionDescription(c){this._updateSortActionDescription(c)}get disableClear(){return this._disableClear}set disableClear(c){this._disableClear=(0,e.Ig)(c)}ngOnInit(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this),this._sortButton=this._elementRef.nativeElement.querySelector(".mat-sort-header-container"),this._updateSortActionDescription(this._sortActionDescription)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0).subscribe(c=>{const v=!!c;v!==this._showIndicatorHint&&(this._setIndicatorHintVisible(v),this._changeDetectorRef.markForCheck())})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._sort.deregister(this),this._rerenderSubscription.unsubscribe()}_setIndicatorHintVisible(c){this._isDisabled()&&c||(this._showIndicatorHint=c,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))}_setAnimationTransitionState(c){this._viewState=c||{},this._disableViewStateAnimation&&(this._viewState={toState:c.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(c){!this._isDisabled()&&(c.keyCode===f.L_||c.keyCode===f.K5)&&(c.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 c=this._viewState.fromState;return(c?`${c}-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()}_updateSortActionDescription(c){var v,T;this._sortButton&&(null===(v=this._ariaDescriber)||void 0===v||v.removeDescription(this._sortButton,this._sortActionDescription),null===(T=this._ariaDescriber)||void 0===T||T.describe(this._sortButton,c)),this._sortActionDescription=c}_handleStateChanges(){this._rerenderSubscription=(0,C.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 r.\u0275fac=function(c){return new(c||r)(t.Y36(ae),t.Y36(t.sBO),t.Y36(ge,8),t.Y36("MAT_SORT_HEADER_COLUMN_DEF",8),t.Y36(R.tE),t.Y36(t.SBq),t.Y36(R.$s,8))},r.\u0275cmp=t.Xpm({type:r,selectors:[["","mat-sort-header",""]],hostAttrs:[1,"mat-sort-header"],hostVars:3,hostBindings:function(c,v){1&c&&t.NdJ("click",function(){return v._handleClick()})("keydown",function(I){return v._handleKeydown(I)})("mouseenter",function(){return v._setIndicatorHintVisible(!0)})("mouseleave",function(){return v._setIndicatorHintVisible(!1)}),2&c&&(t.uIk("aria-sort",v._getAriaSortAttribute()),t.ekj("mat-sort-header-disabled",v._isDisabled()))},inputs:{disabled:"disabled",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start",sortActionDescription:"sortActionDescription",disableClear:"disableClear"},exportAs:["matSortHeader"],features:[t.qOj],attrs:L,ngContentSelectors:D,decls:4,vars:7,consts:[[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(c,v){1&c&&(t.F$t(),t.TgZ(0,"div",0)(1,"div",1),t.Hsn(2),t.qZA(),t.YNc(3,w,6,6,"div",2),t.qZA()),2&c&&(t.ekj("mat-sort-header-sorted",v._isSorted())("mat-sort-header-position-before","before"==v.arrowPosition),t.uIk("tabindex",v._isDisabled()?null:0)("role",v._isDisabled()?null:"button"),t.xp6(3),t.Q6J("ngIf",v._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:[k.indicator,k.leftPointer,k.rightPointer,k.arrowOpacity,k.arrowPosition,k.allowChildren]},changeDetection:0}),r})(),i=(()=>{class r{}return r.\u0275fac=function(c){return new(c||r)},r.\u0275mod=t.oAB({type:r}),r.\u0275inj=t.cJS({providers:[ue],imports:[[h.ez,M.BQ]]}),r})()},5615:(Be,K,p)=>{"use strict";p.d(K,{C0:()=>Me,Ic:()=>we,T5:()=>Te,VY:()=>N,Vq:()=>Oe,fd:()=>ce,z9:()=>j});var t=p(7429),e=p(1555),f=p(9808),M=p(5e3),a=p(7423),C=p(508),d=p(5245),R=p(7579),h=p(727),L=p(5664),w=p(3900),D=p(4004),S=p(8675),k=p(2722),E=p(1884),B=p(1777),Z=p(226);function Y(xe,W){if(1&xe&&M.GkF(0,8),2&xe){const te=M.oxw();M.Q6J("ngTemplateOutlet",te.iconOverrides[te.state])("ngTemplateOutletContext",te._getIconContext())}}function ae(xe,W){if(1&xe&&(M.TgZ(0,"span",13),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._getDefaultTextForState(te.state))}}function ee(xe,W){if(1&xe&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._intl.completedLabel)}}function ue(xe,W){if(1&xe&&(M.TgZ(0,"span",14),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._intl.editableLabel)}}function ne(xe,W){if(1&xe&&(M.TgZ(0,"mat-icon",13),M._uU(1),M.qZA()),2&xe){const te=M.oxw(2);M.xp6(1),M.Oqu(te._getDefaultTextForState(te.state))}}function re(xe,W){if(1&xe&&(M.ynx(0,9),M.YNc(1,ae,2,1,"span",10),M.YNc(2,ee,2,1,"span",11),M.YNc(3,ue,2,1,"span",11),M.YNc(4,ne,2,1,"mat-icon",12),M.BQk()),2&xe){const te=M.oxw();M.Q6J("ngSwitch",te.state),M.xp6(1),M.Q6J("ngSwitchCase","number"),M.xp6(1),M.Q6J("ngIf","done"===te.state),M.xp6(1),M.Q6J("ngIf","edit"===te.state)}}function ge(xe,W){if(1&xe&&(M.TgZ(0,"div",15),M.GkF(1,16),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Q6J("ngTemplateOutlet",te._templateLabel().template)}}function q(xe,W){if(1&xe&&(M.TgZ(0,"div",15),M._uU(1),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Oqu(te.label)}}function _e(xe,W){if(1&xe&&(M.TgZ(0,"div",17),M._uU(1),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Oqu(te._intl.optionalLabel)}}function x(xe,W){if(1&xe&&(M.TgZ(0,"div",18),M._uU(1),M.qZA()),2&xe){const te=M.oxw();M.xp6(1),M.Oqu(te.errorMessage)}}function i(xe,W){}function r(xe,W){if(1&xe&&(M.Hsn(0),M.YNc(1,i,0,0,"ng-template",0)),2&xe){const te=M.oxw();M.xp6(1),M.Q6J("cdkPortalOutlet",te._portal)}}const u=["*"];function c(xe,W){1&xe&&M._UZ(0,"div",9)}const v=function(xe,W){return{step:xe,i:W}};function T(xe,W){if(1&xe&&(M.ynx(0),M.GkF(1,7),M.YNc(2,c,1,0,"div",8),M.BQk()),2&xe){const te=W.$implicit,Ce=W.index,fe=W.last;M.oxw(2);const Q=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",Q)("ngTemplateOutletContext",M.WLB(3,v,te,Ce)),M.xp6(1),M.Q6J("ngIf",!fe)}}function I(xe,W){if(1&xe){const te=M.EpF();M.TgZ(0,"div",10),M.NdJ("@horizontalStepTransition.done",function(fe){return M.CHM(te),M.oxw(2)._animationDone.next(fe)}),M.GkF(1,11),M.qZA()}if(2&xe){const te=W.$implicit,Ce=W.index,fe=M.oxw(2);M.Q6J("@horizontalStepTransition",fe._getAnimationDirection(Ce))("id",fe._getStepContentId(Ce)),M.uIk("aria-labelledby",fe._getStepLabelId(Ce))("aria-expanded",fe.selectedIndex===Ce),M.xp6(1),M.Q6J("ngTemplateOutlet",te.content)}}function y(xe,W){if(1&xe&&(M.ynx(0),M.TgZ(1,"div",3),M.YNc(2,T,3,6,"ng-container",4),M.qZA(),M.TgZ(3,"div",5),M.YNc(4,I,2,5,"div",6),M.qZA(),M.BQk()),2&xe){const te=M.oxw();M.xp6(2),M.Q6J("ngForOf",te.steps),M.xp6(2),M.Q6J("ngForOf",te.steps)}}function n(xe,W){if(1&xe){const te=M.EpF();M.TgZ(0,"div",13),M.GkF(1,7),M.TgZ(2,"div",14)(3,"div",15),M.NdJ("@verticalStepTransition.done",function(fe){return M.CHM(te),M.oxw(2)._animationDone.next(fe)}),M.TgZ(4,"div",16),M.GkF(5,11),M.qZA()()()()}if(2&xe){const te=W.$implicit,Ce=W.index,fe=W.last,Q=M.oxw(2),pt=M.MAs(4);M.xp6(1),M.Q6J("ngTemplateOutlet",pt)("ngTemplateOutletContext",M.WLB(9,v,te,Ce)),M.xp6(1),M.ekj("mat-stepper-vertical-line",!fe),M.xp6(1),M.Q6J("@verticalStepTransition",Q._getAnimationDirection(Ce))("id",Q._getStepContentId(Ce)),M.uIk("aria-labelledby",Q._getStepLabelId(Ce))("aria-expanded",Q.selectedIndex===Ce),M.xp6(2),M.Q6J("ngTemplateOutlet",te.content)}}function _(xe,W){if(1&xe&&(M.ynx(0),M.YNc(1,n,6,12,"div",12),M.BQk()),2&xe){const te=M.oxw();M.xp6(1),M.Q6J("ngForOf",te.steps)}}function V(xe,W){if(1&xe){const te=M.EpF();M.TgZ(0,"mat-step-header",17),M.NdJ("click",function(){return M.CHM(te).step.select()})("keydown",function(fe){return M.CHM(te),M.oxw()._onKeydown(fe)}),M.qZA()}if(2&xe){const te=W.step,Ce=W.i,fe=M.oxw();M.ekj("mat-horizontal-stepper-header","horizontal"===fe.orientation)("mat-vertical-stepper-header","vertical"===fe.orientation),M.Q6J("tabIndex",fe._getFocusIndex()===Ce?0:-1)("id",fe._getStepLabelId(Ce))("index",Ce)("state",fe._getIndicatorType(Ce,te.state))("label",te.stepLabel||te.label)("selected",fe.selectedIndex===Ce)("active",fe._stepIsNavigable(Ce,te))("optional",te.optional)("errorMessage",te.errorMessage)("iconOverrides",fe._iconOverrides)("disableRipple",fe.disableRipple||!fe._stepIsNavigable(Ce,te))("color",te.color||fe.color),M.uIk("aria-posinset",Ce+1)("aria-setsize",fe.steps.length)("aria-controls",fe._getStepContentId(Ce))("aria-selected",fe.selectedIndex==Ce)("aria-label",te.ariaLabel||null)("aria-labelledby",!te.ariaLabel&&te.ariaLabelledby?te.ariaLabelledby:null)("aria-disabled",!fe._stepIsNavigable(Ce,te)||null)}}let N=(()=>{class xe extends e.u6{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["","matStepLabel",""]],features:[M.qOj]}),xe})(),H=(()=>{class xe{constructor(){this.changes=new R.x,this.optionalLabel="Optional",this.completedLabel="Completed",this.editableLabel="Editable"}}return xe.\u0275fac=function(te){return new(te||xe)},xe.\u0275prov=M.Yz7({token:xe,factory:xe.\u0275fac,providedIn:"root"}),xe})();const he={provide:H,deps:[[new M.FiY,new M.tp0,H]],useFactory:function X(xe){return xe||new H}},be=(0,C.pj)(class extends e.KL{constructor(W){super(W)}},"primary");let Pe=(()=>{class xe extends be{constructor(te,Ce,fe,Q){super(fe),this._intl=te,this._focusMonitor=Ce,this._intlSubscription=te.changes.subscribe(()=>Q.markForCheck())}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._intlSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._elementRef)}focus(te,Ce){te?this._focusMonitor.focusVia(this._elementRef,te,Ce):this._elementRef.nativeElement.focus(Ce)}_stringLabel(){return this.label instanceof N?null:this.label}_templateLabel(){return this.label instanceof N?this.label:null}_getHostElement(){return this._elementRef.nativeElement}_getIconContext(){return{index:this.index,active:this.active,optional:this.optional}}_getDefaultTextForState(te){return"number"==te?`${this.index+1}`:"edit"==te?"create":"error"==te?"warning":te}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(H),M.Y36(L.tE),M.Y36(M.SBq),M.Y36(M.sBO))},xe.\u0275cmp=M.Xpm({type:xe,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:[M.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"],["aria-hidden","true",4,"ngSwitchCase"],["class","cdk-visually-hidden",4,"ngIf"],["aria-hidden","true",4,"ngSwitchDefault"],["aria-hidden","true"],[1,"cdk-visually-hidden"],[1,"mat-step-text-label"],[3,"ngTemplateOutlet"],[1,"mat-step-optional"],[1,"mat-step-sub-label-error"]],template:function(te,Ce){1&te&&(M._UZ(0,"div",0),M.TgZ(1,"div")(2,"div",1),M.YNc(3,Y,1,2,"ng-container",2),M.YNc(4,re,5,4,"ng-container",3),M.qZA()(),M.TgZ(5,"div",4),M.YNc(6,ge,2,1,"div",5),M.YNc(7,q,2,1,"div",5),M.YNc(8,_e,2,1,"div",6),M.YNc(9,x,2,1,"div",7),M.qZA()),2&te&&(M.Q6J("matRippleTrigger",Ce._getHostElement())("matRippleDisabled",Ce.disableRipple),M.xp6(1),M.Gre("mat-step-icon-state-",Ce.state," mat-step-icon"),M.ekj("mat-step-icon-selected",Ce.selected),M.xp6(1),M.Q6J("ngSwitch",!(!Ce.iconOverrides||!Ce.iconOverrides[Ce.state])),M.xp6(1),M.Q6J("ngSwitchCase",!0),M.xp6(2),M.ekj("mat-step-label-active",Ce.active)("mat-step-label-selected",Ce.selected)("mat-step-label-error","error"==Ce.state),M.xp6(1),M.Q6J("ngIf",Ce._templateLabel()),M.xp6(1),M.Q6J("ngIf",Ce._stringLabel()),M.xp6(1),M.Q6J("ngIf",Ce.optional&&"error"!=Ce.state),M.xp6(1),M.Q6J("ngIf","error"==Ce.state))},directives:[d.Hw,C.wG,f.RF,f.n9,f.tP,f.ED,f.O5],styles:[".mat-step-header{overflow:hidden;outline:none;cursor:pointer;position:relative;box-sizing:content-box;-webkit-tap-highlight-color:transparent}.cdk-high-contrast-active .mat-step-header{outline:solid 1px}.cdk-high-contrast-active .mat-step-header.cdk-keyboard-focused,.cdk-high-contrast-active .mat-step-header.cdk-program-focused{outline:solid 3px}.cdk-high-contrast-active .mat-step-header[aria-selected=true] .mat-step-label{text-decoration:underline}.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{position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);display:flex}.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}),xe})();const Ee={horizontalStepTransition:(0,B.X$)("horizontalStepTransition",[(0,B.SB)("previous",(0,B.oB)({transform:"translate3d(-100%, 0, 0)",visibility:"hidden"})),(0,B.SB)("current",(0,B.oB)({transform:"none",visibility:"inherit"})),(0,B.SB)("next",(0,B.oB)({transform:"translate3d(100%, 0, 0)",visibility:"hidden"})),(0,B.eR)("* => *",(0,B.jt)("500ms cubic-bezier(0.35, 0, 0.25, 1)"))]),verticalStepTransition:(0,B.X$)("verticalStepTransition",[(0,B.SB)("previous",(0,B.oB)({height:"0px",visibility:"hidden"})),(0,B.SB)("next",(0,B.oB)({height:"0px",visibility:"hidden"})),(0,B.SB)("current",(0,B.oB)({height:"*",visibility:"inherit"})),(0,B.eR)("* <=> current",(0,B.jt)("225ms cubic-bezier(0.4, 0.0, 0.2, 1)"))])};let j=(()=>{class xe{constructor(te){this.templateRef=te}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(M.Rgc))},xe.\u0275dir=M.lG2({type:xe,selectors:[["ng-template","matStepperIcon",""]],inputs:{name:["matStepperIcon","name"]}}),xe})(),Ve=(()=>{class xe{constructor(te){this._template=te}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(M.Rgc))},xe.\u0275dir=M.lG2({type:xe,selectors:[["ng-template","matStepContent",""]]}),xe})(),Me=(()=>{class xe extends e.be{constructor(te,Ce,fe,Q){super(te,Q),this._errorStateMatcher=Ce,this._viewContainerRef=fe,this._isSelected=h.w0.EMPTY}ngAfterContentInit(){this._isSelected=this._stepper.steps.changes.pipe((0,w.w)(()=>this._stepper.selectionChange.pipe((0,D.U)(te=>te.selectedStep===this),(0,S.O)(this._stepper.selected===this)))).subscribe(te=>{te&&this._lazyContent&&!this._portal&&(this._portal=new t.UE(this._lazyContent._template,this._viewContainerRef))})}ngOnDestroy(){this._isSelected.unsubscribe()}isErrorState(te,Ce){return this._errorStateMatcher.isErrorState(te,Ce)||!!(te&&te.invalid&&this.interacted)}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36((0,M.Gpc)(()=>Oe)),M.Y36(C.rD,4),M.Y36(M.s_b),M.Y36(e.gx,8))},xe.\u0275cmp=M.Xpm({type:xe,selectors:[["mat-step"]],contentQueries:function(te,Ce,fe){if(1&te&&(M.Suo(fe,N,5),M.Suo(fe,Ve,5)),2&te){let Q;M.iGM(Q=M.CRH())&&(Ce.stepLabel=Q.first),M.iGM(Q=M.CRH())&&(Ce._lazyContent=Q.first)}},inputs:{color:"color"},exportAs:["matStep"],features:[M._Bn([{provide:C.rD,useExisting:xe},{provide:e.be,useExisting:xe}]),M.qOj],ngContentSelectors:u,decls:1,vars:0,consts:[[3,"cdkPortalOutlet"]],template:function(te,Ce){1&te&&(M.F$t(),M.YNc(0,r,2,1,"ng-template"))},directives:[t.Pl],encapsulation:2,changeDetection:0}),xe})(),J=(()=>{class xe extends e.B8{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,features:[M.qOj]}),xe})(),Ie=(()=>{class xe extends J{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["mat-horizontal-stepper"]],features:[M.qOj]}),xe})(),ut=(()=>{class xe extends J{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["mat-vertical-stepper"]],features:[M.qOj]}),xe})(),Oe=(()=>{class xe extends e.B8{constructor(te,Ce,fe,Q){super(te,Ce,fe,Q),this.steps=new M.n_E,this.animationDone=new M.vpe,this.labelPosition="end",this._iconOverrides={},this._animationDone=new R.x;const pt=fe.nativeElement.nodeName.toLowerCase();this.orientation="mat-vertical-stepper"===pt?"vertical":"horizontal"}ngAfterContentInit(){super.ngAfterContentInit(),this._icons.forEach(({name:te,templateRef:Ce})=>this._iconOverrides[te]=Ce),this.steps.changes.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._stateChanged()}),this._animationDone.pipe((0,E.x)((te,Ce)=>te.fromState===Ce.fromState&&te.toState===Ce.toState),(0,k.R)(this._destroyed)).subscribe(te=>{"current"===te.toState&&this.animationDone.emit()})}_stepIsNavigable(te,Ce){return Ce.completed||this.selectedIndex===te||!this.linear}}return xe.\u0275fac=function(te){return new(te||xe)(M.Y36(Z.Is,8),M.Y36(M.sBO),M.Y36(M.SBq),M.Y36(f.K0))},xe.\u0275cmp=M.Xpm({type:xe,selectors:[["mat-stepper"],["mat-vertical-stepper"],["mat-horizontal-stepper"],["","matStepper",""]],contentQueries:function(te,Ce,fe){if(1&te&&(M.Suo(fe,Me,5),M.Suo(fe,j,5)),2&te){let Q;M.iGM(Q=M.CRH())&&(Ce._steps=Q),M.iGM(Q=M.CRH())&&(Ce._icons=Q)}},viewQuery:function(te,Ce){if(1&te&&M.Gf(Pe,5),2&te){let fe;M.iGM(fe=M.CRH())&&(Ce._stepHeader=fe)}},hostAttrs:["role","tablist"],hostVars:9,hostBindings:function(te,Ce){2&te&&(M.uIk("aria-orientation",Ce.orientation),M.ekj("mat-stepper-horizontal","horizontal"===Ce.orientation)("mat-stepper-vertical","vertical"===Ce.orientation)("mat-stepper-label-position-end","horizontal"===Ce.orientation&&"end"==Ce.labelPosition)("mat-stepper-label-position-bottom","horizontal"===Ce.orientation&&"bottom"==Ce.labelPosition))},inputs:{selectedIndex:"selectedIndex",disableRipple:"disableRipple",color:"color",labelPosition:"labelPosition"},outputs:{animationDone:"animationDone"},exportAs:["matStepper","matVerticalStepper","matHorizontalStepper"],features:[M._Bn([{provide:e.B8,useExisting:xe},{provide:Ie,useExisting:xe},{provide:ut,useExisting:xe}]),M.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(te,Ce){1&te&&(M.ynx(0,0),M.YNc(1,y,5,2,"ng-container",1),M.YNc(2,_,2,1,"ng-container",1),M.BQk(),M.YNc(3,V,1,23,"ng-template",null,2,M.W1O)),2&te&&(M.Q6J("ngSwitch",Ce.orientation),M.xp6(1),M.Q6J("ngSwitchCase","horizontal"),M.xp6(1),M.Q6J("ngSwitchCase","vertical"))},directives:[Pe,f.RF,f.n9,f.sg,f.tP,f.O5],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}.cdk-high-contrast-active .mat-horizontal-content-container{outline:solid 1px}.mat-vertical-content-container{margin-left:36px;border:0;position:relative}.cdk-high-contrast-active .mat-vertical-content-container{outline:solid 1px}[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:[Ee.horizontalStepTransition,Ee.verticalStepTransition]},changeDetection:0}),xe})(),we=(()=>{class xe extends e.st{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["button","matStepperNext",""]],hostAttrs:[1,"mat-stepper-next"],hostVars:1,hostBindings:function(te,Ce){2&te&&M.Ikx("type",Ce.type)},inputs:{type:"type"},features:[M.qOj]}),xe})(),ce=(()=>{class xe extends e.po{}return xe.\u0275fac=function(){let W;return function(Ce){return(W||(W=M.n5z(xe)))(Ce||xe)}}(),xe.\u0275dir=M.lG2({type:xe,selectors:[["button","matStepperPrevious",""]],hostAttrs:[1,"mat-stepper-previous"],hostVars:1,hostBindings:function(te,Ce){2&te&&M.Ikx("type",Ce.type)},inputs:{type:"type"},features:[M.qOj]}),xe})(),Te=(()=>{class xe{}return xe.\u0275fac=function(te){return new(te||xe)},xe.\u0275mod=M.oAB({type:xe}),xe.\u0275inj=M.cJS({providers:[he,C.rD],imports:[[C.BQ,f.ez,t.eL,a.ot,e.U5,d.Ps,C.si],C.BQ]}),xe})()},2075:(Be,K,p)=>{"use strict";p.d(K,{ev:()=>Ge,Dz:()=>Ft,w1:()=>rt,yh:()=>Ae,mD:()=>He,Q2:()=>Jt,Ke:()=>lt,ge:()=>et,fO:()=>nt,XQ:()=>mi,as:()=>ot,Gk:()=>ei,nj:()=>Ct,BZ:()=>mt,by:()=>Ui,p0:()=>Ji});var t=p(5e3),e=p(3191),f=p(449),M=p(9808),a=p(7579),C=p(457),d=p(1135),R=p(5191),h=p(9646),L=p(2722),w=p(5698),D=p(226),S=p(925),k=p(5303);const E=[[["caption"]],[["colgroup"],["col"]]],B=["caption","colgroup, col"];function ae(Ue){return class extends Ue{constructor(...Tt){super(...Tt),this._sticky=!1,this._hasStickyChanged=!1}get sticky(){return this._sticky}set sticky(Tt){const ve=this._sticky;this._sticky=(0,e.Ig)(Tt),this._hasStickyChanged=ve!==this._sticky}hasStickyChanged(){const Tt=this._hasStickyChanged;return this._hasStickyChanged=!1,Tt}resetStickyChanged(){this._hasStickyChanged=!1}}}const ee=new t.OlP("CDK_TABLE");let ne=(()=>{class Ue{constructor(ve){this.template=ve}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkCellDef",""]]}),Ue})(),re=(()=>{class Ue{constructor(ve){this.template=ve}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkHeaderCellDef",""]]}),Ue})(),ge=(()=>{class Ue{constructor(ve){this.template=ve}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkFooterCellDef",""]]}),Ue})();class q{}const _e=ae(q);let x=(()=>{class Ue extends _e{constructor(ve){super(),this._table=ve,this._stickyEnd=!1}get name(){return this._name}set name(ve){this._setNameInput(ve)}get stickyEnd(){return this._stickyEnd}set stickyEnd(ve){const Qe=this._stickyEnd;this._stickyEnd=(0,e.Ig)(ve),this._hasStickyChanged=Qe!==this._stickyEnd}_updateColumnCssClassName(){this._columnCssClassName=[`cdk-column-${this.cssClassFriendlyName}`]}_setNameInput(ve){ve&&(this._name=ve,this.cssClassFriendlyName=ve.replace(/[^a-z0-9_-]/gi,"-"),this._updateColumnCssClassName())}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkColumnDef",""]],contentQueries:function(ve,Qe,_t){if(1&ve&&(t.Suo(_t,ne,5),t.Suo(_t,re,5),t.Suo(_t,ge,5)),2&ve){let se;t.iGM(se=t.CRH())&&(Qe.cell=se.first),t.iGM(se=t.CRH())&&(Qe.headerCell=se.first),t.iGM(se=t.CRH())&&(Qe.footerCell=se.first)}},inputs:{sticky:"sticky",name:["cdkColumnDef","name"],stickyEnd:"stickyEnd"},features:[t._Bn([{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ue}]),t.qOj]}),Ue})();class i{constructor(Tt,ve){ve.nativeElement.classList.add(...Tt._columnCssClassName)}}let r=(()=>{class Ue extends i{constructor(ve,Qe){super(ve,Qe)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(x),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-header-cell"],["th","cdk-header-cell",""]],hostAttrs:["role","columnheader",1,"cdk-header-cell"],features:[t.qOj]}),Ue})(),u=(()=>{class Ue extends i{constructor(ve,Qe){var _t;if(super(ve,Qe),1===(null===(_t=ve._table)||void 0===_t?void 0:_t._elementRef.nativeElement.nodeType)){const se=ve._table._elementRef.nativeElement.getAttribute("role");Qe.nativeElement.setAttribute("role","grid"===se||"treegrid"===se?"gridcell":"cell")}}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(x),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-footer-cell"],["td","cdk-footer-cell",""]],hostAttrs:[1,"cdk-footer-cell"],features:[t.qOj]}),Ue})(),c=(()=>{class Ue extends i{constructor(ve,Qe){var _t;if(super(ve,Qe),1===(null===(_t=ve._table)||void 0===_t?void 0:_t._elementRef.nativeElement.nodeType)){const se=ve._table._elementRef.nativeElement.getAttribute("role");Qe.nativeElement.setAttribute("role","grid"===se||"treegrid"===se?"gridcell":"cell")}}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(x),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["cdk-cell"],["td","cdk-cell",""]],hostAttrs:[1,"cdk-cell"],features:[t.qOj]}),Ue})();class v{constructor(){this.tasks=[],this.endTasks=[]}}const T=new t.OlP("_COALESCED_STYLE_SCHEDULER");let I=(()=>{class Ue{constructor(ve){this._ngZone=ve,this._currentSchedule=null,this._destroyed=new a.x}schedule(ve){this._createScheduleIfNeeded(),this._currentSchedule.tasks.push(ve)}scheduleEnd(ve){this._createScheduleIfNeeded(),this._currentSchedule.endTasks.push(ve)}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_createScheduleIfNeeded(){this._currentSchedule||(this._currentSchedule=new v,this._getScheduleObservable().pipe((0,L.R)(this._destroyed)).subscribe(()=>{for(;this._currentSchedule.tasks.length||this._currentSchedule.endTasks.length;){const ve=this._currentSchedule;this._currentSchedule=new v;for(const Qe of ve.tasks)Qe();for(const Qe of ve.endTasks)Qe()}this._currentSchedule=null}))}_getScheduleObservable(){return this._ngZone.isStable?(0,C.D)(Promise.resolve(void 0)):this._ngZone.onStable.pipe((0,w.q)(1))}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.LFG(t.R0b))},Ue.\u0275prov=t.Yz7({token:Ue,factory:Ue.\u0275fac}),Ue})(),n=(()=>{class Ue{constructor(ve,Qe){this.template=ve,this._differs=Qe}ngOnChanges(ve){if(!this._columnsDiffer){const Qe=ve.columns&&ve.columns.currentValue||[];this._columnsDiffer=this._differs.find(Qe).create(),this._columnsDiffer.diff(Qe)}}getColumnsDiff(){return this._columnsDiffer.diff(this.columns)}extractCellTemplate(ve){return this instanceof N?ve.headerCell.template:this instanceof he?ve.footerCell.template:ve.cell.template}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4))},Ue.\u0275dir=t.lG2({type:Ue,features:[t.TTD]}),Ue})();class _ extends n{}const V=ae(_);let N=(()=>{class Ue extends V{constructor(ve,Qe,_t){super(ve,Qe),this._table=_t}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkHeaderRowDef",""]],inputs:{columns:["cdkHeaderRowDef","columns"],sticky:["cdkHeaderRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Ue})();class H extends n{}const X=ae(H);let he=(()=>{class Ue extends X{constructor(ve,Qe,_t){super(ve,Qe),this._table=_t}ngOnChanges(ve){super.ngOnChanges(ve)}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkFooterRowDef",""]],inputs:{columns:["cdkFooterRowDef","columns"],sticky:["cdkFooterRowDefSticky","sticky"]},features:[t.qOj,t.TTD]}),Ue})(),be=(()=>{class Ue extends n{constructor(ve,Qe,_t){super(ve,Qe),this._table=_t}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc),t.Y36(t.ZZ4),t.Y36(ee,8))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkRowDef",""]],inputs:{columns:["cdkRowDefColumns","columns"],when:["cdkRowDefWhen","when"]},features:[t.qOj]}),Ue})(),Pe=(()=>{class Ue{constructor(ve){this._viewContainer=ve,Ue.mostRecentCellOutlet=this}ngOnDestroy(){Ue.mostRecentCellOutlet===this&&(Ue.mostRecentCellOutlet=null)}}return Ue.mostRecentCellOutlet=null,Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","cdkCellOutlet",""]]}),Ue})(),Ee=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-header-row"],["tr","cdk-header-row",""]],hostAttrs:["role","row",1,"cdk-header-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),j=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-footer-row"],["tr","cdk-footer-row",""]],hostAttrs:["role","row",1,"cdk-footer-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Ve=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-row"],["tr","cdk-row",""]],hostAttrs:["role","row",1,"cdk-row"],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Me=(()=>{class Ue{constructor(ve){this.templateRef=ve,this._contentClassName="cdk-no-data-row"}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.Rgc))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["ng-template","cdkNoDataRow",""]]}),Ue})();const J=["top","bottom","left","right"];class Ie{constructor(Tt,ve,Qe,_t,se=!0,Xe=!0,xt){this._isNativeHtmlTable=Tt,this._stickCellCss=ve,this.direction=Qe,this._coalescedStyleScheduler=_t,this._isBrowser=se,this._needsPositionStickyOnElement=Xe,this._positionListener=xt,this._cachedCellWidths=[],this._borderCellCss={top:`${ve}-border-elem-top`,bottom:`${ve}-border-elem-bottom`,left:`${ve}-border-elem-left`,right:`${ve}-border-elem-right`}}clearStickyPositioning(Tt,ve){const Qe=[];for(const _t of Tt)if(_t.nodeType===_t.ELEMENT_NODE){Qe.push(_t);for(let se=0;se<_t.children.length;se++)Qe.push(_t.children[se])}this._coalescedStyleScheduler.schedule(()=>{for(const _t of Qe)this._removeStickyStyle(_t,ve)})}updateStickyColumns(Tt,ve,Qe,_t=!0){if(!Tt.length||!this._isBrowser||!ve.some(Wi=>Wi)&&!Qe.some(Wi=>Wi))return void(this._positionListener&&(this._positionListener.stickyColumnsUpdated({sizes:[]}),this._positionListener.stickyEndColumnsUpdated({sizes:[]})));const se=Tt[0],Xe=se.children.length,xt=this._getCellWidths(se,_t),Bt=this._getStickyStartColumnPositions(xt,ve),bi=this._getStickyEndColumnPositions(xt,Qe),Si=ve.lastIndexOf(!0),Xi=Qe.indexOf(!0);this._coalescedStyleScheduler.schedule(()=>{const Wi="rtl"===this.direction,on=Wi?"right":"left",pn=Wi?"left":"right";for(const ii of Tt)for(let Ri=0;Rive[Ri]?ii:null)}),this._positionListener.stickyEndColumnsUpdated({sizes:-1===Xi?[]:xt.slice(Xi).map((ii,Ri)=>Qe[Ri+Xi]?ii:null).reverse()}))})}stickRows(Tt,ve,Qe){if(!this._isBrowser)return;const _t="bottom"===Qe?Tt.slice().reverse():Tt,se="bottom"===Qe?ve.slice().reverse():ve,Xe=[],xt=[],Bt=[];for(let Si=0,Xi=0;Si<_t.length;Si++){if(!se[Si])continue;Xe[Si]=Xi;const Wi=_t[Si];Bt[Si]=this._isNativeHtmlTable?Array.from(Wi.children):[Wi];const on=Wi.getBoundingClientRect().height;Xi+=on,xt[Si]=on}const bi=se.lastIndexOf(!0);this._coalescedStyleScheduler.schedule(()=>{var Si,Xi;for(let Wi=0;Wi<_t.length;Wi++){if(!se[Wi])continue;const on=Xe[Wi],pn=Wi===bi;for(const ii of Bt[Wi])this._addStickyStyle(ii,Qe,on,pn)}"top"===Qe?null===(Si=this._positionListener)||void 0===Si||Si.stickyHeaderRowsUpdated({sizes:xt,offsets:Xe,elements:Bt}):null===(Xi=this._positionListener)||void 0===Xi||Xi.stickyFooterRowsUpdated({sizes:xt,offsets:Xe,elements:Bt})})}updateStickyFooterContainer(Tt,ve){if(!this._isNativeHtmlTable)return;const Qe=Tt.querySelector("tfoot");this._coalescedStyleScheduler.schedule(()=>{ve.some(_t=>!_t)?this._removeStickyStyle(Qe,["bottom"]):this._addStickyStyle(Qe,"bottom",0,!1)})}_removeStickyStyle(Tt,ve){for(const _t of ve)Tt.style[_t]="",Tt.classList.remove(this._borderCellCss[_t]);J.some(_t=>-1===ve.indexOf(_t)&&Tt.style[_t])?Tt.style.zIndex=this._getCalculatedZIndex(Tt):(Tt.style.zIndex="",this._needsPositionStickyOnElement&&(Tt.style.position=""),Tt.classList.remove(this._stickCellCss))}_addStickyStyle(Tt,ve,Qe,_t){Tt.classList.add(this._stickCellCss),_t&&Tt.classList.add(this._borderCellCss[ve]),Tt.style[ve]=`${Qe}px`,Tt.style.zIndex=this._getCalculatedZIndex(Tt),this._needsPositionStickyOnElement&&(Tt.style.cssText+="position: -webkit-sticky; position: sticky; ")}_getCalculatedZIndex(Tt){const ve={top:100,bottom:10,left:1,right:1};let Qe=0;for(const _t of J)Tt.style[_t]&&(Qe+=ve[_t]);return Qe?`${Qe}`:""}_getCellWidths(Tt,ve=!0){if(!ve&&this._cachedCellWidths.length)return this._cachedCellWidths;const Qe=[],_t=Tt.children;for(let se=0;se<_t.length;se++)Qe.push(_t[se].getBoundingClientRect().width);return this._cachedCellWidths=Qe,Qe}_getStickyStartColumnPositions(Tt,ve){const Qe=[];let _t=0;for(let se=0;se0;se--)ve[se]&&(Qe[se]=_t,_t+=Tt[se]);return Qe}}const Ce=new t.OlP("CDK_SPL");let Q=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","rowOutlet",""]]}),Ue})(),pt=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","headerRowOutlet",""]]}),Ue})(),tt=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","footerRowOutlet",""]]}),Ue})(),Dt=(()=>{class Ue{constructor(ve,Qe){this.viewContainer=ve,this.elementRef=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.s_b),t.Y36(t.SBq))},Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","noDataRowOutlet",""]]}),Ue})(),Zt=(()=>{class Ue{constructor(ve,Qe,_t,se,Xe,xt,Bt,bi,Si,Xi,Wi,on){this._differs=ve,this._changeDetectorRef=Qe,this._elementRef=_t,this._dir=Xe,this._platform=Bt,this._viewRepeater=bi,this._coalescedStyleScheduler=Si,this._viewportRuler=Xi,this._stickyPositioningListener=Wi,this._ngZone=on,this._onDestroy=new a.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.contentChanged=new t.vpe,this.viewChange=new d.X({start:0,end:Number.MAX_VALUE}),se||this._elementRef.nativeElement.setAttribute("role","table"),this._document=xt,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}get trackBy(){return this._trackByFn}set trackBy(ve){this._trackByFn=ve}get dataSource(){return this._dataSource}set dataSource(ve){this._dataSource!==ve&&this._switchDataSource(ve)}get multiTemplateDataRows(){return this._multiTemplateDataRows}set multiTemplateDataRows(ve){this._multiTemplateDataRows=(0,e.Ig)(ve),this._rowOutlet&&this._rowOutlet.viewContainer.length&&(this._forceRenderDataRows(),this.updateStickyColumnStyles())}get fixedLayout(){return this._fixedLayout}set fixedLayout(ve){this._fixedLayout=(0,e.Ig)(ve),this._forceRecalculateCellWidths=!0,this._stickyColumnStylesNeedReset=!0}ngOnInit(){this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((ve,Qe)=>this.trackBy?this.trackBy(Qe.dataIndex,Qe.data):Qe),this._viewportRuler.change().pipe((0,L.R)(this._onDestroy)).subscribe(()=>{this._forceRecalculateCellWidths=!0})}ngAfterContentChecked(){this._cacheRowDefs(),this._cacheColumnDefs();const Qe=this._renderUpdatedColumns()||this._headerRowDefChanged||this._footerRowDefChanged;this._stickyColumnStylesNeedReset=this._stickyColumnStylesNeedReset||Qe,this._forceRecalculateCellWidths=Qe,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,this._headerRowOutlet.viewContainer,this._footerRowOutlet.viewContainer,this._cachedRenderRowsMap,this._customColumnDefs,this._customRowDefs,this._customHeaderRowDefs,this._customFooterRowDefs,this._columnDefsByName].forEach(ve=>{ve.clear()}),this._headerRowDefs=[],this._footerRowDefs=[],this._defaultRowDef=null,this._onDestroy.next(),this._onDestroy.complete(),(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this)}renderRows(){this._renderRows=this._getAllRenderRows();const ve=this._dataDiffer.diff(this._renderRows);if(!ve)return this._updateNoDataRow(),void this.contentChanged.next();const Qe=this._rowOutlet.viewContainer;this._viewRepeater.applyChanges(ve,Qe,(_t,se,Xe)=>this._getEmbeddedViewArgs(_t.item,Xe),_t=>_t.item.data,_t=>{1===_t.operation&&_t.context&&this._renderCellTemplateForItem(_t.record.item.rowDef,_t.context)}),this._updateRowIndexContext(),ve.forEachIdentityChange(_t=>{Qe.get(_t.currentIndex).context.$implicit=_t.item.data}),this._updateNoDataRow(),this._ngZone&&t.R0b.isInAngularZone()?this._ngZone.onStable.pipe((0,w.q)(1),(0,L.R)(this._onDestroy)).subscribe(()=>{this.updateStickyColumnStyles()}):this.updateStickyColumnStyles(),this.contentChanged.next()}addColumnDef(ve){this._customColumnDefs.add(ve)}removeColumnDef(ve){this._customColumnDefs.delete(ve)}addRowDef(ve){this._customRowDefs.add(ve)}removeRowDef(ve){this._customRowDefs.delete(ve)}addHeaderRowDef(ve){this._customHeaderRowDefs.add(ve),this._headerRowDefChanged=!0}removeHeaderRowDef(ve){this._customHeaderRowDefs.delete(ve),this._headerRowDefChanged=!0}addFooterRowDef(ve){this._customFooterRowDefs.add(ve),this._footerRowDefChanged=!0}removeFooterRowDef(ve){this._customFooterRowDefs.delete(ve),this._footerRowDefChanged=!0}setNoDataRow(ve){this._customNoDataRow=ve}updateStickyHeaderRowStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),_t=this._elementRef.nativeElement.querySelector("thead");_t&&(_t.style.display=ve.length?"":"none");const se=this._headerRowDefs.map(Xe=>Xe.sticky);this._stickyStyler.clearStickyPositioning(ve,["top"]),this._stickyStyler.stickRows(ve,se,"top"),this._headerRowDefs.forEach(Xe=>Xe.resetStickyChanged())}updateStickyFooterRowStyles(){const ve=this._getRenderedRows(this._footerRowOutlet),_t=this._elementRef.nativeElement.querySelector("tfoot");_t&&(_t.style.display=ve.length?"":"none");const se=this._footerRowDefs.map(Xe=>Xe.sticky);this._stickyStyler.clearStickyPositioning(ve,["bottom"]),this._stickyStyler.stickRows(ve,se,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,se),this._footerRowDefs.forEach(Xe=>Xe.resetStickyChanged())}updateStickyColumnStyles(){const ve=this._getRenderedRows(this._headerRowOutlet),Qe=this._getRenderedRows(this._rowOutlet),_t=this._getRenderedRows(this._footerRowOutlet);(this._isNativeHtmlTable&&!this._fixedLayout||this._stickyColumnStylesNeedReset)&&(this._stickyStyler.clearStickyPositioning([...ve,...Qe,..._t],["left","right"]),this._stickyColumnStylesNeedReset=!1),ve.forEach((se,Xe)=>{this._addStickyColumnStyles([se],this._headerRowDefs[Xe])}),this._rowDefs.forEach(se=>{const Xe=[];for(let xt=0;xt{this._addStickyColumnStyles([se],this._footerRowDefs[Xe])}),Array.from(this._columnDefsByName.values()).forEach(se=>se.resetStickyChanged())}_getAllRenderRows(){const ve=[],Qe=this._cachedRenderRowsMap;this._cachedRenderRowsMap=new Map;for(let _t=0;_t{const xt=_t&&_t.has(Xe)?_t.get(Xe):[];if(xt.length){const Bt=xt.shift();return Bt.dataIndex=Qe,Bt}return{data:ve,rowDef:Xe,dataIndex:Qe}})}_cacheColumnDefs(){this._columnDefsByName.clear(),ui(this._getOwnDefs(this._contentColumnDefs),this._customColumnDefs).forEach(Qe=>{this._columnDefsByName.has(Qe.name),this._columnDefsByName.set(Qe.name,Qe)})}_cacheRowDefs(){this._headerRowDefs=ui(this._getOwnDefs(this._contentHeaderRowDefs),this._customHeaderRowDefs),this._footerRowDefs=ui(this._getOwnDefs(this._contentFooterRowDefs),this._customFooterRowDefs),this._rowDefs=ui(this._getOwnDefs(this._contentRowDefs),this._customRowDefs);const ve=this._rowDefs.filter(Qe=>!Qe.when);this._defaultRowDef=ve[0]}_renderUpdatedColumns(){const ve=(Xe,xt)=>Xe||!!xt.getColumnsDiff(),Qe=this._rowDefs.reduce(ve,!1);Qe&&this._forceRenderDataRows();const _t=this._headerRowDefs.reduce(ve,!1);_t&&this._forceRenderHeaderRows();const se=this._footerRowDefs.reduce(ve,!1);return se&&this._forceRenderFooterRows(),Qe||_t||se}_switchDataSource(ve){this._data=[],(0,f.Z9)(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),ve||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=ve}_observeRenderChanges(){if(!this.dataSource)return;let ve;(0,f.Z9)(this.dataSource)?ve=this.dataSource.connect(this):(0,R.b)(this.dataSource)?ve=this.dataSource:Array.isArray(this.dataSource)&&(ve=(0,h.of)(this.dataSource)),this._renderChangeSubscription=ve.pipe((0,L.R)(this._onDestroy)).subscribe(Qe=>{this._data=Qe||[],this.renderRows()})}_forceRenderHeaderRows(){this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((ve,Qe)=>this._renderRow(this._headerRowOutlet,ve,Qe)),this.updateStickyHeaderRowStyles()}_forceRenderFooterRows(){this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((ve,Qe)=>this._renderRow(this._footerRowOutlet,ve,Qe)),this.updateStickyFooterRowStyles()}_addStickyColumnStyles(ve,Qe){const _t=Array.from(Qe.columns||[]).map(xt=>this._columnDefsByName.get(xt)),se=_t.map(xt=>xt.sticky),Xe=_t.map(xt=>xt.stickyEnd);this._stickyStyler.updateStickyColumns(ve,se,Xe,!this._fixedLayout||this._forceRecalculateCellWidths)}_getRenderedRows(ve){const Qe=[];for(let _t=0;_t!se.when||se.when(Qe,ve));else{let se=this._rowDefs.find(Xe=>Xe.when&&Xe.when(Qe,ve))||this._defaultRowDef;se&&_t.push(se)}return _t}_getEmbeddedViewArgs(ve,Qe){return{templateRef:ve.rowDef.template,context:{$implicit:ve.data},index:Qe}}_renderRow(ve,Qe,_t,se={}){const Xe=ve.viewContainer.createEmbeddedView(Qe.template,se,_t);return this._renderCellTemplateForItem(Qe,se),Xe}_renderCellTemplateForItem(ve,Qe){for(let _t of this._getCellTemplates(ve))Pe.mostRecentCellOutlet&&Pe.mostRecentCellOutlet._viewContainer.createEmbeddedView(_t,Qe);this._changeDetectorRef.markForCheck()}_updateRowIndexContext(){const ve=this._rowOutlet.viewContainer;for(let Qe=0,_t=ve.length;Qe<_t;Qe++){const Xe=ve.get(Qe).context;Xe.count=_t,Xe.first=0===Qe,Xe.last=Qe===_t-1,Xe.even=Qe%2==0,Xe.odd=!Xe.even,this.multiTemplateDataRows?(Xe.dataIndex=this._renderRows[Qe].dataIndex,Xe.renderIndex=Qe):Xe.index=this._renderRows[Qe].dataIndex}}_getCellTemplates(ve){return ve&&ve.columns?Array.from(ve.columns,Qe=>{const _t=this._columnDefsByName.get(Qe);return ve.extractCellTemplate(_t)}):[]}_applyNativeTableSections(){const ve=this._document.createDocumentFragment(),Qe=[{tag:"thead",outlets:[this._headerRowOutlet]},{tag:"tbody",outlets:[this._rowOutlet,this._noDataRowOutlet]},{tag:"tfoot",outlets:[this._footerRowOutlet]}];for(const _t of Qe){const se=this._document.createElement(_t.tag);se.setAttribute("role","rowgroup");for(const Xe of _t.outlets)se.appendChild(Xe.elementRef.nativeElement);ve.appendChild(se)}this._elementRef.nativeElement.appendChild(ve)}_forceRenderDataRows(){this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear(),this.renderRows()}_checkStickyStates(){const ve=(Qe,_t)=>Qe||_t.hasStickyChanged();this._headerRowDefs.reduce(ve,!1)&&this.updateStickyHeaderRowStyles(),this._footerRowDefs.reduce(ve,!1)&&this.updateStickyFooterRowStyles(),Array.from(this._columnDefsByName.values()).reduce(ve,!1)&&(this._stickyColumnStylesNeedReset=!0,this.updateStickyColumnStyles())}_setupStickyStyler(){this._stickyStyler=new Ie(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,h.of)()).pipe((0,L.R)(this._onDestroy)).subscribe(Qe=>{this._stickyStyler.direction=Qe,this.updateStickyColumnStyles()})}_getOwnDefs(ve){return ve.filter(Qe=>!Qe._table||Qe._table===this)}_updateNoDataRow(){const ve=this._customNoDataRow||this._noDataRow;if(!ve)return;const Qe=0===this._rowOutlet.viewContainer.length;if(Qe===this._isShowingNoDataRow)return;const _t=this._noDataRowOutlet.viewContainer;if(Qe){const se=_t.createEmbeddedView(ve.templateRef),Xe=se.rootNodes[0];1===se.rootNodes.length&&(null==Xe?void 0:Xe.nodeType)===this._document.ELEMENT_NODE&&(Xe.setAttribute("role","row"),Xe.classList.add(ve._contentClassName))}else _t.clear();this._isShowingNoDataRow=Qe}}return Ue.\u0275fac=function(ve){return new(ve||Ue)(t.Y36(t.ZZ4),t.Y36(t.sBO),t.Y36(t.SBq),t.$8M("role"),t.Y36(D.Is,8),t.Y36(M.K0),t.Y36(S.t4),t.Y36(f.k),t.Y36(T),t.Y36(k.rL),t.Y36(Ce,12),t.Y36(t.R0b,8))},Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["cdk-table"],["table","cdk-table",""]],contentQueries:function(ve,Qe,_t){if(1&ve&&(t.Suo(_t,Me,5),t.Suo(_t,x,5),t.Suo(_t,be,5),t.Suo(_t,N,5),t.Suo(_t,he,5)),2&ve){let se;t.iGM(se=t.CRH())&&(Qe._noDataRow=se.first),t.iGM(se=t.CRH())&&(Qe._contentColumnDefs=se),t.iGM(se=t.CRH())&&(Qe._contentRowDefs=se),t.iGM(se=t.CRH())&&(Qe._contentHeaderRowDefs=se),t.iGM(se=t.CRH())&&(Qe._contentFooterRowDefs=se)}},viewQuery:function(ve,Qe){if(1&ve&&(t.Gf(Q,7),t.Gf(pt,7),t.Gf(tt,7),t.Gf(Dt,7)),2&ve){let _t;t.iGM(_t=t.CRH())&&(Qe._rowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Qe._headerRowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Qe._footerRowOutlet=_t.first),t.iGM(_t=t.CRH())&&(Qe._noDataRowOutlet=_t.first)}},hostAttrs:[1,"cdk-table"],hostVars:2,hostBindings:function(ve,Qe){2&ve&&t.ekj("cdk-table-fixed-layout",Qe.fixedLayout)},inputs:{trackBy:"trackBy",dataSource:"dataSource",multiTemplateDataRows:"multiTemplateDataRows",fixedLayout:"fixedLayout"},outputs:{contentChanged:"contentChanged"},exportAs:["cdkTable"],features:[t._Bn([{provide:ee,useExisting:Ue},{provide:f.k,useClass:f.yy},{provide:T,useClass:I},{provide:Ce,useValue:null}])],ngContentSelectors:B,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,Qe){1&ve&&(t.F$t(E),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[pt,Q,Dt,tt],styles:[".cdk-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ue})();function ui(Ue,Tt){return Ue.concat(Array.from(Tt))}let gt=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({imports:[[k.Cl]]}),Ue})();var it=p(508),bt=p(6451),ti=p(9841),Qt=p(4004);const Re=[[["caption"]],[["colgroup"],["col"]]],ke=["caption","colgroup, col"];let mt=(()=>{class Ue extends Zt{constructor(){super(...arguments),this.stickyCssClass="mat-table-sticky",this.needsPositionStickyOnElement=!1}}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-table"],["table","mat-table",""]],hostAttrs:[1,"mat-table"],hostVars:2,hostBindings:function(ve,Qe){2&ve&&t.ekj("mat-table-fixed-layout",Qe.fixedLayout)},exportAs:["matTable"],features:[t._Bn([{provide:f.k,useClass:f.yy},{provide:Zt,useExisting:Ue},{provide:ee,useExisting:Ue},{provide:T,useClass:I},{provide:Ce,useValue:null}]),t.qOj],ngContentSelectors:ke,decls:6,vars:0,consts:[["headerRowOutlet",""],["rowOutlet",""],["noDataRowOutlet",""],["footerRowOutlet",""]],template:function(ve,Qe){1&ve&&(t.F$t(Re),t.Hsn(0),t.Hsn(1,1),t.GkF(2,0)(3,1)(4,2)(5,3))},directives:[pt,Q,Dt,tt],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-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:sticky !important}.mat-table-fixed-layout{table-layout:fixed}\n"],encapsulation:2}),Ue})(),Ft=(()=>{class Ue extends ne{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matCellDef",""]],features:[t._Bn([{provide:ne,useExisting:Ue}]),t.qOj]}),Ue})(),nt=(()=>{class Ue extends re{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matHeaderCellDef",""]],features:[t._Bn([{provide:re,useExisting:Ue}]),t.qOj]}),Ue})(),He=(()=>{class Ue extends ge{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matFooterCellDef",""]],features:[t._Bn([{provide:ge,useExisting:Ue}]),t.qOj]}),Ue})(),rt=(()=>{class Ue extends x{get name(){return this._name}set name(ve){this._setNameInput(ve)}_updateColumnCssClassName(){super._updateColumnCssClassName(),this._columnCssClassName.push(`mat-column-${this.cssClassFriendlyName}`)}}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matColumnDef",""]],inputs:{sticky:"sticky",name:["matColumnDef","name"]},features:[t._Bn([{provide:x,useExisting:Ue},{provide:"MAT_SORT_HEADER_COLUMN_DEF",useExisting:Ue}]),t.qOj]}),Ue})(),et=(()=>{class Ue extends r{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-header-cell"],["th","mat-header-cell",""]],hostAttrs:["role","columnheader",1,"mat-header-cell"],features:[t.qOj]}),Ue})(),Ae=(()=>{class Ue extends u{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-footer-cell"],["td","mat-footer-cell",""]],hostAttrs:["role","gridcell",1,"mat-footer-cell"],features:[t.qOj]}),Ue})(),Ge=(()=>{class Ue extends c{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["mat-cell"],["td","mat-cell",""]],hostAttrs:["role","gridcell",1,"mat-cell"],features:[t.qOj]}),Ue})(),ot=(()=>{class Ue extends N{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matHeaderRowDef",""]],inputs:{columns:["matHeaderRowDef","columns"],sticky:["matHeaderRowDefSticky","sticky"]},features:[t._Bn([{provide:N,useExisting:Ue}]),t.qOj]}),Ue})(),lt=(()=>{class Ue extends he{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matFooterRowDef",""]],inputs:{columns:["matFooterRowDef","columns"],sticky:["matFooterRowDefSticky","sticky"]},features:[t._Bn([{provide:he,useExisting:Ue}]),t.qOj]}),Ue})(),Ct=(()=>{class Ue extends be{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275dir=t.lG2({type:Ue,selectors:[["","matRowDef",""]],inputs:{columns:["matRowDefColumns","columns"],when:["matRowDefWhen","when"]},features:[t._Bn([{provide:be,useExisting:Ue}]),t.qOj]}),Ue})(),mi=(()=>{class Ue extends Ee{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-header-row"],["tr","mat-header-row",""]],hostAttrs:["role","row",1,"mat-header-row"],exportAs:["matHeaderRow"],features:[t._Bn([{provide:Ee,useExisting:Ue}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Jt=(()=>{class Ue extends j{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-footer-row"],["tr","mat-footer-row",""]],hostAttrs:["role","row",1,"mat-footer-row"],exportAs:["matFooterRow"],features:[t._Bn([{provide:j,useExisting:Ue}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),ei=(()=>{class Ue extends Ve{}return Ue.\u0275fac=function(){let Tt;return function(Qe){return(Tt||(Tt=t.n5z(Ue)))(Qe||Ue)}}(),Ue.\u0275cmp=t.Xpm({type:Ue,selectors:[["mat-row"],["tr","mat-row",""]],hostAttrs:["role","row",1,"mat-row"],exportAs:["matRow"],features:[t._Bn([{provide:Ve,useExisting:Ue}]),t.qOj],decls:1,vars:0,consts:[["cdkCellOutlet",""]],template:function(ve,Qe){1&ve&&t.GkF(0,0)},directives:[Pe],encapsulation:2}),Ue})(),Ji=(()=>{class Ue{}return Ue.\u0275fac=function(ve){return new(ve||Ue)},Ue.\u0275mod=t.oAB({type:Ue}),Ue.\u0275inj=t.cJS({imports:[[gt,it.BQ],it.BQ]}),Ue})();class Vi extends f.o2{constructor(Tt=[]){super(),this._renderData=new d.X([]),this._filter=new d.X(""),this._internalPageChanges=new a.x,this._renderChangesSubscription=null,this.sortingDataAccessor=(ve,Qe)=>{const _t=ve[Qe];if((0,e.t6)(_t)){const se=Number(_t);return se<9007199254740991?se:_t}return _t},this.sortData=(ve,Qe)=>{const _t=Qe.active,se=Qe.direction;return _t&&""!=se?ve.sort((Xe,xt)=>{let Bt=this.sortingDataAccessor(Xe,_t),bi=this.sortingDataAccessor(xt,_t);const Si=typeof Bt,Xi=typeof bi;Si!==Xi&&("number"===Si&&(Bt+=""),"number"===Xi&&(bi+=""));let Wi=0;return null!=Bt&&null!=bi?Bt>bi?Wi=1:Bt{const _t=Object.keys(ve).reduce((Xe,xt)=>Xe+ve[xt]+"\u25ec","").toLowerCase(),se=Qe.trim().toLowerCase();return-1!=_t.indexOf(se)},this._data=new d.X(Tt),this._updateChangeSubscription()}get data(){return this._data.value}set data(Tt){Tt=Array.isArray(Tt)?Tt:[],this._data.next(Tt),this._renderChangesSubscription||this._filterData(Tt)}get filter(){return this._filter.value}set filter(Tt){this._filter.next(Tt),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(Tt){this._sort=Tt,this._updateChangeSubscription()}get paginator(){return this._paginator}set paginator(Tt){this._paginator=Tt,this._updateChangeSubscription()}_updateChangeSubscription(){var Tt;const ve=this._sort?(0,bt.T)(this._sort.sortChange,this._sort.initialized):(0,h.of)(null),Qe=this._paginator?(0,bt.T)(this._paginator.page,this._internalPageChanges,this._paginator.initialized):(0,h.of)(null),se=(0,ti.a)([this._data,this._filter]).pipe((0,Qt.U)(([Bt])=>this._filterData(Bt))),Xe=(0,ti.a)([se,ve]).pipe((0,Qt.U)(([Bt])=>this._orderData(Bt))),xt=(0,ti.a)([Xe,Qe]).pipe((0,Qt.U)(([Bt])=>this._pageData(Bt)));null===(Tt=this._renderChangesSubscription)||void 0===Tt||Tt.unsubscribe(),this._renderChangesSubscription=xt.subscribe(Bt=>this._renderData.next(Bt))}_filterData(Tt){return this.filteredData=null==this.filter||""===this.filter?Tt:Tt.filter(ve=>this.filterPredicate(ve,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(Tt){return this.sort?this.sortData(Tt.slice(),this.sort):Tt}_pageData(Tt){if(!this.paginator)return Tt;const ve=this.paginator.pageIndex*this.paginator.pageSize;return Tt.slice(ve,ve+this.paginator.pageSize)}_updatePaginator(Tt){Promise.resolve().then(()=>{const ve=this.paginator;if(ve&&(ve.length=Tt,ve.pageIndex>0)){const Qe=Math.ceil(ve.length/ve.pageSize)-1||0,_t=Math.min(ve.pageIndex,Qe);_t!==ve.pageIndex&&(ve.pageIndex=_t,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){var Tt;null===(Tt=this._renderChangesSubscription)||void 0===Tt||Tt.unsubscribe(),this._renderChangesSubscription=null}}class Ui extends Vi{}},3251:(Be,K,p)=>{"use strict";p.d(K,{BU:()=>de,Nh:()=>nt,Nj:()=>mt,SP:()=>Qt,uD:()=>we,uX:()=>xe});var t=p(5664),e=p(7144),f=p(7429),M=p(9808),a=p(5e3),C=p(508),d=p(6360),R=p(5698),h=p(8675),L=p(1884),w=p(2722),D=p(3900),S=p(5684),k=p(7579),E=p(727),B=p(4968),Z=p(9646),Y=p(6451),ae=p(515),ee=p(8306),ue=p(2805),ne=p(1777),re=p(226),ge=p(3191),q=p(1159),_e=p(925),x=p(5303);function i(He,rt){1&He&&a.Hsn(0)}const r=["*"];function u(He,rt){}const c=function(He){return{animationDuration:He}},v=function(He,rt){return{value:He,params:rt}},T=["tabListContainer"],I=["tabList"],y=["tabListInner"],n=["nextPaginator"],_=["previousPaginator"],V=["tabBodyWrapper"],N=["tabHeader"];function H(He,rt){}function X(He,rt){if(1&He&&a.YNc(0,H,0,0,"ng-template",10),2&He){const et=a.oxw().$implicit;a.Q6J("cdkPortalOutlet",et.templateLabel)}}function he(He,rt){if(1&He&&a._uU(0),2&He){const et=a.oxw().$implicit;a.Oqu(et.textLabel)}}function be(He,rt){if(1&He){const et=a.EpF();a.TgZ(0,"div",6),a.NdJ("click",function(){const Ge=a.CHM(et),ot=Ge.$implicit,lt=Ge.index,Ct=a.oxw(),mi=a.MAs(1);return Ct._handleClick(ot,mi,lt)})("cdkFocusChange",function(Ge){const lt=a.CHM(et).index;return a.oxw()._tabFocusChanged(Ge,lt)}),a.TgZ(1,"div",7),a.YNc(2,X,1,1,"ng-template",8),a.YNc(3,he,1,1,"ng-template",null,9,a.W1O),a.qZA()()}if(2&He){const et=rt.$implicit,Ae=rt.index,Ge=a.MAs(4),ot=a.oxw();a.ekj("mat-tab-label-active",ot.selectedIndex===Ae),a.Q6J("id",ot._getTabLabelId(Ae))("ngClass",et.labelClass)("disabled",et.disabled)("matRippleDisabled",et.disabled||ot.disableRipple),a.uIk("tabIndex",ot._getTabIndex(et,Ae))("aria-posinset",Ae+1)("aria-setsize",ot._tabs.length)("aria-controls",ot._getTabContentId(Ae))("aria-selected",ot.selectedIndex===Ae)("aria-label",et.ariaLabel||null)("aria-labelledby",!et.ariaLabel&&et.ariaLabelledby?et.ariaLabelledby:null),a.xp6(2),a.Q6J("ngIf",et.templateLabel)("ngIfElse",Ge)}}function Pe(He,rt){if(1&He){const et=a.EpF();a.TgZ(0,"mat-tab-body",11),a.NdJ("_onCentered",function(){return a.CHM(et),a.oxw()._removeTabBodyWrapperHeight()})("_onCentering",function(Ge){return a.CHM(et),a.oxw()._setTabBodyWrapperHeight(Ge)}),a.qZA()}if(2&He){const et=rt.$implicit,Ae=rt.index,Ge=a.oxw();a.ekj("mat-tab-body-active",Ge.selectedIndex===Ae),a.Q6J("id",Ge._getTabContentId(Ae))("ngClass",et.bodyClass)("content",et.content)("position",et.position)("origin",et.origin)("animationDuration",Ge.animationDuration),a.uIk("tabindex",null!=Ge.contentTabIndex&&Ge.selectedIndex===Ae?Ge.contentTabIndex:null)("aria-labelledby",Ge._getTabLabelId(Ae))}}const Ee=["mat-tab-nav-bar",""],j=new a.OlP("MatInkBarPositioner",{providedIn:"root",factory:function Ve(){return rt=>({left:rt?(rt.offsetLeft||0)+"px":"0",width:rt?(rt.offsetWidth||0)+"px":"0"})}});let Me=(()=>{class He{constructor(et,Ae,Ge,ot){this._elementRef=et,this._ngZone=Ae,this._inkBarPositioner=Ge,this._animationMode=ot}alignToElement(et){this.show(),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(()=>{const Ae=this._inkBarPositioner(et),Ge=this._elementRef.nativeElement;Ge.style.left=Ae.left,Ge.style.width=Ae.width})}show(){this._elementRef.nativeElement.style.visibility="visible"}hide(){this._elementRef.nativeElement.style.visibility="hidden"}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(j),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(et,Ae){2&et&&a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode)}}),He})();const J=new a.OlP("MatTabContent"),ut=new a.OlP("MatTabLabel"),Oe=new a.OlP("MAT_TAB");let we=(()=>{class He extends f.ig{constructor(et,Ae,Ge){super(et,Ae),this._closestTab=Ge}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.Rgc),a.Y36(a.s_b),a.Y36(Oe,8))},He.\u0275dir=a.lG2({type:He,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[a._Bn([{provide:ut,useExisting:He}]),a.qOj]}),He})();const ce=(0,C.Id)(class{}),Te=new a.OlP("MAT_TAB_GROUP");let xe=(()=>{class He extends ce{constructor(et,Ae){super(),this._viewContainerRef=et,this._closestTabGroup=Ae,this.textLabel="",this._contentPortal=null,this._stateChanges=new k.x,this.position=null,this.origin=null,this.isActive=!1}get templateLabel(){return this._templateLabel}set templateLabel(et){this._setTemplateLabelInput(et)}get content(){return this._contentPortal}ngOnChanges(et){(et.hasOwnProperty("textLabel")||et.hasOwnProperty("disabled"))&&this._stateChanges.next()}ngOnDestroy(){this._stateChanges.complete()}ngOnInit(){this._contentPortal=new f.UE(this._explicitContent||this._implicitContent,this._viewContainerRef)}_setTemplateLabelInput(et){et&&et._closestTab===this&&(this._templateLabel=et)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.s_b),a.Y36(Te,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab"]],contentQueries:function(et,Ae,Ge){if(1&et&&(a.Suo(Ge,ut,5),a.Suo(Ge,J,7,a.Rgc)),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae.templateLabel=ot.first),a.iGM(ot=a.CRH())&&(Ae._explicitContent=ot.first)}},viewQuery:function(et,Ae){if(1&et&&a.Gf(a.Rgc,7),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._implicitContent=Ge.first)}},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],labelClass:"labelClass",bodyClass:"bodyClass"},exportAs:["matTab"],features:[a._Bn([{provide:Oe,useExisting:He}]),a.qOj,a.TTD],ngContentSelectors:r,decls:1,vars:0,template:function(et,Ae){1&et&&(a.F$t(),a.YNc(0,i,1,0,"ng-template"))},encapsulation:2}),He})();const W={translateTab:(0,ne.X$)("translateTab",[(0,ne.SB)("center, void, left-origin-center, right-origin-center",(0,ne.oB)({transform:"none"})),(0,ne.SB)("left",(0,ne.oB)({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),(0,ne.SB)("right",(0,ne.oB)({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),(0,ne.eR)("* => left, * => right, left => center, right => center",(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),(0,ne.eR)("void => left-origin-center",[(0,ne.oB)({transform:"translate3d(-100%, 0, 0)"}),(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),(0,ne.eR)("void => right-origin-center",[(0,ne.oB)({transform:"translate3d(100%, 0, 0)"}),(0,ne.jt)("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])};let te=(()=>{class He extends f.Pl{constructor(et,Ae,Ge,ot){super(et,Ae,ot),this._host=Ge,this._centeringSub=E.w0.EMPTY,this._leavingSub=E.w0.EMPTY}ngOnInit(){super.ngOnInit(),this._centeringSub=this._host._beforeCentering.pipe((0,h.O)(this._host._isCenterPosition(this._host._position))).subscribe(et=>{et&&!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 He.\u0275fac=function(et){return new(et||He)(a.Y36(a._Vd),a.Y36(a.s_b),a.Y36((0,a.Gpc)(()=>fe)),a.Y36(M.K0))},He.\u0275dir=a.lG2({type:He,selectors:[["","matTabBodyHost",""]],features:[a.qOj]}),He})(),Ce=(()=>{class He{constructor(et,Ae,Ge){this._elementRef=et,this._dir=Ae,this._dirChangeSubscription=E.w0.EMPTY,this._translateTabComplete=new k.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",Ae&&(this._dirChangeSubscription=Ae.change.subscribe(ot=>{this._computePositionAnimationState(ot),Ge.markForCheck()})),this._translateTabComplete.pipe((0,L.x)((ot,lt)=>ot.fromState===lt.fromState&&ot.toState===lt.toState)).subscribe(ot=>{this._isCenterPosition(ot.toState)&&this._isCenterPosition(this._position)&&this._onCentered.emit(),this._isCenterPosition(ot.fromState)&&!this._isCenterPosition(this._position)&&this._afterLeavingCenter.emit()})}set position(et){this._positionIndex=et,this._computePositionAnimationState()}ngOnInit(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin(this.origin))}ngOnDestroy(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()}_onTranslateTabStarted(et){const Ae=this._isCenterPosition(et.toState);this._beforeCentering.emit(Ae),Ae&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_isCenterPosition(et){return"center"==et||"left-origin-center"==et||"right-origin-center"==et}_computePositionAnimationState(et=this._getLayoutDirection()){this._position=this._positionIndex<0?"ltr"==et?"left":"right":this._positionIndex>0?"ltr"==et?"right":"left":"center"}_computePositionFromOrigin(et){const Ae=this._getLayoutDirection();return"ltr"==Ae&&et<=0||"rtl"==Ae&&et>0?"left-origin-center":"right-origin-center"}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.sBO))},He.\u0275dir=a.lG2({type:He,inputs:{_content:["content","_content"],origin:"origin",animationDuration:"animationDuration",position:"position"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),He})(),fe=(()=>{class He extends Ce{constructor(et,Ae,Ge){super(et,Ae,Ge)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.sBO))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab-body"]],viewQuery:function(et,Ae){if(1&et&&a.Gf(f.Pl,5),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._portalHost=Ge.first)}},hostAttrs:[1,"mat-tab-body"],features:[a.qOj],decls:3,vars:6,consts:[["cdkScrollable","",1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(et,Ae){1&et&&(a.TgZ(0,"div",0,1),a.NdJ("@translateTab.start",function(ot){return Ae._onTranslateTabStarted(ot)})("@translateTab.done",function(ot){return Ae._translateTabComplete.next(ot)}),a.YNc(2,u,0,0,"ng-template",2),a.qZA()),2&et&&a.Q6J("@translateTab",a.WLB(3,v,Ae._position,a.VKq(1,c,Ae.animationDuration)))},directives:[te],styles:['.mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}.mat-tab-body-content[style*="visibility: hidden"]{display:none}\n'],encapsulation:2,data:{animation:[W.translateTab]}}),He})();const Q=new a.OlP("MAT_TABS_CONFIG"),pt=(0,C.Id)(class{});let tt=(()=>{class He extends pt{constructor(et){super(),this.elementRef=et}focus(){this.elementRef.nativeElement.focus()}getOffsetLeft(){return this.elementRef.nativeElement.offsetLeft}getOffsetWidth(){return this.elementRef.nativeElement.offsetWidth}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq))},He.\u0275dir=a.lG2({type:He,selectors:[["","matTabLabelWrapper",""]],hostVars:3,hostBindings:function(et,Ae){2&et&&(a.uIk("aria-disabled",!!Ae.disabled),a.ekj("mat-tab-disabled",Ae.disabled))},inputs:{disabled:"disabled"},features:[a.qOj]}),He})();const Dt=(0,_e.i$)({passive:!0});let ui=(()=>{class He{constructor(et,Ae,Ge,ot,lt,Ct,mi){this._elementRef=et,this._changeDetectorRef=Ae,this._viewportRuler=Ge,this._dir=ot,this._ngZone=lt,this._platform=Ct,this._animationMode=mi,this._scrollDistance=0,this._selectedIndexChanged=!1,this._destroyed=new k.x,this._showPaginationControls=!1,this._disableScrollAfter=!0,this._disableScrollBefore=!0,this._stopScrolling=new k.x,this.disablePagination=!1,this._selectedIndex=0,this.selectFocusedIndex=new a.vpe,this.indexFocused=new a.vpe,lt.runOutsideAngular(()=>{(0,B.R)(et.nativeElement,"mouseleave").pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._stopInterval()})})}get selectedIndex(){return this._selectedIndex}set selectedIndex(et){et=(0,ge.su)(et),this._selectedIndex!=et&&(this._selectedIndexChanged=!0,this._selectedIndex=et,this._keyManager&&this._keyManager.updateActiveItem(et))}ngAfterViewInit(){(0,B.R)(this._previousPaginator.nativeElement,"touchstart",Dt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("before")}),(0,B.R)(this._nextPaginator.nativeElement,"touchstart",Dt).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._handlePaginatorPress("after")})}ngAfterContentInit(){const et=this._dir?this._dir.change:(0,Z.of)("ltr"),Ae=this._viewportRuler.change(150),Ge=()=>{this.updatePagination(),this._alignInkBarToSelectedTab()};this._keyManager=new t.Em(this._items).withHorizontalOrientation(this._getLayoutDirection()).withHomeAndEnd().withWrap(),this._keyManager.updateActiveItem(this._selectedIndex),this._ngZone.onStable.pipe((0,R.q)(1)).subscribe(Ge),(0,Y.T)(et,Ae,this._items.changes,this._itemsResized()).pipe((0,w.R)(this._destroyed)).subscribe(()=>{this._ngZone.run(()=>{Promise.resolve().then(()=>{this._scrollDistance=Math.max(0,Math.min(this._getMaxScrollDistance(),this._scrollDistance)),Ge()})}),this._keyManager.withHorizontalOrientation(this._getLayoutDirection())}),this._keyManager.change.pipe((0,w.R)(this._destroyed)).subscribe(ot=>{this.indexFocused.emit(ot),this._setTabFocus(ot)})}_itemsResized(){return"function"!=typeof ResizeObserver?ae.E:this._items.changes.pipe((0,h.O)(this._items),(0,D.w)(et=>new ee.y(Ae=>this._ngZone.runOutsideAngular(()=>{const Ge=new ResizeObserver(()=>{Ae.next()});return et.forEach(ot=>{Ge.observe(ot.elementRef.nativeElement)}),()=>{Ge.disconnect()}}))),(0,S.T)(1))}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(et){if(!(0,q.Vb)(et))switch(et.keyCode){case q.K5:case q.L_:this.focusIndex!==this.selectedIndex&&(this.selectFocusedIndex.emit(this.focusIndex),this._itemSelected(et));break;default:this._keyManager.onKeydown(et)}}_onContentChanges(){const et=this._elementRef.nativeElement.textContent;et!==this._currentTextContent&&(this._currentTextContent=et||"",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(et){!this._isValidIndex(et)||this.focusIndex===et||!this._keyManager||this._keyManager.setActiveItem(et)}_isValidIndex(et){if(!this._items)return!0;const Ae=this._items?this._items.toArray()[et]:null;return!!Ae&&!Ae.disabled}_setTabFocus(et){if(this._showPaginationControls&&this._scrollToLabel(et),this._items&&this._items.length){this._items.toArray()[et].focus();const Ae=this._tabListContainer.nativeElement;Ae.scrollLeft="ltr"==this._getLayoutDirection()?0:Ae.scrollWidth-Ae.offsetWidth}}_getLayoutDirection(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"}_updateTabScrollPosition(){if(this.disablePagination)return;const et=this.scrollDistance,Ae="ltr"===this._getLayoutDirection()?-et:et;this._tabList.nativeElement.style.transform=`translateX(${Math.round(Ae)}px)`,(this._platform.TRIDENT||this._platform.EDGE)&&(this._tabListContainer.nativeElement.scrollLeft=0)}get scrollDistance(){return this._scrollDistance}set scrollDistance(et){this._scrollTo(et)}_scrollHeader(et){return this._scrollTo(this._scrollDistance+("before"==et?-1:1)*this._tabListContainer.nativeElement.offsetWidth/3)}_handlePaginatorClick(et){this._stopInterval(),this._scrollHeader(et)}_scrollToLabel(et){if(this.disablePagination)return;const Ae=this._items?this._items.toArray()[et]:null;if(!Ae)return;const Ge=this._tabListContainer.nativeElement.offsetWidth,{offsetLeft:ot,offsetWidth:lt}=Ae.elementRef.nativeElement;let Ct,mi;"ltr"==this._getLayoutDirection()?(Ct=ot,mi=Ct+lt):(mi=this._tabListInner.nativeElement.offsetWidth-ot,Ct=mi-lt);const Jt=this.scrollDistance,ei=this.scrollDistance+Ge;Ctei&&(this.scrollDistance+=mi-ei+60)}_checkPaginationEnabled(){if(this.disablePagination)this._showPaginationControls=!1;else{const et=this._tabListInner.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;et||(this.scrollDistance=0),et!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=et}}_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._tabListInner.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0}_alignInkBarToSelectedTab(){const et=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,Ae=et?et.elementRef.nativeElement:null;Ae?this._inkBar.alignToElement(Ae):this._inkBar.hide()}_stopInterval(){this._stopScrolling.next()}_handlePaginatorPress(et,Ae){Ae&&null!=Ae.button&&0!==Ae.button||(this._stopInterval(),(0,ue.H)(650,100).pipe((0,w.R)((0,Y.T)(this._stopScrolling,this._destroyed))).subscribe(()=>{const{maxScrollDistance:Ge,distance:ot}=this._scrollHeader(et);(0===ot||ot>=Ge)&&this._stopInterval()}))}_scrollTo(et){if(this.disablePagination)return{maxScrollDistance:0,distance:0};const Ae=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(Ae,et)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:Ae,distance:this._scrollDistance}}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{disablePagination:"disablePagination"}}),He})(),Ot=(()=>{class He extends ui{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,Ae,Ge,ot,lt,Ct,mi),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(et){this._disableRipple=(0,ge.Ig)(et)}_itemSelected(et){et.preventDefault()}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{disableRipple:"disableRipple"},features:[a.qOj]}),He})(),Nt=(()=>{class He extends Ot{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,Ae,Ge,ot,lt,Ct,mi)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab-header"]],contentQueries:function(et,Ae,Ge){if(1&et&&a.Suo(Ge,tt,4),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae._items=ot)}},viewQuery:function(et,Ae){if(1&et&&(a.Gf(Me,7),a.Gf(T,7),a.Gf(I,7),a.Gf(y,7),a.Gf(n,5),a.Gf(_,5)),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._inkBar=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListContainer=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabList=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListInner=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._nextPaginator=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(et,Ae){2&et&&a.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[a.qOj],ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(et,Ae){1&et&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(ot){return Ae._handlePaginatorPress("before",ot)})("touchend",function(){return Ae._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(ot){return Ae._handleKeydown(ot)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Ae._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(ot){return Ae._handlePaginatorPress("after",ot)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&et&&(a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),a.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),a.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},directives:[C.wG,e.wD,Me],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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}),He})(),gt=0;class it{}const bt=(0,C.pj)((0,C.Kr)(class{constructor(He){this._elementRef=He}}),"primary");let ti=(()=>{class He extends bt{constructor(et,Ae,Ge,ot){var lt;super(et),this._changeDetectorRef=Ae,this._animationMode=ot,this._tabs=new a.n_E,this._indexToSelect=0,this._lastFocusedTabIndex=null,this._tabBodyWrapperHeight=0,this._tabsSubscription=E.w0.EMPTY,this._tabLabelSubscription=E.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=gt++,this.animationDuration=Ge&&Ge.animationDuration?Ge.animationDuration:"500ms",this.disablePagination=!(!Ge||null==Ge.disablePagination)&&Ge.disablePagination,this.dynamicHeight=!(!Ge||null==Ge.dynamicHeight)&&Ge.dynamicHeight,this.contentTabIndex=null!==(lt=null==Ge?void 0:Ge.contentTabIndex)&&void 0!==lt?lt:null}get dynamicHeight(){return this._dynamicHeight}set dynamicHeight(et){this._dynamicHeight=(0,ge.Ig)(et)}get selectedIndex(){return this._selectedIndex}set selectedIndex(et){this._indexToSelect=(0,ge.su)(et,null)}get animationDuration(){return this._animationDuration}set animationDuration(et){this._animationDuration=/^\d+$/.test(et+"")?et+"ms":et}get contentTabIndex(){return this._contentTabIndex}set contentTabIndex(et){this._contentTabIndex=(0,ge.su)(et,null)}get backgroundColor(){return this._backgroundColor}set backgroundColor(et){const Ae=this._elementRef.nativeElement;Ae.classList.remove(`mat-background-${this.backgroundColor}`),et&&Ae.classList.add(`mat-background-${et}`),this._backgroundColor=et}ngAfterContentChecked(){const et=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=et){const Ae=null==this._selectedIndex;if(!Ae){this.selectedTabChange.emit(this._createChangeEvent(et));const Ge=this._tabBodyWrapper.nativeElement;Ge.style.minHeight=Ge.clientHeight+"px"}Promise.resolve().then(()=>{this._tabs.forEach((Ge,ot)=>Ge.isActive=ot===et),Ae||(this.selectedIndexChange.emit(et),this._tabBodyWrapper.nativeElement.style.minHeight="")})}this._tabs.forEach((Ae,Ge)=>{Ae.position=Ge-et,null!=this._selectedIndex&&0==Ae.position&&!Ae.origin&&(Ae.origin=et-this._selectedIndex)}),this._selectedIndex!==et&&(this._selectedIndex=et,this._lastFocusedTabIndex=null,this._changeDetectorRef.markForCheck())}ngAfterContentInit(){this._subscribeToAllTabChanges(),this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe(()=>{const et=this._clampTabIndex(this._indexToSelect);if(et===this._selectedIndex){const Ae=this._tabs.toArray();let Ge;for(let ot=0;ot{Ae[et].isActive=!0,this.selectedTabChange.emit(this._createChangeEvent(et))})}this._changeDetectorRef.markForCheck()})}_subscribeToAllTabChanges(){this._allTabs.changes.pipe((0,h.O)(this._allTabs)).subscribe(et=>{this._tabs.reset(et.filter(Ae=>Ae._closestTabGroup===this||!Ae._closestTabGroup)),this._tabs.notifyOnChanges()})}ngOnDestroy(){this._tabs.destroy(),this._tabsSubscription.unsubscribe(),this._tabLabelSubscription.unsubscribe()}realignInkBar(){this._tabHeader&&this._tabHeader._alignInkBarToSelectedTab()}updatePagination(){this._tabHeader&&this._tabHeader.updatePagination()}focusTab(et){const Ae=this._tabHeader;Ae&&(Ae.focusIndex=et)}_focusChanged(et){this._lastFocusedTabIndex=et,this.focusChange.emit(this._createChangeEvent(et))}_createChangeEvent(et){const Ae=new it;return Ae.index=et,this._tabs&&this._tabs.length&&(Ae.tab=this._tabs.toArray()[et]),Ae}_subscribeToTabLabels(){this._tabLabelSubscription&&this._tabLabelSubscription.unsubscribe(),this._tabLabelSubscription=(0,Y.T)(...this._tabs.map(et=>et._stateChanges)).subscribe(()=>this._changeDetectorRef.markForCheck())}_clampTabIndex(et){return Math.min(this._tabs.length-1,Math.max(et||0,0))}_getTabLabelId(et){return`mat-tab-label-${this._groupId}-${et}`}_getTabContentId(et){return`mat-tab-content-${this._groupId}-${et}`}_setTabBodyWrapperHeight(et){if(!this._dynamicHeight||!this._tabBodyWrapperHeight)return;const Ae=this._tabBodyWrapper.nativeElement;Ae.style.height=this._tabBodyWrapperHeight+"px",this._tabBodyWrapper.nativeElement.offsetHeight&&(Ae.style.height=et+"px")}_removeTabBodyWrapperHeight(){const et=this._tabBodyWrapper.nativeElement;this._tabBodyWrapperHeight=et.clientHeight,et.style.height="",this.animationDone.emit()}_handleClick(et,Ae,Ge){et.disabled||(this.selectedIndex=Ae.focusIndex=Ge)}_getTabIndex(et,Ae){var Ge;return et.disabled?null:Ae===(null!==(Ge=this._lastFocusedTabIndex)&&void 0!==Ge?Ge:this.selectedIndex)?0:-1}_tabFocusChanged(et,Ae){et&&"mouse"!==et&&"touch"!==et&&(this._tabHeader.focusIndex=Ae)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Q,8),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{dynamicHeight:"dynamicHeight",selectedIndex:"selectedIndex",headerPosition:"headerPosition",animationDuration:"animationDuration",contentTabIndex:"contentTabIndex",disablePagination:"disablePagination",backgroundColor:"backgroundColor"},outputs:{selectedIndexChange:"selectedIndexChange",focusChange:"focusChange",animationDone:"animationDone",selectedTabChange:"selectedTabChange"},features:[a.qOj]}),He})(),Qt=(()=>{class He extends ti{constructor(et,Ae,Ge,ot){super(et,Ae,Ge,ot)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(a.sBO),a.Y36(Q,8),a.Y36(d.Qb,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["mat-tab-group"]],contentQueries:function(et,Ae,Ge){if(1&et&&a.Suo(Ge,xe,5),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae._allTabs=ot)}},viewQuery:function(et,Ae){if(1&et&&(a.Gf(V,5),a.Gf(N,5)),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._tabBodyWrapper=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabHeader=Ge.first)}},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(et,Ae){2&et&&a.ekj("mat-tab-group-dynamic-height",Ae.dynamicHeight)("mat-tab-group-inverted-header","below"===Ae.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[a._Bn([{provide:Te,useExisting:He}]),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","ngClass","disabled","matRippleDisabled","click","cdkFocusChange",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label","mat-focus-indicator",3,"id","ngClass","disabled","matRippleDisabled","click","cdkFocusChange"],[1,"mat-tab-label-content"],[3,"ngIf","ngIfElse"],["tabTextLabel",""],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","ngClass","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(et,Ae){1&et&&(a.TgZ(0,"mat-tab-header",0,1),a.NdJ("indexFocused",function(ot){return Ae._focusChanged(ot)})("selectFocusedIndex",function(ot){return Ae.selectedIndex=ot}),a.YNc(2,be,5,15,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.YNc(5,Pe,1,10,"mat-tab-body",5),a.qZA()),2&et&&(a.Q6J("selectedIndex",Ae.selectedIndex||0)("disableRipple",Ae.disableRipple)("disablePagination",Ae.disablePagination),a.xp6(2),a.Q6J("ngForOf",Ae._tabs),a.xp6(1),a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),a.xp6(2),a.Q6J("ngForOf",Ae._tabs))},directives:[Nt,fe,M.sg,tt,C.wG,t.kH,M.mk,M.O5,f.Pl],styles:[".mat-tab-group{display:flex;flex-direction:column;max-width:100%}.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;outline:0;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}),He})(),Re=0,ke=(()=>{class He extends ui{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,ot,lt,Ae,Ge,Ct,mi),this._disableRipple=!1,this.color="primary"}get backgroundColor(){return this._backgroundColor}set backgroundColor(et){const Ae=this._elementRef.nativeElement.classList;Ae.remove(`mat-background-${this.backgroundColor}`),et&&Ae.add(`mat-background-${et}`),this._backgroundColor=et}get disableRipple(){return this._disableRipple}set disableRipple(et){this._disableRipple=(0,ge.Ig)(et)}_itemSelected(){}ngAfterContentInit(){this._items.changes.pipe((0,h.O)(null),(0,w.R)(this._destroyed)).subscribe(()=>{this.updateActiveLink()}),super.ngAfterContentInit()}updateActiveLink(){if(!this._items)return;const et=this._items.toArray();for(let Ae=0;Ae{class He extends ke{constructor(et,Ae,Ge,ot,lt,Ct,mi){super(et,Ae,Ge,ot,lt,Ct,mi)}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(a.SBq),a.Y36(re.Is,8),a.Y36(a.R0b),a.Y36(a.sBO),a.Y36(x.rL),a.Y36(_e.t4),a.Y36(d.Qb,8))},He.\u0275cmp=a.Xpm({type:He,selectors:[["","mat-tab-nav-bar",""]],contentQueries:function(et,Ae,Ge){if(1&et&&a.Suo(Ge,mt,5),2&et){let ot;a.iGM(ot=a.CRH())&&(Ae._items=ot)}},viewQuery:function(et,Ae){if(1&et&&(a.Gf(Me,7),a.Gf(T,7),a.Gf(I,7),a.Gf(y,7),a.Gf(n,5),a.Gf(_,5)),2&et){let Ge;a.iGM(Ge=a.CRH())&&(Ae._inkBar=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListContainer=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabList=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._tabListInner=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._nextPaginator=Ge.first),a.iGM(Ge=a.CRH())&&(Ae._previousPaginator=Ge.first)}},hostAttrs:[1,"mat-tab-nav-bar","mat-tab-header"],hostVars:11,hostBindings:function(et,Ae){2&et&&(a.uIk("role",Ae._getRole()),a.ekj("mat-tab-header-pagination-controls-enabled",Ae._showPaginationControls)("mat-tab-header-rtl","rtl"==Ae._getLayoutDirection())("mat-primary","warn"!==Ae.color&&"accent"!==Ae.color)("mat-accent","accent"===Ae.color)("mat-warn","warn"===Ae.color))},inputs:{color:"color"},exportAs:["matTabNavBar","matTabNav"],features:[a.qOj],attrs:Ee,ngContentSelectors:r,decls:14,vars:10,consts:[["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","disabled","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"],["tabListInner",""],["aria-hidden","true","type","button","mat-ripple","","tabindex","-1",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","disabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(et,Ae){1&et&&(a.F$t(),a.TgZ(0,"button",0,1),a.NdJ("click",function(){return Ae._handlePaginatorClick("before")})("mousedown",function(ot){return Ae._handlePaginatorPress("before",ot)})("touchend",function(){return Ae._stopInterval()}),a._UZ(2,"div",2),a.qZA(),a.TgZ(3,"div",3,4),a.NdJ("keydown",function(ot){return Ae._handleKeydown(ot)}),a.TgZ(5,"div",5,6),a.NdJ("cdkObserveContent",function(){return Ae._onContentChanges()}),a.TgZ(7,"div",7,8),a.Hsn(9),a.qZA(),a._UZ(10,"mat-ink-bar"),a.qZA()(),a.TgZ(11,"button",9,10),a.NdJ("mousedown",function(ot){return Ae._handlePaginatorPress("after",ot)})("click",function(){return Ae._handlePaginatorClick("after")})("touchend",function(){return Ae._stopInterval()}),a._UZ(13,"div",2),a.qZA()),2&et&&(a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollBefore),a.Q6J("matRippleDisabled",Ae._disableScrollBefore||Ae.disableRipple)("disabled",Ae._disableScrollBefore||null),a.xp6(5),a.ekj("_mat-animation-noopable","NoopAnimations"===Ae._animationMode),a.xp6(6),a.ekj("mat-tab-header-pagination-disabled",Ae._disableScrollAfter),a.Q6J("matRippleDisabled",Ae._disableScrollAfter||Ae.disableRipple)("disabled",Ae._disableScrollAfter||null))},directives:[C.wG,e.wD,Me],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-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;box-sizing:content-box;background:none;border:none;outline:0;padding:0}.mat-tab-header-pagination::-moz-focus-inner{border:0}.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;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}),He})();const ye=(0,C.sb)((0,C.Kr)((0,C.Id)(class{})));let ht=(()=>{class He extends ye{constructor(et,Ae,Ge,ot,lt,Ct){super(),this._tabNavBar=et,this.elementRef=Ae,this._focusMonitor=lt,this._isActive=!1,this.id="mat-tab-link-"+Re++,this.rippleConfig=Ge||{},this.tabIndex=parseInt(ot)||0,"NoopAnimations"===Ct&&(this.rippleConfig.animation={enterDuration:0,exitDuration:0})}get active(){return this._isActive}set active(et){const Ae=(0,ge.Ig)(et);Ae!==this._isActive&&(this._isActive=Ae,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)}_handleFocus(){this._tabNavBar.focusIndex=this._tabNavBar._items.toArray().indexOf(this)}_handleKeydown(et){this._tabNavBar.tabPanel&&et.keyCode===q.L_&&this.elementRef.nativeElement.click()}_getAriaControls(){var et;return this._tabNavBar.tabPanel?null===(et=this._tabNavBar.tabPanel)||void 0===et?void 0:et.id:this.elementRef.nativeElement.getAttribute("aria-controls")}_getAriaSelected(){return this._tabNavBar.tabPanel?this.active?"true":"false":this.elementRef.nativeElement.getAttribute("aria-selected")}_getAriaCurrent(){return this.active&&!this._tabNavBar.tabPanel?"page":null}_getRole(){return this._tabNavBar.tabPanel?"tab":this.elementRef.nativeElement.getAttribute("role")}_getTabIndex(){return this._tabNavBar.tabPanel?this._isActive?0:-1:this.tabIndex}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(ke),a.Y36(a.SBq),a.Y36(C.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,inputs:{active:"active",id:"id"},features:[a.qOj]}),He})(),mt=(()=>{class He extends ht{constructor(et,Ae,Ge,ot,lt,Ct,mi,Jt){super(et,Ae,lt,Ct,mi,Jt),this._tabLinkRipple=new C.IR(this,Ge,Ae,ot),this._tabLinkRipple.setupTriggerEvents(Ae.nativeElement)}ngOnDestroy(){super.ngOnDestroy(),this._tabLinkRipple._removeTriggerEvents()}}return He.\u0275fac=function(et){return new(et||He)(a.Y36(de),a.Y36(a.SBq),a.Y36(a.R0b),a.Y36(_e.t4),a.Y36(C.Y2,8),a.$8M("tabindex"),a.Y36(t.tE),a.Y36(d.Qb,8))},He.\u0275dir=a.lG2({type:He,selectors:[["","mat-tab-link",""],["","matTabLink",""]],hostAttrs:[1,"mat-tab-link","mat-focus-indicator"],hostVars:11,hostBindings:function(et,Ae){1&et&&a.NdJ("focus",function(){return Ae._handleFocus()})("keydown",function(ot){return Ae._handleKeydown(ot)}),2&et&&(a.uIk("aria-controls",Ae._getAriaControls())("aria-current",Ae._getAriaCurrent())("aria-disabled",Ae.disabled)("aria-selected",Ae._getAriaSelected())("id",Ae.id)("tabIndex",Ae._getTabIndex())("role",Ae._getRole()),a.ekj("mat-tab-disabled",Ae.disabled)("mat-tab-label-active",Ae.active))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex"},exportAs:["matTabLink"],features:[a.qOj]}),He})(),nt=(()=>{class He{}return He.\u0275fac=function(et){return new(et||He)},He.\u0275mod=a.oAB({type:He}),He.\u0275inj=a.cJS({imports:[[M.ez,C.BQ,f.eL,C.si,e.Q8,t.rt],C.BQ]}),He})()},4594:(Be,K,p)=>{"use strict";p.d(K,{Ye:()=>h,g0:()=>w});var t=p(5e3),e=p(508),f=p(9808),M=p(925);const a=["*",[["mat-toolbar-row"]]],C=["*","mat-toolbar-row"],d=(0,e.pj)(class{constructor(D){this._elementRef=D}});let R=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275dir=t.lG2({type:D,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),D})(),h=(()=>{class D extends d{constructor(k,E,B){super(k),this._platform=E,this._document=B}ngAfterViewInit(){this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(()=>this._checkToolbarMixedModes()))}_checkToolbarMixedModes(){}}return D.\u0275fac=function(k){return new(k||D)(t.Y36(t.SBq),t.Y36(M.t4),t.Y36(f.K0))},D.\u0275cmp=t.Xpm({type:D,selectors:[["mat-toolbar"]],contentQueries:function(k,E,B){if(1&k&&t.Suo(B,R,5),2&k){let Z;t.iGM(Z=t.CRH())&&(E._toolbarRows=Z)}},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(k,E){2&k&&t.ekj("mat-toolbar-multiple-rows",E._toolbarRows.length>0)("mat-toolbar-single-row",0===E._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[t.qOj],ngContentSelectors:C,decls:2,vars:0,template:function(k,E){1&k&&(t.F$t(a),t.Hsn(0),t.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}),D})(),w=(()=>{class D{}return D.\u0275fac=function(k){return new(k||D)},D.\u0275mod=t.oAB({type:D}),D.\u0275inj=t.cJS({imports:[[e.BQ],e.BQ]}),D})()},7238:(Be,K,p)=>{"use strict";p.d(K,{AV:()=>I,gM:()=>c});var t=p(9776),e=p(5664),f=p(9808),M=p(5e3),a=p(508),C=p(5303),d=p(3191),R=p(1159),h=p(5113),L=p(925),w=p(7429),D=p(6360),S=p(7579),k=p(2722),E=p(5698),B=p(226);p(1777);const Y=["tooltip"],ue="tooltip-panel",ne=(0,L.i$)({passive:!0}),q=new M.OlP("mat-tooltip-scroll-strategy"),x={provide:q,deps:[t.aV],useFactory:function _e(n){return()=>n.scrollStrategies.reposition({scrollThrottle:20})}},i=new M.OlP("mat-tooltip-default-options",{providedIn:"root",factory:function r(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let u=(()=>{class n{constructor(V,N,H,X,he,be,Pe,Ee,j,Ve,Me,J){this._overlay=V,this._elementRef=N,this._scrollDispatcher=H,this._viewContainerRef=X,this._ngZone=he,this._platform=be,this._ariaDescriber=Pe,this._focusMonitor=Ee,this._dir=Ve,this._defaultOptions=Me,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 S.x,this._scrollStrategy=j,this._document=J,Me&&(Me.position&&(this.position=Me.position),Me.touchGestures&&(this.touchGestures=Me.touchGestures)),Ve.change.pipe((0,k.R)(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})}get position(){return this._position}set position(V){var N;V!==this._position&&(this._position=V,this._overlayRef&&(this._updatePosition(this._overlayRef),null===(N=this._tooltipInstance)||void 0===N||N.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(V){this._disabled=(0,d.Ig)(V),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get showDelay(){return this._showDelay}set showDelay(V){this._showDelay=(0,d.su)(V)}get hideDelay(){return this._hideDelay}set hideDelay(V){this._hideDelay=(0,d.su)(V),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}get message(){return this._message}set message(V){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message,"tooltip"),this._message=null!=V?String(V).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(V){this._tooltipClass=V,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe((0,k.R)(this._destroyed)).subscribe(V=>{V?"keyboard"===V&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const V=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([N,H])=>{V.removeEventListener(N,H,ne)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(V,this.message,"tooltip"),this._focusMonitor.stopMonitoring(V)}show(V=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const N=this._createOverlay();this._detach(),this._portal=this._portal||new w.C5(this._tooltipComponent,this._viewContainerRef);const H=this._tooltipInstance=N.attach(this._portal).instance;H._triggerElement=this._elementRef.nativeElement,H._mouseLeaveHideDelay=this._hideDelay,H.afterHidden().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),H.show(V)}hide(V=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(V)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){var V;if(this._overlayRef)return this._overlayRef;const N=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),H=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(N);return H.positionChanges.pipe((0,k.R)(this._destroyed)).subscribe(X=>{this._updateCurrentPositionClass(X.connectionPair),this._tooltipInstance&&X.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:H,panelClass:`${this._cssClassPrefix}-${ue}`,scrollStrategy:this._scrollStrategy()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe((0,k.R)(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe((0,k.R)(this._destroyed)).subscribe(()=>{var X;return null===(X=this._tooltipInstance)||void 0===X?void 0:X._handleBodyInteraction()}),this._overlayRef.keydownEvents().pipe((0,k.R)(this._destroyed)).subscribe(X=>{this._isTooltipVisible()&&X.keyCode===R.hY&&!(0,R.Vb)(X)&&(X.preventDefault(),X.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),(null===(V=this._defaultOptions)||void 0===V?void 0:V.disableTooltipInteractivity)&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(V){const N=V.getConfig().positionStrategy,H=this._getOrigin(),X=this._getOverlayPosition();N.withPositions([this._addOffset(Object.assign(Object.assign({},H.main),X.main)),this._addOffset(Object.assign(Object.assign({},H.fallback),X.fallback))])}_addOffset(V){return V}_getOrigin(){const V=!this._dir||"ltr"==this._dir.value,N=this.position;let H;"above"==N||"below"==N?H={originX:"center",originY:"above"==N?"top":"bottom"}:"before"==N||"left"==N&&V||"right"==N&&!V?H={originX:"start",originY:"center"}:("after"==N||"right"==N&&V||"left"==N&&!V)&&(H={originX:"end",originY:"center"});const{x:X,y:he}=this._invertPosition(H.originX,H.originY);return{main:H,fallback:{originX:X,originY:he}}}_getOverlayPosition(){const V=!this._dir||"ltr"==this._dir.value,N=this.position;let H;"above"==N?H={overlayX:"center",overlayY:"bottom"}:"below"==N?H={overlayX:"center",overlayY:"top"}:"before"==N||"left"==N&&V||"right"==N&&!V?H={overlayX:"end",overlayY:"center"}:("after"==N||"right"==N&&V||"left"==N&&!V)&&(H={overlayX:"start",overlayY:"center"});const{x:X,y:he}=this._invertPosition(H.overlayX,H.overlayY);return{main:H,fallback:{overlayX:X,overlayY:he}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe((0,E.q)(1),(0,k.R)(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(V){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=V,this._tooltipInstance._markForCheck())}_invertPosition(V,N){return"above"===this.position||"below"===this.position?"top"===N?N="bottom":"bottom"===N&&(N="top"):"end"===V?V="start":"start"===V&&(V="end"),{x:V,y:N}}_updateCurrentPositionClass(V){const{overlayY:N,originX:H,originY:X}=V;let he;if(he="center"===N?this._dir&&"rtl"===this._dir.value?"end"===H?"left":"right":"start"===H?"left":"right":"bottom"===N&&"top"===X?"above":"below",he!==this._currentPosition){const be=this._overlayRef;if(be){const Pe=`${this._cssClassPrefix}-${ue}-`;be.removePanelClass(Pe+this._currentPosition),be.addPanelClass(Pe+he)}this._currentPosition=he}}_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 V=[];if(this._platformSupportsMouseEvents())V.push(["mouseleave",N=>{var H;const X=N.relatedTarget;(!X||!(null===(H=this._overlayRef)||void 0===H?void 0:H.overlayElement.contains(X)))&&this.hide()}],["wheel",N=>this._wheelListener(N)]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const N=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};V.push(["touchend",N],["touchcancel",N])}this._addListeners(V),this._passiveListeners.push(...V)}_addListeners(V){V.forEach(([N,H])=>{this._elementRef.nativeElement.addEventListener(N,H,ne)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(V){if(this._isTooltipVisible()){const N=this._document.elementFromPoint(V.clientX,V.clientY),H=this._elementRef.nativeElement;N!==H&&!H.contains(N)&&this.hide()}}_disableNativeGesturesIfNecessary(){const V=this.touchGestures;if("off"!==V){const N=this._elementRef.nativeElement,H=N.style;("on"===V||"INPUT"!==N.nodeName&&"TEXTAREA"!==N.nodeName)&&(H.userSelect=H.msUserSelect=H.webkitUserSelect=H.MozUserSelect="none"),("on"===V||!N.draggable)&&(H.webkitUserDrag="none"),H.touchAction="none",H.webkitTapHighlightColor="transparent"}}}return n.\u0275fac=function(V){M.$Z()},n.\u0275dir=M.lG2({type:n,inputs:{position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]}}),n})(),c=(()=>{class n extends u{constructor(V,N,H,X,he,be,Pe,Ee,j,Ve,Me,J){super(V,N,H,X,he,be,Pe,Ee,j,Ve,Me,J),this._tooltipComponent=T}}return n.\u0275fac=function(V){return new(V||n)(M.Y36(t.aV),M.Y36(M.SBq),M.Y36(C.mF),M.Y36(M.s_b),M.Y36(M.R0b),M.Y36(L.t4),M.Y36(e.$s),M.Y36(e.tE),M.Y36(q),M.Y36(B.Is,8),M.Y36(i,8),M.Y36(f.K0))},n.\u0275dir=M.lG2({type:n,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],exportAs:["matTooltip"],features:[M.qOj]}),n})(),v=(()=>{class n{constructor(V,N){this._changeDetectorRef=V,this._visibility="initial",this._closeOnInteraction=!1,this._isVisible=!1,this._onHide=new S.x,this._animationsDisabled="NoopAnimations"===N}show(V){clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},V)}hide(V){clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},V)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){clearTimeout(this._showTimeoutId),clearTimeout(this._hideTimeoutId),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:V}){(!V||!this._triggerElement.contains(V))&&this.hide(this._mouseLeaveHideDelay)}_onShow(){}_handleAnimationEnd({animationName:V}){(V===this._showAnimation||V===this._hideAnimation)&&this._finalizeAnimation(V===this._showAnimation)}_finalizeAnimation(V){V?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(V){const N=this._tooltip.nativeElement,H=this._showAnimation,X=this._hideAnimation;if(N.classList.remove(V?X:H),N.classList.add(V?H:X),this._isVisible=V,V&&!this._animationsDisabled&&"function"==typeof getComputedStyle){const he=getComputedStyle(N);("0s"===he.getPropertyValue("animation-duration")||"none"===he.getPropertyValue("animation-name"))&&(this._animationsDisabled=!0)}V&&this._onShow(),this._animationsDisabled&&(N.classList.add("_mat-animation-noopable"),this._finalizeAnimation(V))}}return n.\u0275fac=function(V){return new(V||n)(M.Y36(M.sBO),M.Y36(D.Qb,8))},n.\u0275dir=M.lG2({type:n}),n})(),T=(()=>{class n extends v{constructor(V,N,H){super(V,H),this._breakpointObserver=N,this._isHandset=this._breakpointObserver.observe(h.u3.Handset),this._showAnimation="mat-tooltip-show",this._hideAnimation="mat-tooltip-hide"}}return n.\u0275fac=function(V){return new(V||n)(M.Y36(M.sBO),M.Y36(h.Yg),M.Y36(D.Qb,8))},n.\u0275cmp=M.Xpm({type:n,selectors:[["mat-tooltip-component"]],viewQuery:function(V,N){if(1&V&&M.Gf(Y,7),2&V){let H;M.iGM(H=M.CRH())&&(N._tooltip=H.first)}},hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(V,N){1&V&&M.NdJ("mouseleave",function(X){return N._handleMouseLeave(X)}),2&V&&M.Udp("zoom",N.isVisible()?1:null)},features:[M.qOj],decls:4,vars:6,consts:[[1,"mat-tooltip",3,"ngClass","animationend"],["tooltip",""]],template:function(V,N){if(1&V&&(M.TgZ(0,"div",0,1),M.NdJ("animationend",function(X){return N._handleAnimationEnd(X)}),M.ALo(2,"async"),M._uU(3),M.qZA()),2&V){let H;M.ekj("mat-tooltip-handset",null==(H=M.lcZ(2,4,N._isHandset))?null:H.matches),M.Q6J("ngClass",N.tooltipClass),M.xp6(3),M.Oqu(N.message)}},directives:[f.mk],pipes:[f.Ov],styles:[".mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis;transform:scale(0)}.mat-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}.mat-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-tooltip-show{0%{opacity:0;transform:scale(0)}50%{opacity:.5;transform:scale(0.99)}100%{opacity:1;transform:scale(1)}}@keyframes mat-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(1)}}.mat-tooltip-show{animation:mat-tooltip-show 200ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-tooltip-hide{animation:mat-tooltip-hide 100ms cubic-bezier(0, 0, 0.2, 1) forwards}\n"],encapsulation:2,changeDetection:0}),n})(),I=(()=>{class n{}return n.\u0275fac=function(V){return new(V||n)},n.\u0275mod=M.oAB({type:n}),n.\u0275inj=M.cJS({providers:[x],imports:[[e.rt,f.ez,t.U8,a.BQ],a.BQ,C.ZD]}),n})()},149:(Be,K,p)=>{"use strict";p.d(K,{Ar:()=>k,GZ:()=>D,WX:()=>ue,dp:()=>Y,eu:()=>B,fQ:()=>w,gi:()=>E,uo:()=>L});var t=p(8258),e=p(5e3),f=p(508),M=p(3191),a=p(449),C=p(1135),d=p(6451),R=p(4004);const h=(0,f.sb)((0,f.Id)(t.Hs));let L=(()=>{class ne extends h{constructor(ge,q,_e){super(ge,q),this.tabIndex=Number(_e)||0}ngOnInit(){super.ngOnInit()}ngOnDestroy(){super.ngOnDestroy()}}return ne.\u0275fac=function(ge){return new(ge||ne)(e.Y36(e.SBq),e.Y36(t._0),e.$8M("tabindex"))},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-tree-node"]],hostAttrs:[1,"mat-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex"},exportAs:["matTreeNode"],features:[e._Bn([{provide:t.Hs,useExisting:ne}]),e.qOj]}),ne})(),w=(()=>{class ne extends t.rO{}return ne.\u0275fac=function(){let re;return function(q){return(re||(re=e.n5z(ne)))(q||ne)}}(),ne.\u0275dir=e.lG2({type:ne,selectors:[["","matTreeNodeDef",""]],inputs:{when:["matTreeNodeDefWhen","when"],data:["matTreeNode","data"]},features:[e._Bn([{provide:t.rO,useExisting:ne}]),e.qOj]}),ne})(),D=(()=>{class ne extends t.Xx{constructor(ge,q,_e,x){super(ge,q,_e),this._disabled=!1,this.tabIndex=Number(x)||0}get disabled(){return this._disabled}set disabled(ge){this._disabled=(0,M.Ig)(ge)}get tabIndex(){return this.disabled?-1:this._tabIndex}set tabIndex(ge){this._tabIndex=null!=ge?ge:0}ngOnInit(){super.ngOnInit()}ngAfterContentInit(){super.ngAfterContentInit()}ngOnDestroy(){super.ngOnDestroy()}}return ne.\u0275fac=function(ge){return new(ge||ne)(e.Y36(e.SBq),e.Y36(t._0),e.Y36(e.ZZ4),e.$8M("tabindex"))},ne.\u0275dir=e.lG2({type:ne,selectors:[["mat-nested-tree-node"]],hostAttrs:[1,"mat-nested-tree-node"],inputs:{role:"role",disabled:"disabled",tabIndex:"tabIndex",node:["matNestedTreeNode","node"]},exportAs:["matNestedTreeNode"],features:[e._Bn([{provide:t.Xx,useExisting:ne},{provide:t.Hs,useExisting:ne},{provide:t.HI,useExisting:ne}]),e.qOj]}),ne})(),k=(()=>{class ne{constructor(ge,q){this.viewContainer=ge,this._node=q}}return ne.\u0275fac=function(ge){return new(ge||ne)(e.Y36(e.s_b),e.Y36(t.HI,8))},ne.\u0275dir=e.lG2({type:ne,selectors:[["","matTreeNodeOutlet",""]],features:[e._Bn([{provide:t.cu,useExisting:ne}])]}),ne})(),E=(()=>{class ne extends t._0{}return ne.\u0275fac=function(){let re;return function(q){return(re||(re=e.n5z(ne)))(q||ne)}}(),ne.\u0275cmp=e.Xpm({type:ne,selectors:[["mat-tree"]],viewQuery:function(ge,q){if(1&ge&&e.Gf(k,7),2&ge){let _e;e.iGM(_e=e.CRH())&&(q._nodeOutlet=_e.first)}},hostAttrs:["role","tree",1,"mat-tree"],exportAs:["matTree"],features:[e._Bn([{provide:t._0,useExisting:ne}]),e.qOj],decls:1,vars:0,consts:[["matTreeNodeOutlet",""]],template:function(ge,q){1&ge&&e.GkF(0,0)},directives:[k],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}),ne})(),B=(()=>{class ne extends t.Ud{}return ne.\u0275fac=function(){let re;return function(q){return(re||(re=e.n5z(ne)))(q||ne)}}(),ne.\u0275dir=e.lG2({type:ne,selectors:[["","matTreeNodeToggle",""]],inputs:{recursive:["matTreeNodeToggleRecursive","recursive"]},features:[e._Bn([{provide:t.Ud,useExisting:ne}]),e.qOj]}),ne})(),Y=(()=>{class ne{}return ne.\u0275fac=function(ge){return new(ge||ne)},ne.\u0275mod=e.oAB({type:ne}),ne.\u0275inj=e.cJS({imports:[[t.nZ,f.BQ],f.BQ]}),ne})();class ue extends a.o2{constructor(){super(...arguments),this._data=new C.X([])}get data(){return this._data.value}set data(re){this._data.next(re)}connect(re){return(0,d.T)(re.viewChange,this._data).pipe((0,R.U)(()=>this.data))}disconnect(){}}},6360:(Be,K,p)=>{"use strict";p.d(K,{Qb:()=>Fs,PW:()=>Ur});var t=p(5e3),e=p(2313),f=p(1777);const M=!1;function C(yt){return new t.vHH(3e3,M)}function he(){return"undefined"!=typeof window&&void 0!==window.document}function be(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function Pe(yt){switch(yt.length){case 0:return new f.ZN;case 1:return yt[0];default:return new f.ZE(yt)}}function Ee(yt,oe,pe,Ke,Mt={},Vt={}){const ri=[],ni=[];let gi=-1,ki=null;if(Ke.forEach($i=>{const dn=$i.offset,An=dn==gi,Gn=An&&ki||{};Object.keys($i).forEach(En=>{let kn=En,ar=$i[En];if("offset"!==En)switch(kn=oe.normalizePropertyName(kn,ri),ar){case f.k1:ar=Mt[En];break;case f.l3:ar=Vt[En];break;default:ar=oe.normalizeStyleValue(En,kn,ar,ri)}Gn[kn]=ar}),An||ni.push(Gn),ki=Gn,gi=dn}),ri.length)throw function u(yt){return new t.vHH(3502,M)}();return ni}function j(yt,oe,pe,Ke){switch(oe){case"start":yt.onStart(()=>Ke(pe&&Ve(pe,"start",yt)));break;case"done":yt.onDone(()=>Ke(pe&&Ve(pe,"done",yt)));break;case"destroy":yt.onDestroy(()=>Ke(pe&&Ve(pe,"destroy",yt)))}}function Ve(yt,oe,pe){const Ke=pe.totalTime,Vt=Me(yt.element,yt.triggerName,yt.fromState,yt.toState,oe||yt.phaseName,null==Ke?yt.totalTime:Ke,!!pe.disabled),ri=yt._data;return null!=ri&&(Vt._data=ri),Vt}function Me(yt,oe,pe,Ke,Mt="",Vt=0,ri){return{element:yt,triggerName:oe,fromState:pe,toState:Ke,phaseName:Mt,totalTime:Vt,disabled:!!ri}}function J(yt,oe,pe){let Ke;return yt instanceof Map?(Ke=yt.get(oe),Ke||yt.set(oe,Ke=pe)):(Ke=yt[oe],Ke||(Ke=yt[oe]=pe)),Ke}function Ie(yt){const oe=yt.indexOf(":");return[yt.substring(1,oe),yt.substr(oe+1)]}let ut=(yt,oe)=>!1,Oe=(yt,oe,pe)=>[],we=null;function ce(yt){const oe=yt.parentNode||yt.host;return oe===we?null:oe}(be()||"undefined"!=typeof Element)&&(he()?(we=(()=>document.documentElement)(),ut=(yt,oe)=>{for(;oe;){if(oe===yt)return!0;oe=ce(oe)}return!1}):ut=(yt,oe)=>yt.contains(oe),Oe=(yt,oe,pe)=>{if(pe)return Array.from(yt.querySelectorAll(oe));const Ke=yt.querySelector(oe);return Ke?[Ke]:[]});let W=null,te=!1;function Ce(yt){W||(W=function fe(){return"undefined"!=typeof document?document.body:null}()||{},te=!!W.style&&"WebkitAppearance"in W.style);let oe=!0;return W.style&&!function xe(yt){return"ebkit"==yt.substring(1,6)}(yt)&&(oe=yt in W.style,!oe&&te&&(oe="Webkit"+yt.charAt(0).toUpperCase()+yt.substr(1)in W.style)),oe}const Q=ut,pt=Oe;let Dt=(()=>{class yt{validateStyleProperty(pe){return Ce(pe)}matchesElement(pe,Ke){return!1}containsElement(pe,Ke){return Q(pe,Ke)}getParentElement(pe){return ce(pe)}query(pe,Ke,Mt){return pt(pe,Ke,Mt)}computeStyle(pe,Ke,Mt){return Mt||""}animate(pe,Ke,Mt,Vt,ri,ni=[],gi){return new f.ZN(Mt,Vt)}}return yt.\u0275fac=function(pe){return new(pe||yt)},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})(),di=(()=>{class yt{}return yt.NOOP=new Dt,yt})();const Ot="ng-enter",Nt="ng-leave",gt="ng-trigger",it=".ng-trigger",bt="ng-animating",ti=".ng-animating";function Qt(yt){if("number"==typeof yt)return yt;const oe=yt.match(/^(-?[\.\d]+)(m?s)/);return!oe||oe.length<2?0:Re(parseFloat(oe[1]),oe[2])}function Re(yt,oe){return"s"===oe?1e3*yt:yt}function ke(yt,oe,pe){return yt.hasOwnProperty("duration")?yt:function de(yt,oe,pe){let Mt,Vt=0,ri="";if("string"==typeof yt){const ni=yt.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===ni)return oe.push(C()),{duration:0,delay:0,easing:""};Mt=Re(parseFloat(ni[1]),ni[2]);const gi=ni[3];null!=gi&&(Vt=Re(parseFloat(gi),ni[4]));const ki=ni[5];ki&&(ri=ki)}else Mt=yt;if(!pe){let ni=!1,gi=oe.length;Mt<0&&(oe.push(function d(){return new t.vHH(3100,M)}()),ni=!0),Vt<0&&(oe.push(function R(){return new t.vHH(3101,M)}()),ni=!0),ni&&oe.splice(gi,0,C())}return{duration:Mt,delay:Vt,easing:ri}}(yt,oe,pe)}function ye(yt,oe={}){return Object.keys(yt).forEach(pe=>{oe[pe]=yt[pe]}),oe}function mt(yt,oe,pe={}){if(oe)for(let Ke in yt)pe[Ke]=yt[Ke];else ye(yt,pe);return pe}function Ft(yt,oe,pe){return pe?oe+":"+pe+";":""}function nt(yt){let oe="";for(let pe=0;pe{const Mt=Jt(Ke);pe&&!pe.hasOwnProperty(Ke)&&(pe[Ke]=yt.style[Mt]),yt.style[Mt]=oe[Ke]}),be()&&nt(yt))}function rt(yt,oe){yt.style&&(Object.keys(oe).forEach(pe=>{const Ke=Jt(pe);yt.style[Ke]=""}),be()&&nt(yt))}function et(yt){return Array.isArray(yt)?1==yt.length?yt[0]:(0,f.vP)(yt):yt}const Ge=new RegExp("{{\\s*(.+?)\\s*}}","g");function ot(yt){let oe=[];if("string"==typeof yt){let pe;for(;pe=Ge.exec(yt);)oe.push(pe[1]);Ge.lastIndex=0}return oe}function lt(yt,oe,pe){const Ke=yt.toString(),Mt=Ke.replace(Ge,(Vt,ri)=>{let ni=oe[ri];return oe.hasOwnProperty(ri)||(pe.push(function L(yt){return new t.vHH(3003,M)}()),ni=""),ni.toString()});return Mt==Ke?yt:Mt}function Ct(yt){const oe=[];let pe=yt.next();for(;!pe.done;)oe.push(pe.value),pe=yt.next();return oe}const mi=/-+([a-z0-9])/g;function Jt(yt){return yt.replace(mi,(...oe)=>oe[1].toUpperCase())}function ei(yt){return yt.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function si(yt,oe,pe){switch(oe.type){case 7:return yt.visitTrigger(oe,pe);case 0:return yt.visitState(oe,pe);case 1:return yt.visitTransition(oe,pe);case 2:return yt.visitSequence(oe,pe);case 3:return yt.visitGroup(oe,pe);case 4:return yt.visitAnimate(oe,pe);case 5:return yt.visitKeyframes(oe,pe);case 6:return yt.visitStyle(oe,pe);case 8:return yt.visitReference(oe,pe);case 9:return yt.visitAnimateChild(oe,pe);case 10:return yt.visitAnimateRef(oe,pe);case 11:return yt.visitQuery(oe,pe);case 12:return yt.visitStagger(oe,pe);default:throw function w(yt){return new t.vHH(3004,M)}()}}function Ji(yt,oe){return window.getComputedStyle(yt)[oe]}function se(yt,oe){const pe=[];return"string"==typeof yt?yt.split(/\s*,\s*/).forEach(Ke=>function Xe(yt,oe,pe){if(":"==yt[0]){const gi=function xt(yt,oe){switch(yt){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(pe,Ke)=>parseFloat(Ke)>parseFloat(pe);case":decrement":return(pe,Ke)=>parseFloat(Ke) *"}}(yt,pe);if("function"==typeof gi)return void oe.push(gi);yt=gi}const Ke=yt.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==Ke||Ke.length<4)return pe.push(function q(yt){return new t.vHH(3015,M)}()),oe;const Mt=Ke[1],Vt=Ke[2],ri=Ke[3];oe.push(Si(Mt,ri));"<"==Vt[0]&&!("*"==Mt&&"*"==ri)&&oe.push(Si(ri,Mt))}(Ke,pe,oe)):pe.push(yt),pe}const Bt=new Set(["true","1"]),bi=new Set(["false","0"]);function Si(yt,oe){const pe=Bt.has(yt)||bi.has(yt),Ke=Bt.has(oe)||bi.has(oe);return(Mt,Vt)=>{let ri="*"==yt||yt==Mt,ni="*"==oe||oe==Vt;return!ri&&pe&&"boolean"==typeof Mt&&(ri=Mt?Bt.has(yt):bi.has(yt)),!ni&&Ke&&"boolean"==typeof Vt&&(ni=Vt?Bt.has(oe):bi.has(oe)),ri&&ni}}const Wi=new RegExp("s*:selfs*,?","g");function on(yt,oe,pe,Ke){return new ii(yt).build(oe,pe,Ke)}class ii{constructor(oe){this._driver=oe}build(oe,pe,Ke){const Mt=new Rt(pe);this._resetContextStyleTimingState(Mt);const Vt=si(this,et(oe),Mt);return Mt.unsupportedCSSPropertiesFound.size&&Mt.unsupportedCSSPropertiesFound.keys(),Vt}_resetContextStyleTimingState(oe){oe.currentQuerySelector="",oe.collectedStyles={},oe.collectedStyles[""]={},oe.currentTime=0}visitTrigger(oe,pe){let Ke=pe.queryCount=0,Mt=pe.depCount=0;const Vt=[],ri=[];return"@"==oe.name.charAt(0)&&pe.errors.push(function S(){return new t.vHH(3006,M)}()),oe.definitions.forEach(ni=>{if(this._resetContextStyleTimingState(pe),0==ni.type){const gi=ni,ki=gi.name;ki.toString().split(/\s*,\s*/).forEach($i=>{gi.name=$i,Vt.push(this.visitState(gi,pe))}),gi.name=ki}else if(1==ni.type){const gi=this.visitTransition(ni,pe);Ke+=gi.queryCount,Mt+=gi.depCount,ri.push(gi)}else pe.errors.push(function k(){return new t.vHH(3007,M)}())}),{type:7,name:oe.name,states:Vt,transitions:ri,queryCount:Ke,depCount:Mt,options:null}}visitState(oe,pe){const Ke=this.visitStyle(oe.styles,pe),Mt=oe.options&&oe.options.params||null;if(Ke.containsDynamicStyles){const Vt=new Set,ri=Mt||{};Ke.styles.forEach(ni=>{if(fi(ni)){const gi=ni;Object.keys(gi).forEach(ki=>{ot(gi[ki]).forEach($i=>{ri.hasOwnProperty($i)||Vt.add($i)})})}}),Vt.size&&(Ct(Vt.values()),pe.errors.push(function E(yt,oe){return new t.vHH(3008,M)}()))}return{type:0,name:oe.name,style:Ke,options:Mt?{params:Mt}:null}}visitTransition(oe,pe){pe.queryCount=0,pe.depCount=0;const Ke=si(this,et(oe.animation),pe);return{type:1,matchers:se(oe.expr,pe.errors),animation:Ke,queryCount:pe.queryCount,depCount:pe.depCount,options:Ni(oe.options)}}visitSequence(oe,pe){return{type:2,steps:oe.steps.map(Ke=>si(this,Ke,pe)),options:Ni(oe.options)}}visitGroup(oe,pe){const Ke=pe.currentTime;let Mt=0;const Vt=oe.steps.map(ri=>{pe.currentTime=Ke;const ni=si(this,ri,pe);return Mt=Math.max(Mt,pe.currentTime),ni});return pe.currentTime=Mt,{type:3,steps:Vt,options:Ni(oe.options)}}visitAnimate(oe,pe){const Ke=function Ei(yt,oe){if(yt.hasOwnProperty("duration"))return yt;if("number"==typeof yt)return mn(ke(yt,oe).duration,0,"");const pe=yt;if(pe.split(/\s+/).some(Vt=>"{"==Vt.charAt(0)&&"{"==Vt.charAt(1))){const Vt=mn(0,0,"");return Vt.dynamic=!0,Vt.strValue=pe,Vt}const Mt=ke(pe,oe);return mn(Mt.duration,Mt.delay,Mt.easing)}(oe.timings,pe.errors);pe.currentAnimateTimings=Ke;let Mt,Vt=oe.styles?oe.styles:(0,f.oB)({});if(5==Vt.type)Mt=this.visitKeyframes(Vt,pe);else{let ri=oe.styles,ni=!1;if(!ri){ni=!0;const ki={};Ke.easing&&(ki.easing=Ke.easing),ri=(0,f.oB)(ki)}pe.currentTime+=Ke.duration+Ke.delay;const gi=this.visitStyle(ri,pe);gi.isEmptyStep=ni,Mt=gi}return pe.currentAnimateTimings=null,{type:4,timings:Ke,style:Mt,options:null}}visitStyle(oe,pe){const Ke=this._makeStyleAst(oe,pe);return this._validateStyleAst(Ke,pe),Ke}_makeStyleAst(oe,pe){const Ke=[];Array.isArray(oe.styles)?oe.styles.forEach(ri=>{"string"==typeof ri?ri==f.l3?Ke.push(ri):pe.errors.push(function B(yt){return new t.vHH(3002,M)}()):Ke.push(ri)}):Ke.push(oe.styles);let Mt=!1,Vt=null;return Ke.forEach(ri=>{if(fi(ri)){const ni=ri,gi=ni.easing;if(gi&&(Vt=gi,delete ni.easing),!Mt)for(let ki in ni)if(ni[ki].toString().indexOf("{{")>=0){Mt=!0;break}}}),{type:6,styles:Ke,easing:Vt,offset:oe.offset,containsDynamicStyles:Mt,options:null}}_validateStyleAst(oe,pe){const Ke=pe.currentAnimateTimings;let Mt=pe.currentTime,Vt=pe.currentTime;Ke&&Vt>0&&(Vt-=Ke.duration+Ke.delay),oe.styles.forEach(ri=>{"string"!=typeof ri&&Object.keys(ri).forEach(ni=>{if(!this._driver.validateStyleProperty(ni))return delete ri[ni],void pe.unsupportedCSSPropertiesFound.add(ni);const gi=pe.collectedStyles[pe.currentQuerySelector],ki=gi[ni];let $i=!0;ki&&(Vt!=Mt&&Vt>=ki.startTime&&Mt<=ki.endTime&&(pe.errors.push(function Y(yt,oe,pe,Ke,Mt){return new t.vHH(3010,M)}()),$i=!1),Vt=ki.startTime),$i&&(gi[ni]={startTime:Vt,endTime:Mt}),pe.options&&function Ae(yt,oe,pe){const Ke=oe.params||{},Mt=ot(yt);Mt.length&&Mt.forEach(Vt=>{Ke.hasOwnProperty(Vt)||pe.push(function h(yt){return new t.vHH(3001,M)}())})}(ri[ni],pe.options,pe.errors)})})}visitKeyframes(oe,pe){const Ke={type:5,styles:[],options:null};if(!pe.currentAnimateTimings)return pe.errors.push(function ae(){return new t.vHH(3011,M)}()),Ke;let Vt=0;const ri=[];let ni=!1,gi=!1,ki=0;const $i=oe.steps.map(Rr=>{const yr=this._makeStyleAst(Rr,pe);let oa=null!=yr.offset?yr.offset:function Wt(yt){if("string"==typeof yt)return null;let oe=null;if(Array.isArray(yt))yt.forEach(pe=>{if(fi(pe)&&pe.hasOwnProperty("offset")){const Ke=pe;oe=parseFloat(Ke.offset),delete Ke.offset}});else if(fi(yt)&&yt.hasOwnProperty("offset")){const pe=yt;oe=parseFloat(pe.offset),delete pe.offset}return oe}(yr.styles),Xr=0;return null!=oa&&(Vt++,Xr=yr.offset=oa),gi=gi||Xr<0||Xr>1,ni=ni||Xr0&&Vt{const oa=An>0?yr==Gn?1:An*yr:ri[yr],Xr=oa*ar;pe.currentTime=En+kn.delay+Xr,kn.duration=Xr,this._validateStyleAst(Rr,pe),Rr.offset=oa,Ke.styles.push(Rr)}),Ke}visitReference(oe,pe){return{type:8,animation:si(this,et(oe.animation),pe),options:Ni(oe.options)}}visitAnimateChild(oe,pe){return pe.depCount++,{type:9,options:Ni(oe.options)}}visitAnimateRef(oe,pe){return{type:10,animation:this.visitReference(oe.animation,pe),options:Ni(oe.options)}}visitQuery(oe,pe){const Ke=pe.currentQuerySelector,Mt=oe.options||{};pe.queryCount++,pe.currentQuery=oe;const[Vt,ri]=function Ri(yt){const oe=!!yt.split(/\s*,\s*/).find(pe=>":self"==pe);return oe&&(yt=yt.replace(Wi,"")),yt=yt.replace(/@\*/g,it).replace(/@\w+/g,pe=>it+"-"+pe.substr(1)).replace(/:animating/g,ti),[yt,oe]}(oe.selector);pe.currentQuerySelector=Ke.length?Ke+" "+Vt:Vt,J(pe.collectedStyles,pe.currentQuerySelector,{});const ni=si(this,et(oe.animation),pe);return pe.currentQuery=null,pe.currentQuerySelector=Ke,{type:11,selector:Vt,limit:Mt.limit||0,optional:!!Mt.optional,includeSelf:ri,animation:ni,originalSelector:oe.selector,options:Ni(oe.options)}}visitStagger(oe,pe){pe.currentQuery||pe.errors.push(function re(){return new t.vHH(3013,M)}());const Ke="full"===oe.timings?{duration:0,delay:0,easing:"full"}:ke(oe.timings,pe.errors,!0);return{type:12,animation:si(this,et(oe.animation),pe),timings:Ke,options:null}}}class Rt{constructor(oe){this.errors=oe,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,this.unsupportedCSSPropertiesFound=new Set}}function fi(yt){return!Array.isArray(yt)&&"object"==typeof yt}function Ni(yt){return yt?(yt=ye(yt)).params&&(yt.params=function st(yt){return yt?ye(yt):null}(yt.params)):yt={},yt}function mn(yt,oe,pe){return{duration:yt,delay:oe,easing:pe}}function In(yt,oe,pe,Ke,Mt,Vt,ri=null,ni=!1){return{type:1,element:yt,keyframes:oe,preStyleProps:pe,postStyleProps:Ke,duration:Mt,delay:Vt,totalTime:Mt+Vt,easing:ri,subTimeline:ni}}class Rn{constructor(){this._map=new Map}get(oe){return this._map.get(oe)||[]}append(oe,pe){let Ke=this._map.get(oe);Ke||this._map.set(oe,Ke=[]),Ke.push(...pe)}has(oe){return this._map.has(oe)}clear(){this._map.clear()}}const Ti=new RegExp(":enter","g"),wn=new RegExp(":leave","g");function qn(yt,oe,pe,Ke,Mt,Vt={},ri={},ni,gi,ki=[]){return(new sr).buildKeyframes(yt,oe,pe,Ke,Mt,Vt,ri,ni,gi,ki)}class sr{buildKeyframes(oe,pe,Ke,Mt,Vt,ri,ni,gi,ki,$i=[]){ki=ki||new Rn;const dn=new _a(oe,pe,ki,Mt,Vt,$i,[]);dn.options=gi,dn.currentTimeline.setStyles([ri],null,dn.errors,gi),si(this,Ke,dn);const An=dn.timelines.filter(Gn=>Gn.containsAnimation());if(Object.keys(ni).length){let Gn;for(let En=An.length-1;En>=0;En--){const kn=An[En];if(kn.element===pe){Gn=kn;break}}Gn&&!Gn.allowOnlyTimelineStyles()&&Gn.setStyles([ni],null,dn.errors,gi)}return An.length?An.map(Gn=>Gn.buildKeyframes()):[In(pe,[],[],[],0,0,"",!1)]}visitTrigger(oe,pe){}visitState(oe,pe){}visitTransition(oe,pe){}visitAnimateChild(oe,pe){const Ke=pe.subInstructions.get(pe.element);if(Ke){const Mt=pe.createSubContext(oe.options),Vt=pe.currentTimeline.currentTime,ri=this._visitSubInstructions(Ke,Mt,Mt.options);Vt!=ri&&pe.transformIntoNewTimeline(ri)}pe.previousNode=oe}visitAnimateRef(oe,pe){const Ke=pe.createSubContext(oe.options);Ke.transformIntoNewTimeline(),this.visitReference(oe.animation,Ke),pe.transformIntoNewTimeline(Ke.currentTimeline.currentTime),pe.previousNode=oe}_visitSubInstructions(oe,pe,Ke){let Vt=pe.currentTimeline.currentTime;const ri=null!=Ke.duration?Qt(Ke.duration):null,ni=null!=Ke.delay?Qt(Ke.delay):null;return 0!==ri&&oe.forEach(gi=>{const ki=pe.appendInstructionToTimeline(gi,ri,ni);Vt=Math.max(Vt,ki.duration+ki.delay)}),Vt}visitReference(oe,pe){pe.updateOptions(oe.options,!0),si(this,oe.animation,pe),pe.previousNode=oe}visitSequence(oe,pe){const Ke=pe.subContextCount;let Mt=pe;const Vt=oe.options;if(Vt&&(Vt.params||Vt.delay)&&(Mt=pe.createSubContext(Vt),Mt.transformIntoNewTimeline(),null!=Vt.delay)){6==Mt.previousNode.type&&(Mt.currentTimeline.snapshotCurrentStyles(),Mt.previousNode=ha);const ri=Qt(Vt.delay);Mt.delayNextStep(ri)}oe.steps.length&&(oe.steps.forEach(ri=>si(this,ri,Mt)),Mt.currentTimeline.applyStylesToKeyframe(),Mt.subContextCount>Ke&&Mt.transformIntoNewTimeline()),pe.previousNode=oe}visitGroup(oe,pe){const Ke=[];let Mt=pe.currentTimeline.currentTime;const Vt=oe.options&&oe.options.delay?Qt(oe.options.delay):0;oe.steps.forEach(ri=>{const ni=pe.createSubContext(oe.options);Vt&&ni.delayNextStep(Vt),si(this,ri,ni),Mt=Math.max(Mt,ni.currentTimeline.currentTime),Ke.push(ni.currentTimeline)}),Ke.forEach(ri=>pe.currentTimeline.mergeTimelineCollectedStyles(ri)),pe.transformIntoNewTimeline(Mt),pe.previousNode=oe}_visitTiming(oe,pe){if(oe.dynamic){const Ke=oe.strValue;return ke(pe.params?lt(Ke,pe.params,pe.errors):Ke,pe.errors)}return{duration:oe.duration,delay:oe.delay,easing:oe.easing}}visitAnimate(oe,pe){const Ke=pe.currentAnimateTimings=this._visitTiming(oe.timings,pe),Mt=pe.currentTimeline;Ke.delay&&(pe.incrementTime(Ke.delay),Mt.snapshotCurrentStyles());const Vt=oe.style;5==Vt.type?this.visitKeyframes(Vt,pe):(pe.incrementTime(Ke.duration),this.visitStyle(Vt,pe),Mt.applyStylesToKeyframe()),pe.currentAnimateTimings=null,pe.previousNode=oe}visitStyle(oe,pe){const Ke=pe.currentTimeline,Mt=pe.currentAnimateTimings;!Mt&&Ke.getCurrentStyleProperties().length&&Ke.forwardFrame();const Vt=Mt&&Mt.easing||oe.easing;oe.isEmptyStep?Ke.applyEmptyStep(Vt):Ke.setStyles(oe.styles,Vt,pe.errors,pe.options),pe.previousNode=oe}visitKeyframes(oe,pe){const Ke=pe.currentAnimateTimings,Mt=pe.currentTimeline.duration,Vt=Ke.duration,ni=pe.createSubContext().currentTimeline;ni.easing=Ke.easing,oe.styles.forEach(gi=>{ni.forwardTime((gi.offset||0)*Vt),ni.setStyles(gi.styles,gi.easing,pe.errors,pe.options),ni.applyStylesToKeyframe()}),pe.currentTimeline.mergeTimelineCollectedStyles(ni),pe.transformIntoNewTimeline(Mt+Vt),pe.previousNode=oe}visitQuery(oe,pe){const Ke=pe.currentTimeline.currentTime,Mt=oe.options||{},Vt=Mt.delay?Qt(Mt.delay):0;Vt&&(6===pe.previousNode.type||0==Ke&&pe.currentTimeline.getCurrentStyleProperties().length)&&(pe.currentTimeline.snapshotCurrentStyles(),pe.previousNode=ha);let ri=Ke;const ni=pe.invokeQuery(oe.selector,oe.originalSelector,oe.limit,oe.includeSelf,!!Mt.optional,pe.errors);pe.currentQueryTotal=ni.length;let gi=null;ni.forEach((ki,$i)=>{pe.currentQueryIndex=$i;const dn=pe.createSubContext(oe.options,ki);Vt&&dn.delayNextStep(Vt),ki===pe.element&&(gi=dn.currentTimeline),si(this,oe.animation,dn),dn.currentTimeline.applyStylesToKeyframe(),ri=Math.max(ri,dn.currentTimeline.currentTime)}),pe.currentQueryIndex=0,pe.currentQueryTotal=0,pe.transformIntoNewTimeline(ri),gi&&(pe.currentTimeline.mergeTimelineCollectedStyles(gi),pe.currentTimeline.snapshotCurrentStyles()),pe.previousNode=oe}visitStagger(oe,pe){const Ke=pe.parentContext,Mt=pe.currentTimeline,Vt=oe.timings,ri=Math.abs(Vt.duration),ni=ri*(pe.currentQueryTotal-1);let gi=ri*pe.currentQueryIndex;switch(Vt.duration<0?"reverse":Vt.easing){case"reverse":gi=ni-gi;break;case"full":gi=Ke.currentStaggerTime}const $i=pe.currentTimeline;gi&&$i.delayNextStep(gi);const dn=$i.currentTime;si(this,oe.animation,pe),pe.previousNode=oe,Ke.currentStaggerTime=Mt.currentTime-dn+(Mt.startTime-Ke.currentTimeline.startTime)}}const ha={};class _a{constructor(oe,pe,Ke,Mt,Vt,ri,ni,gi){this._driver=oe,this.element=pe,this.subInstructions=Ke,this._enterClassName=Mt,this._leaveClassName=Vt,this.errors=ri,this.timelines=ni,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=ha,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=gi||new Sr(this._driver,pe,0),ni.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(oe,pe){if(!oe)return;const Ke=oe;let Mt=this.options;null!=Ke.duration&&(Mt.duration=Qt(Ke.duration)),null!=Ke.delay&&(Mt.delay=Qt(Ke.delay));const Vt=Ke.params;if(Vt){let ri=Mt.params;ri||(ri=this.options.params={}),Object.keys(Vt).forEach(ni=>{(!pe||!ri.hasOwnProperty(ni))&&(ri[ni]=lt(Vt[ni],ri,this.errors))})}}_copyOptions(){const oe={};if(this.options){const pe=this.options.params;if(pe){const Ke=oe.params={};Object.keys(pe).forEach(Mt=>{Ke[Mt]=pe[Mt]})}}return oe}createSubContext(oe=null,pe,Ke){const Mt=pe||this.element,Vt=new _a(this._driver,Mt,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(Mt,Ke||0));return Vt.previousNode=this.previousNode,Vt.currentAnimateTimings=this.currentAnimateTimings,Vt.options=this._copyOptions(),Vt.updateOptions(oe),Vt.currentQueryIndex=this.currentQueryIndex,Vt.currentQueryTotal=this.currentQueryTotal,Vt.parentContext=this,this.subContextCount++,Vt}transformIntoNewTimeline(oe){return this.previousNode=ha,this.currentTimeline=this.currentTimeline.fork(this.element,oe),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(oe,pe,Ke){const Mt={duration:null!=pe?pe:oe.duration,delay:this.currentTimeline.currentTime+(null!=Ke?Ke:0)+oe.delay,easing:""},Vt=new fa(this._driver,oe.element,oe.keyframes,oe.preStyleProps,oe.postStyleProps,Mt,oe.stretchStartingKeyframe);return this.timelines.push(Vt),Mt}incrementTime(oe){this.currentTimeline.forwardTime(this.currentTimeline.duration+oe)}delayNextStep(oe){oe>0&&this.currentTimeline.delayNextStep(oe)}invokeQuery(oe,pe,Ke,Mt,Vt,ri){let ni=[];if(Mt&&ni.push(this.element),oe.length>0){oe=(oe=oe.replace(Ti,"."+this._enterClassName)).replace(wn,"."+this._leaveClassName);let ki=this._driver.query(this.element,oe,1!=Ke);0!==Ke&&(ki=Ke<0?ki.slice(ki.length+Ke,ki.length):ki.slice(0,Ke)),ni.push(...ki)}return!Vt&&0==ni.length&&ri.push(function ge(yt){return new t.vHH(3014,M)}()),ni}}class Sr{constructor(oe,pe,Ke,Mt){this._driver=oe,this.element=pe,this.startTime=Ke,this._elementTimelineStylesLookup=Mt,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(pe),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(pe,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(oe){const pe=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||pe?(this.forwardTime(this.currentTime+oe),pe&&this.snapshotCurrentStyles()):this.startTime+=oe}fork(oe,pe){return this.applyStylesToKeyframe(),new Sr(this._driver,oe,pe||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(oe){this.applyStylesToKeyframe(),this.duration=oe,this._loadKeyframe()}_updateStyle(oe,pe){this._localTimelineStyles[oe]=pe,this._globalTimelineStyles[oe]=pe,this._styleSummary[oe]={time:this.currentTime,value:pe}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(oe){oe&&(this._previousKeyframe.easing=oe),Object.keys(this._globalTimelineStyles).forEach(pe=>{this._backFill[pe]=this._globalTimelineStyles[pe]||f.l3,this._currentKeyframe[pe]=f.l3}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(oe,pe,Ke,Mt){pe&&(this._previousKeyframe.easing=pe);const Vt=Mt&&Mt.params||{},ri=function ta(yt,oe){const pe={};let Ke;return yt.forEach(Mt=>{"*"===Mt?(Ke=Ke||Object.keys(oe),Ke.forEach(Vt=>{pe[Vt]=f.l3})):mt(Mt,!1,pe)}),pe}(oe,this._globalTimelineStyles);Object.keys(ri).forEach(ni=>{const gi=lt(ri[ni],Vt,Ke);this._pendingStyles[ni]=gi,this._localTimelineStyles.hasOwnProperty(ni)||(this._backFill[ni]=this._globalTimelineStyles.hasOwnProperty(ni)?this._globalTimelineStyles[ni]:f.l3),this._updateStyle(ni,gi)})}applyStylesToKeyframe(){const oe=this._pendingStyles,pe=Object.keys(oe);0!=pe.length&&(this._pendingStyles={},pe.forEach(Ke=>{this._currentKeyframe[Ke]=oe[Ke]}),Object.keys(this._localTimelineStyles).forEach(Ke=>{this._currentKeyframe.hasOwnProperty(Ke)||(this._currentKeyframe[Ke]=this._localTimelineStyles[Ke])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(oe=>{const pe=this._localTimelineStyles[oe];this._pendingStyles[oe]=pe,this._updateStyle(oe,pe)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const oe=[];for(let pe in this._currentKeyframe)oe.push(pe);return oe}mergeTimelineCollectedStyles(oe){Object.keys(oe._styleSummary).forEach(pe=>{const Ke=this._styleSummary[pe],Mt=oe._styleSummary[pe];(!Ke||Mt.time>Ke.time)&&this._updateStyle(pe,Mt.value)})}buildKeyframes(){this.applyStylesToKeyframe();const oe=new Set,pe=new Set,Ke=1===this._keyframes.size&&0===this.duration;let Mt=[];this._keyframes.forEach((ni,gi)=>{const ki=mt(ni,!0);Object.keys(ki).forEach($i=>{const dn=ki[$i];dn==f.k1?oe.add($i):dn==f.l3&&pe.add($i)}),Ke||(ki.offset=gi/this.duration),Mt.push(ki)});const Vt=oe.size?Ct(oe.values()):[],ri=pe.size?Ct(pe.values()):[];if(Ke){const ni=Mt[0],gi=ye(ni);ni.offset=0,gi.offset=1,Mt=[ni,gi]}return In(this.element,Mt,Vt,ri,this.duration,this.startTime,this.easing,!1)}}class fa extends Sr{constructor(oe,pe,Ke,Mt,Vt,ri,ni=!1){super(oe,pe,ri.delay),this.keyframes=Ke,this.preStyleProps=Mt,this.postStyleProps=Vt,this._stretchStartingKeyframe=ni,this.timings={duration:ri.duration,delay:ri.delay,easing:ri.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let oe=this.keyframes,{delay:pe,duration:Ke,easing:Mt}=this.timings;if(this._stretchStartingKeyframe&&pe){const Vt=[],ri=Ke+pe,ni=pe/ri,gi=mt(oe[0],!1);gi.offset=0,Vt.push(gi);const ki=mt(oe[0],!1);ki.offset=zr(ni),Vt.push(ki);const $i=oe.length-1;for(let dn=1;dn<=$i;dn++){let An=mt(oe[dn],!1);An.offset=zr((pe+An.offset*Ke)/ri),Vt.push(An)}Ke=ri,pe=0,Mt="",oe=Vt}return In(this.element,oe,this.preStyleProps,this.postStyleProps,Ke,pe,Mt,!0)}}function zr(yt,oe=3){const pe=Math.pow(10,oe-1);return Math.round(yt*pe)/pe}class na{}class Jr extends na{normalizePropertyName(oe,pe){return Jt(oe)}normalizeStyleValue(oe,pe,Ke,Mt){let Vt="";const ri=Ke.toString().trim();if(Ma[pe]&&0!==Ke&&"0"!==Ke)if("number"==typeof Ke)Vt="px";else{const ni=Ke.match(/^[+-]?[\d\.]+([a-z]*)$/);ni&&0==ni[1].length&&Mt.push(function D(yt,oe){return new t.vHH(3005,M)}())}return ri+Vt}}const Ma=(()=>function pa(yt){const oe={};return yt.forEach(pe=>oe[pe]=!0),oe}("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 Za(yt,oe,pe,Ke,Mt,Vt,ri,ni,gi,ki,$i,dn,An){return{type:0,element:yt,triggerName:oe,isRemovalTransition:Mt,fromState:pe,fromStyles:Vt,toState:Ke,toStyles:ri,timelines:ni,queriedElements:gi,preStyleProps:ki,postStyleProps:$i,totalTime:dn,errors:An}}const Pr={};class Yn{constructor(oe,pe,Ke){this._triggerName=oe,this.ast=pe,this._stateStyles=Ke}match(oe,pe,Ke,Mt){return function Vr(yt,oe,pe,Ke,Mt){return yt.some(Vt=>Vt(oe,pe,Ke,Mt))}(this.ast.matchers,oe,pe,Ke,Mt)}buildStyles(oe,pe,Ke){const Mt=this._stateStyles["*"],Vt=this._stateStyles[oe],ri=Mt?Mt.buildStyles(pe,Ke):{};return Vt?Vt.buildStyles(pe,Ke):ri}build(oe,pe,Ke,Mt,Vt,ri,ni,gi,ki,$i){const dn=[],An=this.ast.options&&this.ast.options.params||Pr,En=this.buildStyles(Ke,ni&&ni.params||Pr,dn),kn=gi&&gi.params||Pr,ar=this.buildStyles(Mt,kn,dn),Rr=new Set,yr=new Map,oa=new Map,Xr="void"===Mt,Mr={params:Object.assign(Object.assign({},An),kn)},jr=$i?[]:qn(oe,pe,this.ast.animation,Vt,ri,En,ar,Mr,ki,dn);let Zn=0;if(jr.forEach(ja=>{Zn=Math.max(ja.duration+ja.delay,Zn)}),dn.length)return Za(pe,this._triggerName,Ke,Mt,Xr,En,ar,[],[],yr,oa,Zn,dn);jr.forEach(ja=>{const la=ja.element,ws=J(yr,la,{});ja.preStyleProps.forEach(Aa=>ws[Aa]=!0);const Ka=J(oa,la,{});ja.postStyleProps.forEach(Aa=>Ka[Aa]=!0),la!==pe&&Rr.add(la)});const xr=Ct(Rr.values());return Za(pe,this._triggerName,Ke,Mt,Xr,En,ar,jr,xr,yr,oa,Zn)}}class cr{constructor(oe,pe,Ke){this.styles=oe,this.defaultParams=pe,this.normalizer=Ke}buildStyles(oe,pe){const Ke={},Mt=ye(this.defaultParams);return Object.keys(oe).forEach(Vt=>{const ri=oe[Vt];null!=ri&&(Mt[Vt]=ri)}),this.styles.styles.forEach(Vt=>{if("string"!=typeof Vt){const ri=Vt;Object.keys(ri).forEach(ni=>{let gi=ri[ni];gi.length>1&&(gi=lt(gi,Mt,pe));const ki=this.normalizer.normalizePropertyName(ni,pe);gi=this.normalizer.normalizeStyleValue(ni,ki,gi,pe),Ke[ki]=gi})}}),Ke}}class Wr{constructor(oe,pe,Ke){this.name=oe,this.ast=pe,this._normalizer=Ke,this.transitionFactories=[],this.states={},pe.states.forEach(Mt=>{this.states[Mt.name]=new cr(Mt.style,Mt.options&&Mt.options.params||{},Ke)}),va(this.states,"true","1"),va(this.states,"false","0"),pe.transitions.forEach(Mt=>{this.transitionFactories.push(new Yn(oe,Mt,this.states))}),this.fallbackTransition=function Ya(yt,oe,pe){return new Yn(yt,{type:1,animation:{type:2,steps:[],options:null},matchers:[(ri,ni)=>!0],options:null,queryCount:0,depCount:0},oe)}(oe,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(oe,pe,Ke,Mt){return this.transitionFactories.find(ri=>ri.match(oe,pe,Ke,Mt))||null}matchStyles(oe,pe,Ke){return this.fallbackTransition.buildStyles(oe,pe,Ke)}}function va(yt,oe,pe){yt.hasOwnProperty(oe)?yt.hasOwnProperty(pe)||(yt[pe]=yt[oe]):yt.hasOwnProperty(pe)&&(yt[oe]=yt[pe])}const dr=new Rn;class ya{constructor(oe,pe,Ke){this.bodyNode=oe,this._driver=pe,this._normalizer=Ke,this._animations={},this._playersById={},this.players=[]}register(oe,pe){const Ke=[],Vt=on(this._driver,pe,Ke,[]);if(Ke.length)throw function c(yt){return new t.vHH(3503,M)}();this._animations[oe]=Vt}_buildPlayer(oe,pe,Ke){const Mt=oe.element,Vt=Ee(0,this._normalizer,0,oe.keyframes,pe,Ke);return this._driver.animate(Mt,Vt,oe.duration,oe.delay,oe.easing,[],!0)}create(oe,pe,Ke={}){const Mt=[],Vt=this._animations[oe];let ri;const ni=new Map;if(Vt?(ri=qn(this._driver,pe,Vt,Ot,Nt,{},{},Ke,dr,Mt),ri.forEach($i=>{const dn=J(ni,$i.element,{});$i.postStyleProps.forEach(An=>dn[An]=null)})):(Mt.push(function v(){return new t.vHH(3300,M)}()),ri=[]),Mt.length)throw function T(yt){return new t.vHH(3504,M)}();ni.forEach(($i,dn)=>{Object.keys($i).forEach(An=>{$i[An]=this._driver.computeStyle(dn,An,f.l3)})});const ki=Pe(ri.map($i=>{const dn=ni.get($i.element);return this._buildPlayer($i,{},dn)}));return this._playersById[oe]=ki,ki.onDestroy(()=>this.destroy(oe)),this.players.push(ki),ki}destroy(oe){const pe=this._getPlayer(oe);pe.destroy(),delete this._playersById[oe];const Ke=this.players.indexOf(pe);Ke>=0&&this.players.splice(Ke,1)}_getPlayer(oe){const pe=this._playersById[oe];if(!pe)throw function I(yt){return new t.vHH(3301,M)}();return pe}listen(oe,pe,Ke,Mt){const Vt=Me(pe,"","","");return j(this._getPlayer(oe),Ke,Vt,Mt),()=>{}}command(oe,pe,Ke,Mt){if("register"==Ke)return void this.register(oe,Mt[0]);if("create"==Ke)return void this.create(oe,pe,Mt[0]||{});const Vt=this._getPlayer(oe);switch(Ke){case"play":Vt.play();break;case"pause":Vt.pause();break;case"reset":Vt.reset();break;case"restart":Vt.restart();break;case"finish":Vt.finish();break;case"init":Vt.init();break;case"setPosition":Vt.setPosition(parseFloat(Mt[0]));break;case"destroy":this.destroy(oe)}}}const kr="ng-animate-queued",ra="ng-animate-disabled",or=[],aa={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Ha={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},ir="__ng_removed";class sa{constructor(oe,pe=""){this.namespaceId=pe;const Ke=oe&&oe.hasOwnProperty("value");if(this.value=function $e(yt){return null!=yt?yt:null}(Ke?oe.value:oe),Ke){const Vt=ye(oe);delete Vt.value,this.options=Vt}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(oe){const pe=oe.params;if(pe){const Ke=this.options.params;Object.keys(pe).forEach(Mt=>{null==Ke[Mt]&&(Ke[Mt]=pe[Mt])})}}}const Yr="void",Nr=new sa(Yr);class Br{constructor(oe,pe,Ke){this.id=oe,this.hostElement=pe,this._engine=Ke,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+oe,Pi(pe,this._hostClassName)}listen(oe,pe,Ke,Mt){if(!this._triggers.hasOwnProperty(pe))throw function y(yt,oe){return new t.vHH(3302,M)}();if(null==Ke||0==Ke.length)throw function n(yt){return new t.vHH(3303,M)}();if(!function Je(yt){return"start"==yt||"done"==yt}(Ke))throw function _(yt,oe){return new t.vHH(3400,M)}();const Vt=J(this._elementListeners,oe,[]),ri={name:pe,phase:Ke,callback:Mt};Vt.push(ri);const ni=J(this._engine.statesByElement,oe,{});return ni.hasOwnProperty(pe)||(Pi(oe,gt),Pi(oe,gt+"-"+pe),ni[pe]=Nr),()=>{this._engine.afterFlush(()=>{const gi=Vt.indexOf(ri);gi>=0&&Vt.splice(gi,1),this._triggers[pe]||delete ni[pe]})}}register(oe,pe){return!this._triggers[oe]&&(this._triggers[oe]=pe,!0)}_getTrigger(oe){const pe=this._triggers[oe];if(!pe)throw function V(yt){return new t.vHH(3401,M)}();return pe}trigger(oe,pe,Ke,Mt=!0){const Vt=this._getTrigger(pe),ri=new Xa(this.id,pe,oe);let ni=this._engine.statesByElement.get(oe);ni||(Pi(oe,gt),Pi(oe,gt+"-"+pe),this._engine.statesByElement.set(oe,ni={}));let gi=ni[pe];const ki=new sa(Ke,this.id);if(!(Ke&&Ke.hasOwnProperty("value"))&&gi&&ki.absorbOptions(gi.options),ni[pe]=ki,gi||(gi=Nr),ki.value!==Yr&&gi.value===ki.value){if(!function ci(yt,oe){const pe=Object.keys(yt),Ke=Object.keys(oe);if(pe.length!=Ke.length)return!1;for(let Mt=0;Mt{rt(oe,ar),He(oe,Rr)})}return}const An=J(this._engine.playersByElement,oe,[]);An.forEach(kn=>{kn.namespaceId==this.id&&kn.triggerName==pe&&kn.queued&&kn.destroy()});let Gn=Vt.matchTransition(gi.value,ki.value,oe,ki.params),En=!1;if(!Gn){if(!Mt)return;Gn=Vt.fallbackTransition,En=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:oe,triggerName:pe,transition:Gn,fromState:gi,toState:ki,player:ri,isFallbackTransition:En}),En||(Pi(oe,kr),ri.onStart(()=>{en(oe,kr)})),ri.onDone(()=>{let kn=this.players.indexOf(ri);kn>=0&&this.players.splice(kn,1);const ar=this._engine.playersByElement.get(oe);if(ar){let Rr=ar.indexOf(ri);Rr>=0&&ar.splice(Rr,1)}}),this.players.push(ri),An.push(ri),ri}deregister(oe){delete this._triggers[oe],this._engine.statesByElement.forEach((pe,Ke)=>{delete pe[oe]}),this._elementListeners.forEach((pe,Ke)=>{this._elementListeners.set(Ke,pe.filter(Mt=>Mt.name!=oe))})}clearElementCache(oe){this._engine.statesByElement.delete(oe),this._elementListeners.delete(oe);const pe=this._engine.playersByElement.get(oe);pe&&(pe.forEach(Ke=>Ke.destroy()),this._engine.playersByElement.delete(oe))}_signalRemovalForInnerTriggers(oe,pe){const Ke=this._engine.driver.query(oe,it,!0);Ke.forEach(Mt=>{if(Mt[ir])return;const Vt=this._engine.fetchNamespacesByElement(Mt);Vt.size?Vt.forEach(ri=>ri.triggerLeaveAnimation(Mt,pe,!1,!0)):this.clearElementCache(Mt)}),this._engine.afterFlushAnimationsDone(()=>Ke.forEach(Mt=>this.clearElementCache(Mt)))}triggerLeaveAnimation(oe,pe,Ke,Mt){const Vt=this._engine.statesByElement.get(oe),ri=new Map;if(Vt){const ni=[];if(Object.keys(Vt).forEach(gi=>{if(ri.set(gi,Vt[gi].value),this._triggers[gi]){const ki=this.trigger(oe,gi,Yr,Mt);ki&&ni.push(ki)}}),ni.length)return this._engine.markElementAsRemoved(this.id,oe,!0,pe,ri),Ke&&Pe(ni).onDone(()=>this._engine.processLeaveNode(oe)),!0}return!1}prepareLeaveAnimationListeners(oe){const pe=this._elementListeners.get(oe),Ke=this._engine.statesByElement.get(oe);if(pe&&Ke){const Mt=new Set;pe.forEach(Vt=>{const ri=Vt.name;if(Mt.has(ri))return;Mt.add(ri);const gi=this._triggers[ri].fallbackTransition,ki=Ke[ri]||Nr,$i=new sa(Yr),dn=new Xa(this.id,ri,oe);this._engine.totalQueuedPlayers++,this._queue.push({element:oe,triggerName:ri,transition:gi,fromState:ki,toState:$i,player:dn,isFallbackTransition:!0})})}}removeNode(oe,pe){const Ke=this._engine;if(oe.childElementCount&&this._signalRemovalForInnerTriggers(oe,pe),this.triggerLeaveAnimation(oe,pe,!0))return;let Mt=!1;if(Ke.totalAnimations){const Vt=Ke.players.length?Ke.playersByQueriedElement.get(oe):[];if(Vt&&Vt.length)Mt=!0;else{let ri=oe;for(;ri=ri.parentNode;)if(Ke.statesByElement.get(ri)){Mt=!0;break}}}if(this.prepareLeaveAnimationListeners(oe),Mt)Ke.markElementAsRemoved(this.id,oe,!1,pe);else{const Vt=oe[ir];(!Vt||Vt===aa)&&(Ke.afterFlush(()=>this.clearElementCache(oe)),Ke.destroyInnerAnimations(oe),Ke._onRemovalComplete(oe,pe))}}insertNode(oe,pe){Pi(oe,this._hostClassName)}drainQueuedTransitions(oe){const pe=[];return this._queue.forEach(Ke=>{const Mt=Ke.player;if(Mt.destroyed)return;const Vt=Ke.element,ri=this._elementListeners.get(Vt);ri&&ri.forEach(ni=>{if(ni.name==Ke.triggerName){const gi=Me(Vt,Ke.triggerName,Ke.fromState.value,Ke.toState.value);gi._data=oe,j(Ke.player,ni.phase,gi,ni.callback)}}),Mt.markedForDestroy?this._engine.afterFlush(()=>{Mt.destroy()}):pe.push(Ke)}),this._queue=[],pe.sort((Ke,Mt)=>{const Vt=Ke.transition.ast.depCount,ri=Mt.transition.ast.depCount;return 0==Vt||0==ri?Vt-ri:this._engine.driver.containsElement(Ke.element,Mt.element)?1:-1})}destroy(oe){this.players.forEach(pe=>pe.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,oe)}elementContainsData(oe){let pe=!1;return this._elementListeners.has(oe)&&(pe=!0),pe=!!this._queue.find(Ke=>Ke.element===oe)||pe,pe}}class Sa{constructor(oe,pe,Ke){this.bodyNode=oe,this.driver=pe,this._normalizer=Ke,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=(Mt,Vt)=>{}}_onRemovalComplete(oe,pe){this.onRemovalComplete(oe,pe)}get queuedPlayers(){const oe=[];return this._namespaceList.forEach(pe=>{pe.players.forEach(Ke=>{Ke.queued&&oe.push(Ke)})}),oe}createNamespace(oe,pe){const Ke=new Br(oe,pe,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,pe)?this._balanceNamespaceList(Ke,pe):(this.newHostElements.set(pe,Ke),this.collectEnterElement(pe)),this._namespaceLookup[oe]=Ke}_balanceNamespaceList(oe,pe){const Ke=this._namespaceList,Mt=this.namespacesByHostElement,Vt=Ke.length-1;if(Vt>=0){let ri=!1;if(void 0!==this.driver.getParentElement){let ni=this.driver.getParentElement(pe);for(;ni;){const gi=Mt.get(ni);if(gi){const ki=Ke.indexOf(gi);Ke.splice(ki+1,0,oe),ri=!0;break}ni=this.driver.getParentElement(ni)}}else for(let ni=Vt;ni>=0;ni--)if(this.driver.containsElement(Ke[ni].hostElement,pe)){Ke.splice(ni+1,0,oe),ri=!0;break}ri||Ke.unshift(oe)}else Ke.push(oe);return Mt.set(pe,oe),oe}register(oe,pe){let Ke=this._namespaceLookup[oe];return Ke||(Ke=this.createNamespace(oe,pe)),Ke}registerTrigger(oe,pe,Ke){let Mt=this._namespaceLookup[oe];Mt&&Mt.register(pe,Ke)&&this.totalAnimations++}destroy(oe,pe){if(!oe)return;const Ke=this._fetchNamespace(oe);this.afterFlush(()=>{this.namespacesByHostElement.delete(Ke.hostElement),delete this._namespaceLookup[oe];const Mt=this._namespaceList.indexOf(Ke);Mt>=0&&this._namespaceList.splice(Mt,1)}),this.afterFlushAnimationsDone(()=>Ke.destroy(pe))}_fetchNamespace(oe){return this._namespaceLookup[oe]}fetchNamespacesByElement(oe){const pe=new Set,Ke=this.statesByElement.get(oe);if(Ke){const Mt=Object.keys(Ke);for(let Vt=0;Vt=0&&this.collectedLeaveElements.splice(ri,1)}if(oe){const ri=this._fetchNamespace(oe);ri&&ri.insertNode(pe,Ke)}Mt&&this.collectEnterElement(pe)}collectEnterElement(oe){this.collectedEnterElements.push(oe)}markElementAsDisabled(oe,pe){pe?this.disabledNodes.has(oe)||(this.disabledNodes.add(oe),Pi(oe,ra)):this.disabledNodes.has(oe)&&(this.disabledNodes.delete(oe),en(oe,ra))}removeNode(oe,pe,Ke,Mt){if(Et(pe)){const Vt=oe?this._fetchNamespace(oe):null;if(Vt?Vt.removeNode(pe,Mt):this.markElementAsRemoved(oe,pe,!1,Mt),Ke){const ri=this.namespacesByHostElement.get(pe);ri&&ri.id!==oe&&ri.removeNode(pe,Mt)}}else this._onRemovalComplete(pe,Mt)}markElementAsRemoved(oe,pe,Ke,Mt,Vt){this.collectedLeaveElements.push(pe),pe[ir]={namespaceId:oe,setForRemoval:Mt,hasAnimation:Ke,removedBeforeQueried:!1,previousTriggersValues:Vt}}listen(oe,pe,Ke,Mt,Vt){return Et(pe)?this._fetchNamespace(oe).listen(pe,Ke,Mt,Vt):()=>{}}_buildInstruction(oe,pe,Ke,Mt,Vt){return oe.transition.build(this.driver,oe.element,oe.fromState.value,oe.toState.value,Ke,Mt,oe.fromState.options,oe.toState.options,pe,Vt)}destroyInnerAnimations(oe){let pe=this.driver.query(oe,it,!0);pe.forEach(Ke=>this.destroyActiveAnimationsForElement(Ke)),0!=this.playersByQueriedElement.size&&(pe=this.driver.query(oe,ti,!0),pe.forEach(Ke=>this.finishActiveQueriedAnimationOnElement(Ke)))}destroyActiveAnimationsForElement(oe){const pe=this.playersByElement.get(oe);pe&&pe.forEach(Ke=>{Ke.queued?Ke.markedForDestroy=!0:Ke.destroy()})}finishActiveQueriedAnimationOnElement(oe){const pe=this.playersByQueriedElement.get(oe);pe&&pe.forEach(Ke=>Ke.finish())}whenRenderingDone(){return new Promise(oe=>{if(this.players.length)return Pe(this.players).onDone(()=>oe());oe()})}processLeaveNode(oe){var pe;const Ke=oe[ir];if(Ke&&Ke.setForRemoval){if(oe[ir]=aa,Ke.namespaceId){this.destroyInnerAnimations(oe);const Mt=this._fetchNamespace(Ke.namespaceId);Mt&&Mt.clearElementCache(oe)}this._onRemovalComplete(oe,Ke.setForRemoval)}(null===(pe=oe.classList)||void 0===pe?void 0:pe.contains(ra))&&this.markElementAsDisabled(oe,!1),this.driver.query(oe,".ng-animate-disabled",!0).forEach(Mt=>{this.markElementAsDisabled(Mt,!1)})}flush(oe=-1){let pe=[];if(this.newHostElements.size&&(this.newHostElements.forEach((Ke,Mt)=>this._balanceNamespaceList(Ke,Mt)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let Ke=0;KeKe()),this._flushFns=[],this._whenQuietFns.length){const Ke=this._whenQuietFns;this._whenQuietFns=[],pe.length?Pe(pe).onDone(()=>{Ke.forEach(Mt=>Mt())}):Ke.forEach(Mt=>Mt())}}reportError(oe){throw function N(yt){return new t.vHH(3402,M)}()}_flushAnimations(oe,pe){const Ke=new Rn,Mt=[],Vt=new Map,ri=[],ni=new Map,gi=new Map,ki=new Map,$i=new Set;this.disabledNodes.forEach(cn=>{$i.add(cn);const xn=this.driver.query(cn,".ng-animate-queued",!0);for(let Tn=0;Tn{const Tn=Ot+kn++;En.set(xn,Tn),cn.forEach($n=>Pi($n,Tn))});const ar=[],Rr=new Set,yr=new Set;for(let cn=0;cnRr.add($n)):yr.add(xn))}const oa=new Map,Xr=Mi(An,Array.from(Rr));Xr.forEach((cn,xn)=>{const Tn=Nt+kn++;oa.set(xn,Tn),cn.forEach($n=>Pi($n,Tn))}),oe.push(()=>{Gn.forEach((cn,xn)=>{const Tn=En.get(xn);cn.forEach($n=>en($n,Tn))}),Xr.forEach((cn,xn)=>{const Tn=oa.get(xn);cn.forEach($n=>en($n,Tn))}),ar.forEach(cn=>{this.processLeaveNode(cn)})});const Mr=[],jr=[];for(let cn=this._namespaceList.length-1;cn>=0;cn--)this._namespaceList[cn].drainQueuedTransitions(pe).forEach(Tn=>{const $n=Tn.player,mr=Tn.element;if(Mr.push($n),this.collectedEnterElements.length){const wt=mr[ir];if(wt&&wt.setForMove){if(wt.previousTriggersValues&&wt.previousTriggersValues.has(Tn.triggerName)){const zt=wt.previousTriggersValues.get(Tn.triggerName),$t=this.statesByElement.get(Tn.element);$t&&$t[Tn.triggerName]&&($t[Tn.triggerName].value=zt)}return void $n.destroy()}}const La=!dn||!this.driver.containsElement(dn,mr),Gr=oa.get(mr),$a=En.get(mr),ur=this._buildInstruction(Tn,Ke,$a,Gr,La);if(ur.errors&&ur.errors.length)return void jr.push(ur);if(La)return $n.onStart(()=>rt(mr,ur.fromStyles)),$n.onDestroy(()=>He(mr,ur.toStyles)),void Mt.push($n);if(Tn.isFallbackTransition)return $n.onStart(()=>rt(mr,ur.fromStyles)),$n.onDestroy(()=>He(mr,ur.toStyles)),void Mt.push($n);const at=[];ur.timelines.forEach(wt=>{wt.stretchStartingKeyframe=!0,this.disabledNodes.has(wt.element)||at.push(wt)}),ur.timelines=at,Ke.append(mr,ur.timelines),ri.push({instruction:ur,player:$n,element:mr}),ur.queriedElements.forEach(wt=>J(ni,wt,[]).push($n)),ur.preStyleProps.forEach((wt,zt)=>{const $t=Object.keys(wt);if($t.length){let pi=gi.get(zt);pi||gi.set(zt,pi=new Set),$t.forEach(_i=>pi.add(_i))}}),ur.postStyleProps.forEach((wt,zt)=>{const $t=Object.keys(wt);let pi=ki.get(zt);pi||ki.set(zt,pi=new Set),$t.forEach(_i=>pi.add(_i))})});if(jr.length){const cn=[];jr.forEach(xn=>{cn.push(function X(yt,oe){return new t.vHH(3505,M)}())}),Mr.forEach(xn=>xn.destroy()),this.reportError(cn)}const Zn=new Map,xr=new Map;ri.forEach(cn=>{const xn=cn.element;Ke.has(xn)&&(xr.set(xn,xn),this._beforeAnimationBuild(cn.player.namespaceId,cn.instruction,Zn))}),Mt.forEach(cn=>{const xn=cn.element;this._getPreviousPlayers(xn,!1,cn.namespaceId,cn.triggerName,null).forEach($n=>{J(Zn,xn,[]).push($n),$n.destroy()})});const ja=ar.filter(cn=>vt(cn,gi,ki)),la=new Map;Xt(la,this.driver,yr,ki,f.l3).forEach(cn=>{vt(cn,gi,ki)&&ja.push(cn)});const Ka=new Map;Gn.forEach((cn,xn)=>{Xt(Ka,this.driver,new Set(cn),gi,f.k1)}),ja.forEach(cn=>{const xn=la.get(cn),Tn=Ka.get(cn);la.set(cn,Object.assign(Object.assign({},xn),Tn))});const Aa=[],_s=[],vs={};ri.forEach(cn=>{const{element:xn,player:Tn,instruction:$n}=cn;if(Ke.has(xn)){if($i.has(xn))return Tn.onDestroy(()=>He(xn,$n.toStyles)),Tn.disabled=!0,Tn.overrideTotalTime($n.totalTime),void Mt.push(Tn);let mr=vs;if(xr.size>1){let Gr=xn;const $a=[];for(;Gr=Gr.parentNode;){const ur=xr.get(Gr);if(ur){mr=ur;break}$a.push(Gr)}$a.forEach(ur=>xr.set(ur,mr))}const La=this._buildAnimation(Tn.namespaceId,$n,Zn,Vt,Ka,la);if(Tn.setRealPlayer(La),mr===vs)Aa.push(Tn);else{const Gr=this.playersByElement.get(mr);Gr&&Gr.length&&(Tn.parentPlayer=Pe(Gr)),Mt.push(Tn)}}else rt(xn,$n.fromStyles),Tn.onDestroy(()=>He(xn,$n.toStyles)),_s.push(Tn),$i.has(xn)&&Mt.push(Tn)}),_s.forEach(cn=>{const xn=Vt.get(cn.element);if(xn&&xn.length){const Tn=Pe(xn);cn.setRealPlayer(Tn)}}),Mt.forEach(cn=>{cn.parentPlayer?cn.syncPlayerEvents(cn.parentPlayer):cn.destroy()});for(let cn=0;cn!La.destroyed);mr.length?nr(this,xn,mr):this.processLeaveNode(xn)}return ar.length=0,Aa.forEach(cn=>{this.players.push(cn),cn.onDone(()=>{cn.destroy();const xn=this.players.indexOf(cn);this.players.splice(xn,1)}),cn.play()}),Aa}elementContainsData(oe,pe){let Ke=!1;const Mt=pe[ir];return Mt&&Mt.setForRemoval&&(Ke=!0),this.playersByElement.has(pe)&&(Ke=!0),this.playersByQueriedElement.has(pe)&&(Ke=!0),this.statesByElement.has(pe)&&(Ke=!0),this._fetchNamespace(oe).elementContainsData(pe)||Ke}afterFlush(oe){this._flushFns.push(oe)}afterFlushAnimationsDone(oe){this._whenQuietFns.push(oe)}_getPreviousPlayers(oe,pe,Ke,Mt,Vt){let ri=[];if(pe){const ni=this.playersByQueriedElement.get(oe);ni&&(ri=ni)}else{const ni=this.playersByElement.get(oe);if(ni){const gi=!Vt||Vt==Yr;ni.forEach(ki=>{ki.queued||!gi&&ki.triggerName!=Mt||ri.push(ki)})}}return(Ke||Mt)&&(ri=ri.filter(ni=>!(Ke&&Ke!=ni.namespaceId||Mt&&Mt!=ni.triggerName))),ri}_beforeAnimationBuild(oe,pe,Ke){const Vt=pe.element,ri=pe.isRemovalTransition?void 0:oe,ni=pe.isRemovalTransition?void 0:pe.triggerName;for(const gi of pe.timelines){const ki=gi.element,$i=ki!==Vt,dn=J(Ke,ki,[]);this._getPreviousPlayers(ki,$i,ri,ni,pe.toState).forEach(Gn=>{const En=Gn.getRealPlayer();En.beforeDestroy&&En.beforeDestroy(),Gn.destroy(),dn.push(Gn)})}rt(Vt,pe.fromStyles)}_buildAnimation(oe,pe,Ke,Mt,Vt,ri){const ni=pe.triggerName,gi=pe.element,ki=[],$i=new Set,dn=new Set,An=pe.timelines.map(En=>{const kn=En.element;$i.add(kn);const ar=kn[ir];if(ar&&ar.removedBeforeQueried)return new f.ZN(En.duration,En.delay);const Rr=kn!==gi,yr=function Bn(yt){const oe=[];return It(yt,oe),oe}((Ke.get(kn)||or).map(Zn=>Zn.getRealPlayer())).filter(Zn=>!!Zn.element&&Zn.element===kn),oa=Vt.get(kn),Xr=ri.get(kn),Mr=Ee(0,this._normalizer,0,En.keyframes,oa,Xr),jr=this._buildPlayer(En,Mr,yr);if(En.subTimeline&&Mt&&dn.add(kn),Rr){const Zn=new Xa(oe,ni,kn);Zn.setRealPlayer(jr),ki.push(Zn)}return jr});ki.forEach(En=>{J(this.playersByQueriedElement,En.element,[]).push(En),En.onDone(()=>function Xn(yt,oe,pe){let Ke;if(yt instanceof Map){if(Ke=yt.get(oe),Ke){if(Ke.length){const Mt=Ke.indexOf(pe);Ke.splice(Mt,1)}0==Ke.length&&yt.delete(oe)}}else if(Ke=yt[oe],Ke){if(Ke.length){const Mt=Ke.indexOf(pe);Ke.splice(Mt,1)}0==Ke.length&&delete yt[oe]}return Ke}(this.playersByQueriedElement,En.element,En))}),$i.forEach(En=>Pi(En,bt));const Gn=Pe(An);return Gn.onDestroy(()=>{$i.forEach(En=>en(En,bt)),He(gi,pe.toStyles)}),dn.forEach(En=>{J(Mt,En,[]).push(Gn)}),Gn}_buildPlayer(oe,pe,Ke){return pe.length>0?this.driver.animate(oe.element,pe,oe.duration,oe.delay,oe.easing,Ke):new f.ZN(oe.duration,oe.delay)}}class Xa{constructor(oe,pe,Ke){this.namespaceId=oe,this.triggerName=pe,this.element=Ke,this._player=new f.ZN,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(oe){this._containsRealPlayer||(this._player=oe,Object.keys(this._queuedCallbacks).forEach(pe=>{this._queuedCallbacks[pe].forEach(Ke=>j(oe,pe,void 0,Ke))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(oe.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(oe){this.totalTime=oe}syncPlayerEvents(oe){const pe=this._player;pe.triggerCallback&&oe.onStart(()=>pe.triggerCallback("start")),oe.onDone(()=>this.finish()),oe.onDestroy(()=>this.destroy())}_queueEvent(oe,pe){J(this._queuedCallbacks,oe,[]).push(pe)}onDone(oe){this.queued&&this._queueEvent("done",oe),this._player.onDone(oe)}onStart(oe){this.queued&&this._queueEvent("start",oe),this._player.onStart(oe)}onDestroy(oe){this.queued&&this._queueEvent("destroy",oe),this._player.onDestroy(oe)}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(oe){this.queued||this._player.setPosition(oe)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(oe){const pe=this._player;pe.triggerCallback&&pe.triggerCallback(oe)}}function Et(yt){return yt&&1===yt.nodeType}function kt(yt,oe){const pe=yt.style.display;return yt.style.display=null!=oe?oe:"none",pe}function Xt(yt,oe,pe,Ke,Mt){const Vt=[];pe.forEach(gi=>Vt.push(kt(gi)));const ri=[];Ke.forEach((gi,ki)=>{const $i={};gi.forEach(dn=>{const An=$i[dn]=oe.computeStyle(ki,dn,Mt);(!An||0==An.length)&&(ki[ir]=Ha,ri.push(ki))}),yt.set(ki,$i)});let ni=0;return pe.forEach(gi=>kt(gi,Vt[ni++])),ri}function Mi(yt,oe){const pe=new Map;if(yt.forEach(ni=>pe.set(ni,[])),0==oe.length)return pe;const Mt=new Set(oe),Vt=new Map;function ri(ni){if(!ni)return 1;let gi=Vt.get(ni);if(gi)return gi;const ki=ni.parentNode;return gi=pe.has(ki)?ki:Mt.has(ki)?1:ri(ki),Vt.set(ni,gi),gi}return oe.forEach(ni=>{const gi=ri(ni);1!==gi&&pe.get(gi).push(ni)}),pe}function Pi(yt,oe){var pe;null===(pe=yt.classList)||void 0===pe||pe.add(oe)}function en(yt,oe){var pe;null===(pe=yt.classList)||void 0===pe||pe.remove(oe)}function nr(yt,oe,pe){Pe(pe).onDone(()=>yt.processLeaveNode(oe))}function It(yt,oe){for(let pe=0;peMt.add(Vt)):oe.set(yt,Ke),pe.delete(yt),!0}class jt{constructor(oe,pe,Ke){this.bodyNode=oe,this._driver=pe,this._normalizer=Ke,this._triggerCache={},this.onRemovalComplete=(Mt,Vt)=>{},this._transitionEngine=new Sa(oe,pe,Ke),this._timelineEngine=new ya(oe,pe,Ke),this._transitionEngine.onRemovalComplete=(Mt,Vt)=>this.onRemovalComplete(Mt,Vt)}registerTrigger(oe,pe,Ke,Mt,Vt){const ri=oe+"-"+Mt;let ni=this._triggerCache[ri];if(!ni){const gi=[],$i=on(this._driver,Vt,gi,[]);if(gi.length)throw function r(yt,oe){return new t.vHH(3404,M)}();ni=function Wa(yt,oe,pe){return new Wr(yt,oe,pe)}(Mt,$i,this._normalizer),this._triggerCache[ri]=ni}this._transitionEngine.registerTrigger(pe,Mt,ni)}register(oe,pe){this._transitionEngine.register(oe,pe)}destroy(oe,pe){this._transitionEngine.destroy(oe,pe)}onInsert(oe,pe,Ke,Mt){this._transitionEngine.insertNode(oe,pe,Ke,Mt)}onRemove(oe,pe,Ke,Mt){this._transitionEngine.removeNode(oe,pe,Mt||!1,Ke)}disableAnimations(oe,pe){this._transitionEngine.markElementAsDisabled(oe,pe)}process(oe,pe,Ke,Mt){if("@"==Ke.charAt(0)){const[Vt,ri]=Ie(Ke);this._timelineEngine.command(Vt,pe,ri,Mt)}else this._transitionEngine.trigger(oe,pe,Ke,Mt)}listen(oe,pe,Ke,Mt,Vt){if("@"==Ke.charAt(0)){const[ri,ni]=Ie(Ke);return this._timelineEngine.listen(ri,pe,ni,Vt)}return this._transitionEngine.listen(oe,pe,Ke,Mt,Vt)}flush(oe=-1){this._transitionEngine.flush(oe)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let je=(()=>{class yt{constructor(pe,Ke,Mt){this._element=pe,this._startStyles=Ke,this._endStyles=Mt,this._state=0;let Vt=yt.initialStylesByElement.get(pe);Vt||yt.initialStylesByElement.set(pe,Vt={}),this._initialStyles=Vt}start(){this._state<1&&(this._startStyles&&He(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(He(this._element,this._initialStyles),this._endStyles&&(He(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(yt.initialStylesByElement.delete(this._element),this._startStyles&&(rt(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(rt(this._element,this._endStyles),this._endStyles=null),He(this._element,this._initialStyles),this._state=3)}}return yt.initialStylesByElement=new WeakMap,yt})();function Ye(yt){let oe=null;const pe=Object.keys(yt);for(let Ke=0;Keoe()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const oe=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,oe,this.options),this._finalKeyframe=oe.length?oe[oe.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(oe,pe,Ke){return oe.animate(pe,Ke)}onStart(oe){this._onStartFns.push(oe)}onDone(oe){this._onDoneFns.push(oe)}onDestroy(oe){this._onDestroyFns.push(oe)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(oe=>oe()),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(oe=>oe()),this._onDestroyFns=[])}setPosition(oe){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=oe*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const oe={};if(this.hasStarted()){const pe=this._finalKeyframe;Object.keys(pe).forEach(Ke=>{"offset"!=Ke&&(oe[Ke]=this._finished?pe[Ke]:Ji(this.element,Ke))})}this.currentSnapshot=oe}triggerCallback(oe){const pe="start"==oe?this._onStartFns:this._onDoneFns;pe.forEach(Ke=>Ke()),pe.length=0}}class wi{validateStyleProperty(oe){return Ce(oe)}matchesElement(oe,pe){return!1}containsElement(oe,pe){return Q(oe,pe)}getParentElement(oe){return ce(oe)}query(oe,pe,Ke){return pt(oe,pe,Ke)}computeStyle(oe,pe,Ke){return window.getComputedStyle(oe)[pe]}animate(oe,pe,Ke,Mt,Vt,ri=[]){const gi={duration:Ke,delay:Mt,fill:0==Mt?"both":"forwards"};Vt&&(gi.easing=Vt);const ki={},$i=ri.filter(An=>An instanceof At);(function Qi(yt,oe){return 0===yt||0===oe})(Ke,Mt)&&$i.forEach(An=>{let Gn=An.currentSnapshot;Object.keys(Gn).forEach(En=>ki[En]=Gn[En])}),pe=function hi(yt,oe,pe){const Ke=Object.keys(pe);if(Ke.length&&oe.length){let Vt=oe[0],ri=[];if(Ke.forEach(ni=>{Vt.hasOwnProperty(ni)||ri.push(ni),Vt[ni]=pe[ni]}),ri.length)for(var Mt=1;Mtmt(An,!1)),ki);const dn=function Oi(yt,oe){let pe=null,Ke=null;return Array.isArray(oe)&&oe.length?(pe=Ye(oe[0]),oe.length>1&&(Ke=Ye(oe[oe.length-1]))):oe&&(pe=Ye(oe)),pe||Ke?new je(yt,pe,Ke):null}(oe,pe);return new At(oe,pe,gi,dn)}}var Gi=p(9808);let Un=(()=>{class yt extends f._j{constructor(pe,Ke){super(),this._nextAnimationId=0,this._renderer=pe.createRenderer(Ke.body,{id:"0",encapsulation:t.ifc.None,styles:[],data:{animation:[]}})}build(pe){const Ke=this._nextAnimationId.toString();this._nextAnimationId++;const Mt=Array.isArray(pe)?(0,f.vP)(pe):pe;return xa(this._renderer,null,Ke,"register",[Mt]),new br(Ke,this._renderer)}}return yt.\u0275fac=function(pe){return new(pe||yt)(t.LFG(t.FYo),t.LFG(Gi.K0))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})();class br extends f.LC{constructor(oe,pe){super(),this._id=oe,this._renderer=pe}create(oe,pe){return new Fa(this._id,oe,pe||{},this._renderer)}}class Fa{constructor(oe,pe,Ke,Mt){this.id=oe,this.element=pe,this._renderer=Mt,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",Ke)}_listen(oe,pe){return this._renderer.listen(this.element,`@@${this.id}:${oe}`,pe)}_command(oe,...pe){return xa(this._renderer,this.element,this.id,oe,pe)}onDone(oe){this._listen("done",oe)}onStart(oe){this._listen("start",oe)}onDestroy(oe){this._listen("destroy",oe)}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(oe){this._command("setPosition",oe)}getPosition(){var oe,pe;return null!==(pe=null===(oe=this._renderer.engine.players[+this.id])||void 0===oe?void 0:oe.getPosition())&&void 0!==pe?pe:0}}function xa(yt,oe,pe,Ke,Mt){return yt.setProperty(oe,`@@${pe}:${Ke}`,Mt)}const Fi="@.disabled";let jn=(()=>{class yt{constructor(pe,Ke,Mt){this.delegate=pe,this.engine=Ke,this._zone=Mt,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),Ke.onRemovalComplete=(Vt,ri)=>{const ni=null==ri?void 0:ri.parentNode(Vt);ni&&ri.removeChild(ni,Vt)}}createRenderer(pe,Ke){const Vt=this.delegate.createRenderer(pe,Ke);if(!(pe&&Ke&&Ke.data&&Ke.data.animation)){let $i=this._rendererCache.get(Vt);return $i||($i=new Hs("",Vt,this.engine),this._rendererCache.set(Vt,$i)),$i}const ri=Ke.id,ni=Ke.id+"-"+this._currentId;this._currentId++,this.engine.register(ni,pe);const gi=$i=>{Array.isArray($i)?$i.forEach(gi):this.engine.registerTrigger(ri,ni,pe,$i.name,$i)};return Ke.data.animation.forEach(gi),new Er(this,ni,Vt,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(pe,Ke,Mt){pe>=0&&peKe(Mt)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(Vt=>{const[ri,ni]=Vt;ri(ni)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([Ke,Mt]))}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 yt.\u0275fac=function(pe){return new(pe||yt)(t.LFG(t.FYo),t.LFG(jt),t.LFG(t.R0b))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})();class Hs{constructor(oe,pe,Ke){this.namespaceId=oe,this.delegate=pe,this.engine=Ke,this.destroyNode=this.delegate.destroyNode?Mt=>pe.destroyNode(Mt):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(oe,pe){return this.delegate.createElement(oe,pe)}createComment(oe){return this.delegate.createComment(oe)}createText(oe){return this.delegate.createText(oe)}appendChild(oe,pe){this.delegate.appendChild(oe,pe),this.engine.onInsert(this.namespaceId,pe,oe,!1)}insertBefore(oe,pe,Ke,Mt=!0){this.delegate.insertBefore(oe,pe,Ke),this.engine.onInsert(this.namespaceId,pe,oe,Mt)}removeChild(oe,pe,Ke){this.engine.onRemove(this.namespaceId,pe,this.delegate,Ke)}selectRootElement(oe,pe){return this.delegate.selectRootElement(oe,pe)}parentNode(oe){return this.delegate.parentNode(oe)}nextSibling(oe){return this.delegate.nextSibling(oe)}setAttribute(oe,pe,Ke,Mt){this.delegate.setAttribute(oe,pe,Ke,Mt)}removeAttribute(oe,pe,Ke){this.delegate.removeAttribute(oe,pe,Ke)}addClass(oe,pe){this.delegate.addClass(oe,pe)}removeClass(oe,pe){this.delegate.removeClass(oe,pe)}setStyle(oe,pe,Ke,Mt){this.delegate.setStyle(oe,pe,Ke,Mt)}removeStyle(oe,pe,Ke){this.delegate.removeStyle(oe,pe,Ke)}setProperty(oe,pe,Ke){"@"==pe.charAt(0)&&pe==Fi?this.disableAnimations(oe,!!Ke):this.delegate.setProperty(oe,pe,Ke)}setValue(oe,pe){this.delegate.setValue(oe,pe)}listen(oe,pe,Ke){return this.delegate.listen(oe,pe,Ke)}disableAnimations(oe,pe){this.engine.disableAnimations(oe,pe)}}class Er extends Hs{constructor(oe,pe,Ke,Mt){super(pe,Ke,Mt),this.factory=oe,this.namespaceId=pe}setProperty(oe,pe,Ke){"@"==pe.charAt(0)?"."==pe.charAt(1)&&pe==Fi?this.disableAnimations(oe,Ke=void 0===Ke||!!Ke):this.engine.process(this.namespaceId,oe,pe.substr(1),Ke):this.delegate.setProperty(oe,pe,Ke)}listen(oe,pe,Ke){if("@"==pe.charAt(0)){const Mt=function to(yt){switch(yt){case"body":return document.body;case"document":return document;case"window":return window;default:return yt}}(oe);let Vt=pe.substr(1),ri="";return"@"!=Vt.charAt(0)&&([Vt,ri]=function gs(yt){const oe=yt.indexOf(".");return[yt.substring(0,oe),yt.substr(oe+1)]}(Vt)),this.engine.listen(this.namespaceId,Mt,Vt,ri,ni=>{this.factory.scheduleListenerCallback(ni._data||-1,Ke,ni)})}return this.delegate.listen(oe,pe,Ke)}}let Ta=(()=>{class yt extends jt{constructor(pe,Ke,Mt){super(pe.body,Ke,Mt)}ngOnDestroy(){this.flush()}}return yt.\u0275fac=function(pe){return new(pe||yt)(t.LFG(Gi.K0),t.LFG(di),t.LFG(na))},yt.\u0275prov=t.Yz7({token:yt,factory:yt.\u0275fac}),yt})();const Fs=new t.OlP("AnimationModuleType"),zs=[{provide:f._j,useClass:Un},{provide:na,useFactory:function Ls(){return new Jr}},{provide:jt,useClass:Ta},{provide:t.FYo,useFactory:function Ds(yt,oe,pe){return new jn(yt,oe,pe)},deps:[e.se,jt,t.R0b]}],Vs=[{provide:di,useFactory:()=>new wi},{provide:Fs,useValue:"BrowserAnimations"},...zs],as=[{provide:di,useClass:Dt},{provide:Fs,useValue:"NoopAnimations"},...zs];let Ur=(()=>{class yt{static withConfig(pe){return{ngModule:yt,providers:pe.disableAnimations?as:Vs}}}return yt.\u0275fac=function(pe){return new(pe||yt)},yt.\u0275mod=t.oAB({type:yt}),yt.\u0275inj=t.cJS({providers:Vs,imports:[e.b2]}),yt})()},2313:(Be,K,p)=>{"use strict";p.d(K,{H7:()=>nt,b2:()=>ut,q6:()=>J,se:()=>c,t6:()=>Ft});var t=p(9808),e=p(5e3);class f extends t.w_{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class M extends f{static makeCurrent(){(0,t.HT)(new M)}onAndCancel(Ge,ot,lt){return Ge.addEventListener(ot,lt,!1),()=>{Ge.removeEventListener(ot,lt,!1)}}dispatchEvent(Ge,ot){Ge.dispatchEvent(ot)}remove(Ge){Ge.parentNode&&Ge.parentNode.removeChild(Ge)}createElement(Ge,ot){return(ot=ot||this.getDefaultDocument()).createElement(Ge)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(Ge){return Ge.nodeType===Node.ELEMENT_NODE}isShadowRoot(Ge){return Ge instanceof DocumentFragment}getGlobalEventTarget(Ge,ot){return"window"===ot?window:"document"===ot?Ge:"body"===ot?Ge.body:null}getBaseHref(Ge){const ot=function C(){return a=a||document.querySelector("base"),a?a.getAttribute("href"):null}();return null==ot?null:function R(Ae){d=d||document.createElement("a"),d.setAttribute("href",Ae);const Ge=d.pathname;return"/"===Ge.charAt(0)?Ge:`/${Ge}`}(ot)}resetBaseElement(){a=null}getUserAgent(){return window.navigator.userAgent}getCookie(Ge){return(0,t.Mx)(document.cookie,Ge)}}let d,a=null;const h=new e.OlP("TRANSITION_ID"),w=[{provide:e.ip1,useFactory:function L(Ae,Ge,ot){return()=>{ot.get(e.CZH).donePromise.then(()=>{const lt=(0,t.q)(),Ct=Ge.querySelectorAll(`style[ng-transition="${Ae}"]`);for(let mi=0;mi{const mi=Ge.findTestabilityInTree(lt,Ct);if(null==mi)throw new Error("Could not find testability for element.");return mi},e.dqk.getAllAngularTestabilities=()=>Ge.getAllTestabilities(),e.dqk.getAllAngularRootElements=()=>Ge.getAllRootElements(),e.dqk.frameworkStabilizers||(e.dqk.frameworkStabilizers=[]),e.dqk.frameworkStabilizers.push(lt=>{const Ct=e.dqk.getAllAngularTestabilities();let mi=Ct.length,Jt=!1;const ei=function(Qi){Jt=Jt||Qi,mi--,0==mi&<(Jt)};Ct.forEach(function(Qi){Qi.whenStable(ei)})})}findTestabilityInTree(Ge,ot,lt){if(null==ot)return null;const Ct=Ge.getTestability(ot);return null!=Ct?Ct:lt?(0,t.q)().isShadowRoot(ot)?this.findTestabilityInTree(Ge,ot.host,!0):this.findTestabilityInTree(Ge,ot.parentElement,!0):null}}let S=(()=>{class Ae{build(){return new XMLHttpRequest}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const k=new e.OlP("EventManagerPlugins");let E=(()=>{class Ae{constructor(ot,lt){this._zone=lt,this._eventNameToPlugin=new Map,ot.forEach(Ct=>Ct.manager=this),this._plugins=ot.slice().reverse()}addEventListener(ot,lt,Ct){return this._findPluginFor(lt).addEventListener(ot,lt,Ct)}addGlobalEventListener(ot,lt,Ct){return this._findPluginFor(lt).addGlobalEventListener(ot,lt,Ct)}getZone(){return this._zone}_findPluginFor(ot){const lt=this._eventNameToPlugin.get(ot);if(lt)return lt;const Ct=this._plugins;for(let mi=0;mi{class Ae{constructor(){this._stylesSet=new Set}addStyles(ot){const lt=new Set;ot.forEach(Ct=>{this._stylesSet.has(Ct)||(this._stylesSet.add(Ct),lt.add(Ct))}),this.onStylesAdded(lt)}onStylesAdded(ot){}getAllStyles(){return Array.from(this._stylesSet)}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),Y=(()=>{class Ae extends Z{constructor(ot){super(),this._doc=ot,this._hostNodes=new Map,this._hostNodes.set(ot.head,[])}_addStylesToHost(ot,lt,Ct){ot.forEach(mi=>{const Jt=this._doc.createElement("style");Jt.textContent=mi,Ct.push(lt.appendChild(Jt))})}addHost(ot){const lt=[];this._addStylesToHost(this._stylesSet,ot,lt),this._hostNodes.set(ot,lt)}removeHost(ot){const lt=this._hostNodes.get(ot);lt&<.forEach(ae),this._hostNodes.delete(ot)}onStylesAdded(ot){this._hostNodes.forEach((lt,Ct)=>{this._addStylesToHost(ot,Ct,lt)})}ngOnDestroy(){this._hostNodes.forEach(ot=>ot.forEach(ae))}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();function ae(Ae){(0,t.q)().remove(Ae)}const ee={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},ue=/%COMP%/g;function i(Ae,Ge,ot){for(let lt=0;lt{if("__ngUnwrap__"===Ge)return Ae;!1===Ae(Ge)&&(Ge.preventDefault(),Ge.returnValue=!1)}}let c=(()=>{class Ae{constructor(ot,lt,Ct){this.eventManager=ot,this.sharedStylesHost=lt,this.appId=Ct,this.rendererByCompId=new Map,this.defaultRenderer=new v(ot)}createRenderer(ot,lt){if(!ot||!lt)return this.defaultRenderer;switch(lt.encapsulation){case e.ifc.Emulated:{let Ct=this.rendererByCompId.get(lt.id);return Ct||(Ct=new y(this.eventManager,this.sharedStylesHost,lt,this.appId),this.rendererByCompId.set(lt.id,Ct)),Ct.applyToHost(ot),Ct}case 1:case e.ifc.ShadowDom:return new n(this.eventManager,this.sharedStylesHost,ot,lt);default:if(!this.rendererByCompId.has(lt.id)){const Ct=i(lt.id,lt.styles,[]);this.sharedStylesHost.addStyles(Ct),this.rendererByCompId.set(lt.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(E),e.LFG(Y),e.LFG(e.AFp))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();class v{constructor(Ge){this.eventManager=Ge,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(Ge,ot){return ot?document.createElementNS(ee[ot]||ot,Ge):document.createElement(Ge)}createComment(Ge){return document.createComment(Ge)}createText(Ge){return document.createTextNode(Ge)}appendChild(Ge,ot){Ge.appendChild(ot)}insertBefore(Ge,ot,lt){Ge&&Ge.insertBefore(ot,lt)}removeChild(Ge,ot){Ge&&Ge.removeChild(ot)}selectRootElement(Ge,ot){let lt="string"==typeof Ge?document.querySelector(Ge):Ge;if(!lt)throw new Error(`The selector "${Ge}" did not match any elements`);return ot||(lt.textContent=""),lt}parentNode(Ge){return Ge.parentNode}nextSibling(Ge){return Ge.nextSibling}setAttribute(Ge,ot,lt,Ct){if(Ct){ot=Ct+":"+ot;const mi=ee[Ct];mi?Ge.setAttributeNS(mi,ot,lt):Ge.setAttribute(ot,lt)}else Ge.setAttribute(ot,lt)}removeAttribute(Ge,ot,lt){if(lt){const Ct=ee[lt];Ct?Ge.removeAttributeNS(Ct,ot):Ge.removeAttribute(`${lt}:${ot}`)}else Ge.removeAttribute(ot)}addClass(Ge,ot){Ge.classList.add(ot)}removeClass(Ge,ot){Ge.classList.remove(ot)}setStyle(Ge,ot,lt,Ct){Ct&(e.JOm.DashCase|e.JOm.Important)?Ge.style.setProperty(ot,lt,Ct&e.JOm.Important?"important":""):Ge.style[ot]=lt}removeStyle(Ge,ot,lt){lt&e.JOm.DashCase?Ge.style.removeProperty(ot):Ge.style[ot]=""}setProperty(Ge,ot,lt){Ge[ot]=lt}setValue(Ge,ot){Ge.nodeValue=ot}listen(Ge,ot,lt){return"string"==typeof Ge?this.eventManager.addGlobalEventListener(Ge,ot,r(lt)):this.eventManager.addEventListener(Ge,ot,r(lt))}}class y extends v{constructor(Ge,ot,lt,Ct){super(Ge),this.component=lt;const mi=i(Ct+"-"+lt.id,lt.styles,[]);ot.addStyles(mi),this.contentAttr=function _e(Ae){return"_ngcontent-%COMP%".replace(ue,Ae)}(Ct+"-"+lt.id),this.hostAttr=function x(Ae){return"_nghost-%COMP%".replace(ue,Ae)}(Ct+"-"+lt.id)}applyToHost(Ge){super.setAttribute(Ge,this.hostAttr,"")}createElement(Ge,ot){const lt=super.createElement(Ge,ot);return super.setAttribute(lt,this.contentAttr,""),lt}}class n extends v{constructor(Ge,ot,lt,Ct){super(Ge),this.sharedStylesHost=ot,this.hostEl=lt,this.shadowRoot=lt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const mi=i(Ct.id,Ct.styles,[]);for(let Jt=0;Jt{class Ae extends B{constructor(ot){super(ot)}supports(ot){return!0}addEventListener(ot,lt,Ct){return ot.addEventListener(lt,Ct,!1),()=>this.removeEventListener(ot,lt,Ct)}removeEventListener(ot,lt,Ct){return ot.removeEventListener(lt,Ct)}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const V=["alt","control","meta","shift"],H={"\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"},X={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"},he={alt:Ae=>Ae.altKey,control:Ae=>Ae.ctrlKey,meta:Ae=>Ae.metaKey,shift:Ae=>Ae.shiftKey};let be=(()=>{class Ae extends B{constructor(ot){super(ot)}supports(ot){return null!=Ae.parseEventName(ot)}addEventListener(ot,lt,Ct){const mi=Ae.parseEventName(lt),Jt=Ae.eventCallback(mi.fullKey,Ct,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,t.q)().onAndCancel(ot,mi.domEventName,Jt))}static parseEventName(ot){const lt=ot.toLowerCase().split("."),Ct=lt.shift();if(0===lt.length||"keydown"!==Ct&&"keyup"!==Ct)return null;const mi=Ae._normalizeKey(lt.pop());let Jt="";if(V.forEach(Qi=>{const hi=lt.indexOf(Qi);hi>-1&&(lt.splice(hi,1),Jt+=Qi+".")}),Jt+=mi,0!=lt.length||0===mi.length)return null;const ei={};return ei.domEventName=Ct,ei.fullKey=Jt,ei}static getEventFullKey(ot){let lt="",Ct=function Pe(Ae){let Ge=Ae.key;if(null==Ge){if(Ge=Ae.keyIdentifier,null==Ge)return"Unidentified";Ge.startsWith("U+")&&(Ge=String.fromCharCode(parseInt(Ge.substring(2),16)),3===Ae.location&&X.hasOwnProperty(Ge)&&(Ge=X[Ge]))}return H[Ge]||Ge}(ot);return Ct=Ct.toLowerCase()," "===Ct?Ct="space":"."===Ct&&(Ct="dot"),V.forEach(mi=>{mi!=Ct&&he[mi](ot)&&(lt+=mi+".")}),lt+=Ct,lt}static eventCallback(ot,lt,Ct){return mi=>{Ae.getEventFullKey(mi)===ot&&Ct.runGuarded(()=>lt(mi))}}static _normalizeKey(ot){return"esc"===ot?"escape":ot}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})();const J=(0,e.eFA)(e._c5,"browser",[{provide:e.Lbi,useValue:t.bD},{provide:e.g9A,useValue:function Ee(){M.makeCurrent(),D.init()},multi:!0},{provide:t.K0,useFactory:function Ve(){return(0,e.RDi)(document),document},deps:[]}]),Ie=[{provide:e.zSh,useValue:"root"},{provide:e.qLn,useFactory:function j(){return new e.qLn},deps:[]},{provide:k,useClass:_,multi:!0,deps:[t.K0,e.R0b,e.Lbi]},{provide:k,useClass:be,multi:!0,deps:[t.K0]},{provide:c,useClass:c,deps:[E,Y,e.AFp]},{provide:e.FYo,useExisting:c},{provide:Z,useExisting:Y},{provide:Y,useClass:Y,deps:[t.K0]},{provide:e.dDg,useClass:e.dDg,deps:[e.R0b]},{provide:E,useClass:E,deps:[k,e.R0b]},{provide:t.JF,useClass:S,deps:[]}];let ut=(()=>{class Ae{constructor(ot){if(ot)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(ot){return{ngModule:Ae,providers:[{provide:e.AFp,useValue:ot.appId},{provide:h,useExisting:e.AFp},w]}}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(Ae,12))},Ae.\u0275mod=e.oAB({type:Ae}),Ae.\u0275inj=e.cJS({providers:Ie,imports:[t.ez,e.hGG]}),Ae})();"undefined"!=typeof window&&window;const ke={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},de=new e.OlP("HammerGestureConfig"),ye=new e.OlP("HammerLoader");let ht=(()=>{class Ae{constructor(){this.events=[],this.overrides={}}buildHammer(ot){const lt=new Hammer(ot,this.options);lt.get("pinch").set({enable:!0}),lt.get("rotate").set({enable:!0});for(const Ct in this.overrides)lt.get(Ct).set(this.overrides[Ct]);return lt}}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),mt=(()=>{class Ae extends B{constructor(ot,lt,Ct,mi){super(ot),this._config=lt,this.console=Ct,this.loader=mi,this._loaderPromise=null}supports(ot){return!(!ke.hasOwnProperty(ot.toLowerCase())&&!this.isCustomEvent(ot)||!window.Hammer&&!this.loader)}addEventListener(ot,lt,Ct){const mi=this.manager.getZone();if(lt=lt.toLowerCase(),!window.Hammer&&this.loader){this._loaderPromise=this._loaderPromise||this.loader();let Jt=!1,ei=()=>{Jt=!0};return this._loaderPromise.then(()=>{window.Hammer?Jt||(ei=this.addEventListener(ot,lt,Ct)):ei=()=>{}}).catch(()=>{ei=()=>{}}),()=>{ei()}}return mi.runOutsideAngular(()=>{const Jt=this._config.buildHammer(ot),ei=function(Qi){mi.runGuarded(function(){Ct(Qi)})};return Jt.on(lt,ei),()=>{Jt.off(lt,ei),"function"==typeof Jt.destroy&&Jt.destroy()}})}isCustomEvent(ot){return this._config.events.indexOf(ot)>-1}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0),e.LFG(de),e.LFG(e.c2e),e.LFG(ye,8))},Ae.\u0275prov=e.Yz7({token:Ae,factory:Ae.\u0275fac}),Ae})(),Ft=(()=>{class Ae{}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275mod=e.oAB({type:Ae}),Ae.\u0275inj=e.cJS({providers:[{provide:k,useClass:mt,multi:!0,deps:[t.K0,de,e.c2e,[new e.FiY,ye]]},{provide:de,useClass:ht,deps:[]}]}),Ae})(),nt=(()=>{class Ae{}return Ae.\u0275fac=function(ot){return new(ot||Ae)},Ae.\u0275prov=e.Yz7({token:Ae,factory:function(ot){let lt=null;return lt=ot?new(ot||Ae):e.LFG(rt),lt},providedIn:"root"}),Ae})(),rt=(()=>{class Ae extends nt{constructor(ot){super(),this._doc=ot}sanitize(ot,lt){if(null==lt)return null;switch(ot){case e.q3G.NONE:return lt;case e.q3G.HTML:return(0,e.qzn)(lt,"HTML")?(0,e.z3N)(lt):(0,e.EiD)(this._doc,String(lt)).toString();case e.q3G.STYLE:return(0,e.qzn)(lt,"Style")?(0,e.z3N)(lt):lt;case e.q3G.SCRIPT:if((0,e.qzn)(lt,"Script"))return(0,e.z3N)(lt);throw new Error("unsafe value used in a script context");case e.q3G.URL:return(0,e.yhl)(lt),(0,e.qzn)(lt,"URL")?(0,e.z3N)(lt):(0,e.mCW)(String(lt));case e.q3G.RESOURCE_URL:if((0,e.qzn)(lt,"ResourceURL"))return(0,e.z3N)(lt);throw new Error("unsafe value used in a resource URL context (see https://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${ot} (see https://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(ot){return(0,e.JVY)(ot)}bypassSecurityTrustStyle(ot){return(0,e.L6k)(ot)}bypassSecurityTrustScript(ot){return(0,e.eBb)(ot)}bypassSecurityTrustUrl(ot){return(0,e.LAX)(ot)}bypassSecurityTrustResourceUrl(ot){return(0,e.pB0)(ot)}}return Ae.\u0275fac=function(ot){return new(ot||Ae)(e.LFG(t.K0))},Ae.\u0275prov=e.Yz7({token:Ae,factory:function(ot){let lt=null;return lt=ot?new ot:function He(Ae){return new rt(Ae.get(t.K0))}(e.LFG(e.zs3)),lt},providedIn:"root"}),Ae})()},1402:(Be,K,p)=>{"use strict";p.d(K,{gz:()=>Wi,gk:()=>H,m2:()=>N,Q3:()=>X,OD:()=>V,Av:()=>j,F0:()=>xr,rH:()=>ws,Od:()=>_s,yS:()=>Ka,Bz:()=>St,lC:()=>ra});var t=p(5e3),e=p(8306),f=p(727),M=p(4482),a=p(5403);function C(){return(0,M.e)((ze,Se)=>{let me=null;ze._refCount++;const qe=(0,a.x)(Se,void 0,void 0,void 0,()=>{if(!ze||ze._refCount<=0||0<--ze._refCount)return void(me=null);const ct=ze._connection,Pt=me;me=null,ct&&(!Pt||ct===Pt)&&ct.unsubscribe(),Se.unsubscribe()});ze.subscribe(qe),qe.closed||(me=ze.connect())})}class d extends e.y{constructor(Se,me){super(),this.source=Se,this.subjectFactory=me,this._subject=null,this._refCount=0,this._connection=null,(0,M.A)(Se)&&(this.lift=Se.lift)}_subscribe(Se){return this.getSubject().subscribe(Se)}getSubject(){const Se=this._subject;return(!Se||Se.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:Se}=this;this._subject=this._connection=null,null==Se||Se.unsubscribe()}connect(){let Se=this._connection;if(!Se){Se=this._connection=new f.w0;const me=this.getSubject();Se.add(this.source.subscribe((0,a.x)(me,void 0,()=>{this._teardown(),me.complete()},qe=>{this._teardown(),me.error(qe)},()=>this._teardown()))),Se.closed&&(this._connection=null,Se=f.w0.EMPTY)}return Se}refCount(){return C()(this)}}var R=p(457),h=p(9646),L=p(1135),w=p(9841),D=p(2843),S=p(6805),k=p(7272),E=p(9770),B=p(515),Z=p(7579),Y=p(9300);function ae(ze){return ze<=0?()=>B.E:(0,M.e)((Se,me)=>{let qe=[];Se.subscribe((0,a.x)(me,ct=>{qe.push(ct),ze{for(const ct of qe)me.next(ct);me.complete()},void 0,()=>{qe=null}))})}var ee=p(8068),ue=p(6590),ne=p(4671),ge=p(4004),q=p(3900),_e=p(5698),x=p(8675),i=p(5026),r=p(262),u=p(4351),c=p(590),v=p(5577),T=p(8505),I=p(8746),y=p(8189),n=p(9808);class _{constructor(Se,me){this.id=Se,this.url=me}}class V extends _{constructor(Se,me,qe="imperative",ct=null){super(Se,me),this.navigationTrigger=qe,this.restoredState=ct}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class N extends _{constructor(Se,me,qe){super(Se,me),this.urlAfterRedirects=qe}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class H extends _{constructor(Se,me,qe){super(Se,me),this.reason=qe}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class X extends _{constructor(Se,me,qe){super(Se,me),this.error=qe}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class he extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class be extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Pe extends _{constructor(Se,me,qe,ct,Pt){super(Se,me),this.urlAfterRedirects=qe,this.state=ct,this.shouldActivate=Pt}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class Ee extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class j extends _{constructor(Se,me,qe,ct){super(Se,me),this.urlAfterRedirects=qe,this.state=ct}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Ve{constructor(Se){this.route=Se}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Me{constructor(Se){this.route=Se}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class J{constructor(Se){this.snapshot=Se}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ie{constructor(Se){this.snapshot=Se}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ut{constructor(Se){this.snapshot=Se}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Oe{constructor(Se){this.snapshot=Se}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class we{constructor(Se,me,qe){this.routerEvent=Se,this.position=me,this.anchor=qe}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const ce="primary";class Te{constructor(Se){this.params=Se||{}}has(Se){return Object.prototype.hasOwnProperty.call(this.params,Se)}get(Se){if(this.has(Se)){const me=this.params[Se];return Array.isArray(me)?me[0]:me}return null}getAll(Se){if(this.has(Se)){const me=this.params[Se];return Array.isArray(me)?me:[me]}return[]}get keys(){return Object.keys(this.params)}}function xe(ze){return new Te(ze)}const W="ngNavigationCancelingError";function te(ze){const Se=Error("NavigationCancelingError: "+ze);return Se[W]=!0,Se}function fe(ze,Se,me){const qe=me.path.split("/");if(qe.length>ze.length||"full"===me.pathMatch&&(Se.hasChildren()||qe.lengthqe[Pt]===ct)}return ze===Se}function Dt(ze){return Array.prototype.concat.apply([],ze)}function di(ze){return ze.length>0?ze[ze.length-1]:null}function Zt(ze,Se){for(const me in ze)ze.hasOwnProperty(me)&&Se(ze[me],me)}function ui(ze){return(0,t.CqO)(ze)?ze:(0,t.QGY)(ze)?(0,R.D)(Promise.resolve(ze)):(0,h.of)(ze)}const Nt={exact:function ti(ze,Se,me){if(!nt(ze.segments,Se.segments)||!de(ze.segments,Se.segments,me)||ze.numberOfChildren!==Se.numberOfChildren)return!1;for(const qe in Se.children)if(!ze.children[qe]||!ti(ze.children[qe],Se.children[qe],me))return!1;return!0},subset:Re},gt={exact:function bt(ze,Se){return pt(ze,Se)},subset:function Qt(ze,Se){return Object.keys(Se).length<=Object.keys(ze).length&&Object.keys(Se).every(me=>tt(ze[me],Se[me]))},ignored:()=>!0};function it(ze,Se,me){return Nt[me.paths](ze.root,Se.root,me.matrixParams)&>[me.queryParams](ze.queryParams,Se.queryParams)&&!("exact"===me.fragment&&ze.fragment!==Se.fragment)}function Re(ze,Se,me){return ke(ze,Se,Se.segments,me)}function ke(ze,Se,me,qe){if(ze.segments.length>me.length){const ct=ze.segments.slice(0,me.length);return!(!nt(ct,me)||Se.hasChildren()||!de(ct,me,qe))}if(ze.segments.length===me.length){if(!nt(ze.segments,me)||!de(ze.segments,me,qe))return!1;for(const ct in Se.children)if(!ze.children[ct]||!Re(ze.children[ct],Se.children[ct],qe))return!1;return!0}{const ct=me.slice(0,ze.segments.length),Pt=me.slice(ze.segments.length);return!!(nt(ze.segments,ct)&&de(ze.segments,ct,qe)&&ze.children[ce])&&ke(ze.children[ce],Se,Pt,qe)}}function de(ze,Se,me){return Se.every((qe,ct)=>gt[me](ze[ct].parameters,qe.parameters))}class ye{constructor(Se,me,qe){this.root=Se,this.queryParams=me,this.fragment=qe}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return Ae.serialize(this)}}class ht{constructor(Se,me){this.segments=Se,this.children=me,this.parent=null,Zt(me,(qe,ct)=>qe.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Ge(this)}}class mt{constructor(Se,me){this.path=Se,this.parameters=me}get parameterMap(){return this._parameterMap||(this._parameterMap=xe(this.parameters)),this._parameterMap}toString(){return hi(this)}}function nt(ze,Se){return ze.length===Se.length&&ze.every((me,qe)=>me.path===Se[qe].path)}class rt{}class et{parse(Se){const me=new Qe(Se);return new ye(me.parseRootSegment(),me.parseQueryParams(),me.parseFragment())}serialize(Se){const me=`/${ot(Se.root,!0)}`,qe=function Ji(ze){const Se=Object.keys(ze).map(me=>{const qe=ze[me];return Array.isArray(qe)?qe.map(ct=>`${Ct(me)}=${Ct(ct)}`).join("&"):`${Ct(me)}=${Ct(qe)}`}).filter(me=>!!me);return Se.length?`?${Se.join("&")}`:""}(Se.queryParams);return`${me}${qe}${"string"==typeof Se.fragment?`#${function mi(ze){return encodeURI(ze)}(Se.fragment)}`:""}`}}const Ae=new et;function Ge(ze){return ze.segments.map(Se=>hi(Se)).join("/")}function ot(ze,Se){if(!ze.hasChildren())return Ge(ze);if(Se){const me=ze.children[ce]?ot(ze.children[ce],!1):"",qe=[];return Zt(ze.children,(ct,Pt)=>{Pt!==ce&&qe.push(`${Pt}:${ot(ct,!1)}`)}),qe.length>0?`${me}(${qe.join("//")})`:me}{const me=function He(ze,Se){let me=[];return Zt(ze.children,(qe,ct)=>{ct===ce&&(me=me.concat(Se(qe,ct)))}),Zt(ze.children,(qe,ct)=>{ct!==ce&&(me=me.concat(Se(qe,ct)))}),me}(ze,(qe,ct)=>ct===ce?[ot(ze.children[ce],!1)]:[`${ct}:${ot(qe,!1)}`]);return 1===Object.keys(ze.children).length&&null!=ze.children[ce]?`${Ge(ze)}/${me[0]}`:`${Ge(ze)}/(${me.join("//")})`}}function lt(ze){return encodeURIComponent(ze).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ct(ze){return lt(ze).replace(/%3B/gi,";")}function Jt(ze){return lt(ze).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ei(ze){return decodeURIComponent(ze)}function Qi(ze){return ei(ze.replace(/\+/g,"%20"))}function hi(ze){return`${Jt(ze.path)}${function si(ze){return Object.keys(ze).map(Se=>`;${Jt(Se)}=${Jt(ze[Se])}`).join("")}(ze.parameters)}`}const Zi=/^[^\/()?;=#]+/;function Vi(ze){const Se=ze.match(Zi);return Se?Se[0]:""}const Ui=/^[^=?&#]+/,Tt=/^[^&#]+/;class Qe{constructor(Se){this.url=Se,this.remaining=Se}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ht([],{}):new ht([],this.parseChildren())}parseQueryParams(){const Se={};if(this.consumeOptional("?"))do{this.parseQueryParam(Se)}while(this.consumeOptional("&"));return Se}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const Se=[];for(this.peekStartsWith("(")||Se.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),Se.push(this.parseSegment());let me={};this.peekStartsWith("/(")&&(this.capture("/"),me=this.parseParens(!0));let qe={};return this.peekStartsWith("(")&&(qe=this.parseParens(!1)),(Se.length>0||Object.keys(me).length>0)&&(qe[ce]=new ht(Se,me)),qe}parseSegment(){const Se=Vi(this.remaining);if(""===Se&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(Se),new mt(ei(Se),this.parseMatrixParams())}parseMatrixParams(){const Se={};for(;this.consumeOptional(";");)this.parseParam(Se);return Se}parseParam(Se){const me=Vi(this.remaining);if(!me)return;this.capture(me);let qe="";if(this.consumeOptional("=")){const ct=Vi(this.remaining);ct&&(qe=ct,this.capture(qe))}Se[ei(me)]=ei(qe)}parseQueryParam(Se){const me=function Ue(ze){const Se=ze.match(Ui);return Se?Se[0]:""}(this.remaining);if(!me)return;this.capture(me);let qe="";if(this.consumeOptional("=")){const qt=function ve(ze){const Se=ze.match(Tt);return Se?Se[0]:""}(this.remaining);qt&&(qe=qt,this.capture(qe))}const ct=Qi(me),Pt=Qi(qe);if(Se.hasOwnProperty(ct)){let qt=Se[ct];Array.isArray(qt)||(qt=[qt],Se[ct]=qt),qt.push(Pt)}else Se[ct]=Pt}parseParens(Se){const me={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const qe=Vi(this.remaining),ct=this.remaining[qe.length];if("/"!==ct&&")"!==ct&&";"!==ct)throw new Error(`Cannot parse url '${this.url}'`);let Pt;qe.indexOf(":")>-1?(Pt=qe.substr(0,qe.indexOf(":")),this.capture(Pt),this.capture(":")):Se&&(Pt=ce);const qt=this.parseChildren();me[Pt]=1===Object.keys(qt).length?qt[ce]:new ht([],qt),this.consumeOptional("//")}return me}peekStartsWith(Se){return this.remaining.startsWith(Se)}consumeOptional(Se){return!!this.peekStartsWith(Se)&&(this.remaining=this.remaining.substring(Se.length),!0)}capture(Se){if(!this.consumeOptional(Se))throw new Error(`Expected "${Se}".`)}}class _t{constructor(Se){this._root=Se}get root(){return this._root.value}parent(Se){const me=this.pathFromRoot(Se);return me.length>1?me[me.length-2]:null}children(Se){const me=se(Se,this._root);return me?me.children.map(qe=>qe.value):[]}firstChild(Se){const me=se(Se,this._root);return me&&me.children.length>0?me.children[0].value:null}siblings(Se){const me=Xe(Se,this._root);return me.length<2?[]:me[me.length-2].children.map(ct=>ct.value).filter(ct=>ct!==Se)}pathFromRoot(Se){return Xe(Se,this._root).map(me=>me.value)}}function se(ze,Se){if(ze===Se.value)return Se;for(const me of Se.children){const qe=se(ze,me);if(qe)return qe}return null}function Xe(ze,Se){if(ze===Se.value)return[Se];for(const me of Se.children){const qe=Xe(ze,me);if(qe.length)return qe.unshift(Se),qe}return[]}class xt{constructor(Se,me){this.value=Se,this.children=me}toString(){return`TreeNode(${this.value})`}}function Bt(ze){const Se={};return ze&&ze.children.forEach(me=>Se[me.value.outlet]=me),Se}class bi extends _t{constructor(Se,me){super(Se),this.snapshot=me,st(this,Se)}toString(){return this.snapshot.toString()}}function Si(ze,Se){const me=function Xi(ze,Se){const qt=new ii([],{},{},"",{},ce,Se,null,ze.root,-1,{});return new Ri("",new xt(qt,[]))}(ze,Se),qe=new L.X([new mt("",{})]),ct=new L.X({}),Pt=new L.X({}),qt=new L.X({}),ai=new L.X(""),Di=new Wi(qe,ct,qt,ai,Pt,ce,Se,me.root);return Di.snapshot=me.root,new bi(new xt(Di,[]),me)}class Wi{constructor(Se,me,qe,ct,Pt,qt,ai,Di){this.url=Se,this.params=me,this.queryParams=qe,this.fragment=ct,this.data=Pt,this.outlet=qt,this.component=ai,this._futureSnapshot=Di}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,ge.U)(Se=>xe(Se)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe((0,ge.U)(Se=>xe(Se)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function on(ze,Se="emptyOnly"){const me=ze.pathFromRoot;let qe=0;if("always"!==Se)for(qe=me.length-1;qe>=1;){const ct=me[qe],Pt=me[qe-1];if(ct.routeConfig&&""===ct.routeConfig.path)qe--;else{if(Pt.component)break;qe--}}return function pn(ze){return ze.reduce((Se,me)=>({params:Object.assign(Object.assign({},Se.params),me.params),data:Object.assign(Object.assign({},Se.data),me.data),resolve:Object.assign(Object.assign({},Se.resolve),me._resolvedData)}),{params:{},data:{},resolve:{}})}(me.slice(qe))}class ii{constructor(Se,me,qe,ct,Pt,qt,ai,Di,an,Pn,Cn){this.url=Se,this.params=me,this.queryParams=qe,this.fragment=ct,this.data=Pt,this.outlet=qt,this.component=ai,this.routeConfig=Di,this._urlSegment=an,this._lastPathIndex=Pn,this._resolve=Cn}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=xe(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=xe(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(qe=>qe.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ri extends _t{constructor(Se,me){super(me),this.url=Se,st(this,me)}toString(){return Rt(this._root)}}function st(ze,Se){Se.value._routerState=ze,Se.children.forEach(me=>st(ze,me))}function Rt(ze){const Se=ze.children.length>0?` { ${ze.children.map(Rt).join(", ")} } `:"";return`${ze.value}${Se}`}function Wt(ze){if(ze.snapshot){const Se=ze.snapshot,me=ze._futureSnapshot;ze.snapshot=me,pt(Se.queryParams,me.queryParams)||ze.queryParams.next(me.queryParams),Se.fragment!==me.fragment&&ze.fragment.next(me.fragment),pt(Se.params,me.params)||ze.params.next(me.params),function Q(ze,Se){if(ze.length!==Se.length)return!1;for(let me=0;mept(me.parameters,Se[qe].parameters))}(ze.url,Se.url);return me&&!(!ze.parent!=!Se.parent)&&(!ze.parent||fi(ze.parent,Se.parent))}function Ni(ze,Se,me){if(me&&ze.shouldReuseRoute(Se.value,me.value.snapshot)){const qe=me.value;qe._futureSnapshot=Se.value;const ct=function mn(ze,Se,me){return Se.children.map(qe=>{for(const ct of me.children)if(ze.shouldReuseRoute(qe.value,ct.value.snapshot))return Ni(ze,qe,ct);return Ni(ze,qe)})}(ze,Se,me);return new xt(qe,ct)}{if(ze.shouldAttach(Se.value)){const Pt=ze.retrieve(Se.value);if(null!==Pt){const qt=Pt.route;return qt.value._futureSnapshot=Se.value,qt.children=Se.children.map(ai=>Ni(ze,ai)),qt}}const qe=function In(ze){return new Wi(new L.X(ze.url),new L.X(ze.params),new L.X(ze.queryParams),new L.X(ze.fragment),new L.X(ze.data),ze.outlet,ze.component,ze)}(Se.value),ct=Se.children.map(Pt=>Ni(ze,Pt));return new xt(qe,ct)}}function tr(ze){return"object"==typeof ze&&null!=ze&&!ze.outlets&&!ze.segmentPath}function gn(ze){return"object"==typeof ze&&null!=ze&&ze.outlets}function Ti(ze,Se,me,qe,ct){let Pt={};if(qe&&Zt(qe,(ai,Di)=>{Pt[Di]=Array.isArray(ai)?ai.map(an=>`${an}`):`${ai}`}),ze===Se)return new ye(me,Pt,ct);const qt=Ki(ze,Se,me);return new ye(qt,Pt,ct)}function Ki(ze,Se,me){const qe={};return Zt(ze.children,(ct,Pt)=>{qe[Pt]=ct===Se?me:Ki(ct,Se,me)}),new ht(ze.segments,qe)}class wn{constructor(Se,me,qe){if(this.isAbsolute=Se,this.numberOfDoubleDots=me,this.commands=qe,Se&&qe.length>0&&tr(qe[0]))throw new Error("Root segment cannot have matrix parameters");const ct=qe.find(gn);if(ct&&ct!==di(qe))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class sr{constructor(Se,me,qe){this.segmentGroup=Se,this.processChildren=me,this.index=qe}}function fa(ze,Se,me){if(ze||(ze=new ht([],{})),0===ze.segments.length&&ze.hasChildren())return zr(ze,Se,me);const qe=function ta(ze,Se,me){let qe=0,ct=Se;const Pt={match:!1,pathIndex:0,commandIndex:0};for(;ct=me.length)return Pt;const qt=ze.segments[ct],ai=me[qe];if(gn(ai))break;const Di=`${ai}`,an=qe0&&void 0===Di)break;if(Di&&an&&"object"==typeof an&&void 0===an.outlets){if(!Jr(Di,an,qt))return Pt;qe+=2}else{if(!Jr(Di,{},qt))return Pt;qe++}ct++}return{match:!0,pathIndex:ct,commandIndex:qe}}(ze,Se,me),ct=me.slice(qe.commandIndex);if(qe.match&&qe.pathIndex{"string"==typeof Pt&&(Pt=[Pt]),null!==Pt&&(ct[qt]=fa(ze.children[qt],Se,Pt))}),Zt(ze.children,(Pt,qt)=>{void 0===qe[qt]&&(ct[qt]=Pt)}),new ht(ze.segments,ct)}}function ia(ze,Se,me){const qe=ze.segments.slice(0,Se);let ct=0;for(;ct{"string"==typeof me&&(me=[me]),null!==me&&(Se[qe]=ia(new ht([],{}),0,me))}),Se}function qr(ze){const Se={};return Zt(ze,(me,qe)=>Se[qe]=`${me}`),Se}function Jr(ze,Se,me){return ze==me.path&&pt(Se,me.parameters)}class pa{constructor(Se,me,qe,ct){this.routeReuseStrategy=Se,this.futureState=me,this.currState=qe,this.forwardEvent=ct}activate(Se){const me=this.futureState._root,qe=this.currState?this.currState._root:null;this.deactivateChildRoutes(me,qe,Se),Wt(this.futureState.root),this.activateChildRoutes(me,qe,Se)}deactivateChildRoutes(Se,me,qe){const ct=Bt(me);Se.children.forEach(Pt=>{const qt=Pt.value.outlet;this.deactivateRoutes(Pt,ct[qt],qe),delete ct[qt]}),Zt(ct,(Pt,qt)=>{this.deactivateRouteAndItsChildren(Pt,qe)})}deactivateRoutes(Se,me,qe){const ct=Se.value,Pt=me?me.value:null;if(ct===Pt)if(ct.component){const qt=qe.getContext(ct.outlet);qt&&this.deactivateChildRoutes(Se,me,qt.children)}else this.deactivateChildRoutes(Se,me,qe);else Pt&&this.deactivateRouteAndItsChildren(me,qe)}deactivateRouteAndItsChildren(Se,me){Se.value.component&&this.routeReuseStrategy.shouldDetach(Se.value.snapshot)?this.detachAndStoreRouteSubtree(Se,me):this.deactivateRouteAndOutlet(Se,me)}detachAndStoreRouteSubtree(Se,me){const qe=me.getContext(Se.value.outlet),ct=qe&&Se.value.component?qe.children:me,Pt=Bt(Se);for(const qt of Object.keys(Pt))this.deactivateRouteAndItsChildren(Pt[qt],ct);if(qe&&qe.outlet){const qt=qe.outlet.detach(),ai=qe.children.onOutletDeactivated();this.routeReuseStrategy.store(Se.value.snapshot,{componentRef:qt,route:Se,contexts:ai})}}deactivateRouteAndOutlet(Se,me){const qe=me.getContext(Se.value.outlet),ct=qe&&Se.value.component?qe.children:me,Pt=Bt(Se);for(const qt of Object.keys(Pt))this.deactivateRouteAndItsChildren(Pt[qt],ct);qe&&qe.outlet&&(qe.outlet.deactivate(),qe.children.onOutletDeactivated(),qe.attachRef=null,qe.resolver=null,qe.route=null)}activateChildRoutes(Se,me,qe){const ct=Bt(me);Se.children.forEach(Pt=>{this.activateRoutes(Pt,ct[Pt.value.outlet],qe),this.forwardEvent(new Oe(Pt.value.snapshot))}),Se.children.length&&this.forwardEvent(new Ie(Se.value.snapshot))}activateRoutes(Se,me,qe){const ct=Se.value,Pt=me?me.value:null;if(Wt(ct),ct===Pt)if(ct.component){const qt=qe.getOrCreateContext(ct.outlet);this.activateChildRoutes(Se,me,qt.children)}else this.activateChildRoutes(Se,me,qe);else if(ct.component){const qt=qe.getOrCreateContext(ct.outlet);if(this.routeReuseStrategy.shouldAttach(ct.snapshot)){const ai=this.routeReuseStrategy.retrieve(ct.snapshot);this.routeReuseStrategy.store(ct.snapshot,null),qt.children.onOutletReAttached(ai.contexts),qt.attachRef=ai.componentRef,qt.route=ai.route.value,qt.outlet&&qt.outlet.attach(ai.componentRef,ai.route.value),Wt(ai.route.value),this.activateChildRoutes(Se,null,qt.children)}else{const ai=function Za(ze){for(let Se=ze.parent;Se;Se=Se.parent){const me=Se.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig;if(me&&me.component)return null}return null}(ct.snapshot),Di=ai?ai.module.componentFactoryResolver:null;qt.attachRef=null,qt.route=ct,qt.resolver=Di,qt.outlet&&qt.outlet.activateWith(ct,Di),this.activateChildRoutes(Se,null,qt.children)}}else this.activateChildRoutes(Se,null,qe)}}class Pr{constructor(Se,me){this.routes=Se,this.module=me}}function Yn(ze){return"function"==typeof ze}function cr(ze){return ze instanceof ye}const dr=Symbol("INITIAL_VALUE");function ya(){return(0,q.w)(ze=>(0,w.a)(ze.map(Se=>Se.pipe((0,_e.q)(1),(0,x.O)(dr)))).pipe((0,i.R)((Se,me)=>{let qe=!1;return me.reduce((ct,Pt,qt)=>ct!==dr?ct:(Pt===dr&&(qe=!0),qe||!1!==Pt&&qt!==me.length-1&&!cr(Pt)?ct:Pt),Se)},dr),(0,Y.h)(Se=>Se!==dr),(0,ge.U)(Se=>cr(Se)?Se:!0===Se),(0,_e.q)(1)))}class kr{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Dr,this.attachRef=null}}class Dr{constructor(){this.contexts=new Map}onChildOutletCreated(Se,me){const qe=this.getOrCreateContext(Se);qe.outlet=me,this.contexts.set(Se,qe)}onChildOutletDestroyed(Se){const me=this.getContext(Se);me&&(me.outlet=null,me.attachRef=null)}onOutletDeactivated(){const Se=this.contexts;return this.contexts=new Map,Se}onOutletReAttached(Se){this.contexts=Se}getOrCreateContext(Se){let me=this.getContext(Se);return me||(me=new kr,this.contexts.set(Se,me)),me}getContext(Se){return this.contexts.get(Se)||null}}let ra=(()=>{class ze{constructor(me,qe,ct,Pt,qt){this.parentContexts=me,this.location=qe,this.resolver=ct,this.changeDetector=qt,this.activated=null,this._activatedRoute=null,this.activateEvents=new t.vpe,this.deactivateEvents=new t.vpe,this.attachEvents=new t.vpe,this.detachEvents=new t.vpe,this.name=Pt||ce,me.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const me=this.parentContexts.getContext(this.name);me&&me.route&&(me.attachRef?this.attach(me.attachRef,me.route):this.activateWith(me.route,me.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 me=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(me.instance),me}attach(me,qe){this.activated=me,this._activatedRoute=qe,this.location.insert(me.hostView),this.attachEvents.emit(me.instance)}deactivate(){if(this.activated){const me=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(me)}}activateWith(me,qe){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=me;const qt=(qe=qe||this.resolver).resolveComponentFactory(me._futureSnapshot.routeConfig.component),ai=this.parentContexts.getOrCreateContext(this.name).children,Di=new wa(me,ai,this.location.injector);this.activated=this.location.createComponent(qt,this.location.length,Di),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(Dr),t.Y36(t.s_b),t.Y36(t._Vd),t.$8M("name"),t.Y36(t.sBO))},ze.\u0275dir=t.lG2({type:ze,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),ze})();class wa{constructor(Se,me,qe){this.route=Se,this.childContexts=me,this.parent=qe}get(Se,me){return Se===Wi?this.route:Se===Dr?this.childContexts:this.parent.get(Se,me)}}let Pa=(()=>{class ze{}return ze.\u0275fac=function(me){return new(me||ze)},ze.\u0275cmp=t.Xpm({type:ze,selectors:[["ng-component"]],decls:1,vars:0,template:function(me,qe){1&me&&t._UZ(0,"router-outlet")},directives:[ra],encapsulation:2}),ze})();function ba(ze,Se=""){for(let me=0;meir(qe)===Se);return me.push(...ze.filter(qe=>ir(qe)!==Se)),me}const Yr={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Nr(ze,Se,me){var qe;if(""===Se.path)return"full"===Se.pathMatch&&(ze.hasChildren()||me.length>0)?Object.assign({},Yr):{matched:!0,consumedSegments:[],remainingSegments:me,parameters:{},positionalParamSegments:{}};const Pt=(Se.matcher||fe)(me,ze,Se);if(!Pt)return Object.assign({},Yr);const qt={};Zt(Pt.posParams,(Di,an)=>{qt[an]=Di.path});const ai=Pt.consumed.length>0?Object.assign(Object.assign({},qt),Pt.consumed[Pt.consumed.length-1].parameters):qt;return{matched:!0,consumedSegments:Pt.consumed,remainingSegments:me.slice(Pt.consumed.length),parameters:ai,positionalParamSegments:null!==(qe=Pt.posParams)&&void 0!==qe?qe:{}}}function Br(ze,Se,me,qe,ct="corrected"){if(me.length>0&&function Xn(ze,Se,me){return me.some(qe=>Et(ze,Se,qe)&&ir(qe)!==ce)}(ze,me,qe)){const qt=new ht(Se,function Xa(ze,Se,me,qe){const ct={};ct[ce]=qe,qe._sourceSegment=ze,qe._segmentIndexShift=Se.length;for(const Pt of me)if(""===Pt.path&&ir(Pt)!==ce){const qt=new ht([],{});qt._sourceSegment=ze,qt._segmentIndexShift=Se.length,ct[ir(Pt)]=qt}return ct}(ze,Se,qe,new ht(me,ze.children)));return qt._sourceSegment=ze,qt._segmentIndexShift=Se.length,{segmentGroup:qt,slicedSegments:[]}}if(0===me.length&&function $e(ze,Se,me){return me.some(qe=>Et(ze,Se,qe))}(ze,me,qe)){const qt=new ht(ze.segments,function Sa(ze,Se,me,qe,ct,Pt){const qt={};for(const ai of qe)if(Et(ze,me,ai)&&!ct[ir(ai)]){const Di=new ht([],{});Di._sourceSegment=ze,Di._segmentIndexShift="legacy"===Pt?ze.segments.length:Se.length,qt[ir(ai)]=Di}return Object.assign(Object.assign({},ct),qt)}(ze,Se,me,qe,ze.children,ct));return qt._sourceSegment=ze,qt._segmentIndexShift=Se.length,{segmentGroup:qt,slicedSegments:me}}const Pt=new ht(ze.segments,ze.children);return Pt._sourceSegment=ze,Pt._segmentIndexShift=Se.length,{segmentGroup:Pt,slicedSegments:me}}function Et(ze,Se,me){return(!(ze.hasChildren()||Se.length>0)||"full"!==me.pathMatch)&&""===me.path}function Je(ze,Se,me,qe){return!!(ir(ze)===qe||qe!==ce&&Et(Se,me,ze))&&("**"===ze.path||Nr(Se,ze,me).matched)}function kt(ze,Se,me){return 0===Se.length&&!ze.children[me]}class Xt{constructor(Se){this.segmentGroup=Se||null}}class Mi{constructor(Se){this.urlTree=Se}}function Pi(ze){return(0,D._)(new Xt(ze))}function en(ze){return(0,D._)(new Mi(ze))}class ci{constructor(Se,me,qe,ct,Pt){this.configLoader=me,this.urlSerializer=qe,this.urlTree=ct,this.config=Pt,this.allowRedirects=!0,this.ngModule=Se.get(t.h0i)}apply(){const Se=Br(this.urlTree.root,[],[],this.config).segmentGroup,me=new ht(Se.segments,Se.children);return this.expandSegmentGroup(this.ngModule,this.config,me,ce).pipe((0,ge.U)(Pt=>this.createUrlTree(jt(Pt),this.urlTree.queryParams,this.urlTree.fragment))).pipe((0,r.K)(Pt=>{if(Pt instanceof Mi)return this.allowRedirects=!1,this.match(Pt.urlTree);throw Pt instanceof Xt?this.noMatchError(Pt):Pt}))}match(Se){return this.expandSegmentGroup(this.ngModule,this.config,Se.root,ce).pipe((0,ge.U)(ct=>this.createUrlTree(jt(ct),Se.queryParams,Se.fragment))).pipe((0,r.K)(ct=>{throw ct instanceof Xt?this.noMatchError(ct):ct}))}noMatchError(Se){return new Error(`Cannot match any routes. URL Segment: '${Se.segmentGroup}'`)}createUrlTree(Se,me,qe){const ct=Se.segments.length>0?new ht([],{[ce]:Se}):Se;return new ye(ct,me,qe)}expandSegmentGroup(Se,me,qe,ct){return 0===qe.segments.length&&qe.hasChildren()?this.expandChildren(Se,me,qe).pipe((0,ge.U)(Pt=>new ht([],Pt))):this.expandSegment(Se,qe,me,qe.segments,ct,!0)}expandChildren(Se,me,qe){const ct=[];for(const Pt of Object.keys(qe.children))"primary"===Pt?ct.unshift(Pt):ct.push(Pt);return(0,R.D)(ct).pipe((0,u.b)(Pt=>{const qt=qe.children[Pt],ai=sa(me,Pt);return this.expandSegmentGroup(Se,ai,qt,Pt).pipe((0,ge.U)(Di=>({segment:Di,outlet:Pt})))}),(0,i.R)((Pt,qt)=>(Pt[qt.outlet]=qt.segment,Pt),{}),function re(ze,Se){const me=arguments.length>=2;return qe=>qe.pipe(ze?(0,Y.h)((ct,Pt)=>ze(ct,Pt,qe)):ne.y,ae(1),me?(0,ue.d)(Se):(0,ee.T)(()=>new S.K))}())}expandSegment(Se,me,qe,ct,Pt,qt){return(0,R.D)(qe).pipe((0,u.b)(ai=>this.expandSegmentAgainstRoute(Se,me,qe,ai,ct,Pt,qt).pipe((0,r.K)(an=>{if(an instanceof Xt)return(0,h.of)(null);throw an}))),(0,c.P)(ai=>!!ai),(0,r.K)((ai,Di)=>{if(ai instanceof S.K||"EmptyError"===ai.name)return kt(me,ct,Pt)?(0,h.of)(new ht([],{})):Pi(me);throw ai}))}expandSegmentAgainstRoute(Se,me,qe,ct,Pt,qt,ai){return Je(ct,me,Pt,qt)?void 0===ct.redirectTo?this.matchSegmentAgainstRoute(Se,me,ct,Pt,qt):ai&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt):Pi(me):Pi(me)}expandSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt){return"**"===ct.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(Se,qe,ct,qt):this.expandRegularSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt)}expandWildCardWithParamsAgainstRouteUsingRedirect(Se,me,qe,ct){const Pt=this.applyRedirectCommands([],qe.redirectTo,{});return qe.redirectTo.startsWith("/")?en(Pt):this.lineralizeSegments(qe,Pt).pipe((0,v.z)(qt=>{const ai=new ht(qt,{});return this.expandSegment(Se,ai,me,qt,ct,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(Se,me,qe,ct,Pt,qt){const{matched:ai,consumedSegments:Di,remainingSegments:an,positionalParamSegments:Pn}=Nr(me,ct,Pt);if(!ai)return Pi(me);const Cn=this.applyRedirectCommands(Di,ct.redirectTo,Pn);return ct.redirectTo.startsWith("/")?en(Cn):this.lineralizeSegments(ct,Cn).pipe((0,v.z)(gr=>this.expandSegment(Se,me,qe,gr.concat(an),qt,!1)))}matchSegmentAgainstRoute(Se,me,qe,ct,Pt){if("**"===qe.path)return qe.loadChildren?(qe._loadedConfig?(0,h.of)(qe._loadedConfig):this.configLoader.load(Se.injector,qe)).pipe((0,ge.U)(Cn=>(qe._loadedConfig=Cn,new ht(ct,{})))):(0,h.of)(new ht(ct,{}));const{matched:qt,consumedSegments:ai,remainingSegments:Di}=Nr(me,qe,ct);return qt?this.getChildConfig(Se,qe,ct).pipe((0,v.z)(Pn=>{const Cn=Pn.module,gr=Pn.routes,{segmentGroup:hr,slicedSegments:ss}=Br(me,ai,Di,gr),za=new ht(hr.segments,hr.children);if(0===ss.length&&za.hasChildren())return this.expandChildren(Cn,gr,za).pipe((0,ge.U)(Bs=>new ht(ai,Bs)));if(0===gr.length&&0===ss.length)return(0,h.of)(new ht(ai,{}));const Qo=ir(qe)===Pt;return this.expandSegment(Cn,za,gr,ss,Qo?ce:Pt,!0).pipe((0,ge.U)(Da=>new ht(ai.concat(Da.segments),Da.children)))})):Pi(me)}getChildConfig(Se,me,qe){return me.children?(0,h.of)(new Pr(me.children,Se)):me.loadChildren?void 0!==me._loadedConfig?(0,h.of)(me._loadedConfig):this.runCanLoadGuards(Se.injector,me,qe).pipe((0,v.z)(ct=>ct?this.configLoader.load(Se.injector,me).pipe((0,ge.U)(Pt=>(me._loadedConfig=Pt,Pt))):function Bn(ze){return(0,D._)(te(`Cannot load children because the guard of the route "path: '${ze.path}'" returned false`))}(me))):(0,h.of)(new Pr([],Se))}runCanLoadGuards(Se,me,qe){const ct=me.canLoad;if(!ct||0===ct.length)return(0,h.of)(!0);const Pt=ct.map(qt=>{const ai=Se.get(qt);let Di;if(function Wa(ze){return ze&&Yn(ze.canLoad)}(ai))Di=ai.canLoad(me,qe);else{if(!Yn(ai))throw new Error("Invalid CanLoad guard");Di=ai(me,qe)}return ui(Di)});return(0,h.of)(Pt).pipe(ya(),(0,T.b)(qt=>{if(!cr(qt))return;const ai=te(`Redirecting to "${this.urlSerializer.serialize(qt)}"`);throw ai.url=qt,ai}),(0,ge.U)(qt=>!0===qt))}lineralizeSegments(Se,me){let qe=[],ct=me.root;for(;;){if(qe=qe.concat(ct.segments),0===ct.numberOfChildren)return(0,h.of)(qe);if(ct.numberOfChildren>1||!ct.children[ce])return(0,D._)(new Error(`Only absolute redirects can have named outlets. redirectTo: '${Se.redirectTo}'`));ct=ct.children[ce]}}applyRedirectCommands(Se,me,qe){return this.applyRedirectCreatreUrlTree(me,this.urlSerializer.parse(me),Se,qe)}applyRedirectCreatreUrlTree(Se,me,qe,ct){const Pt=this.createSegmentGroup(Se,me.root,qe,ct);return new ye(Pt,this.createQueryParams(me.queryParams,this.urlTree.queryParams),me.fragment)}createQueryParams(Se,me){const qe={};return Zt(Se,(ct,Pt)=>{if("string"==typeof ct&&ct.startsWith(":")){const ai=ct.substring(1);qe[Pt]=me[ai]}else qe[Pt]=ct}),qe}createSegmentGroup(Se,me,qe,ct){const Pt=this.createSegments(Se,me.segments,qe,ct);let qt={};return Zt(me.children,(ai,Di)=>{qt[Di]=this.createSegmentGroup(Se,ai,qe,ct)}),new ht(Pt,qt)}createSegments(Se,me,qe,ct){return me.map(Pt=>Pt.path.startsWith(":")?this.findPosParam(Se,Pt,ct):this.findOrReturn(Pt,qe))}findPosParam(Se,me,qe){const ct=qe[me.path.substring(1)];if(!ct)throw new Error(`Cannot redirect to '${Se}'. Cannot find '${me.path}'.`);return ct}findOrReturn(Se,me){let qe=0;for(const ct of me){if(ct.path===Se.path)return me.splice(qe),ct;qe++}return Se}}function jt(ze){const Se={};for(const qe of Object.keys(ze.children)){const Pt=jt(ze.children[qe]);(Pt.segments.length>0||Pt.hasChildren())&&(Se[qe]=Pt)}return function vt(ze){if(1===ze.numberOfChildren&&ze.children[ce]){const Se=ze.children[ce];return new ht(ze.segments.concat(Se.segments),Se.children)}return ze}(new ht(ze.segments,Se))}class je{constructor(Se){this.path=Se,this.route=this.path[this.path.length-1]}}class Ye{constructor(Se,me){this.component=Se,this.route=me}}function Fe(ze,Se,me){const qe=ze._root;return Un(qe,Se?Se._root:null,me,[qe.value])}function wi(ze,Se,me){const qe=function Gi(ze){if(!ze)return null;for(let Se=ze.parent;Se;Se=Se.parent){const me=Se.routeConfig;if(me&&me._loadedConfig)return me._loadedConfig}return null}(Se);return(qe?qe.module.injector:me).get(ze)}function Un(ze,Se,me,qe,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Pt=Bt(Se);return ze.children.forEach(qt=>{(function br(ze,Se,me,qe,ct={canDeactivateChecks:[],canActivateChecks:[]}){const Pt=ze.value,qt=Se?Se.value:null,ai=me?me.getContext(ze.value.outlet):null;if(qt&&Pt.routeConfig===qt.routeConfig){const Di=function Fa(ze,Se,me){if("function"==typeof me)return me(ze,Se);switch(me){case"pathParamsChange":return!nt(ze.url,Se.url);case"pathParamsOrQueryParamsChange":return!nt(ze.url,Se.url)||!pt(ze.queryParams,Se.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!fi(ze,Se)||!pt(ze.queryParams,Se.queryParams);default:return!fi(ze,Se)}}(qt,Pt,Pt.routeConfig.runGuardsAndResolvers);Di?ct.canActivateChecks.push(new je(qe)):(Pt.data=qt.data,Pt._resolvedData=qt._resolvedData),Un(ze,Se,Pt.component?ai?ai.children:null:me,qe,ct),Di&&ai&&ai.outlet&&ai.outlet.isActivated&&ct.canDeactivateChecks.push(new Ye(ai.outlet.component,qt))}else qt&&xa(Se,ai,ct),ct.canActivateChecks.push(new je(qe)),Un(ze,null,Pt.component?ai?ai.children:null:me,qe,ct)})(qt,Pt[qt.value.outlet],me,qe.concat([qt.value]),ct),delete Pt[qt.value.outlet]}),Zt(Pt,(qt,ai)=>xa(qt,me.getContext(ai),ct)),ct}function xa(ze,Se,me){const qe=Bt(ze),ct=ze.value;Zt(qe,(Pt,qt)=>{xa(Pt,ct.component?Se?Se.children.getContext(qt):null:Se,me)}),me.canDeactivateChecks.push(new Ye(ct.component&&Se&&Se.outlet&&Se.outlet.isActivated?Se.outlet.component:null,ct))}class Ls{}function Ds(ze){return new e.y(Se=>Se.error(ze))}class zs{constructor(Se,me,qe,ct,Pt,qt){this.rootComponentType=Se,this.config=me,this.urlTree=qe,this.url=ct,this.paramsInheritanceStrategy=Pt,this.relativeLinkResolution=qt}recognize(){const Se=Br(this.urlTree.root,[],[],this.config.filter(qt=>void 0===qt.redirectTo),this.relativeLinkResolution).segmentGroup,me=this.processSegmentGroup(this.config,Se,ce);if(null===me)return null;const qe=new ii([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},ce,this.rootComponentType,null,this.urlTree.root,-1,{}),ct=new xt(qe,me),Pt=new Ri(this.url,ct);return this.inheritParamsAndData(Pt._root),Pt}inheritParamsAndData(Se){const me=Se.value,qe=on(me,this.paramsInheritanceStrategy);me.params=Object.freeze(qe.params),me.data=Object.freeze(qe.data),Se.children.forEach(ct=>this.inheritParamsAndData(ct))}processSegmentGroup(Se,me,qe){return 0===me.segments.length&&me.hasChildren()?this.processChildren(Se,me):this.processSegment(Se,me,me.segments,qe)}processChildren(Se,me){const qe=[];for(const Pt of Object.keys(me.children)){const qt=me.children[Pt],ai=sa(Se,Pt),Di=this.processSegmentGroup(ai,qt,Pt);if(null===Di)return null;qe.push(...Di)}const ct=ka(qe);return function Vs(ze){ze.sort((Se,me)=>Se.value.outlet===ce?-1:me.value.outlet===ce?1:Se.value.outlet.localeCompare(me.value.outlet))}(ct),ct}processSegment(Se,me,qe,ct){for(const Pt of Se){const qt=this.processSegmentAgainstRoute(Pt,me,qe,ct);if(null!==qt)return qt}return kt(me,qe,ct)?[]:null}processSegmentAgainstRoute(Se,me,qe,ct){if(Se.redirectTo||!Je(Se,me,qe,ct))return null;let Pt,qt=[],ai=[];if("**"===Se.path){const hr=qe.length>0?di(qe).parameters:{};Pt=new ii(qe,hr,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(Se),ir(Se),Se.component,Se,oe(me),pe(me)+qe.length,Mt(Se))}else{const hr=Nr(me,Se,qe);if(!hr.matched)return null;qt=hr.consumedSegments,ai=hr.remainingSegments,Pt=new ii(qt,hr.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,Ke(Se),ir(Se),Se.component,Se,oe(me),pe(me)+qt.length,Mt(Se))}const Di=function as(ze){return ze.children?ze.children:ze.loadChildren?ze._loadedConfig.routes:[]}(Se),{segmentGroup:an,slicedSegments:Pn}=Br(me,qt,ai,Di.filter(hr=>void 0===hr.redirectTo),this.relativeLinkResolution);if(0===Pn.length&&an.hasChildren()){const hr=this.processChildren(Di,an);return null===hr?null:[new xt(Pt,hr)]}if(0===Di.length&&0===Pn.length)return[new xt(Pt,[])];const Cn=ir(Se)===ct,gr=this.processSegment(Di,an,Pn,Cn?ce:ct);return null===gr?null:[new xt(Pt,gr)]}}function Ur(ze){const Se=ze.value.routeConfig;return Se&&""===Se.path&&void 0===Se.redirectTo}function ka(ze){const Se=[],me=new Set;for(const qe of ze){if(!Ur(qe)){Se.push(qe);continue}const ct=Se.find(Pt=>qe.value.routeConfig===Pt.value.routeConfig);void 0!==ct?(ct.children.push(...qe.children),me.add(ct)):Se.push(qe)}for(const qe of me){const ct=ka(qe.children);Se.push(new xt(qe.value,ct))}return Se.filter(qe=>!me.has(qe))}function oe(ze){let Se=ze;for(;Se._sourceSegment;)Se=Se._sourceSegment;return Se}function pe(ze){let Se=ze,me=Se._segmentIndexShift?Se._segmentIndexShift:0;for(;Se._sourceSegment;)Se=Se._sourceSegment,me+=Se._segmentIndexShift?Se._segmentIndexShift:0;return me-1}function Ke(ze){return ze.data||{}}function Mt(ze){return ze.resolve||{}}function ki(ze){return[...Object.keys(ze),...Object.getOwnPropertySymbols(ze)]}function dn(ze){return(0,q.w)(Se=>{const me=ze(Se);return me?(0,R.D)(me).pipe((0,ge.U)(()=>Se)):(0,h.of)(Se)})}class En extends class Gn{shouldDetach(Se){return!1}store(Se,me){}shouldAttach(Se){return!1}retrieve(Se){return null}shouldReuseRoute(Se,me){return Se.routeConfig===me.routeConfig}}{}const kn=new t.OlP("ROUTES");class ar{constructor(Se,me,qe,ct){this.injector=Se,this.compiler=me,this.onLoadStartListener=qe,this.onLoadEndListener=ct}load(Se,me){if(me._loader$)return me._loader$;this.onLoadStartListener&&this.onLoadStartListener(me);const ct=this.loadModuleFactory(me.loadChildren).pipe((0,ge.U)(Pt=>{this.onLoadEndListener&&this.onLoadEndListener(me);const qt=Pt.create(Se);return new Pr(Dt(qt.injector.get(kn,void 0,t.XFs.Self|t.XFs.Optional)).map(Ha),qt)}),(0,r.K)(Pt=>{throw me._loader$=void 0,Pt}));return me._loader$=new d(ct,()=>new Z.x).pipe(C()),me._loader$}loadModuleFactory(Se){return ui(Se()).pipe((0,v.z)(me=>me instanceof t.YKP?(0,h.of)(me):(0,R.D)(this.compiler.compileModuleAsync(me))))}}class yr{shouldProcessUrl(Se){return!0}extract(Se){return Se}merge(Se,me){return Se}}function oa(ze){throw ze}function Xr(ze,Se,me){return Se.parse("/")}function Mr(ze,Se){return(0,h.of)(null)}const jr={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Zn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let xr=(()=>{class ze{constructor(me,qe,ct,Pt,qt,ai,Di){this.rootComponentType=me,this.urlSerializer=qe,this.rootContexts=ct,this.location=Pt,this.config=Di,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Z.x,this.errorHandler=oa,this.malformedUriErrorHandler=Xr,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Mr,afterPreactivation:Mr},this.urlHandlingStrategy=new yr,this.routeReuseStrategy=new En,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=qt.get(t.h0i),this.console=qt.get(t.c2e);const Cn=qt.get(t.R0b);this.isNgZoneEnabled=Cn instanceof t.R0b&&t.R0b.isInAngularZone(),this.resetConfig(Di),this.currentUrlTree=function Ot(){return new ye(new ht([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new ar(qt,ai,gr=>this.triggerEvent(new Ve(gr)),gr=>this.triggerEvent(new Me(gr))),this.routerState=Si(this.currentUrlTree,this.rootComponentType),this.transitions=new L.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()}get browserPageId(){var me;return null===(me=this.location.getState())||void 0===me?void 0:me.\u0275routerPageId}setupNavigations(me){const qe=this.events;return me.pipe((0,Y.h)(ct=>0!==ct.id),(0,ge.U)(ct=>Object.assign(Object.assign({},ct),{extractedUrl:this.urlHandlingStrategy.extract(ct.rawUrl)})),(0,q.w)(ct=>{let Pt=!1,qt=!1;return(0,h.of)(ct).pipe((0,T.b)(ai=>{this.currentNavigation={id:ai.id,initialUrl:ai.currentRawUrl,extractedUrl:ai.extractedUrl,trigger:ai.source,extras:ai.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),(0,q.w)(ai=>{const Di=this.browserUrlTree.toString(),an=!this.navigated||ai.extractedUrl.toString()!==Di||Di!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||an)&&this.urlHandlingStrategy.shouldProcessUrl(ai.rawUrl))return la(ai.source)&&(this.browserUrlTree=ai.extractedUrl),(0,h.of)(ai).pipe((0,q.w)(Cn=>{const gr=this.transitions.getValue();return qe.next(new V(Cn.id,this.serializeUrl(Cn.extractedUrl),Cn.source,Cn.restoredState)),gr!==this.transitions.getValue()?B.E:Promise.resolve(Cn)}),function Oi(ze,Se,me,qe){return(0,q.w)(ct=>function It(ze,Se,me,qe,ct){return new ci(ze,Se,me,qe,ct).apply()}(ze,Se,me,ct.extractedUrl,qe).pipe((0,ge.U)(Pt=>Object.assign(Object.assign({},ct),{urlAfterRedirects:Pt}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),(0,T.b)(Cn=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:Cn.urlAfterRedirects})}),function Vt(ze,Se,me,qe,ct){return(0,v.z)(Pt=>function Fs(ze,Se,me,qe,ct="emptyOnly",Pt="legacy"){try{const qt=new zs(ze,Se,me,qe,ct,Pt).recognize();return null===qt?Ds(new Ls):(0,h.of)(qt)}catch(qt){return Ds(qt)}}(ze,Se,Pt.urlAfterRedirects,me(Pt.urlAfterRedirects),qe,ct).pipe((0,ge.U)(qt=>Object.assign(Object.assign({},Pt),{targetSnapshot:qt}))))}(this.rootComponentType,this.config,Cn=>this.serializeUrl(Cn),this.paramsInheritanceStrategy,this.relativeLinkResolution),(0,T.b)(Cn=>{if("eager"===this.urlUpdateStrategy){if(!Cn.extras.skipLocationChange){const hr=this.urlHandlingStrategy.merge(Cn.urlAfterRedirects,Cn.rawUrl);this.setBrowserUrl(hr,Cn)}this.browserUrlTree=Cn.urlAfterRedirects}const gr=new he(Cn.id,this.serializeUrl(Cn.extractedUrl),this.serializeUrl(Cn.urlAfterRedirects),Cn.targetSnapshot);qe.next(gr)}));if(an&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:gr,extractedUrl:hr,source:ss,restoredState:za,extras:Qo}=ai,qo=new V(gr,this.serializeUrl(hr),ss,za);qe.next(qo);const Da=Si(hr,this.rootComponentType).snapshot;return(0,h.of)(Object.assign(Object.assign({},ai),{targetSnapshot:Da,urlAfterRedirects:hr,extras:Object.assign(Object.assign({},Qo),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=ai.rawUrl,ai.resolve(null),B.E}),dn(ai=>{const{targetSnapshot:Di,id:an,extractedUrl:Pn,rawUrl:Cn,extras:{skipLocationChange:gr,replaceUrl:hr}}=ai;return this.hooks.beforePreactivation(Di,{navigationId:an,appliedUrlTree:Pn,rawUrlTree:Cn,skipLocationChange:!!gr,replaceUrl:!!hr})}),(0,T.b)(ai=>{const Di=new be(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot);this.triggerEvent(Di)}),(0,ge.U)(ai=>Object.assign(Object.assign({},ai),{guards:Fe(ai.targetSnapshot,ai.currentSnapshot,this.rootContexts)})),function Ea(ze,Se){return(0,v.z)(me=>{const{targetSnapshot:qe,currentSnapshot:ct,guards:{canActivateChecks:Pt,canDeactivateChecks:qt}}=me;return 0===qt.length&&0===Pt.length?(0,h.of)(Object.assign(Object.assign({},me),{guardsResult:!0})):function Fi(ze,Se,me,qe){return(0,R.D)(ze).pipe((0,v.z)(ct=>function Ta(ze,Se,me,qe,ct){const Pt=Se&&Se.routeConfig?Se.routeConfig.canDeactivate:null;if(!Pt||0===Pt.length)return(0,h.of)(!0);const qt=Pt.map(ai=>{const Di=wi(ai,Se,ct);let an;if(function va(ze){return ze&&Yn(ze.canDeactivate)}(Di))an=ui(Di.canDeactivate(ze,Se,me,qe));else{if(!Yn(Di))throw new Error("Invalid CanDeactivate guard");an=ui(Di(ze,Se,me,qe))}return an.pipe((0,c.P)())});return(0,h.of)(qt).pipe(ya())}(ct.component,ct.route,me,Se,qe)),(0,c.P)(ct=>!0!==ct,!0))}(qt,qe,ct,ze).pipe((0,v.z)(ai=>ai&&function Vr(ze){return"boolean"==typeof ze}(ai)?function jn(ze,Se,me,qe){return(0,R.D)(Se).pipe((0,u.b)(ct=>(0,k.z)(function Er(ze,Se){return null!==ze&&Se&&Se(new J(ze)),(0,h.of)(!0)}(ct.route.parent,qe),function Hs(ze,Se){return null!==ze&&Se&&Se(new ut(ze)),(0,h.of)(!0)}(ct.route,qe),function gs(ze,Se,me){const qe=Se[Se.length-1],Pt=Se.slice(0,Se.length-1).reverse().map(qt=>function At(ze){const Se=ze.routeConfig?ze.routeConfig.canActivateChild:null;return Se&&0!==Se.length?{node:ze,guards:Se}:null}(qt)).filter(qt=>null!==qt).map(qt=>(0,E.P)(()=>{const ai=qt.guards.map(Di=>{const an=wi(Di,qt.node,me);let Pn;if(function Ya(ze){return ze&&Yn(ze.canActivateChild)}(an))Pn=ui(an.canActivateChild(qe,ze));else{if(!Yn(an))throw new Error("Invalid CanActivateChild guard");Pn=ui(an(qe,ze))}return Pn.pipe((0,c.P)())});return(0,h.of)(ai).pipe(ya())}));return(0,h.of)(Pt).pipe(ya())}(ze,ct.path,me),function to(ze,Se,me){const qe=Se.routeConfig?Se.routeConfig.canActivate:null;if(!qe||0===qe.length)return(0,h.of)(!0);const ct=qe.map(Pt=>(0,E.P)(()=>{const qt=wi(Pt,Se,me);let ai;if(function Wr(ze){return ze&&Yn(ze.canActivate)}(qt))ai=ui(qt.canActivate(Se,ze));else{if(!Yn(qt))throw new Error("Invalid CanActivate guard");ai=ui(qt(Se,ze))}return ai.pipe((0,c.P)())}));return(0,h.of)(ct).pipe(ya())}(ze,ct.route,me))),(0,c.P)(ct=>!0!==ct,!0))}(qe,Pt,ze,Se):(0,h.of)(ai)),(0,ge.U)(ai=>Object.assign(Object.assign({},me),{guardsResult:ai})))})}(this.ngModule.injector,ai=>this.triggerEvent(ai)),(0,T.b)(ai=>{if(cr(ai.guardsResult)){const an=te(`Redirecting to "${this.serializeUrl(ai.guardsResult)}"`);throw an.url=ai.guardsResult,an}const Di=new Pe(ai.id,this.serializeUrl(ai.extractedUrl),this.serializeUrl(ai.urlAfterRedirects),ai.targetSnapshot,!!ai.guardsResult);this.triggerEvent(Di)}),(0,Y.h)(ai=>!!ai.guardsResult||(this.restoreHistory(ai),this.cancelNavigationTransition(ai,""),!1)),dn(ai=>{if(ai.guards.canActivateChecks.length)return(0,h.of)(ai).pipe((0,T.b)(Di=>{const an=new Ee(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(an)}),(0,q.w)(Di=>{let an=!1;return(0,h.of)(Di).pipe(function ri(ze,Se){return(0,v.z)(me=>{const{targetSnapshot:qe,guards:{canActivateChecks:ct}}=me;if(!ct.length)return(0,h.of)(me);let Pt=0;return(0,R.D)(ct).pipe((0,u.b)(qt=>function ni(ze,Se,me,qe){return function gi(ze,Se,me,qe){const ct=ki(ze);if(0===ct.length)return(0,h.of)({});const Pt={};return(0,R.D)(ct).pipe((0,v.z)(qt=>function $i(ze,Se,me,qe){const ct=wi(ze,Se,qe);return ui(ct.resolve?ct.resolve(Se,me):ct(Se,me))}(ze[qt],Se,me,qe).pipe((0,T.b)(ai=>{Pt[qt]=ai}))),ae(1),(0,v.z)(()=>ki(Pt).length===ct.length?(0,h.of)(Pt):B.E))}(ze._resolve,ze,Se,qe).pipe((0,ge.U)(Pt=>(ze._resolvedData=Pt,ze.data=Object.assign(Object.assign({},ze.data),on(ze,me).resolve),null)))}(qt.route,qe,ze,Se)),(0,T.b)(()=>Pt++),ae(1),(0,v.z)(qt=>Pt===ct.length?(0,h.of)(me):B.E))})}(this.paramsInheritanceStrategy,this.ngModule.injector),(0,T.b)({next:()=>an=!0,complete:()=>{an||(this.restoreHistory(Di),this.cancelNavigationTransition(Di,"At least one route resolver didn't emit any value."))}}))}),(0,T.b)(Di=>{const an=new j(Di.id,this.serializeUrl(Di.extractedUrl),this.serializeUrl(Di.urlAfterRedirects),Di.targetSnapshot);this.triggerEvent(an)}))}),dn(ai=>{const{targetSnapshot:Di,id:an,extractedUrl:Pn,rawUrl:Cn,extras:{skipLocationChange:gr,replaceUrl:hr}}=ai;return this.hooks.afterPreactivation(Di,{navigationId:an,appliedUrlTree:Pn,rawUrlTree:Cn,skipLocationChange:!!gr,replaceUrl:!!hr})}),(0,ge.U)(ai=>{const Di=function Ei(ze,Se,me){const qe=Ni(ze,Se._root,me?me._root:void 0);return new bi(qe,Se)}(this.routeReuseStrategy,ai.targetSnapshot,ai.currentRouterState);return Object.assign(Object.assign({},ai),{targetRouterState:Di})}),(0,T.b)(ai=>{this.currentUrlTree=ai.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(ai.urlAfterRedirects,ai.rawUrl),this.routerState=ai.targetRouterState,"deferred"===this.urlUpdateStrategy&&(ai.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,ai),this.browserUrlTree=ai.urlAfterRedirects)}),((ze,Se,me)=>(0,ge.U)(qe=>(new pa(Se,qe.targetRouterState,qe.currentRouterState,me).activate(ze),qe)))(this.rootContexts,this.routeReuseStrategy,ai=>this.triggerEvent(ai)),(0,T.b)({next(){Pt=!0},complete(){Pt=!0}}),(0,I.x)(()=>{var ai;Pt||qt||this.cancelNavigationTransition(ct,`Navigation ID ${ct.id} is not equal to the current navigation id ${this.navigationId}`),(null===(ai=this.currentNavigation)||void 0===ai?void 0:ai.id)===ct.id&&(this.currentNavigation=null)}),(0,r.K)(ai=>{if(qt=!0,function Ce(ze){return ze&&ze[W]}(ai)){const Di=cr(ai.url);Di||(this.navigated=!0,this.restoreHistory(ct,!0));const an=new H(ct.id,this.serializeUrl(ct.extractedUrl),ai.message);qe.next(an),Di?setTimeout(()=>{const Pn=this.urlHandlingStrategy.merge(ai.url,this.rawUrlTree),Cn={skipLocationChange:ct.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||la(ct.source)};this.scheduleNavigation(Pn,"imperative",null,Cn,{resolve:ct.resolve,reject:ct.reject,promise:ct.promise})},0):ct.resolve(!1)}else{this.restoreHistory(ct,!0);const Di=new X(ct.id,this.serializeUrl(ct.extractedUrl),ai);qe.next(Di);try{ct.resolve(this.errorHandler(ai))}catch(an){ct.reject(an)}}return B.E}))}))}resetRootComponentType(me){this.rootComponentType=me,this.routerState.root.component=this.rootComponentType}setTransition(me){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),me))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(me=>{const qe="popstate"===me.type?"popstate":"hashchange";"popstate"===qe&&setTimeout(()=>{var ct;const Pt={replaceUrl:!0},qt=(null===(ct=me.state)||void 0===ct?void 0:ct.navigationId)?me.state:null;if(qt){const Di=Object.assign({},qt);delete Di.navigationId,delete Di.\u0275routerPageId,0!==Object.keys(Di).length&&(Pt.state=Di)}const ai=this.parseUrl(me.url);this.scheduleNavigation(ai,qe,qt,Pt)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(me){this.events.next(me)}resetConfig(me){ba(me),this.config=me.map(Ha),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(me,qe={}){const{relativeTo:ct,queryParams:Pt,fragment:qt,queryParamsHandling:ai,preserveFragment:Di}=qe,an=ct||this.routerState.root,Pn=Di?this.currentUrlTree.fragment:qt;let Cn=null;switch(ai){case"merge":Cn=Object.assign(Object.assign({},this.currentUrlTree.queryParams),Pt);break;case"preserve":Cn=this.currentUrlTree.queryParams;break;default:Cn=Pt||null}return null!==Cn&&(Cn=this.removeEmptyProps(Cn)),function Rn(ze,Se,me,qe,ct){if(0===me.length)return Ti(Se.root,Se.root,Se.root,qe,ct);const Pt=function qn(ze){if("string"==typeof ze[0]&&1===ze.length&&"/"===ze[0])return new wn(!0,0,ze);let Se=0,me=!1;const qe=ze.reduce((ct,Pt,qt)=>{if("object"==typeof Pt&&null!=Pt){if(Pt.outlets){const ai={};return Zt(Pt.outlets,(Di,an)=>{ai[an]="string"==typeof Di?Di.split("/"):Di}),[...ct,{outlets:ai}]}if(Pt.segmentPath)return[...ct,Pt.segmentPath]}return"string"!=typeof Pt?[...ct,Pt]:0===qt?(Pt.split("/").forEach((ai,Di)=>{0==Di&&"."===ai||(0==Di&&""===ai?me=!0:".."===ai?Se++:""!=ai&&ct.push(ai))}),ct):[...ct,Pt]},[]);return new wn(me,Se,qe)}(me);if(Pt.toRoot())return Ti(Se.root,Se.root,new ht([],{}),qe,ct);const qt=function ha(ze,Se,me){if(ze.isAbsolute)return new sr(Se.root,!0,0);if(-1===me.snapshot._lastPathIndex){const Pt=me.snapshot._urlSegment;return new sr(Pt,Pt===Se.root,0)}const qe=tr(ze.commands[0])?0:1;return function _a(ze,Se,me){let qe=ze,ct=Se,Pt=me;for(;Pt>ct;){if(Pt-=ct,qe=qe.parent,!qe)throw new Error("Invalid number of '../'");ct=qe.segments.length}return new sr(qe,!1,ct-Pt)}(me.snapshot._urlSegment,me.snapshot._lastPathIndex+qe,ze.numberOfDoubleDots)}(Pt,Se,ze),ai=qt.processChildren?zr(qt.segmentGroup,qt.index,Pt.commands):fa(qt.segmentGroup,qt.index,Pt.commands);return Ti(Se.root,qt.segmentGroup,ai,qe,ct)}(an,this.currentUrlTree,me,Cn,null!=Pn?Pn:null)}navigateByUrl(me,qe={skipLocationChange:!1}){const ct=cr(me)?me:this.parseUrl(me),Pt=this.urlHandlingStrategy.merge(ct,this.rawUrlTree);return this.scheduleNavigation(Pt,"imperative",null,qe)}navigate(me,qe={skipLocationChange:!1}){return function ja(ze){for(let Se=0;Se{const Pt=me[ct];return null!=Pt&&(qe[ct]=Pt),qe},{})}processNavigations(){this.navigations.subscribe(me=>{this.navigated=!0,this.lastSuccessfulId=me.id,this.currentPageId=me.targetPageId,this.events.next(new N(me.id,this.serializeUrl(me.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,me.resolve(!0)},me=>{this.console.warn(`Unhandled Navigation Error: ${me}`)})}scheduleNavigation(me,qe,ct,Pt,qt){var ai,Di;if(this.disposed)return Promise.resolve(!1);let an,Pn,Cn;qt?(an=qt.resolve,Pn=qt.reject,Cn=qt.promise):Cn=new Promise((ss,za)=>{an=ss,Pn=za});const gr=++this.navigationId;let hr;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(ct=this.location.getState()),hr=ct&&ct.\u0275routerPageId?ct.\u0275routerPageId:Pt.replaceUrl||Pt.skipLocationChange?null!==(ai=this.browserPageId)&&void 0!==ai?ai:0:(null!==(Di=this.browserPageId)&&void 0!==Di?Di:0)+1):hr=0,this.setTransition({id:gr,targetPageId:hr,source:qe,restoredState:ct,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:me,extras:Pt,resolve:an,reject:Pn,promise:Cn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Cn.catch(ss=>Promise.reject(ss))}setBrowserUrl(me,qe){const ct=this.urlSerializer.serialize(me),Pt=Object.assign(Object.assign({},qe.extras.state),this.generateNgRouterState(qe.id,qe.targetPageId));this.location.isCurrentPathEqualTo(ct)||qe.extras.replaceUrl?this.location.replaceState(ct,"",Pt):this.location.go(ct,"",Pt)}restoreHistory(me,qe=!1){var ct,Pt;if("computed"===this.canceledNavigationResolution){const qt=this.currentPageId-me.targetPageId;"popstate"!==me.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(ct=this.currentNavigation)||void 0===ct?void 0:ct.finalUrl)||0===qt?this.currentUrlTree===(null===(Pt=this.currentNavigation)||void 0===Pt?void 0:Pt.finalUrl)&&0===qt&&(this.resetState(me),this.browserUrlTree=me.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(qt)}else"replace"===this.canceledNavigationResolution&&(qe&&this.resetState(me),this.resetUrlToCurrentUrlTree())}resetState(me){this.routerState=me.currentRouterState,this.currentUrlTree=me.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,me.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(me,qe){const ct=new H(me.id,this.serializeUrl(me.extractedUrl),qe);this.triggerEvent(ct),me.resolve(!1)}generateNgRouterState(me,qe){return"computed"===this.canceledNavigationResolution?{navigationId:me,\u0275routerPageId:qe}:{navigationId:me}}}return ze.\u0275fac=function(me){t.$Z()},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function la(ze){return"imperative"!==ze}let ws=(()=>{class ze{constructor(me,qe,ct,Pt,qt){this.router=me,this.route=qe,this.tabIndexAttribute=ct,this.renderer=Pt,this.el=qt,this.commands=null,this.onChanges=new Z.x,this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(me){if(null!=this.tabIndexAttribute)return;const qe=this.renderer,ct=this.el.nativeElement;null!==me?qe.setAttribute(ct,"tabindex",me):qe.removeAttribute(ct,"tabindex")}ngOnChanges(me){this.onChanges.next(this)}set routerLink(me){null!=me?(this.commands=Array.isArray(me)?me:[me],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(){if(null===this.urlTree)return!0;const me={skipLocationChange:Aa(this.skipLocationChange),replaceUrl:Aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,me),!0}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Aa(this.preserveFragment)})}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(xr),t.Y36(Wi),t.$8M("tabindex"),t.Y36(t.Qsj),t.Y36(t.SBq))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(me,qe){1&me&&t.NdJ("click",function(){return qe.onClick()})},inputs:{queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),ze})(),Ka=(()=>{class ze{constructor(me,qe,ct){this.router=me,this.route=qe,this.locationStrategy=ct,this.commands=null,this.href=null,this.onChanges=new Z.x,this.subscription=me.events.subscribe(Pt=>{Pt instanceof N&&this.updateTargetUrlAndHref()})}set routerLink(me){this.commands=null!=me?Array.isArray(me)?me:[me]:null}ngOnChanges(me){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(me,qe,ct,Pt,qt){if(0!==me||qe||ct||Pt||qt||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const ai={skipLocationChange:Aa(this.skipLocationChange),replaceUrl:Aa(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,ai),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:Aa(this.preserveFragment)})}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(xr),t.Y36(Wi),t.Y36(n.S$))},ze.\u0275dir=t.lG2({type:ze,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(me,qe){1&me&&t.NdJ("click",function(Pt){return qe.onClick(Pt.button,Pt.ctrlKey,Pt.shiftKey,Pt.altKey,Pt.metaKey)}),2&me&&t.uIk("target",qe.target)("href",qe.href,t.LSH)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[t.TTD]}),ze})();function Aa(ze){return""===ze||!!ze}let _s=(()=>{class ze{constructor(me,qe,ct,Pt,qt,ai){this.router=me,this.element=qe,this.renderer=ct,this.cdr=Pt,this.link=qt,this.linkWithHref=ai,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new t.vpe,this.routerEventsSubscription=me.events.subscribe(Di=>{Di instanceof N&&this.update()})}ngAfterContentInit(){(0,h.of)(this.links.changes,this.linksWithHrefs.changes,(0,h.of)(null)).pipe((0,y.J)()).subscribe(me=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){var me;null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe();const qe=[...this.links.toArray(),...this.linksWithHrefs.toArray(),this.link,this.linkWithHref].filter(ct=>!!ct).map(ct=>ct.onChanges);this.linkInputChangesSubscription=(0,R.D)(qe).pipe((0,y.J)()).subscribe(ct=>{this.isActive!==this.isLinkActive(this.router)(ct)&&this.update()})}set routerLinkActive(me){const qe=Array.isArray(me)?me:me.split(" ");this.classes=qe.filter(ct=>!!ct)}ngOnChanges(me){this.update()}ngOnDestroy(){var me;this.routerEventsSubscription.unsubscribe(),null===(me=this.linkInputChangesSubscription)||void 0===me||me.unsubscribe()}update(){!this.links||!this.linksWithHrefs||!this.router.navigated||Promise.resolve().then(()=>{const me=this.hasActiveLinks();this.isActive!==me&&(this.isActive=me,this.cdr.markForCheck(),this.classes.forEach(qe=>{me?this.renderer.addClass(this.element.nativeElement,qe):this.renderer.removeClass(this.element.nativeElement,qe)}),this.isActiveChange.emit(me))})}isLinkActive(me){const qe=function vs(ze){return!!ze.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return ct=>!!ct.urlTree&&me.isActive(ct.urlTree,qe)}hasActiveLinks(){const me=this.isLinkActive(this.router);return this.link&&me(this.link)||this.linkWithHref&&me(this.linkWithHref)||this.links.some(me)||this.linksWithHrefs.some(me)}}return ze.\u0275fac=function(me){return new(me||ze)(t.Y36(xr),t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.sBO),t.Y36(ws,8),t.Y36(Ka,8))},ze.\u0275dir=t.lG2({type:ze,selectors:[["","routerLinkActive",""]],contentQueries:function(me,qe,ct){if(1&me&&(t.Suo(ct,ws,5),t.Suo(ct,Ka,5)),2&me){let Pt;t.iGM(Pt=t.CRH())&&(qe.links=Pt),t.iGM(Pt=t.CRH())&&(qe.linksWithHrefs=Pt)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[t.TTD]}),ze})();class cn{}class Tn{preload(Se,me){return(0,h.of)(null)}}let $n=(()=>{class ze{constructor(me,qe,ct,Pt){this.router=me,this.injector=ct,this.preloadingStrategy=Pt,this.loader=new ar(ct,qe,Di=>me.triggerEvent(new Ve(Di)),Di=>me.triggerEvent(new Me(Di)))}setUpPreloading(){this.subscription=this.router.events.pipe((0,Y.h)(me=>me instanceof N),(0,u.b)(()=>this.preload())).subscribe(()=>{})}preload(){const me=this.injector.get(t.h0i);return this.processRoutes(me,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(me,qe){const ct=[];for(const Pt of qe)if(Pt.loadChildren&&!Pt.canLoad&&Pt._loadedConfig){const qt=Pt._loadedConfig;ct.push(this.processRoutes(qt.module,qt.routes))}else Pt.loadChildren&&!Pt.canLoad?ct.push(this.preloadConfig(me,Pt)):Pt.children&&ct.push(this.processRoutes(me,Pt.children));return(0,R.D)(ct).pipe((0,y.J)(),(0,ge.U)(Pt=>{}))}preloadConfig(me,qe){return this.preloadingStrategy.preload(qe,()=>(qe._loadedConfig?(0,h.of)(qe._loadedConfig):this.loader.load(me.injector,qe)).pipe((0,v.z)(Pt=>(qe._loadedConfig=Pt,this.processRoutes(Pt.module,Pt.routes)))))}}return ze.\u0275fac=function(me){return new(me||ze)(t.LFG(xr),t.LFG(t.Sil),t.LFG(t.zs3),t.LFG(cn))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})(),mr=(()=>{class ze{constructor(me,qe,ct={}){this.router=me,this.viewportScroller=qe,this.options=ct,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},ct.scrollPositionRestoration=ct.scrollPositionRestoration||"disabled",ct.anchorScrolling=ct.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(me=>{me instanceof V?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=me.navigationTrigger,this.restoredId=me.restoredState?me.restoredState.navigationId:0):me instanceof N&&(this.lastId=me.id,this.scheduleScrollEvent(me,this.router.parseUrl(me.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(me=>{me instanceof we&&(me.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(me.position):me.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(me.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(me,qe){this.router.triggerEvent(new we(me,"popstate"===this.lastSource?this.store[this.restoredId]:null,qe))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return ze.\u0275fac=function(me){t.$Z()},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})();const Gr=new t.OlP("ROUTER_CONFIGURATION"),$a=new t.OlP("ROUTER_FORROOT_GUARD"),ur=[n.Ye,{provide:rt,useClass:et},{provide:xr,useFactory:function _i(ze,Se,me,qe,ct,Pt,qt={},ai,Di){const an=new xr(null,ze,Se,me,qe,ct,Dt(Pt));return ai&&(an.urlHandlingStrategy=ai),Di&&(an.routeReuseStrategy=Di),function Ii(ze,Se){ze.errorHandler&&(Se.errorHandler=ze.errorHandler),ze.malformedUriErrorHandler&&(Se.malformedUriErrorHandler=ze.malformedUriErrorHandler),ze.onSameUrlNavigation&&(Se.onSameUrlNavigation=ze.onSameUrlNavigation),ze.paramsInheritanceStrategy&&(Se.paramsInheritanceStrategy=ze.paramsInheritanceStrategy),ze.relativeLinkResolution&&(Se.relativeLinkResolution=ze.relativeLinkResolution),ze.urlUpdateStrategy&&(Se.urlUpdateStrategy=ze.urlUpdateStrategy),ze.canceledNavigationResolution&&(Se.canceledNavigationResolution=ze.canceledNavigationResolution)}(qt,an),qt.enableTracing&&an.events.subscribe(Pn=>{var Cn,gr;null===(Cn=console.group)||void 0===Cn||Cn.call(console,`Router Event: ${Pn.constructor.name}`),console.log(Pn.toString()),console.log(Pn),null===(gr=console.groupEnd)||void 0===gr||gr.call(console)}),an},deps:[rt,Dr,n.Ye,t.zs3,t.Sil,kn,Gr,[class Rr{},new t.FiY],[class An{},new t.FiY]]},Dr,{provide:Wi,useFactory:function zi(ze){return ze.routerState.root},deps:[xr]},$n,Tn,class xn{preload(Se,me){return me().pipe((0,r.K)(()=>(0,h.of)(null)))}},{provide:Gr,useValue:{enableTracing:!1}}];function at(){return new t.PXZ("Router",xr)}let St=(()=>{class ze{constructor(me,qe){}static forRoot(me,qe){return{ngModule:ze,providers:[ur,pi(me),{provide:$a,useFactory:$t,deps:[[xr,new t.FiY,new t.tp0]]},{provide:Gr,useValue:qe||{}},{provide:n.S$,useFactory:zt,deps:[n.lw,[new t.tBr(n.mr),new t.FiY],Gr]},{provide:mr,useFactory:wt,deps:[xr,n.EM,Gr]},{provide:cn,useExisting:qe&&qe.preloadingStrategy?qe.preloadingStrategy:Tn},{provide:t.PXZ,multi:!0,useFactory:at},[ln,{provide:t.ip1,multi:!0,useFactory:nn,deps:[ln]},{provide:Jn,useFactory:un,deps:[ln]},{provide:t.tb,multi:!0,useExisting:Jn}]]}}static forChild(me){return{ngModule:ze,providers:[pi(me)]}}}return ze.\u0275fac=function(me){return new(me||ze)(t.LFG($a,8),t.LFG(xr,8))},ze.\u0275mod=t.oAB({type:ze}),ze.\u0275inj=t.cJS({}),ze})();function wt(ze,Se,me){return me.scrollOffset&&Se.setOffset(me.scrollOffset),new mr(ze,Se,me)}function zt(ze,Se,me={}){return me.useHash?new n.Do(ze,Se):new n.b0(ze,Se)}function $t(ze){return"guarded"}function pi(ze){return[{provide:t.deG,multi:!0,useValue:ze},{provide:kn,multi:!0,useValue:ze}]}let ln=(()=>{class ze{constructor(me){this.injector=me,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Z.x}appInitializer(){return this.injector.get(n.V_,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let qe=null;const ct=new Promise(ai=>qe=ai),Pt=this.injector.get(xr),qt=this.injector.get(Gr);return"disabled"===qt.initialNavigation?(Pt.setUpLocationChangeListener(),qe(!0)):"enabled"===qt.initialNavigation||"enabledBlocking"===qt.initialNavigation?(Pt.hooks.afterPreactivation=()=>this.initNavigation?(0,h.of)(null):(this.initNavigation=!0,qe(!0),this.resultOfPreactivationDone),Pt.initialNavigation()):qe(!0),ct})}bootstrapListener(me){const qe=this.injector.get(Gr),ct=this.injector.get($n),Pt=this.injector.get(mr),qt=this.injector.get(xr),ai=this.injector.get(t.z2F);me===ai.components[0]&&(("enabledNonBlocking"===qe.initialNavigation||void 0===qe.initialNavigation)&&qt.initialNavigation(),ct.setUpPreloading(),Pt.init(),qt.resetRootComponentType(ai.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return ze.\u0275fac=function(me){return new(me||ze)(t.LFG(t.zs3))},ze.\u0275prov=t.Yz7({token:ze,factory:ze.\u0275fac}),ze})();function nn(ze){return ze.appInitializer.bind(ze)}function un(ze){return ze.bootstrapListener.bind(ze)}const Jn=new t.OlP("Router Initializer")},9546:(Be,K,p)=>{"use strict";p.d(K,{BN:()=>Tn,uH:()=>ur});var t=p(5e3);function e(at,St){var wt=Object.keys(at);if(Object.getOwnPropertySymbols){var zt=Object.getOwnPropertySymbols(at);St&&(zt=zt.filter(function($t){return Object.getOwnPropertyDescriptor(at,$t).enumerable})),wt.push.apply(wt,zt)}return wt}function f(at){for(var St=1;Stat.length)&&(St=at.length);for(var wt=0,zt=new Array(St);wt0;)St+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return St}function Ae(at){for(var St=[],wt=(at||[]).length>>>0;wt--;)St[wt]=at[wt];return St}function Ge(at){return at.classList?Ae(at.classList):(at.getAttribute("class")||"").split(" ").filter(function(St){return St})}function ot(at){return"".concat(at).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(//g,">")}function Ct(at){return Object.keys(at||{}).reduce(function(St,wt){return St+"".concat(wt,": ").concat(at[wt].trim(),";")},"")}function mi(at){return at.size!==nt.size||at.x!==nt.x||at.y!==nt.y||at.rotate!==nt.rotate||at.flipX||at.flipY}function hi(){var St=Ee,wt=ye.cssPrefix,zt=ye.replacementClass,$t=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-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-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\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-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: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\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-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\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: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\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@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 -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\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 z-index: var(--fa-stack-z-index, auto);\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: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\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.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if("fa"!==wt||zt!==St){var pi=new RegExp("\\.".concat("fa","\\-"),"g"),_i=new RegExp("\\--".concat("fa","\\-"),"g"),Ii=new RegExp("\\.".concat(St),"g");$t=$t.replace(pi,".".concat(wt,"-")).replace(_i,"--".concat(wt,"-")).replace(Ii,".".concat(zt))}return $t}var si=!1;function Ji(){ye.autoAddCss&&!si&&(function He(at){if(at&&y){var St=c.createElement("style");St.setAttribute("type","text/css"),St.innerHTML=at;for(var wt=c.head.childNodes,zt=null,$t=wt.length-1;$t>-1;$t--){var pi=wt[$t],_i=(pi.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(_i)>-1&&(zt=pi)}c.head.insertBefore(St,zt)}}(hi()),si=!0)}var Zi={mixout:function(){return{dom:{css:hi,insertCss:Ji}}},hooks:function(){return{beforeDOMElementCreation:function(){Ji()},beforeI2svg:function(){Ji()}}}},Vi=u||{};Vi[he]||(Vi[he]={}),Vi[he].styles||(Vi[he].styles={}),Vi[he].hooks||(Vi[he].hooks={}),Vi[he].shims||(Vi[he].shims=[]);var Ui=Vi[he],Ue=[],ve=!1;function Qe(at){!y||(ve?setTimeout(at,0):Ue.push(at))}function _t(at){var St=at.tag,wt=at.attributes,zt=void 0===wt?{}:wt,$t=at.children,pi=void 0===$t?[]:$t;return"string"==typeof at?ot(at):"<".concat(St," ").concat(function lt(at){return Object.keys(at||{}).reduce(function(St,wt){return St+"".concat(wt,'="').concat(ot(at[wt]),'" ')},"").trim()}(zt),">").concat(pi.map(_t).join(""),"")}function se(at,St,wt){if(at&&at[St]&&at[St][wt])return{prefix:St,iconName:wt,icon:at[St][wt]}}y&&((ve=(c.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState))||c.addEventListener("DOMContentLoaded",function at(){c.removeEventListener("DOMContentLoaded",at),ve=1,Ue.map(function(St){return St()})}));var xt=function(St,wt,zt,$t){var zi,ln,nn,pi=Object.keys(St),_i=pi.length,Ii=void 0!==$t?function(St,wt){return function(zt,$t,pi,_i){return St.call(wt,zt,$t,pi,_i)}}(wt,$t):wt;for(void 0===zt?(zi=1,nn=St[pi[0]]):(zi=0,nn=zt);zi<_i;zi++)nn=Ii(nn,St[ln=pi[zi]],ln,St);return nn};function bi(at){var St=function Bt(at){for(var St=[],wt=0,zt=at.length;wt=55296&&$t<=56319&&wt2&&void 0!==arguments[2]?arguments[2]:{},zt=wt.skipHooks,$t=void 0!==zt&&zt,pi=Xi(St);"function"!=typeof Ui.hooks.addPack||$t?Ui.styles[at]=f(f({},Ui.styles[at]||{}),pi):Ui.hooks.addPack(at,Xi(St)),"fas"===at&&Wi("fa",St)}var pn,ii,Ri,st=Ui.styles,Rt=Ui.shims,Wt=(h(pn={},Te,Object.values(Q[Te])),h(pn,xe,Object.values(Q[xe])),pn),fi=null,Ei={},Ni={},mn={},In={},Rn={},tr=(h(ii={},Te,Object.keys(Ce[Te])),h(ii,xe,Object.keys(Ce[xe])),ii);function Ti(at,St){var wt=St.split("-"),zt=wt[0],$t=wt.slice(1).join("-");return zt!==at||""===$t||function gn(at){return~it.indexOf(at)}($t)?null:$t}var Ki=function(){var St=function(pi){return xt(st,function(_i,Ii,zi){return _i[zi]=xt(Ii,pi,{}),_i},{})};Ei=St(function($t,pi,_i){return pi[3]&&($t[pi[3]]=_i),pi[2]&&pi[2].filter(function(zi){return"number"==typeof zi}).forEach(function(zi){$t[zi.toString(16)]=_i}),$t}),Ni=St(function($t,pi,_i){return $t[_i]=_i,pi[2]&&pi[2].filter(function(zi){return"string"==typeof zi}).forEach(function(zi){$t[zi]=_i}),$t}),Rn=St(function($t,pi,_i){var Ii=pi[2];return $t[_i]=_i,Ii.forEach(function(zi){$t[zi]=_i}),$t});var wt="far"in st||ye.autoFetchSvg,zt=xt(Rt,function($t,pi){var _i=pi[0],Ii=pi[1],zi=pi[2];return"far"===Ii&&!wt&&(Ii="fas"),"string"==typeof _i&&($t.names[_i]={prefix:Ii,iconName:zi}),"number"==typeof _i&&($t.unicodes[_i.toString(16)]={prefix:Ii,iconName:zi}),$t},{names:{},unicodes:{}});mn=zt.names,In=zt.unicodes,fi=zr(ye.styleDefault,{family:ye.familyDefault})};function wn(at,St){return(Ei[at]||{})[St]}function sr(at,St){return(Rn[at]||{})[St]}function ha(at){return mn[at]||{prefix:null,iconName:null}}function Sr(){return fi}function zr(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=St.family,zt=void 0===wt?Te:wt,$t=Ce[zt][at],pi=fe[zt][at]||fe[zt][$t],_i=at in Ui.styles?at:null;return pi||_i||null}(function mt(at){ht.push(at)})(function(at){fi=zr(at.styleDefault,{family:ye.familyDefault})}),Ki();var ta=(h(Ri={},Te,Object.keys(Q[Te])),h(Ri,xe,Object.keys(Q[xe])),Ri);function ia(at){var St,wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=wt.skipLookups,$t=void 0!==zt&&zt,pi=(h(St={},Te,"".concat(ye.cssPrefix,"-").concat(Te)),h(St,xe,"".concat(ye.cssPrefix,"-").concat(xe)),St),_i=null,Ii=Te;(at.includes(pi[Te])||at.some(function(ln){return ta[Te].includes(ln)}))&&(Ii=Te),(at.includes(pi[xe])||at.some(function(ln){return ta[xe].includes(ln)}))&&(Ii=xe);var zi=at.reduce(function(ln,nn){var un=Ti(ye.cssPrefix,nn);if(st[nn]?(nn=Wt[Ii].includes(nn)?pt[Ii][nn]:nn,_i=nn,ln.prefix=nn):tr[Ii].indexOf(nn)>-1?(_i=nn,ln.prefix=zr(nn,{family:Ii})):un?ln.iconName=un:nn!==ye.replacementClass&&nn!==pi[Te]&&nn!==pi[xe]&&ln.rest.push(nn),!$t&&ln.prefix&&ln.iconName){var Jn="fa"===_i?ha(ln.iconName):{},rr=sr(ln.prefix,ln.iconName);Jn.prefix&&(_i=null),ln.iconName=Jn.iconName||rr||ln.iconName,ln.prefix=Jn.prefix||ln.prefix,"far"===ln.prefix&&!st.far&&st.fas&&!ye.autoFetchSvg&&(ln.prefix="fas")}return ln},{prefix:null,iconName:null,rest:[]});return(at.includes("fa-brands")||at.includes("fab"))&&(zi.prefix="fab"),(at.includes("fa-duotone")||at.includes("fad"))&&(zi.prefix="fad"),!zi.prefix&&Ii===xe&&(st.fass||ye.autoFetchSvg)&&(zi.prefix="fass",zi.iconName=sr(zi.prefix,zi.iconName)||zi.iconName),("fa"===zi.prefix||"fa"===_i)&&(zi.prefix=Sr()||"fas"),zi}var na=function(){function at(){(function C(at,St){if(!(at instanceof St))throw new TypeError("Cannot call a class as a function")})(this,at),this.definitions={}}return function R(at,St,wt){St&&d(at.prototype,St),wt&&d(at,wt),Object.defineProperty(at,"prototype",{writable:!1})}(at,[{key:"add",value:function(){for(var wt=this,zt=arguments.length,$t=new Array(zt),pi=0;pi0&&nn.forEach(function(un){"string"==typeof un&&(wt[Ii][un]=ln)}),wt[Ii][zi]=ln}),wt}}]),at}(),qr=[],Jr={},Ma={},pa=Object.keys(Ma);function Pr(at,St){for(var wt=arguments.length,zt=new Array(wt>2?wt-2:0),$t=2;$t1?St-1:0),zt=1;zt0&&void 0!==arguments[0]?arguments[0]:{};return y?(Yn("beforeI2svg",St),Vr("pseudoElements2svg",St),Vr("i2svg",St)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=St.autoReplaceSvgRoot;!1===ye.autoReplaceSvg&&(ye.autoReplaceSvg=!0),ye.observeMutations=!0,Qe(function(){ya({autoReplaceSvgRoot:wt}),Yn("watch",St)})}},dr={noAuto:function(){ye.autoReplaceSvg=!1,ye.observeMutations=!1,Yn("noAuto")},config:ye,dom:Ya,parse:{icon:function(St){if(null===St)return null;if("object"===M(St)&&St.prefix&&St.iconName)return{prefix:St.prefix,iconName:sr(St.prefix,St.iconName)||St.iconName};if(Array.isArray(St)&&2===St.length){var wt=0===St[1].indexOf("fa-")?St[1].slice(3):St[1],zt=zr(St[0]);return{prefix:zt,iconName:sr(zt,wt)||wt}}if("string"==typeof St&&(St.indexOf("".concat(ye.cssPrefix,"-"))>-1||St.match(tt))){var $t=ia(St.split(" "),{skipLookups:!0});return{prefix:$t.prefix||Sr(),iconName:sr($t.prefix,$t.iconName)||$t.iconName}}if("string"==typeof St){var pi=Sr();return{prefix:pi,iconName:sr(pi,St)||St}}}},library:Wa,findIconDefinition:cr,toHtml:_t},ya=function(){var St=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},wt=St.autoReplaceSvgRoot,zt=void 0===wt?c:wt;(Object.keys(Ui.styles).length>0||ye.autoFetchSvg)&&y&&ye.autoReplaceSvg&&dr.dom.i2svg({node:zt})};function kr(at,St){return Object.defineProperty(at,"abstract",{get:St}),Object.defineProperty(at,"html",{get:function(){return at.abstract.map(function(zt){return _t(zt)})}}),Object.defineProperty(at,"node",{get:function(){if(y){var zt=c.createElement("div");return zt.innerHTML=at.html,zt.children}}}),at}function wa(at){var St=at.icons,wt=St.main,zt=St.mask,$t=at.prefix,pi=at.iconName,_i=at.transform,Ii=at.symbol,zi=at.title,ln=at.maskId,nn=at.titleId,un=at.extra,Jn=at.watchable,rr=void 0!==Jn&&Jn,ca=zt.found?zt:wt,ze=ca.width,Se=ca.height,me="fak"===$t,qe=[ye.replacementClass,pi?"".concat(ye.cssPrefix,"-").concat(pi):""].filter(function(Pn){return-1===un.classes.indexOf(Pn)}).filter(function(Pn){return""!==Pn||!!Pn}).concat(un.classes).join(" "),ct={children:[],attributes:f(f({},un.attributes),{},{"data-prefix":$t,"data-icon":pi,class:qe,role:un.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(ze," ").concat(Se)})},Pt=me&&!~un.classes.indexOf("fa-fw")?{width:"".concat(ze/Se*16*.0625,"em")}:{};rr&&(ct.attributes[j]=""),zi&&(ct.children.push({tag:"title",attributes:{id:ct.attributes["aria-labelledby"]||"title-".concat(nn||et())},children:[zi]}),delete ct.attributes.title);var qt=f(f({},ct),{},{prefix:$t,iconName:pi,main:wt,mask:zt,maskId:ln,transform:_i,symbol:Ii,styles:f(f({},Pt),un.styles)}),ai=zt.found&&wt.found?Vr("generateAbstractMask",qt)||{children:[],attributes:{}}:Vr("generateAbstractIcon",qt)||{children:[],attributes:{}},an=ai.attributes;return qt.children=ai.children,qt.attributes=an,Ii?function ra(at){var wt=at.iconName,zt=at.children,$t=at.attributes,pi=at.symbol,_i=!0===pi?"".concat(at.prefix,"-").concat(ye.cssPrefix,"-").concat(wt):pi;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:f(f({},$t),{},{id:_i}),children:zt}]}]}(qt):function Dr(at){var St=at.children,wt=at.main,zt=at.mask,$t=at.attributes,pi=at.styles,_i=at.transform;if(mi(_i)&&wt.found&&!zt.found){var ln={x:wt.width/wt.height/2,y:.5};$t.style=Ct(f(f({},pi),{},{"transform-origin":"".concat(ln.x+_i.x/16,"em ").concat(ln.y+_i.y/16,"em")}))}return[{tag:"svg",attributes:$t,children:St}]}(qt)}function Pa(at){var St=at.content,wt=at.width,zt=at.height,$t=at.transform,pi=at.title,_i=at.extra,Ii=at.watchable,zi=void 0!==Ii&&Ii,ln=f(f(f({},_i.attributes),pi?{title:pi}:{}),{},{class:_i.classes.join(" ")});zi&&(ln[j]="");var nn=f({},_i.styles);mi($t)&&(nn.transform=function ei(at){var St=at.transform,wt=at.width,$t=at.height,pi=void 0===$t?16:$t,_i=at.startCentered,Ii=void 0!==_i&&_i,zi="";return zi+=Ii&&n?"translate(".concat(St.x/16-(void 0===wt?16:wt)/2,"em, ").concat(St.y/16-pi/2,"em) "):Ii?"translate(calc(-50% + ".concat(St.x/16,"em), calc(-50% + ").concat(St.y/16,"em)) "):"translate(".concat(St.x/16,"em, ").concat(St.y/16,"em) "),(zi+="scale(".concat(St.size/16*(St.flipX?-1:1),", ").concat(St.size/16*(St.flipY?-1:1),") "))+"rotate(".concat(St.rotate,"deg) ")}({transform:$t,startCentered:!0,width:wt,height:zt}),nn["-webkit-transform"]=nn.transform);var un=Ct(nn);un.length>0&&(ln.style=un);var Jn=[];return Jn.push({tag:"span",attributes:ln,children:[St]}),pi&&Jn.push({tag:"span",attributes:{class:"sr-only"},children:[pi]}),Jn}function ba(at){var St=at.content,wt=at.title,zt=at.extra,$t=f(f(f({},zt.attributes),wt?{title:wt}:{}),{},{class:zt.classes.join(" ")}),pi=Ct(zt.styles);pi.length>0&&($t.style=pi);var _i=[];return _i.push({tag:"span",attributes:$t,children:[St]}),wt&&_i.push({tag:"span",attributes:{class:"sr-only"},children:[wt]}),_i}var or=Ui.styles;function aa(at){var St=at[0],wt=at[1],pi=D(at.slice(4),1)[0];return{found:!0,width:St,height:wt,icon:Array.isArray(pi)?{tag:"g",attributes:{class:"".concat(ye.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:pi[0]}},{tag:"path",attributes:{class:"".concat(ye.cssPrefix,"-").concat("primary"),fill:"currentColor",d:pi[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:pi}}}}var Ha={found:!1,width:512,height:512};function sa(at,St){var wt=St;return"fa"===St&&null!==ye.styleDefault&&(St=Sr()),new Promise(function(zt,$t){if(Vr("missingIconAbstract"),"fa"===wt){var _i=ha(at)||{};at=_i.iconName||at,St=_i.prefix||St}if(at&&St&&or[St]&&or[St][at])return zt(aa(or[St][at]));(function ir(at,St){!ce&&!ye.showMissingIcons&&at&&console.error('Icon with name "'.concat(at,'" and prefix "').concat(St,'" is missing.'))})(at,St),zt(f(f({},Ha),{},{icon:ye.showMissingIcons&&at&&Vr("missingIconAbstract")||{}}))})}var Yr=function(){},Nr=ye.measurePerformance&&T&&T.mark&&T.measure?T:{mark:Yr,measure:Yr},Br='FA "6.2.1"',Xn_begin=function(St){return Nr.mark("".concat(Br," ").concat(St," begins")),function(){return function(St){Nr.mark("".concat(Br," ").concat(St," ends")),Nr.measure("".concat(Br," ").concat(St),"".concat(Br," ").concat(St," begins"),"".concat(Br," ").concat(St," ends"))}(St)}},$e=function(){};function Et(at){return"string"==typeof(at.getAttribute?at.getAttribute(j):null)}function Mi(at){return c.createElementNS("http://www.w3.org/2000/svg",at)}function Pi(at){return c.createElement(at)}function en(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},wt=St.ceFn,zt=void 0===wt?"svg"===at.tag?Mi:Pi:wt;if("string"==typeof at)return c.createTextNode(at);var $t=zt(at.tag);Object.keys(at.attributes||[]).forEach(function(_i){$t.setAttribute(_i,at.attributes[_i])});var pi=at.children||[];return pi.forEach(function(_i){$t.appendChild(en(_i,{ceFn:zt}))}),$t}var Bn={replace:function(St){var wt=St[0];if(wt.parentNode)if(St[1].forEach(function($t){wt.parentNode.insertBefore(en($t),wt)}),null===wt.getAttribute(j)&&ye.keepOriginalSource){var zt=c.createComment(function nr(at){var St=" ".concat(at.outerHTML," ");return"".concat(St,"Font Awesome fontawesome.com ")}(wt));wt.parentNode.replaceChild(zt,wt)}else wt.remove()},nest:function(St){var wt=St[0],zt=St[1];if(~Ge(wt).indexOf(ye.replacementClass))return Bn.replace(St);var $t=new RegExp("".concat(ye.cssPrefix,"-.*"));if(delete zt[0].attributes.id,zt[0].attributes.class){var pi=zt[0].attributes.class.split(" ").reduce(function(Ii,zi){return zi===ye.replacementClass||zi.match($t)?Ii.toSvg.push(zi):Ii.toNode.push(zi),Ii},{toNode:[],toSvg:[]});zt[0].attributes.class=pi.toSvg.join(" "),0===pi.toNode.length?wt.removeAttribute("class"):wt.setAttribute("class",pi.toNode.join(" "))}var _i=zt.map(function(Ii){return _t(Ii)}).join("\n");wt.setAttribute(j,""),wt.innerHTML=_i}};function It(at){at()}function ci(at,St){var wt="function"==typeof St?St:$e;if(0===at.length)wt();else{var zt=It;"async"===ye.mutateApproach&&(zt=u.requestAnimationFrame||It),zt(function(){var $t=function Xt(){return!0===ye.autoReplaceSvg?Bn.replace:Bn[ye.autoReplaceSvg]||Bn.replace}(),pi=Xn_begin("mutate");at.map($t),pi(),wt()})}}var vt=!1;function jt(){vt=!0}function Oi(){vt=!1}var je=null;function Ye(at){if(v&&ye.observeMutations){var St=at.treeCallback,wt=void 0===St?$e:St,zt=at.nodeCallback,$t=void 0===zt?$e:zt,pi=at.pseudoElementsCallback,_i=void 0===pi?$e:pi,Ii=at.observeMutationsRoot,zi=void 0===Ii?c:Ii;je=new v(function(ln){if(!vt){var nn=Sr();Ae(ln).forEach(function(un){if("childList"===un.type&&un.addedNodes.length>0&&!Et(un.addedNodes[0])&&(ye.searchPseudoElements&&_i(un.target),wt(un.target)),"attributes"===un.type&&un.target.parentNode&&ye.searchPseudoElements&&_i(un.target.parentNode),"attributes"===un.type&&Et(un.target)&&~Ot.indexOf(un.attributeName))if("class"===un.attributeName&&function Je(at){var St=at.getAttribute?at.getAttribute(J):null,wt=at.getAttribute?at.getAttribute(Ie):null;return St&&wt}(un.target)){var Jn=ia(Ge(un.target)),ca=Jn.iconName;un.target.setAttribute(J,Jn.prefix||nn),ca&&un.target.setAttribute(Ie,ca)}else(function kt(at){return at&&at.classList&&at.classList.contains&&at.classList.contains(ye.replacementClass)})(un.target)&&$t(un.target)})}}),y&&je.observe(zi,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function At(at){var St=at.getAttribute("style"),wt=[];return St&&(wt=St.split(";").reduce(function(zt,$t){var pi=$t.split(":"),_i=pi[0],Ii=pi.slice(1);return _i&&Ii.length>0&&(zt[_i]=Ii.join(":").trim()),zt},{})),wt}function wi(at){var St=at.getAttribute("data-prefix"),wt=at.getAttribute("data-icon"),zt=void 0!==at.innerText?at.innerText.trim():"",$t=ia(Ge(at));return $t.prefix||($t.prefix=Sr()),St&&wt&&($t.prefix=St,$t.iconName=wt),$t.iconName&&$t.prefix||($t.prefix&&zt.length>0&&($t.iconName=function qn(at,St){return(Ni[at]||{})[St]}($t.prefix,at.innerText)||wn($t.prefix,bi(at.innerText))),!$t.iconName&&ye.autoFetchSvg&&at.firstChild&&at.firstChild.nodeType===Node.TEXT_NODE&&($t.iconName=at.firstChild.data)),$t}function Gi(at){var St=Ae(at.attributes).reduce(function($t,pi){return"class"!==$t.name&&"style"!==$t.name&&($t[pi.name]=pi.value),$t},{}),wt=at.getAttribute("title"),zt=at.getAttribute("data-fa-title-id");return ye.autoA11y&&(wt?St["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(zt||et()):(St["aria-hidden"]="true",St.focusable="false")),St}function br(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},wt=wi(at),zt=wt.iconName,$t=wt.prefix,pi=wt.rest,_i=Gi(at),Ii=Pr("parseNodeAttributes",{},at),zi=St.styleParser?At(at):[];return f({iconName:zt,title:at.getAttribute("title"),titleId:at.getAttribute("data-fa-title-id"),prefix:$t,transform:nt,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:pi,styles:zi,attributes:_i}},Ii)}var Fa=Ui.styles;function xa(at){var St="nest"===ye.autoReplaceSvg?br(at,{styleParser:!1}):br(at);return~St.extra.classes.indexOf(Dt)?Vr("generateLayersText",at,St):Vr("generateSvgReplacementMutation",at,St)}var Ea=new Set;function Fi(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!y)return Promise.resolve();var wt=c.documentElement.classList,zt=function(un){return wt.add("".concat(ut,"-").concat(un))},$t=function(un){return wt.remove("".concat(ut,"-").concat(un))},pi=ye.autoFetchSvg?Ea:W.map(function(nn){return"fa-".concat(nn)}).concat(Object.keys(Fa));pi.includes("fa")||pi.push("fa");var _i=[".".concat(Dt,":not([").concat(j,"])")].concat(pi.map(function(nn){return".".concat(nn,":not([").concat(j,"])")})).join(", ");if(0===_i.length)return Promise.resolve();var Ii=[];try{Ii=Ae(at.querySelectorAll(_i))}catch(nn){}if(!(Ii.length>0))return Promise.resolve();zt("pending"),$t("complete");var zi=Xn_begin("onTree"),ln=Ii.reduce(function(nn,un){try{var Jn=xa(un);Jn&&nn.push(Jn)}catch(rr){ce||"MissingIcon"===rr.name&&console.error(rr)}return nn},[]);return new Promise(function(nn,un){Promise.all(ln).then(function(Jn){ci(Jn,function(){zt("active"),zt("complete"),$t("pending"),"function"==typeof St&&St(),zi(),nn()})}).catch(function(Jn){zi(),un(Jn)})})}function jn(at){var St=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;xa(at).then(function(wt){wt&&ci([wt],St)})}W.map(function(at){Ea.add("fa-".concat(at))}),Object.keys(Ce[Te]).map(Ea.add.bind(Ea)),Object.keys(Ce[xe]).map(Ea.add.bind(Ea)),Ea=S(Ea);var Er=function(St){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=wt.transform,$t=void 0===zt?nt:zt,pi=wt.symbol,_i=void 0!==pi&&pi,Ii=wt.mask,zi=void 0===Ii?null:Ii,ln=wt.maskId,nn=void 0===ln?null:ln,un=wt.title,Jn=void 0===un?null:un,rr=wt.titleId,ca=void 0===rr?null:rr,ze=wt.classes,Se=void 0===ze?[]:ze,me=wt.attributes,qe=void 0===me?{}:me,ct=wt.styles,Pt=void 0===ct?{}:ct;if(St){var qt=St.prefix,ai=St.iconName,Di=St.icon;return kr(f({type:"icon"},St),function(){return Yn("beforeDOMElementCreation",{iconDefinition:St,params:wt}),ye.autoA11y&&(Jn?qe["aria-labelledby"]="".concat(ye.replacementClass,"-title-").concat(ca||et()):(qe["aria-hidden"]="true",qe.focusable="false")),wa({icons:{main:aa(Di),mask:zi?aa(zi.icon):{found:!1,width:null,height:null,icon:{}}},prefix:qt,iconName:ai,transform:f(f({},nt),$t),symbol:_i,title:Jn,maskId:nn,titleId:ca,extra:{attributes:qe,styles:Pt,classes:Se}})})}},to={mixout:function(){return{icon:(at=Er,function(St){var wt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},zt=(St||{}).icon?St:cr(St||{}),$t=wt.mask;return $t&&($t=($t||{}).icon?$t:cr($t||{})),at(zt,f(f({},wt),{},{mask:$t}))})};var at},hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.treeCallback=Fi,wt.nodeCallback=jn,wt}}},provides:function(St){St.i2svg=function(wt){var zt=wt.node,pi=wt.callback;return Fi(void 0===zt?c:zt,void 0===pi?function(){}:pi)},St.generateSvgReplacementMutation=function(wt,zt){var $t=zt.iconName,pi=zt.title,_i=zt.titleId,Ii=zt.prefix,zi=zt.transform,ln=zt.symbol,nn=zt.mask,un=zt.maskId,Jn=zt.extra;return new Promise(function(rr,ca){Promise.all([sa($t,Ii),nn.iconName?sa(nn.iconName,nn.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(ze){var Se=D(ze,2);rr([wt,wa({icons:{main:Se[0],mask:Se[1]},prefix:Ii,iconName:$t,transform:zi,symbol:ln,maskId:un,title:pi,titleId:_i,extra:Jn,watchable:!0})])}).catch(ca)})},St.generateAbstractIcon=function(wt){var ln,zt=wt.children,$t=wt.attributes,pi=wt.main,_i=wt.transform,zi=Ct(wt.styles);return zi.length>0&&($t.style=zi),mi(_i)&&(ln=Vr("generateAbstractTransformGrouping",{main:pi,transform:_i,containerWidth:pi.width,iconWidth:pi.width})),zt.push(ln||pi.icon),{children:zt,attributes:$t}}}},gs={mixout:function(){return{layer:function(wt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=zt.classes,pi=void 0===$t?[]:$t;return kr({type:"layer"},function(){Yn("beforeDOMElementCreation",{assembler:wt,params:zt});var _i=[];return wt(function(Ii){Array.isArray(Ii)?Ii.map(function(zi){_i=_i.concat(zi.abstract)}):_i=_i.concat(Ii.abstract)}),[{tag:"span",attributes:{class:["".concat(ye.cssPrefix,"-layers")].concat(S(pi)).join(" ")},children:_i}]})}}}},Ta={mixout:function(){return{counter:function(wt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=zt.title,pi=void 0===$t?null:$t,_i=zt.classes,Ii=void 0===_i?[]:_i,zi=zt.attributes,ln=void 0===zi?{}:zi,nn=zt.styles,un=void 0===nn?{}:nn;return kr({type:"counter",content:wt},function(){return Yn("beforeDOMElementCreation",{content:wt,params:zt}),ba({content:wt.toString(),title:pi,extra:{attributes:ln,styles:un,classes:["".concat(ye.cssPrefix,"-layers-counter")].concat(S(Ii))}})})}}}},Ls={mixout:function(){return{text:function(wt){var zt=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},$t=zt.transform,pi=void 0===$t?nt:$t,_i=zt.title,Ii=void 0===_i?null:_i,zi=zt.classes,ln=void 0===zi?[]:zi,nn=zt.attributes,un=void 0===nn?{}:nn,Jn=zt.styles,rr=void 0===Jn?{}:Jn;return kr({type:"text",content:wt},function(){return Yn("beforeDOMElementCreation",{content:wt,params:zt}),Pa({content:wt,transform:f(f({},nt),pi),title:Ii,extra:{attributes:un,styles:rr,classes:["".concat(ye.cssPrefix,"-layers-text")].concat(S(ln))}})})}}},provides:function(St){St.generateLayersText=function(wt,zt){var $t=zt.title,pi=zt.transform,_i=zt.extra,Ii=null,zi=null;if(n){var ln=parseInt(getComputedStyle(wt).fontSize,10),nn=wt.getBoundingClientRect();Ii=nn.width/ln,zi=nn.height/ln}return ye.autoA11y&&!$t&&(_i.attributes["aria-hidden"]="true"),Promise.resolve([wt,Pa({content:wt.innerHTML,width:Ii,height:zi,transform:pi,title:$t,extra:_i,watchable:!0})])}}},Ds=new RegExp('"',"ug"),Fs=[1105920,1112319];function Vs(at,St){var wt="".concat("data-fa-pseudo-element-pending").concat(St.replace(":","-"));return new Promise(function(zt,$t){if(null!==at.getAttribute(wt))return zt();var _i=Ae(at.children).filter(function(Di){return Di.getAttribute(Ve)===St})[0],Ii=u.getComputedStyle(at,St),zi=Ii.getPropertyValue("font-family").match(di),ln=Ii.getPropertyValue("font-weight"),nn=Ii.getPropertyValue("content");if(_i&&!zi)return at.removeChild(_i),zt();if(zi&&"none"!==nn&&""!==nn){var un=Ii.getPropertyValue("content"),Jn=~["Sharp"].indexOf(zi[2])?xe:Te,rr=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(zi[2])?fe[Jn][zi[2].toLowerCase()]:Yt[Jn][ln],ca=function zs(at){var St=at.replace(Ds,""),wt=function Si(at,St){var $t,wt=at.length,zt=at.charCodeAt(St);return zt>=55296&&zt<=56319&&wt>St+1&&($t=at.charCodeAt(St+1))>=56320&&$t<=57343?1024*(zt-55296)+$t-56320+65536:zt}(St,0),zt=wt>=Fs[0]&&wt<=Fs[1],$t=2===St.length&&St[0]===St[1];return{value:bi($t?St[0]:St),isSecondary:zt||$t}}(un),ze=ca.value,Se=ca.isSecondary,me=zi[0].startsWith("FontAwesome"),qe=wn(rr,ze),ct=qe;if(me){var Pt=function _a(at){var St=In[at],wt=wn("fas",at);return St||(wt?{prefix:"fas",iconName:wt}:null)||{prefix:null,iconName:null}}(ze);Pt.iconName&&Pt.prefix&&(qe=Pt.iconName,rr=Pt.prefix)}if(!qe||Se||_i&&_i.getAttribute(J)===rr&&_i.getAttribute(Ie)===ct)zt();else{at.setAttribute(wt,ct),_i&&at.removeChild(_i);var qt=function Un(){return{iconName:null,title:null,titleId:null,prefix:null,transform:nt,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),ai=qt.extra;ai.attributes[Ve]=St,sa(qe,rr).then(function(Di){var an=wa(f(f({},qt),{},{icons:{main:Di,mask:{prefix:null,iconName:null,rest:[]}},prefix:rr,iconName:ct,extra:ai,watchable:!0})),Pn=c.createElement("svg");"::before"===St?at.insertBefore(Pn,at.firstChild):at.appendChild(Pn),Pn.outerHTML=an.map(function(Cn){return _t(Cn)}).join("\n"),at.removeAttribute(wt),zt()}).catch($t)}}else zt()})}function as(at){return Promise.all([Vs(at,"::before"),Vs(at,"::after")])}function Ur(at){return!(at.parentNode===document.head||~we.indexOf(at.tagName.toUpperCase())||at.getAttribute(Ve)||at.parentNode&&"svg"===at.parentNode.tagName)}function ka(at){if(y)return new Promise(function(St,wt){var zt=Ae(at.querySelectorAll("*")).filter(Ur).map(as),$t=Xn_begin("searchPseudoElements");jt(),Promise.all(zt).then(function(){$t(),Oi(),St()}).catch(function(){$t(),Oi(),wt()})})}var oe=!1,Ke=function(St){return St.toLowerCase().split(" ").reduce(function(zt,$t){var pi=$t.toLowerCase().split("-"),_i=pi[0],Ii=pi.slice(1).join("-");if(_i&&"h"===Ii)return zt.flipX=!0,zt;if(_i&&"v"===Ii)return zt.flipY=!0,zt;if(Ii=parseFloat(Ii),isNaN(Ii))return zt;switch(_i){case"grow":zt.size=zt.size+Ii;break;case"shrink":zt.size=zt.size-Ii;break;case"left":zt.x=zt.x-Ii;break;case"right":zt.x=zt.x+Ii;break;case"up":zt.y=zt.y-Ii;break;case"down":zt.y=zt.y+Ii;break;case"rotate":zt.rotate=zt.rotate+Ii}return zt},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},Vt={x:0,y:0,width:"100%",height:"100%"};function ri(at){var St=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return at.attributes&&(at.attributes.fill||St)&&(at.attributes.fill="black"),at}!function Za(at,St){var wt=St.mixoutsTo;qr=at,Jr={},Object.keys(Ma).forEach(function(zt){-1===pa.indexOf(zt)&&delete Ma[zt]}),qr.forEach(function(zt){var $t=zt.mixout?zt.mixout():{};if(Object.keys($t).forEach(function(_i){"function"==typeof $t[_i]&&(wt[_i]=$t[_i]),"object"===M($t[_i])&&Object.keys($t[_i]).forEach(function(Ii){wt[_i]||(wt[_i]={}),wt[_i][Ii]=$t[_i][Ii]})}),zt.hooks){var pi=zt.hooks();Object.keys(pi).forEach(function(_i){Jr[_i]||(Jr[_i]=[]),Jr[_i].push(pi[_i])})}zt.provides&&zt.provides(Ma)})}([Zi,to,gs,Ta,Ls,{hooks:function(){return{mutationObserverCallbacks:function(wt){return wt.pseudoElementsCallback=ka,wt}}},provides:function(St){St.pseudoElements2svg=function(wt){var zt=wt.node;ye.searchPseudoElements&&ka(void 0===zt?c:zt)}}},{mixout:function(){return{dom:{unwatch:function(){jt(),oe=!0}}}},hooks:function(){return{bootstrap:function(){Ye(Pr("mutationObserverCallbacks",{}))},noAuto:function(){!function Fe(){!je||je.disconnect()}()},watch:function(wt){var zt=wt.observeMutationsRoot;oe?Oi():Ye(Pr("mutationObserverCallbacks",{observeMutationsRoot:zt}))}}}},{mixout:function(){return{parse:{transform:function(wt){return Ke(wt)}}}},hooks:function(){return{parseNodeAttributes:function(wt,zt){var $t=zt.getAttribute("data-fa-transform");return $t&&(wt.transform=Ke($t)),wt}}},provides:function(St){St.generateAbstractTransformGrouping=function(wt){var zt=wt.main,$t=wt.transform,_i=wt.iconWidth,Ii={transform:"translate(".concat(wt.containerWidth/2," 256)")},zi="translate(".concat(32*$t.x,", ").concat(32*$t.y,") "),ln="scale(".concat($t.size/16*($t.flipX?-1:1),", ").concat($t.size/16*($t.flipY?-1:1),") "),nn="rotate(".concat($t.rotate," 0 0)"),rr={outer:Ii,inner:{transform:"".concat(zi," ").concat(ln," ").concat(nn)},path:{transform:"translate(".concat(_i/2*-1," -256)")}};return{tag:"g",attributes:f({},rr.outer),children:[{tag:"g",attributes:f({},rr.inner),children:[{tag:zt.icon.tag,children:zt.icon.children,attributes:f(f({},zt.icon.attributes),rr.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(wt,zt){var $t=zt.getAttribute("data-fa-mask"),pi=$t?ia($t.split(" ").map(function(_i){return _i.trim()})):{prefix:null,iconName:null,rest:[]};return pi.prefix||(pi.prefix=Sr()),wt.mask=pi,wt.maskId=zt.getAttribute("data-fa-mask-id"),wt}}},provides:function(St){St.generateAbstractMask=function(wt){var at,zt=wt.children,$t=wt.attributes,pi=wt.main,_i=wt.mask,Ii=wt.maskId,nn=pi.icon,Jn=_i.icon,rr=function Jt(at){var St=at.transform,zt=at.iconWidth,$t={transform:"translate(".concat(at.containerWidth/2," 256)")},pi="translate(".concat(32*St.x,", ").concat(32*St.y,") "),_i="scale(".concat(St.size/16*(St.flipX?-1:1),", ").concat(St.size/16*(St.flipY?-1:1),") "),Ii="rotate(".concat(St.rotate," 0 0)");return{outer:$t,inner:{transform:"".concat(pi," ").concat(_i," ").concat(Ii)},path:{transform:"translate(".concat(zt/2*-1," -256)")}}}({transform:wt.transform,containerWidth:_i.width,iconWidth:pi.width}),ca={tag:"rect",attributes:f(f({},Vt),{},{fill:"white"})},ze=nn.children?{children:nn.children.map(ri)}:{},Se={tag:"g",attributes:f({},rr.inner),children:[ri(f({tag:nn.tag,attributes:f(f({},nn.attributes),rr.path)},ze))]},me={tag:"g",attributes:f({},rr.outer),children:[Se]},qe="mask-".concat(Ii||et()),ct="clip-".concat(Ii||et()),Pt={tag:"mask",attributes:f(f({},Vt),{},{id:qe,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[ca,me]},qt={tag:"defs",children:[{tag:"clipPath",attributes:{id:ct},children:(at=Jn,"g"===at.tag?at.children:[at])},Pt]};return zt.push(qt,{tag:"rect",attributes:f({fill:"currentColor","clip-path":"url(#".concat(ct,")"),mask:"url(#".concat(qe,")")},Vt)}),{children:zt,attributes:$t}}}},{provides:function(St){var wt=!1;u.matchMedia&&(wt=u.matchMedia("(prefers-reduced-motion: reduce)").matches),St.missingIconAbstract=function(){var zt=[],$t={fill:"currentColor"},pi={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};zt.push({tag:"path",attributes:f(f({},$t),{},{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"})});var _i=f(f({},pi),{},{attributeName:"opacity"}),Ii={tag:"circle",attributes:f(f({},$t),{},{cx:"256",cy:"364",r:"28"}),children:[]};return wt||Ii.children.push({tag:"animate",attributes:f(f({},pi),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:f(f({},_i),{},{values:"1;0;1;1;0;1;"})}),zt.push(Ii),zt.push({tag:"path",attributes:f(f({},$t),{},{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"}),children:wt?[]:[{tag:"animate",attributes:f(f({},_i),{},{values:"1;0;0;0;0;1;"})}]}),wt||zt.push({tag:"path",attributes:f(f({},$t),{},{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"}),children:[{tag:"animate",attributes:f(f({},_i),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:zt}}}},{hooks:function(){return{parseNodeAttributes:function(wt,zt){var $t=zt.getAttribute("data-fa-symbol");return wt.symbol=null!==$t&&(""===$t||$t),wt}}}}],{mixoutsTo:dr});var ar=dr.parse,oa=dr.icon,Zn=p(2313);const xr=["*"],ws=at=>{const St={"fa-spin":at.spin,"fa-pulse":at.pulse,"fa-fw":at.fixedWidth,"fa-border":at.border,"fa-inverse":at.inverse,"fa-layers-counter":at.counter,"fa-flip-horizontal":"horizontal"===at.flip||"both"===at.flip,"fa-flip-vertical":"vertical"===at.flip||"both"===at.flip,[`fa-${at.size}`]:null!==at.size,[`fa-rotate-${at.rotate}`]:null!==at.rotate,[`fa-pull-${at.pull}`]:null!==at.pull,[`fa-stack-${at.stackItemSize}`]:null!=at.stackItemSize};return Object.keys(St).map(wt=>St[wt]?wt:null).filter(wt=>wt)};let _s=(()=>{class at{constructor(){this.defaultPrefix="fas",this.fallbackIcon=null}}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275prov=t.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),vs=(()=>{class at{constructor(){this.definitions={}}addIcons(...wt){for(const zt of wt){zt.prefix in this.definitions||(this.definitions[zt.prefix]={}),this.definitions[zt.prefix][zt.iconName]=zt;for(const $t of zt.icon[2])"string"==typeof $t&&(this.definitions[zt.prefix][$t]=zt)}}addIconPacks(...wt){for(const zt of wt){const $t=Object.keys(zt).map(pi=>zt[pi]);this.addIcons(...$t)}}getIconDefinition(wt,zt){return wt in this.definitions&&zt in this.definitions[wt]?this.definitions[wt][zt]:null}}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275prov=t.Yz7({token:at,factory:at.\u0275fac,providedIn:"root"}),at})(),cn=(()=>{class at{constructor(){this.stackItemSize="1x"}ngOnChanges(wt){if("size"in wt)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 at.\u0275fac=function(wt){return new(wt||at)},at.\u0275dir=t.lG2({type:at,selectors:[["fa-icon","stackItemSize",""],["fa-duotone-icon","stackItemSize",""]],inputs:{stackItemSize:"stackItemSize",size:"size"},features:[t.TTD]}),at})(),xn=(()=>{class at{constructor(wt,zt){this.renderer=wt,this.elementRef=zt}ngOnInit(){this.renderer.addClass(this.elementRef.nativeElement,"fa-stack")}ngOnChanges(wt){"size"in wt&&(null!=wt.size.currentValue&&this.renderer.addClass(this.elementRef.nativeElement,`fa-${wt.size.currentValue}`),null!=wt.size.previousValue&&this.renderer.removeClass(this.elementRef.nativeElement,`fa-${wt.size.previousValue}`))}}return at.\u0275fac=function(wt){return new(wt||at)(t.Y36(t.Qsj),t.Y36(t.SBq))},at.\u0275cmp=t.Xpm({type:at,selectors:[["fa-stack"]],inputs:{size:"size"},features:[t.TTD],ngContentSelectors:xr,decls:1,vars:0,template:function(wt,zt){1&wt&&(t.F$t(),t.Hsn(0))},encapsulation:2}),at})(),Tn=(()=>{class at{constructor(wt,zt,$t,pi,_i){this.sanitizer=wt,this.config=zt,this.iconLibrary=$t,this.stackItem=pi,this.classes=[],null!=_i&&null==pi&&console.error('FontAwesome: fa-icon and fa-duotone-icon elements must specify stackItemSize attribute when wrapped into fa-stack. Example: .')}ngOnChanges(wt){if(null==this.icon&&null==this.config.fallbackIcon)return(()=>{throw new Error("Property `icon` is required for `fa-icon`/`fa-duotone-icon` components.")})();let zt=null;if(zt=null==this.icon?this.config.fallbackIcon:this.icon,wt){const $t=this.findIconDefinition(zt);if(null!=$t){const pi=this.buildParams();this.renderIcon($t,pi)}}}render(){this.ngOnChanges({})}findIconDefinition(wt){const zt=((at,St)=>(at=>void 0!==at.prefix&&void 0!==at.iconName)(at)?at:Array.isArray(at)&&2===at.length?{prefix:at[0],iconName:at[1]}:"string"==typeof at?{prefix:St,iconName:at}:void 0)(wt,this.config.defaultPrefix);if("icon"in zt)return zt;const $t=this.iconLibrary.getIconDefinition(zt.prefix,zt.iconName);return null!=$t?$t:((at=>{throw new Error(`Could not find icon with iconName=${at.iconName} and prefix=${at.prefix} in the icon library.`)})(zt),null)}buildParams(){const wt={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},zt="string"==typeof this.transform?ar.transform(this.transform):this.transform;return{title:this.title,transform:zt,classes:[...ws(wt),...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(wt,zt){const $t=oa(wt,zt);this.renderedIconHTML=this.sanitizer.bypassSecurityTrustHtml($t.html.join("\n"))}}return at.\u0275fac=function(wt){return new(wt||at)(t.Y36(Zn.H7),t.Y36(_s),t.Y36(vs),t.Y36(cn,8),t.Y36(xn,8))},at.\u0275cmp=t.Xpm({type:at,selectors:[["fa-icon"]],hostAttrs:[1,"ng-fa-icon"],hostVars:2,hostBindings:function(wt,zt){2&wt&&(t.Ikx("innerHTML",zt.renderedIconHTML,t.oJD),t.uIk("title",zt.title))},inputs:{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",classes:"classes",transform:"transform",a11yRole:"a11yRole"},features:[t.TTD],decls:0,vars:0,template:function(wt,zt){},encapsulation:2}),at})(),ur=(()=>{class at{}return at.\u0275fac=function(wt){return new(wt||at)},at.\u0275mod=t.oAB({type:at}),at.\u0275inj=t.cJS({}),at})()},2687:(Be,K,p)=>{"use strict";p.d(K,{Acd:()=>vo,Aq:()=>yl,B$L:()=>Vt,BDt:()=>k4,CgH:()=>hs,CvI:()=>b4,DL8:()=>h9,FJU:()=>On,FVb:()=>Zl,FlN:()=>_4,FpQ:()=>o4,HLz:()=>W7,KOR:()=>Bl,Krp:()=>b0,Mdf:()=>wr,N2j:()=>sr,NBC:()=>y_,OS1:()=>P1,Psp:()=>Ld,Pyt:()=>Ze,Sbq:()=>it,SoD:()=>aa,Ssp:()=>w9,SuH:()=>Gd,TmZ:()=>f_,USL:()=>I_,Vei:()=>l0,Vfw:()=>r5,X5K:()=>Gh,XsY:()=>un,aj4:()=>d2,b7W:()=>Nf,byT:()=>Jn,co4:()=>Of,d63:()=>u0,dLy:()=>e_,dT$:()=>w0,eHv:()=>C9,gNZ:()=>Mp,hkK:()=>Wt,hnx:()=>N9,kXW:()=>U5,kZ_:()=>p_,koM:()=>Vo,mh3:()=>U0,nNP:()=>Ig,q7m:()=>Bm,qO$:()=>G_,r8p:()=>Hg,sqG:()=>em,vqe:()=>t9,wn1:()=>q7,wyP:()=>U3,xf3:()=>Ln});var it={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},Wt={prefix:"fas",iconName:"user-check",icon:[640,512,[],"f4fc","M352 128c0 70.7-57.3 128-128 128s-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3zM625 177L497 305c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L591 143c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z"]},sr={prefix:"fas",iconName:"box-archive",icon:[512,512,["archive"],"f187","M32 32H480c17.7 0 32 14.3 32 32V96c0 17.7-14.3 32-32 32H32C14.3 128 0 113.7 0 96V64C0 46.3 14.3 32 32 32zm0 128H480V416c0 35.3-28.7 64-64 64H96c-35.3 0-64-28.7-64-64V160zm128 80c0 8.8 7.2 16 16 16H336c8.8 0 16-7.2 16-16s-7.2-16-16-16H176c-8.8 0-16 7.2-16 16z"]},aa={prefix:"fas",iconName:"pen-ruler",icon:[512,512,["pencil-ruler"],"f5ae","M469.3 19.3l23.4 23.4c25 25 25 65.5 0 90.5l-56.4 56.4L322.3 75.7l56.4-56.4c25-25 65.5-25 90.5 0zM44.9 353.2L299.7 98.3 413.7 212.3 158.8 467.1c-6.7 6.7-15.1 11.6-24.2 14.2l-104 29.7c-8.4 2.4-17.4 .1-23.6-6.1s-8.5-15.2-6.1-23.6l29.7-104c2.6-9.2 7.5-17.5 14.2-24.2zM249.4 103.4L103.4 249.4 16 161.9c-18.7-18.7-18.7-49.1 0-67.9L94.1 16c18.7-18.7 49.1-18.7 67.9 0l19.8 19.8c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1l45.1 45.1zM408.6 262.6l45.1 45.1c-.3 .3-.7 .6-1 .9l-64 64c-6.2 6.2-6.2 16.4 0 22.6s16.4 6.2 22.6 0l64-64c.3-.3 .6-.7 .9-1L496 350.1c18.7 18.7 18.7 49.1 0 67.9L417.9 496c-18.7 18.7-49.1 18.7-67.9 0l-87.4-87.4L408.6 262.6z"]},Vt={prefix:"fas",iconName:"unlock-keyhole",icon:[448,512,["unlock-alt"],"f13e","M224 64c-44.2 0-80 35.8-80 80v48H384c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80V144C80 64.5 144.5 0 224 0c57.5 0 107 33.7 130.1 82.3c7.6 16 .8 35.1-15.2 42.6s-35.1 .8-42.6-15.2C283.4 82.6 255.9 64 224 64zm32 320c17.7 0 32-14.3 32-32s-14.3-32-32-32H192c-17.7 0-32 14.3-32 32s14.3 32 32 32h64z"]},un={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M371.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L600.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S549.7-4.4 531.1 9.6L294.4 187.2c-24 18-38.2 46.1-38.4 76.1L371.3 367.1zm-19.6 25.4l-116-104.4C175.9 290.3 128 339.6 128 400c0 3.9 .2 7.8 .6 11.6c1.8 17.5-10.2 36.4-27.8 36.4H96c-17.7 0-32 14.3-32 32s14.3 32 32 32H240c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},Jn={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144v48H304V144c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192V144C80 64.5 144.5 0 224 0s144 64.5 144 144v48h16c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V256c0-35.3 28.7-64 64-64H80z"]},Zl={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 160c-44.2 0-80-35.8-80-80S99.8 0 144 0s80 35.8 80 80s-35.8 80-80 80zm368 0c-44.2 0-80-35.8-80-80s35.8-80 80-80s80 35.8 80 80s-35.8 80-80 80zM0 298.7C0 239.8 47.8 192 106.7 192h42.7c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0H21.3C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7h42.7C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3H405.3zM416 224c0 53-43 96-96 96s-96-43-96-96s43-96 96-96s96 43 96 96zM128 485.3C128 411.7 187.7 352 261.3 352H378.7C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7H154.7c-14.7 0-26.7-11.9-26.7-26.7z"]},yl={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c5.2-11.8 8-24.8 8-38.5c0-53-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zm223.1 298L373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5z"]},vo={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75H192 160 64c-35.3 0-64 28.7-64 64v96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32h64c17.7 0 32-14.3 32-32V352l8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6V300.4c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4V32zm-64 76.7V240 371.3C357.2 317.8 280.5 288 200.7 288H192V192h8.7c79.8 0 156.5-29.8 215.3-83.3z"]},d2={prefix:"fas",iconName:"money-bill-wave",icon:[576,512,[],"f53a","M0 112.5V422.3c0 18 10.1 35 27 41.3c87 32.5 174 10.3 261-11.9c79.8-20.3 159.6-40.7 239.3-18.9c23 6.3 48.7-9.5 48.7-33.4V89.7c0-18-10.1-35-27-41.3C462 15.9 375 38.1 288 60.3C208.2 80.6 128.4 100.9 48.7 79.1C25.6 72.8 0 88.6 0 112.5zM288 352c-44.2 0-80-43-80-96s35.8-96 80-96s80 43 80 96s-35.8 96-80 96zM64 352c35.3 0 64 28.7 64 64H64V352zm64-208c0 35.3-28.7 64-64 64V144h64zM512 304v64H448c0-35.3 28.7-64 64-64zM448 96h64v64c-35.3 0-64-28.7-64-64z"]},Ln={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64zM344 152c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm96-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24zM64 288c-35.3 0-64 28.7-64 64v64c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V352c0-35.3-28.7-64-64-64H64zM344 408c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24zm104-24c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},Vo={prefix:"fas",iconName:"chart-bar",icon:[512,512,["bar-chart"],"f080","M32 32c17.7 0 32 14.3 32 32V400c0 8.8 7.2 16 16 16H480c17.7 0 32 14.3 32 32s-14.3 32-32 32H80c-44.2 0-80-35.8-80-80V64C0 46.3 14.3 32 32 32zm96 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32zm0 96H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H160c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},U3={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64H208c-8.8 0-16 7.2-16 16V96H128V80c0-44.2 35.8-80 80-80H432c44.2 0 80 35.8 80 80V304c0 44.2-35.8 80-80 80H416V320h16c8.8 0 16-7.2 16-16V80c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64H320c35.3 0 64 28.7 64 64V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V192zm64 32c0 17.7 14.3 32 32 32H288c17.7 0 32-14.3 32-32s-14.3-32-32-32H96c-17.7 0-32 14.3-32 32z"]},l0={prefix:"fas",iconName:"burst",icon:[512,512,[],"e4dc","M37.6 4.2C28-2.3 15.2-1.1 7 7s-9.4 21-2.8 30.5l112 163.3L16.6 233.2C6.7 236.4 0 245.6 0 256s6.7 19.6 16.6 22.8l103.1 33.4L66.8 412.8c-4.9 9.3-3.2 20.7 4.3 28.1s18.8 9.2 28.1 4.3l100.6-52.9 33.4 103.1c3.2 9.9 12.4 16.6 22.8 16.6s19.6-6.7 22.8-16.6l33.4-103.1 100.6 52.9c9.3 4.9 20.7 3.2 28.1-4.3s9.2-18.8 4.3-28.1L392.3 312.2l103.1-33.4c9.9-3.2 16.6-12.4 16.6-22.8s-6.7-19.6-16.6-22.8L388.9 198.7l25.7-70.4c3.2-8.8 1-18.6-5.6-25.2s-16.4-8.8-25.2-5.6l-70.4 25.7L278.8 16.6C275.6 6.7 266.4 0 256 0s-19.6 6.7-22.8 16.6l-32.3 99.6L37.6 4.2z"]},u0={prefix:"fas",iconName:"arrows-turn-right",icon:[512,512,[],"e4c0","M329.4 9.4c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L370.7 160H160c-35.3 0-64 28.7-64 64v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V224C32 153.3 89.3 96 160 96H370.7L329.4 54.6c-12.5-12.5-12.5-32.8 0-45.3zm-96 256c12.5-12.5 32.8-12.5 45.3 0l96 96c12.5 12.5 12.5 32.8 0 45.3l-96 96c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L274.7 416H128c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96H274.7l-41.4-41.4c-12.5-12.5-12.5-32.8 0-45.3z"]},b0={prefix:"fas",iconName:"layer-group",icon:[576,512,[],"f5fd","M264.5 5.2c14.9-6.9 32.1-6.9 47 0l218.6 101c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 149.8C37.4 145.8 32 137.3 32 128s5.4-17.9 13.9-21.8L264.5 5.2zM476.9 209.6l53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 277.8C37.4 273.8 32 265.3 32 256s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0l152-70.2zm-152 198.2l152-70.2 53.2 24.6c8.5 3.9 13.9 12.4 13.9 21.8s-5.4 17.9-13.9 21.8l-218.6 101c-14.9 6.9-32.1 6.9-47 0L45.9 405.8C37.4 401.8 32 393.3 32 384s5.4-17.9 13.9-21.8l53.2-24.6 152 70.2c23.4 10.8 50.4 10.8 73.8 0z"]},Ld={prefix:"fas",iconName:"question",icon:[320,512,[10067,10068,61736],"3f","M96 96c-17.7 0-32 14.3-32 32s-14.3 32-32 32s-32-14.3-32-32C0 75 43 32 96 32h97c70.1 0 127 56.9 127 127c0 52.4-32.2 99.4-81 118.4l-63 24.5 0 18.1c0 17.7-14.3 32-32 32s-32-14.3-32-32V301.9c0-26.4 16.2-50.1 40.8-59.6l63-24.5C240 208.3 256 185 256 159c0-34.8-28.2-63-63-63H96zm48 384c-22.1 0-40-17.9-40-40s17.9-40 40-40s40 17.9 40 40s-17.9 40-40 40z"]},w0={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},P1={prefix:"fas",iconName:"chart-pie",icon:[576,512,["pie-chart"],"f200","M304 240V16.6c0-9 7-16.6 16-16.6C443.7 0 544 100.3 544 224c0 9-7.6 16-16.6 16H304zM32 272C32 150.7 122.1 50.3 239 34.3c9.2-1.3 17 6.1 17 15.4V288L412.5 444.5c6.7 6.7 6.2 17.7-1.5 23.1C371.8 495.6 323.8 512 272 512C139.5 512 32 404.6 32 272zm526.4 16c9.3 0 16.6 7.8 15.4 17c-7.7 55.9-34.6 105.6-73.9 142.3c-6 5.6-15.4 5.2-21.2-.7L320 288H558.4z"]},Bl={prefix:"fas",iconName:"eject",icon:[448,512,[9167],"f052","M224 32c13.5 0 26.3 5.6 35.4 15.6l176 192c12.9 14 16.2 34.3 8.6 51.8S419 320 400 320H48c-19 0-36.3-11.2-43.9-28.7s-4.3-37.7 8.6-51.8l176-192C197.7 37.6 210.5 32 224 32zM0 432c0-26.5 21.5-48 48-48H400c26.5 0 48 21.5 48 48s-21.5 48-48 48H48c-26.5 0-48-21.5-48-48z"]},Gd={prefix:"fas",iconName:"signs-post",icon:[512,512,["map-signs"],"f277","M224 32H64C46.3 32 32 46.3 32 64v64c0 17.7 14.3 32 32 32H441.4c4.2 0 8.3-1.7 11.3-4.7l48-48c6.2-6.2 6.2-16.4 0-22.6l-48-48c-3-3-7.1-4.7-11.3-4.7H288c0-17.7-14.3-32-32-32s-32 14.3-32 32zM480 256c0-17.7-14.3-32-32-32H288V192H224v32H70.6c-4.2 0-8.3 1.7-11.3 4.7l-48 48c-6.2 6.2-6.2 16.4 0 22.6l48 48c3 3 7.1 4.7 11.3 4.7H448c17.7 0 32-14.3 32-32V256zM288 480V384H224v96c0 17.7 14.3 32 32 32s32-14.3 32-32z"]},hs={prefix:"fas",iconName:"screwdriver-wrench",icon:[512,512,["tools"],"f7d9","M78.6 5C69.1-2.4 55.6-1.5 47 7L7 47c-8.5 8.5-9.4 22-2.1 31.6l80 104c4.5 5.9 11.6 9.4 19 9.4h54.1l109 109c-14.7 29-10 65.4 14.3 89.6l112 112c12.5 12.5 32.8 12.5 45.3 0l64-64c12.5-12.5 12.5-32.8 0-45.3l-112-112c-24.2-24.2-60.6-29-89.6-14.3l-109-109V104c0-7.5-3.5-14.5-9.4-19L78.6 5zM19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L233.7 374.3c-7.8-20.9-9-43.6-3.6-65.1l-61.7-61.7L19.9 396.1zM512 144c0-10.5-1.1-20.7-3.2-30.5c-2.4-11.2-16.1-14.1-24.2-6l-63.9 63.9c-3 3-7.1 4.7-11.3 4.7H352c-8.8 0-16-7.2-16-16V102.6c0-4.2 1.7-8.3 4.7-11.3l63.9-63.9c8.1-8.1 5.2-21.8-6-24.2C388.7 1.1 378.5 0 368 0C288.5 0 224 64.5 224 144l0 .8 85.3 85.3c36-9.1 75.8 .5 104 28.7L429 274.5c49-23 83-72.8 83-130.5zM104 432c0 13.3-10.7 24-24 24s-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24z"]},Gh={prefix:"fas",iconName:"wallet",icon:[512,512,[],"f555","M64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H80c-8.8 0-16-7.2-16-16s7.2-16 16-16H448c17.7 0 32-14.3 32-32s-14.3-32-32-32H64zM416 336c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},U0={prefix:"fas",iconName:"code-branch",icon:[448,512,[],"f126","M80 104c13.3 0 24-10.7 24-24s-10.7-24-24-24S56 66.7 56 80s10.7 24 24 24zm80-24c0 32.8-19.7 61-48 73.3v87.8c18.8-10.9 40.7-17.1 64-17.1h96c35.3 0 64-28.7 64-64v-6.7C307.7 141 288 112.8 288 80c0-44.2 35.8-80 80-80s80 35.8 80 80c0 32.8-19.7 61-48 73.3V160c0 70.7-57.3 128-128 128H176c-35.3 0-64 28.7-64 64v6.7c28.3 12.3 48 40.5 48 73.3c0 44.2-35.8 80-80 80s-80-35.8-80-80c0-32.8 19.7-61 48-73.3V352 153.3C19.7 141 0 112.8 0 80C0 35.8 35.8 0 80 0s80 35.8 80 80zm232 0c0-13.3-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24s24-10.7 24-24zM80 456c13.3 0 24-10.7 24-24s-10.7-24-24-24s-24 10.7-24 24s10.7 24 24 24z"]},o4={prefix:"fas",iconName:"route",icon:[512,512,[],"f4d7","M416 256s96-96 96-160c0-53-43-96-96-96s-96 43-96 96c0 29.4 20.2 65.5 42.1 96H320c-53 0-96 43-96 96s43 96 96 96h96c17.7 0 32 14.3 32 32s-14.3 32-32 32H188.6c-6.2 9.6-12.6 18.8-19 27.2c-10.7 14.2-21.3 26.9-30 36.8H416c53 0 96-43 96-96s-43-96-96-96H320c-17.7 0-32-14.3-32-32s14.3-32 32-32h96zm0-128c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32zM149.9 448c21.9-30.5 42.1-66.6 42.1-96c0-53-43-96-96-96s-96 43-96 96c0 64 96 160 96 160s3.5-3.5 9.2-9.6c.4-.4 .7-.8 1.1-1.2c3.3-3.5 7.1-7.8 11.4-12.8c.2-.2 .4-.4 .6-.6c9.4-10.8 20.7-24.6 31.6-39.8zM96 384c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},wr={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM432 256c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM288 192c0 35.3-28.7 64-64 64c-11.5 0-22.3-3-31.6-8.4c-.2 2.8-.4 5.5-.4 8.4c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-2.8 0-5.6 .1-8.4 .4c5.3 9.3 8.4 20.1 8.4 31.6z"]},Mp={prefix:"fas",iconName:"user-gear",icon:[640,512,["user-cog"],"f4fe","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c11.8 0 23.4 1.2 34.5 3.3c-2.1 18.5 7.4 35.6 21.8 44.8c-16.6 10.6-26.7 31.6-20 53.3c4 12.9 9.4 25.5 16.4 37.6s15.2 23.1 24.4 33c15.7 16.9 39.6 18.4 57.2 8.7v.9c0 9.2 2.7 18.5 7.9 26.3H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM436 218.2c0-7 4.5-13.3 11.3-14.8c10.5-2.4 21.5-3.7 32.7-3.7s22.2 1.3 32.7 3.7c6.8 1.5 11.3 7.8 11.3 14.8v30.6c7.9 3.4 15.4 7.7 22.3 12.8l24.9-14.3c6.1-3.5 13.7-2.7 18.5 2.4c7.6 8.1 14.3 17.2 20.1 27.2s10.3 20.4 13.5 31c2.1 6.7-1.1 13.7-7.2 17.2l-25 14.4c.4 4 .7 8.1 .7 12.3s-.2 8.2-.7 12.3l25 14.4c6.1 3.5 9.2 10.5 7.2 17.2c-3.3 10.6-7.8 21-13.5 31s-12.5 19.1-20.1 27.2c-4.8 5.1-12.5 5.9-18.5 2.4l-24.9-14.3c-6.9 5.1-14.3 9.4-22.3 12.8l0 30.6c0 7-4.5 13.3-11.3 14.8c-10.5 2.4-21.5 3.7-32.7 3.7s-22.2-1.3-32.7-3.7c-6.8-1.5-11.3-7.8-11.3-14.8V454.8c-8-3.4-15.6-7.7-22.5-12.9l-24.7 14.3c-6.1 3.5-13.7 2.7-18.5-2.4c-7.6-8.1-14.3-17.2-20.1-27.2s-10.3-20.4-13.5-31c-2.1-6.7 1.1-13.7 7.2-17.2l24.8-14.3c-.4-4.1-.7-8.2-.7-12.4s.2-8.3 .7-12.4L343.8 325c-6.1-3.5-9.2-10.5-7.2-17.2c3.3-10.6 7.7-21 13.5-31s12.5-19.1 20.1-27.2c4.8-5.1 12.4-5.9 18.5-2.4l24.8 14.3c6.9-5.1 14.5-9.4 22.5-12.9V218.2zm92.1 133.5c0-26.5-21.5-48-48.1-48s-48.1 21.5-48.1 48s21.5 48 48.1 48s48.1-21.5 48.1-48z"]},r5={prefix:"fas",iconName:"angles-up",icon:[448,512,["angle-double-up"],"f102","M246.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 109.3 361.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160zm160 352l-160-160c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L224 301.3 361.4 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3z"]},em={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512c141.4 0 256-114.6 256-256S397.4 0 256 0S0 114.6 0 256S114.6 512 256 512zM216 336h24V272H216c-13.3 0-24-10.7-24-24s10.7-24 24-24h48c13.3 0 24 10.7 24 24v88h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H216c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-144c-17.7 0-32-14.3-32-32s14.3-32 32-32s32 14.3 32 32s-14.3 32-32 32z"]},_4={prefix:"fas",iconName:"dumbbell",icon:[640,512,[],"f44b","M112 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32V224v64V416c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V384H64c-17.7 0-32-14.3-32-32V288c-17.7 0-32-14.3-32-32s14.3-32 32-32V160c0-17.7 14.3-32 32-32h48V96zm416 0v32h48c17.7 0 32 14.3 32 32v64c17.7 0 32 14.3 32 32s-14.3 32-32 32v64c0 17.7-14.3 32-32 32H528v32c0 17.7-14.3 32-32 32H480c-17.7 0-32-14.3-32-32V288 224 96c0-17.7 14.3-32 32-32h16c17.7 0 32 14.3 32 32zM416 224v64H224V224H416z"]},b4={prefix:"fas",iconName:"money-bill-1",icon:[576,512,["money-bill-alt"],"f3d1","M64 64C28.7 64 0 92.7 0 128V384c0 35.3 28.7 64 64 64H512c35.3 0 64-28.7 64-64V128c0-35.3-28.7-64-64-64H64zm64 320H64V320c35.3 0 64 28.7 64 64zM64 192V128h64c0 35.3-28.7 64-64 64zM448 384c0-35.3 28.7-64 64-64v64H448zm64-192c-35.3 0-64-28.7-64-64h64v64zM400 256c0 61.9-50.1 112-112 112s-112-50.1-112-112s50.1-112 112-112s112 50.1 112 112zM252 208c0 9.7 6.9 17.7 16 19.6V276h-4c-11 0-20 9-20 20s9 20 20 20h24 24c11 0 20-9 20-20s-9-20-20-20h-4V208c0-11-9-20-20-20H272c-11 0-20 9-20 20z"]},Of=b4,Nf={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336c44.2 0 80-35.8 80-80s-35.8-80-80-80s-80 35.8-80 80s35.8 80 80 80z"]},U5={prefix:"fas",iconName:"network-wired",icon:[640,512,[],"f6ff","M256 64H384v64H256V64zM240 0c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48h48v32H32c-17.7 0-32 14.3-32 32s14.3 32 32 32h96v32H80c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H240c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H192V288H448v32H400c-26.5 0-48 21.5-48 48v96c0 26.5 21.5 48 48 48H560c26.5 0 48-21.5 48-48V368c0-26.5-21.5-48-48-48H512V288h96c17.7 0 32-14.3 32-32s-14.3-32-32-32H352V192h48c26.5 0 48-21.5 48-48V48c0-26.5-21.5-48-48-48H240zM96 448V384H224v64H96zm320-64H544v64H416V384z"]},Bm={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"]},k4={prefix:"fas",iconName:"bolt",icon:[448,512,[9889,"zap"],"f0e7","M349.4 44.6c5.9-13.7 1.5-29.7-10.6-38.5s-28.6-8-39.9 1.8l-256 224c-10 8.8-13.6 22.9-8.9 35.3S50.7 288 64 288H175.5L98.6 467.4c-5.9 13.7-1.5 29.7 10.6 38.5s28.6 8 39.9-1.8l256-224c10-8.8 13.6-22.9 8.9-35.3s-16.6-20.7-30-20.7H272.5L349.4 44.6z"]},Ze={prefix:"fas",iconName:"arrows-turn-to-dots",icon:[512,512,[],"e4c1","M249.4 25.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3L269.3 96 416 96c53 0 96 43 96 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V192c0-17.7-14.3-32-32-32l-146.7 0 25.4 25.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0l-80-80c-12.5-12.5-12.5-32.8 0-45.3l80-80zm13.3 256l80 80c12.5 12.5 12.5 32.8 0 45.3l-80 80c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 416 96 416c-17.7 0-32 14.3-32 32v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V448c0-53 43-96 96-96l146.7 0-25.4-25.4c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0zM512 384c0 35.3-28.7 64-64 64s-64-28.7-64-64s28.7-64 64-64s64 28.7 64 64zM64 64c35.3 0 64 28.7 64 64s-28.7 64-64 64s-64-28.7-64-64S28.7 64 64 64z"]},On={prefix:"fas",iconName:"user-lock",icon:[640,512,[],"f502","M224 256c70.7 0 128-57.3 128-128S294.7 0 224 0S96 57.3 96 128s57.3 128 128 128zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H392.6c-5.4-9.4-8.6-20.3-8.6-32V352c0-2.1 .1-4.2 .3-6.3c-31-26-71-41.7-114.6-41.7H178.3zM528 240c17.7 0 32 14.3 32 32v48H496V272c0-17.7 14.3-32 32-32zm-80 32v48c-17.7 0-32 14.3-32 32V480c0 17.7 14.3 32 32 32H608c17.7 0 32-14.3 32-32V352c0-17.7-14.3-32-32-32V272c0-44.2-35.8-80-80-80s-80 35.8-80 80z"]},W7={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M512 256c0 141.4-114.6 256-256 256S0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM288 96c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32zM96 288c17.7 0 32-14.3 32-32s-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32zm352-32c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},Ig={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},q7={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352c79.5 0 144-64.5 144-144s-64.5-144-144-144S64 128.5 64 208s64.5 144 144 144z"]},e_={prefix:"fas",iconName:"receipt",icon:[384,512,[129534],"f543","M14 2.2C22.5-1.7 32.5-.3 39.6 5.8L80 40.4 120.4 5.8c9-7.7 22.3-7.7 31.2 0L192 40.4 232.4 5.8c9-7.7 22.2-7.7 31.2 0L304 40.4 344.4 5.8c7.1-6.1 17.1-7.5 25.6-3.6s14 12.4 14 21.8V488c0 9.4-5.5 17.9-14 21.8s-18.5 2.5-25.6-3.6L304 471.6l-40.4 34.6c-9 7.7-22.2 7.7-31.2 0L192 471.6l-40.4 34.6c-9 7.7-22.3 7.7-31.2 0L80 471.6 39.6 506.2c-7.1 6.1-17.1 7.5-25.6 3.6S0 497.4 0 488V24C0 14.6 5.5 6.1 14 2.2zM96 144c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96zM80 352c0 8.8 7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96c-8.8 0-16 7.2-16 16zM96 240c-8.8 0-16 7.2-16 16s7.2 16 16 16H288c8.8 0 16-7.2 16-16s-7.2-16-16-16H96z"]},f_={prefix:"fas",iconName:"diagram-project",icon:[576,512,["project-diagram"],"f542","M0 80C0 53.5 21.5 32 48 32h96c26.5 0 48 21.5 48 48V96H384V80c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H432c-26.5 0-48-21.5-48-48V160H192v16c0 1.7-.1 3.4-.3 5L272 288h96c26.5 0 48 21.5 48 48v96c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V336c0-1.7 .1-3.4 .3-5L144 224H48c-26.5 0-48-21.5-48-48V80z"]},p_={prefix:"fas",iconName:"copy",icon:[512,512,[],"f0c5","M224 0c-35.3 0-64 28.7-64 64V288c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V64c0-35.3-28.7-64-64-64H224zM64 160c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H288c35.3 0 64-28.7 64-64V384H288v64H64V224h64V160H64z"]},Hg={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32V224H48c-17.7 0-32 14.3-32 32s14.3 32 32 32H192V432c0 17.7 14.3 32 32 32s32-14.3 32-32V288H400c17.7 0 32-14.3 32-32s-14.3-32-32-32H256V80z"]},y_={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},I_={prefix:"fas",iconName:"percent",icon:[384,512,[62101,62785,"percentage"],"25","M374.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-320 320c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l320-320zM128 128c0-35.3-28.7-64-64-64S0 92.7 0 128s28.7 64 64 64s64-28.7 64-64zM384 384c0-35.3-28.7-64-64-64s-64 28.7-64 64s28.7 64 64 64s64-28.7 64-64z"]},G_={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9V168c0 13.3 10.7 24 24 24H134.1c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24V256c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65V152c0-13.3-10.7-24-24-24z"]},t9={prefix:"fas",iconName:"infinity",icon:[640,512,[8734,9854],"f534","M0 241.1C0 161 65 96 145.1 96c38.5 0 75.4 15.3 102.6 42.5L320 210.7l72.2-72.2C419.5 111.3 456.4 96 494.9 96C575 96 640 161 640 241.1v29.7C640 351 575 416 494.9 416c-38.5 0-75.4-15.3-102.6-42.5L320 301.3l-72.2 72.2C220.5 400.7 183.6 416 145.1 416C65 416 0 351 0 270.9V241.1zM274.7 256l-72.2-72.2c-15.2-15.2-35.9-23.8-57.4-23.8C100.3 160 64 196.3 64 241.1v29.7c0 44.8 36.3 81.1 81.1 81.1c21.5 0 42.2-8.5 57.4-23.8L274.7 256zm90.5 0l72.2 72.2c15.2 15.2 35.9 23.8 57.4 23.8c44.8 0 81.1-36.3 81.1-81.1V241.1c0-44.8-36.3-81.1-81.1-81.1c-21.5 0-42.2 8.5-57.4 23.8L365.3 256z"]},h9={prefix:"fas",iconName:"scale-balanced",icon:[640,512,[9878,"balance-scale"],"f24e","M384 32H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H398.4c-5.2 25.8-22.9 47.1-46.4 57.3V448H512c17.7 0 32 14.3 32 32s-14.3 32-32 32H320 128c-17.7 0-32-14.3-32-32s14.3-32 32-32H288V153.3c-23.5-10.3-41.2-31.6-46.4-57.3H128c-17.7 0-32-14.3-32-32s14.3-32 32-32H256c14.6-19.4 37.8-32 64-32s49.4 12.6 64 32zM125.8 177.3L51.1 320H204.9L130.2 177.3c-.4-.8-1.3-1.3-2.2-1.3s-1.7 .5-2.2 1.3zM128 128c18.8 0 36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C210.9 402.6 178.2 416 128 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L83.3 155c8.7-16.6 25.9-27 44.7-27zm384 48c-.9 0-1.7 .5-2.2 1.3L435.1 320H588.9L514.2 177.3c-.4-.8-1.3-1.3-2.2-1.3zm-44.7-21c8.7-16.6 25.9-27 44.7-27s36 10.4 44.7 27l77.8 148.5c3.1 5.8 6.1 14 5.5 23.8c-.7 12.1-4.8 35.2-24.8 55.1C594.9 402.6 562.2 416 512 416s-82.9-13.4-103.2-33.5c-20-20-24.2-43-24.8-55.1c-.6-9.8 2.5-18 5.5-23.8L467.3 155z"]},C9={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480H40c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24V296c0 13.3 10.7 24 24 24s24-10.7 24-24V184c0-13.3-10.7-24-24-24zm32 224c0-17.7-14.3-32-32-32s-32 14.3-32 32s14.3 32 32 32s32-14.3 32-32z"]},w9={prefix:"fas",iconName:"right-left",icon:[512,512,["exchange-alt"],"f362","M32 96l320 0V32c0-12.9 7.8-24.6 19.8-29.6s25.7-2.2 34.9 6.9l96 96c6 6 9.4 14.1 9.4 22.6s-3.4 16.6-9.4 22.6l-96 96c-9.2 9.2-22.9 11.9-34.9 6.9s-19.8-16.6-19.8-29.6V160L32 160c-17.7 0-32-14.3-32-32s14.3-32 32-32zM480 352c17.7 0 32 14.3 32 32s-14.3 32-32 32H160v64c0 12.9-7.8 24.6-19.8 29.6s-25.7 2.2-34.9-6.9l-96-96c-6-6-9.4-14.1-9.4-22.6s3.4-16.6 9.4-22.6l96-96c9.2-9.2 22.9-11.9 34.9-6.9s19.8 16.6 19.8 29.6l0 64H480z"]},N9={prefix:"fas",iconName:"user-clock",icon:[640,512,[],"f4fd","M224 256c-70.7 0-128-57.3-128-128S153.3 0 224 0s128 57.3 128 128s-57.3 128-128 128zm-45.7 48h91.4c20.6 0 40.4 3.5 58.8 9.9C323 331 320 349.1 320 368c0 59.5 29.5 112.1 74.8 144H29.7C13.3 512 0 498.7 0 482.3C0 383.8 79.8 304 178.3 304zM640 368c0 79.5-64.5 144-144 144s-144-64.5-144-144s64.5-144 144-144s144 64.5 144 144zM496 288c-8.8 0-16 7.2-16 16v64c0 8.8 7.2 16 16 16h48c8.8 0 16-7.2 16-16s-7.2-16-16-16H512V304c0-8.8-7.2-16-16-16z"]}},6642:(Be,K,p)=>{"use strict";p.d(K,{eX:()=>he,sQ:()=>Nt,GW:()=>i,l4:()=>be});var t=p(5620),e=p(6451),f=p(8306),M=p(7579),a=p(515),C=p(9646),d=p(2843),R=p(576);class L{constructor(ke,de,ye){this.kind=ke,this.value=de,this.error=ye,this.hasValue="N"===ke}observe(ke){return w(this,ke)}do(ke,de,ye){const{kind:ht,value:mt,error:Ft}=this;return"N"===ht?null==ke?void 0:ke(mt):"E"===ht?null==de?void 0:de(Ft):null==ye?void 0:ye()}accept(ke,de,ye){var ht;return(0,R.m)(null===(ht=ke)||void 0===ht?void 0:ht.next)?this.observe(ke):this.do(ke,de,ye)}toObservable(){const{kind:ke,value:de,error:ye}=this,ht="N"===ke?(0,C.of)(de):"E"===ke?(0,d._)(()=>ye):"C"===ke?a.E:0;if(!ht)throw new TypeError(`Unexpected notification kind ${ke}`);return ht}static createNext(ke){return new L("N",ke)}static createError(ke){return new L("E",void 0,ke)}static createComplete(){return L.completeNotification}}function w(Re,ke){var de,ye,ht;const{kind:mt,value:Ft,error:nt}=Re;if("string"!=typeof mt)throw new TypeError('Invalid notification, missing "kind"');"N"===mt?null===(de=ke.next)||void 0===de||de.call(ke,Ft):"E"===mt?null===(ye=ke.error)||void 0===ye||ye.call(ke,nt):null===(ht=ke.complete)||void 0===ht||ht.call(ke)}L.completeNotification=new L("C");var D=p(4482),S=p(5403),E=p(8421);function B(Re,ke,de,ye){return(0,D.e)((ht,mt)=>{let Ft;ke&&"function"!=typeof ke?({duration:de,element:Ft,connector:ye}=ke):Ft=ke;const nt=new Map,He=lt=>{nt.forEach(lt),lt(mt)},rt=lt=>He(Ct=>Ct.error(lt));let et=0,Ae=!1;const Ge=new S.Q(mt,lt=>{try{const Ct=Re(lt);let mi=nt.get(Ct);if(!mi){nt.set(Ct,mi=ye?ye():new M.x);const Jt=function ot(lt,Ct){const mi=new f.y(Jt=>{et++;const ei=Ct.subscribe(Jt);return()=>{ei.unsubscribe(),0==--et&&Ae&&Ge.unsubscribe()}});return mi.key=lt,mi}(Ct,mi);if(mt.next(Jt),de){const ei=(0,S.x)(mi,()=>{mi.complete(),null==ei||ei.unsubscribe()},void 0,void 0,()=>nt.delete(Ct));Ge.add((0,E.Xf)(de(Jt)).subscribe(ei))}}mi.next(Ft?Ft(lt):lt)}catch(Ct){rt(Ct)}},()=>He(lt=>lt.complete()),rt,()=>nt.clear(),()=>(Ae=!0,0===et));ht.subscribe(Ge)})}var Z=p(4004);function Y(Re,ke){return ke?de=>de.pipe(Y((ye,ht)=>(0,E.Xf)(Re(ye,ht)).pipe((0,Z.U)((mt,Ft)=>ke(ye,mt,ht,Ft))))):(0,D.e)((de,ye)=>{let ht=0,mt=null,Ft=!1;de.subscribe((0,S.x)(ye,nt=>{mt||(mt=(0,S.x)(ye,void 0,()=>{mt=null,Ft&&ye.complete()}),(0,E.Xf)(Re(nt,ht++)).subscribe(mt))},()=>{Ft=!0,!mt&&ye.complete()}))})}var ee=p(8502),ue=p(262),ne=p(9300),re=p(5577),ge=p(5698),q=p(5e3);const _e={dispatch:!0,useEffectsErrorHandler:!0},x="__@ngrx/effects_create__";function i(Re,ke){const de=Re(),ye=Object.assign(Object.assign({},_e),ke);return Object.defineProperty(de,x,{value:ye}),de}function r(Re){return Object.getOwnPropertyNames(Re).filter(ye=>!(!Re[ye]||!Re[ye].hasOwnProperty(x))&&Re[ye][x].hasOwnProperty("dispatch")).map(ye=>Object.assign({propertyName:ye},Re[ye][x]))}function u(Re){return Object.getPrototypeOf(Re)}const c="__@ngrx/effects__";function T(Re){return(0,t.qC)(n,u)(Re)}function n(Re){return function I(Re){return Re.constructor.hasOwnProperty(c)}(Re)?Re.constructor[c]:[]}function N(Re,ke,de){const ye=u(Re).constructor.name,ht=function V(Re){return[T,r].reduce((de,ye)=>de.concat(ye(Re)),[])}(Re).map(({propertyName:mt,dispatch:Ft,useEffectsErrorHandler:nt})=>{const He="function"==typeof Re[mt]?Re[mt]():Re[mt],rt=nt?de(He,ke):He;return!1===Ft?rt.pipe((0,ee.l)()):rt.pipe(function k(){return(0,D.e)((Re,ke)=>{Re.subscribe((0,S.x)(ke,de=>{ke.next(L.createNext(de))},()=>{ke.next(L.createComplete()),ke.complete()},de=>{ke.next(L.createError(de)),ke.complete()}))})}()).pipe((0,Z.U)(Ae=>({effect:Re[mt],notification:Ae,propertyName:mt,sourceName:ye,sourceInstance:Re})))});return(0,e.T)(...ht)}function X(Re,ke,de=10){return Re.pipe((0,ue.K)(ye=>(ke&&ke.handleError(ye),de<=1?Re:X(Re,ke,de-1))))}let he=(()=>{class Re extends f.y{constructor(de){super(),de&&(this.source=de)}lift(de){const ye=new Re;return ye.source=this,ye.operator=de,ye}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(t.Y$))},Re.\u0275prov=q.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function be(...Re){return(0,ne.h)(ke=>Re.some(de=>"string"==typeof de?de===ke.type:de.type===ke.type))}function we(Re){return ce(Re,"ngrxOnInitEffects")}function ce(Re,ke){return Re&&ke in Re&&"function"==typeof Re[ke]}const Te=new q.OlP("@ngrx/effects Internal Root Guard"),xe=new q.OlP("@ngrx/effects User Provided Effects"),W=new q.OlP("@ngrx/effects Internal Root Effects"),te=new q.OlP("@ngrx/effects Root Effects"),Ce=new q.OlP("@ngrx/effects Internal Feature Effects"),fe=new q.OlP("@ngrx/effects Feature Effects"),Q=new q.OlP("@ngrx/effects Effects Error Handler");let pt=(()=>{class Re extends M.x{constructor(de,ye){super(),this.errorHandler=de,this.effectsErrorHandler=ye}addEffects(de){this.next(de)}toActions(){return this.pipe(B(u),(0,re.z)(de=>de.pipe(B(tt))),(0,re.z)(de=>{const ye=de.pipe(Y(mt=>function Dt(Re,ke){return de=>{const ye=N(de,Re,ke);return function ut(Re){return ce(Re,"ngrxOnRunEffects")}(de)?de.ngrxOnRunEffects(ye):ye}}(this.errorHandler,this.effectsErrorHandler)(mt)),(0,Z.U)(mt=>(function Pe(Re,ke){if("N"===Re.notification.kind){const de=Re.notification.value;!function Ee(Re){return"function"!=typeof Re&&Re&&Re.type&&"string"==typeof Re.type}(de)&&ke.handleError(new Error(`Effect ${function j({propertyName:Re,sourceInstance:ke,sourceName:de}){const ye="function"==typeof ke[Re];return`"${de}.${String(Re)}${ye?"()":""}"`}(Re)} dispatched an invalid action: ${function Ve(Re){try{return JSON.stringify(Re)}catch(ke){return Re}}(de)}`))}}(mt,this.errorHandler),mt.notification)),(0,ne.h)(mt=>"N"===mt.kind&&null!=mt.value),function ae(){return(0,D.e)((Re,ke)=>{Re.subscribe((0,S.x)(ke,de=>w(de,ke)))})}()),ht=de.pipe((0,ge.q)(1),(0,ne.h)(we),(0,Z.U)(mt=>mt.ngrxOnInitEffects()));return(0,e.T)(ye,ht)}))}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(q.qLn),q.LFG(Q))},Re.\u0275prov=q.Yz7({token:Re,factory:Re.\u0275fac}),Re})();function tt(Re){return function J(Re){return ce(Re,"ngrxOnIdentifyEffects")}(Re)?Re.ngrxOnIdentifyEffects():""}let di=(()=>{class Re{constructor(de,ye){this.effectSources=de,this.store=ye,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(pt),q.LFG(t.yh))},Re.\u0275prov=q.Yz7({token:Re,factory:Re.\u0275fac}),Re})();const Yt="@ngrx/effects/init";(0,t.PH)(Yt);let ui=(()=>{class Re{constructor(de,ye,ht,mt,Ft,nt,He){this.sources=de,ye.start(),mt.forEach(rt=>de.addEffects(rt)),ht.dispatch({type:Yt})}addEffects(de){this.sources.addEffects(de)}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(pt),q.LFG(di),q.LFG(t.yh),q.LFG(te),q.LFG(t.cr,8),q.LFG(t.CK,8),q.LFG(Te,8))},Re.\u0275mod=q.oAB({type:Re}),Re.\u0275inj=q.cJS({}),Re})(),Ot=(()=>{class Re{constructor(de,ye,ht,mt){ye.forEach(Ft=>Ft.forEach(nt=>de.addEffects(nt)))}}return Re.\u0275fac=function(de){return new(de||Re)(q.LFG(ui),q.LFG(fe),q.LFG(t.cr,8),q.LFG(t.CK,8))},Re.\u0275mod=q.oAB({type:Re}),Re.\u0275inj=q.cJS({}),Re})(),Nt=(()=>{class Re{static forFeature(de=[]){return{ngModule:Ot,providers:[de,{provide:Ce,multi:!0,useValue:de},{provide:xe,multi:!0,useValue:[]},{provide:fe,multi:!0,useFactory:gt,deps:[q.zs3,Ce,xe]}]}}static forRoot(de=[]){return{ngModule:ui,providers:[{provide:Q,useValue:X},di,pt,he,de,{provide:W,useValue:[de]},{provide:Te,useFactory:bt,deps:[[di,new q.FiY,new q.tp0],[W,new q.PiD]]},{provide:xe,multi:!0,useValue:[]},{provide:te,useFactory:gt,deps:[q.zs3,W,xe]}]}}}return Re.\u0275fac=function(de){return new(de||Re)},Re.\u0275mod=q.oAB({type:Re}),Re.\u0275inj=q.cJS({}),Re})();function gt(Re,ke,de){const ye=[];for(const ht of ke)ye.push(...ht);for(const ht of de)ye.push(...ht);return function it(Re,ke){return ke.map(de=>Re.get(de))}(Re,ye)}function bt(Re,ke){if((1!==ke.length||0!==ke[0].length)&&Re)throw new TypeError("EffectsModule.forRoot() called twice. Feature modules should use EffectsModule.forFeature() instead.");return"guarded"}},9565:(__unused_webpack___webpack_module__,__webpack_exports__,__webpack_require__)=>{"use strict";__webpack_require__.d(__webpack_exports__,{FT:()=>StoreDevtoolsModule});var _angular_core__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(5e3),_ngrx_store__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(5620),rxjs__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(515),rxjs__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(8306),rxjs__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(9646),rxjs__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6451),rxjs__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(233),rxjs__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(4707),rxjs_operators__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3099),rxjs_operators__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(9300),rxjs_operators__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4004),rxjs_operators__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4351),rxjs_operators__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(7414),rxjs_operators__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(8372),rxjs_operators__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(262),rxjs_operators__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(5698),rxjs_operators__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(2722),rxjs_operators__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(3900),rxjs_operators__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(5684),rxjs_operators__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(5363),rxjs_operators__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(1365),rxjs_operators__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(5026);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(Be){const K={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}},p="function"==typeof Be?Be():Be,f=Object.assign({},K,{features:p.features||!!p.logOnly&&{pause:!0,export:!0,test:!0}||K.features},p);if(f.maxAge&&f.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${f.maxAge}`);return f}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(K,p){if(this.action=K,this.timestamp=p,this.type=PERFORM_ACTION,void 0===K.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(K){this.timestamp=K,this.type=RESET}}class Rollback{constructor(K){this.timestamp=K,this.type=ROLLBACK}}class Commit{constructor(K){this.timestamp=K,this.type=COMMIT}}class Sweep{constructor(){this.type=SWEEP}}class ToggleAction{constructor(K){this.id=K,this.type=TOGGLE_ACTION}}class SetActionsActive{constructor(K,p,t=!0){this.start=K,this.end=p,this.active=t,this.type=SET_ACTIONS_ACTIVE}}class JumpToState{constructor(K){this.index=K,this.type=JUMP_TO_STATE}}class JumpToAction{constructor(K){this.actionId=K,this.type=JUMP_TO_ACTION}}class ImportState{constructor(K){this.nextLiftedState=K,this.type=IMPORT_STATE}}class LockChanges{constructor(K){this.status=K,this.type=LOCK_CHANGES}}class PauseRecording{constructor(K){this.status=K,this.type=PAUSE_RECORDING}}function difference(Be,K){return Be.filter(p=>K.indexOf(p)<0)}function unliftState(Be){const{computedStates:K,currentStateIndex:p}=Be;if(p>=K.length){const{state:e}=K[K.length-1];return e}const{state:t}=K[p];return t}function unliftAction(Be){return Be.actionsById[Be.nextActionId-1]}function liftAction(Be){return new PerformAction(Be,+Date.now())}function sanitizeActions(Be,K){return Object.keys(K).reduce((p,t)=>{const e=Number(t);return p[e]=sanitizeAction(Be,K[e],e),p},{})}function sanitizeAction(Be,K,p){return Object.assign(Object.assign({},K),{action:Be(K.action,p)})}function sanitizeStates(Be,K){return K.map((p,t)=>({state:sanitizeState(Be,p.state,t),error:p.error}))}function sanitizeState(Be,K,p){return Be(K,p)}function shouldFilterActions(Be){return Be.predicate||Be.actionsSafelist||Be.actionsBlocklist}function filterLiftedState(Be,K,p,t){const e=[],f={},M=[];return Be.stagedActionIds.forEach((a,C)=>{const d=Be.actionsById[a];!d||C&&isActionFiltered(Be.computedStates[C],d,K,p,t)||(f[a]=d,e.push(a),M.push(Be.computedStates[C]))}),Object.assign(Object.assign({},Be),{stagedActionIds:e,actionsById:f,computedStates:M})}function isActionFiltered(Be,K,p,t,e){const f=p&&!p(Be,K.action),M=t&&!K.action.type.match(t.map(C=>escapeRegExp(C)).join("|")),a=e&&K.action.type.match(e.map(C=>escapeRegExp(C)).join("|"));return f||M||a}function escapeRegExp(Be){return Be.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}const INIT_ACTION={type:_ngrx_store__WEBPACK_IMPORTED_MODULE_1__.qg},RECOMPUTE="@ngrx/store-devtools/recompute",RECOMPUTE_ACTION={type:RECOMPUTE};function computeNextEntry(Be,K,p,t,e){if(t)return{state:p,error:"Interrupted by an error up the chain"};let M,f=p;try{f=Be(p,K)}catch(a){M=a.toString(),e.handleError(a)}return{state:f,error:M}}function recomputeStates(Be,K,p,t,e,f,M,a,C){if(K>=Be.length&&Be.length===f.length)return Be;const d=Be.slice(0,K),R=f.length-(C?1:0);for(let h=K;h-1?D:computeNextEntry(p,w,S,k,a);d.push(B)}return C&&d.push(Be[Be.length-1]),d}function liftInitialState(Be,K){return{monitorState:K(void 0,{}),nextActionId:1,actionsById:{0:liftAction(INIT_ACTION)},stagedActionIds:[0],skippedActionIds:[],committedState:Be,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function liftReducerWith(Be,K,p,t,e={}){return f=>(M,a)=>{let{monitorState:C,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}=M||K;function B(ae){let ee=ae,ue=h.slice(1,ee+1);for(let ne=0;ne-1===ue.indexOf(ne)),h=[0,...h.slice(ee+1)],w=S[ee].state,S=S.slice(ee),D=D>ee?D-ee:0}function Z(){d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],w=S[D].state,D=0,S=[]}M||(d=Object.create(d));let Y=0;switch(a.type){case LOCK_CHANGES:k=a.status,Y=1/0;break;case PAUSE_RECORDING:E=a.status,E?(h=[...h,R],d[R]=new PerformAction({type:"@ngrx/devtools/pause"},+Date.now()),R++,Y=h.length-1,S=S.concat(S[S.length-1]),D===h.length-2&&D++,Y=1/0):Z();break;case RESET:d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],w=Be,D=0,S=[];break;case COMMIT:Z();break;case ROLLBACK:d={0:liftAction(INIT_ACTION)},R=1,h=[0],L=[],D=0,S=[];break;case TOGGLE_ACTION:{const{id:ae}=a;L=-1===L.indexOf(ae)?[ae,...L]:L.filter(ue=>ue!==ae),Y=h.indexOf(ae);break}case SET_ACTIONS_ACTIVE:{const{start:ae,end:ee,active:ue}=a,ne=[];for(let re=ae;ree.maxAge&&(S=recomputeStates(S,Y,f,w,d,h,L,p,E),B(h.length-e.maxAge),Y=1/0);break;case _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.wb:if(S.filter(ee=>ee.error).length>0)Y=0,e.maxAge&&h.length>e.maxAge&&(S=recomputeStates(S,Y,f,w,d,h,L,p,E),B(h.length-e.maxAge),Y=1/0);else{if(!E&&!k){D===h.length-1&&D++;const ee=R++;d[ee]=new PerformAction(a,+Date.now()),h=[...h,ee],Y=h.length-1,S=recomputeStates(S,Y,f,w,d,h,L,p,E)}S=S.map(ee=>Object.assign(Object.assign({},ee),{state:f(ee.state,RECOMPUTE_ACTION)})),D=h.length-1,e.maxAge&&h.length>e.maxAge&&B(h.length-e.maxAge),Y=1/0}break;default:Y=1/0}return S=recomputeStates(S,Y,f,w,d,h,L,p,E),C=t(C,a),{monitorState:C,actionsById:d,nextActionId:R,stagedActionIds:h,skippedActionIds:L,committedState:w,currentStateIndex:D,computedStates:S,isLocked:k,isPaused:E}}}let DevtoolsDispatcher=(()=>{class Be extends _ngrx_store__WEBPACK_IMPORTED_MODULE_1__.UO{}return Be.\u0275fac=function(){let K;return function(t){return(K||(K=_angular_core__WEBPACK_IMPORTED_MODULE_0__.n5z(Be)))(t||Be)}}(),Be.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Be,factory:Be.\u0275fac}),Be})();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(Be,K,p){this.config=K,this.dispatcher=p,this.devtoolsExtension=Be,this.createActionStreams()}notify(Be,K){if(this.devtoolsExtension)if(Be.type===PERFORM_ACTION){if(K.isLocked||K.isPaused)return;const p=unliftState(K);if(shouldFilterActions(this.config)&&isActionFiltered(p,Be,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;const t=this.config.stateSanitizer?sanitizeState(this.config.stateSanitizer,p,K.currentStateIndex):p,e=this.config.actionSanitizer?sanitizeAction(this.config.actionSanitizer,Be,K.nextActionId):Be;this.sendToReduxDevtools(()=>this.extensionConnection.send(e,t))}else{const p=Object.assign(Object.assign({},K),{stagedActionIds:K.stagedActionIds,actionsById:this.config.actionSanitizer?sanitizeActions(this.config.actionSanitizer,K.actionsById):K.actionsById,computedStates:this.config.stateSanitizer?sanitizeStates(this.config.stateSanitizer,K.computedStates):K.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,p,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new rxjs__WEBPACK_IMPORTED_MODULE_3__.y(Be=>{const K=this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=K,K.init(),K.subscribe(p=>Be.next(p)),K.unsubscribe}):rxjs__WEBPACK_IMPORTED_MODULE_2__.E}createActionStreams(){const Be=this.createChangesObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_4__.B)()),K=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.START)),p=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.STOP)),t=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.DISPATCH),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_7__.b)(a=>a.type===IMPORT_STATE?this.dispatcher.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(C=>C.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)(()=>a),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_10__.K)(()=>(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a)),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_12__.q)(1)):(0,rxjs__WEBPACK_IMPORTED_MODULE_11__.of)(a))),f=Be.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_5__.h)(a=>a.type===ExtensionActionTypes.ACTION),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(a=>this.unwrapAction(a.payload))).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),M=t.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p));this.start$=K.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_13__.R)(p)),this.actions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>f)),this.liftedActions$=this.start$.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_14__.w)(()=>M))}unwrapAction(action){return"string"==typeof action?eval(`(${action})`):action}getExtensionConfig(Be){var K;const p={name:Be.name,features:Be.features,serialize:Be.serialize,autoPause:null!==(K=Be.autoPause)&&void 0!==K&&K};return!1!==Be.maxAge&&(p.maxAge=Be.maxAge),p}sendToReduxDevtools(Be){try{Be()}catch(K){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",K)}}}return DevtoolsExtension.\u0275fac=function Be(K){return new(K||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})(),StoreDevtools=(()=>{class Be{constructor(p,t,e,f,M,a,C,d){const R=liftInitialState(C,d.monitor),h=liftReducerWith(C,R,a,d.monitor,d),L=(0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)((0,rxjs__WEBPACK_IMPORTED_MODULE_15__.T)(t.asObservable().pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_16__.T)(1)),f.actions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(liftAction)),p,f.liftedActions$).pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_17__.Q)(rxjs__WEBPACK_IMPORTED_MODULE_18__.N)),w=e.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(h)),D=new rxjs__WEBPACK_IMPORTED_MODULE_19__.t(1),S=L.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_20__.M)(w),(0,rxjs_operators__WEBPACK_IMPORTED_MODULE_21__.R)(({state:Z},[Y,ae])=>{let ee=ae(Z,Y);return Y.type!==PERFORM_ACTION&&shouldFilterActions(d)&&(ee=filterLiftedState(ee,d.predicate,d.actionsSafelist,d.actionsBlocklist)),f.notify(Y,ee),{state:ee,action:Y}},{state:R,action:null})).subscribe(({state:Z,action:Y})=>{D.next(Z),Y.type===PERFORM_ACTION&&M.next(Y.action)}),k=f.start$.subscribe(()=>{this.refresh()}),E=D.asObservable(),B=E.pipe((0,rxjs_operators__WEBPACK_IMPORTED_MODULE_6__.U)(unliftState));this.extensionStartSubscription=k,this.stateSubscription=S,this.dispatcher=p,this.liftedState=E,this.state=B}dispatch(p){this.dispatcher.next(p)}next(p){this.dispatcher.next(p)}error(p){}complete(){}performAction(p){this.dispatch(new PerformAction(p,+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(p){this.dispatch(new ToggleAction(p))}jumpToAction(p){this.dispatch(new JumpToAction(p))}jumpToState(p){this.dispatch(new JumpToState(p))}importState(p){this.dispatch(new ImportState(p))}lockChanges(p){this.dispatch(new LockChanges(p))}pauseRecording(p){this.dispatch(new PauseRecording(p))}}return Be.\u0275fac=function(p){return new(p||Be)(_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))},Be.\u0275prov=_angular_core__WEBPACK_IMPORTED_MODULE_0__.Yz7({token:Be,factory:Be.\u0275fac}),Be})();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(Be,K){return Boolean(Be)||K.monitor!==noMonitor}function createReduxDevtoolsExtension(){const Be="__REDUX_DEVTOOLS_EXTENSION__";return"object"==typeof window&&void 0!==window[Be]?window[Be]:null}function createStateObservable(Be){return Be.state}let StoreDevtoolsModule=(()=>{class Be{static instrument(p={}){return{ngModule:Be,providers:[DevtoolsExtension,DevtoolsDispatcher,StoreDevtools,{provide:INITIAL_OPTIONS,useValue:p},{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 Be.\u0275fac=function(p){return new(p||Be)},Be.\u0275mod=_angular_core__WEBPACK_IMPORTED_MODULE_0__.oAB({type:Be}),Be.\u0275inj=_angular_core__WEBPACK_IMPORTED_MODULE_0__.cJS({}),Be})()},5620:(Be,K,p)=>{"use strict";p.d(K,{UO:()=>ge,qg:()=>re,Y6:()=>i,mK:()=>we,n$:()=>Oe,Y$:()=>W,FR:()=>Ce,yh:()=>tt,CK:()=>xt,Aw:()=>Bt,cr:()=>Xe,wb:()=>ce,qC:()=>J,PH:()=>k,ZF:()=>ot,Lq:()=>Ri,P1:()=>et,on:()=>ii,Ky:()=>E});var t=p(5e3),e=p(1135),f=p(8306),M=p(7579),a=p(233),C=p(4004),R=p(5363),h=p(1365),L=p(5026),w=p(1884);const D={};function k(st,Rt){if(D[st]=(D[st]||0)+1,"function"==typeof Rt)return Z(st,(...fi)=>Object.assign(Object.assign({},Rt(...fi)),{type:st}));switch(Rt?Rt._as:"empty"){case"empty":return Z(st,()=>({type:st}));case"props":return Z(st,fi=>Object.assign(Object.assign({},fi),{type:st}));default:throw new Error("Unexpected config.")}}function E(){return{_as:"props",_p:void 0}}function Z(st,Rt){return Object.defineProperty(Rt,"type",{value:st,writable:!1})}const re="@ngrx/store/init";let ge=(()=>{class st extends e.X{constructor(){super({type:re})}next(Wt){if("function"==typeof Wt)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===Wt)throw new TypeError("Actions must be objects");if(void 0===Wt.type)throw new TypeError("Actions must have a type property");super.next(Wt)}complete(){}ngOnDestroy(){super.complete()}}return st.\u0275fac=function(Wt){return new(Wt||st)},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const q=[ge],_e=new t.OlP("@ngrx/store Internal Root Guard"),x=new t.OlP("@ngrx/store Internal Initial State"),i=new t.OlP("@ngrx/store Initial State"),r=new t.OlP("@ngrx/store Reducer Factory"),u=new t.OlP("@ngrx/store Internal Reducer Factory Provider"),c=new t.OlP("@ngrx/store Initial Reducers"),v=new t.OlP("@ngrx/store Internal Initial Reducers"),T=new t.OlP("@ngrx/store Store Features"),I=new t.OlP("@ngrx/store Internal Store Reducers"),y=new t.OlP("@ngrx/store Internal Feature Reducers"),n=new t.OlP("@ngrx/store Internal Feature Configs"),_=new t.OlP("@ngrx/store Internal Store Features"),V=new t.OlP("@ngrx/store Internal Feature Reducers Token"),N=new t.OlP("@ngrx/store Feature Reducers"),H=new t.OlP("@ngrx/store User Provided Meta Reducers"),X=new t.OlP("@ngrx/store Meta Reducers"),he=new t.OlP("@ngrx/store Internal Resolved Meta Reducers"),be=new t.OlP("@ngrx/store User Runtime Checks Config"),Pe=new t.OlP("@ngrx/store Internal User Runtime Checks Config"),Ee=new t.OlP("@ngrx/store Internal Runtime Checks"),j=new t.OlP("@ngrx/store Check if Action types are unique");function Ve(st,Rt={}){const Wt=Object.keys(st),fi={};for(let Ni=0;NiNi(Ei),Wt(Rt))}}function Ie(st,Rt){return Array.isArray(Rt)&&Rt.length>0&&(st=J.apply(null,[...Rt,st])),(Wt,fi)=>{const Ei=st(Wt);return(Ni,mn)=>Ei(Ni=void 0===Ni?fi:Ni,mn)}}class Oe extends f.y{}class we extends ge{}const ce="@ngrx/store/update-reducers";let Te=(()=>{class st extends e.X{constructor(Wt,fi,Ei,Ni){super(Ni(Ei,fi)),this.dispatcher=Wt,this.initialState=fi,this.reducers=Ei,this.reducerFactory=Ni}get currentReducers(){return this.reducers}addFeature(Wt){this.addFeatures([Wt])}addFeatures(Wt){const fi=Wt.reduce((Ei,{reducers:Ni,reducerFactory:mn,metaReducers:In,initialState:Rn,key:tr})=>{const gn="function"==typeof Ni?function ut(st){const Rt=Array.isArray(st)&&st.length>0?J(...st):Wt=>Wt;return(Wt,fi)=>(Wt=Rt(Wt),(Ei,Ni)=>Wt(Ei=void 0===Ei?fi:Ei,Ni))}(In)(Ni,Rn):Ie(mn,In)(Ni,Rn);return Ei[tr]=gn,Ei},{});this.addReducers(fi)}removeFeature(Wt){this.removeFeatures([Wt])}removeFeatures(Wt){this.removeReducers(Wt.map(fi=>fi.key))}addReducer(Wt,fi){this.addReducers({[Wt]:fi})}addReducers(Wt){this.reducers=Object.assign(Object.assign({},this.reducers),Wt),this.updateReducers(Object.keys(Wt))}removeReducer(Wt){this.removeReducers([Wt])}removeReducers(Wt){Wt.forEach(fi=>{this.reducers=function Me(st,Rt){return Object.keys(st).filter(Wt=>Wt!==Rt).reduce((Wt,fi)=>Object.assign(Wt,{[fi]:st[fi]}),{})}(this.reducers,fi)}),this.updateReducers(Wt)}updateReducers(Wt){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:ce,features:Wt})}ngOnDestroy(){this.complete()}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(we),t.LFG(i),t.LFG(c),t.LFG(r))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const xe=[Te,{provide:Oe,useExisting:Te},{provide:we,useExisting:ge}];let W=(()=>{class st extends M.x{ngOnDestroy(){this.complete()}}return st.\u0275fac=function(){let Rt;return function(fi){return(Rt||(Rt=t.n5z(st)))(fi||st)}}(),st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const te=[W];class Ce extends f.y{}let fe=(()=>{class st extends e.X{constructor(Wt,fi,Ei,Ni){super(Ni);const tr=Wt.pipe((0,R.Q)(a.N)).pipe((0,h.M)(fi)).pipe((0,L.R)(Q,{state:Ni}));this.stateSubscription=tr.subscribe(({state:gn,action:Ti})=>{this.next(gn),Ei.next(Ti)})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}}return st.INIT=re,st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(ge),t.LFG(Oe),t.LFG(W),t.LFG(i))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();function Q(st={state:void 0},[Rt,Wt]){const{state:fi}=st;return{state:Wt(fi,Rt),action:Rt}}const pt=[fe,{provide:Ce,useExisting:fe}];let tt=(()=>{class st extends f.y{constructor(Wt,fi,Ei){super(),this.actionsObserver=fi,this.reducerManager=Ei,this.source=Wt}select(Wt,...fi){return di.call(null,Wt,...fi)(this)}lift(Wt){const fi=new st(this,this.actionsObserver,this.reducerManager);return fi.operator=Wt,fi}dispatch(Wt){this.actionsObserver.next(Wt)}next(Wt){this.actionsObserver.next(Wt)}error(Wt){this.actionsObserver.error(Wt)}complete(){this.actionsObserver.complete()}addReducer(Wt,fi){this.reducerManager.addReducer(Wt,fi)}removeReducer(Wt){this.reducerManager.removeReducer(Wt)}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(Ce),t.LFG(ge),t.LFG(Te))},st.\u0275prov=t.Yz7({token:st,factory:st.\u0275fac}),st})();const Dt=[tt];function di(st,Rt,...Wt){return function(Ei){let Ni;if("string"==typeof st){const mn=[Rt,...Wt].filter(Boolean);Ni=Ei.pipe(function d(...st){const Rt=st.length;if(0===Rt)throw new Error("list of properties cannot be empty.");return(0,C.U)(Wt=>{let fi=Wt;for(let Ei=0;Eist(mn,Rt)))}return Ni.pipe((0,w.x)())}}const Yt="https://ngrx.io/guide/store/configuration/runtime-checks";function Zt(st){return void 0===st}function ui(st){return null===st}function Ot(st){return Array.isArray(st)}function bt(st){return"object"==typeof st&&null!==st}function Re(st){return"function"==typeof st}function Ft(st,Rt){return st===Rt}function nt(st,Rt,Wt){for(let fi=0;fign.release&&"function"==typeof gn.release),In=st(function(...gn){return Ni.apply(null,gn)}),Rn=rt(function(gn,Ti){return Rt.stateFn.apply(null,[gn,Ei,Ti,In])});return Object.assign(Rn.memoized,{release:function tr(){Rn.reset(),In.reset(),mn.forEach(gn=>gn.release())},projector:In.memoized,setResult:Rn.setResult,clearResult:Rn.clearResult})}}(rt)(...st)}function Ae(st,Rt,Wt,fi){if(void 0===Wt){const Ni=Rt.map(mn=>mn(st));return fi.memoized.apply(null,Ni)}const Ei=Rt.map(Ni=>Ni(st,Wt));return fi.memoized.apply(null,[...Ei,Wt])}function ot(st){return et(Rt=>{const Wt=Rt[st];return(0,t.X6Q)()&&!(st in Rt)&&console.warn(`@ngrx/store: The feature name "${st}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${st}', ...) or StoreModule.forFeature('${st}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),Wt},Rt=>Rt)}function ei(st){Object.freeze(st);const Rt=Re(st);return Object.getOwnPropertyNames(st).forEach(Wt=>{if(!Wt.startsWith("\u0275")&&function de(st,Rt){return Object.prototype.hasOwnProperty.call(st,Rt)}(st,Wt)&&(!Rt||"caller"!==Wt&&"callee"!==Wt&&"arguments"!==Wt)){const fi=st[Wt];(bt(fi)||Re(fi))&&!Object.isFrozen(fi)&&ei(fi)}}),st}function hi(st,Rt=[]){return(Zt(st)||ui(st))&&0===Rt.length?{path:["root"],value:st}:Object.keys(st).reduce((fi,Ei)=>{if(fi)return fi;const Ni=st[Ei];return function ke(st){return Re(st)&&st.hasOwnProperty("\u0275cmp")}(Ni)?fi:!(Zt(Ni)||ui(Ni)||function it(st){return"number"==typeof st}(Ni)||function gt(st){return"boolean"==typeof st}(Ni)||function Nt(st){return"string"==typeof st}(Ni)||Ot(Ni))&&(function Qt(st){if(!function ti(st){return bt(st)&&!Ot(st)}(st))return!1;const Rt=Object.getPrototypeOf(st);return Rt===Object.prototype||null===Rt}(Ni)?hi(Ni,[...Rt,Ei]):{path:[...Rt,Ei],value:Ni})},!1)}function si(st,Rt){if(!1===st)return;const Wt=st.path.join("."),fi=new Error(`Detected unserializable ${Rt} at "${Wt}". ${Yt}#strict${Rt}serializability`);throw fi.value=st.value,fi.unserializablePath=Wt,fi}function Zi(st){return(0,t.X6Q)()?Object.assign({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},st):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function Vi({strictActionSerializability:st,strictStateSerializability:Rt}){return Wt=>st||Rt?function Qi(st,Rt){return function(Wt,fi){Rt.action(fi)&&si(hi(fi),"action");const Ei=st(Wt,fi);return Rt.state()&&si(hi(Ei),"state"),Ei}}(Wt,{action:fi=>st&&!Ue(fi),state:()=>Rt}):Wt}function Ui({strictActionImmutability:st,strictStateImmutability:Rt}){return Wt=>st||Rt?function Jt(st,Rt){return function(Wt,fi){const Ei=Rt.action(fi)?ei(fi):fi,Ni=st(Wt,Ei);return Rt.state()?ei(Ni):Ni}}(Wt,{action:fi=>st&&!Ue(fi),state:()=>Rt}):Wt}function Ue(st){return st.type.startsWith("@ngrx")}function Tt({strictActionWithinNgZone:st}){return Rt=>st?function Ji(st,Rt){return function(Wt,fi){if(Rt.action(fi)&&!t.R0b.isInAngularZone())throw new Error(`Action '${fi.type}' running outside NgZone. ${Yt}#strictactionwithinngzone`);return st(Wt,fi)}}(Rt,{action:Wt=>st&&!Ue(Wt)}):Rt}function ve(st){return[{provide:Pe,useValue:st},{provide:be,useFactory:_t,deps:[Pe]},{provide:Ee,deps:[be],useFactory:Zi},{provide:X,multi:!0,deps:[Ee],useFactory:Ui},{provide:X,multi:!0,deps:[Ee],useFactory:Vi},{provide:X,multi:!0,deps:[Ee],useFactory:Tt}]}function Qe(){return[{provide:j,multi:!0,deps:[Ee],useFactory:se}]}function _t(st){return st}function se(st){if(!st.strictActionTypeUniqueness)return;const Rt=Object.entries(D).filter(([,Wt])=>Wt>1).map(([Wt])=>Wt);if(Rt.length)throw new Error(`Action types are registered more than once, ${Rt.map(Wt=>`"${Wt}"`).join(", ")}. ${Yt}#strictactiontypeuniqueness`)}let Xe=(()=>{class st{constructor(Wt,fi,Ei,Ni,mn,In){}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(ge),t.LFG(Oe),t.LFG(W),t.LFG(tt),t.LFG(_e,8),t.LFG(j,8))},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})(),xt=(()=>{class st{constructor(Wt,fi,Ei,Ni,mn){this.features=Wt,this.featureReducers=fi,this.reducerManager=Ei;const In=Wt.map((Rn,tr)=>{const Ti=fi.shift()[tr];return Object.assign(Object.assign({},Rn),{reducers:Ti,initialState:Wi(Rn.initialState)})});Ei.addFeatures(In)}ngOnDestroy(){this.reducerManager.removeFeatures(this.features)}}return st.\u0275fac=function(Wt){return new(Wt||st)(t.LFG(_),t.LFG(N),t.LFG(Te),t.LFG(Xe),t.LFG(j,8))},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})(),Bt=(()=>{class st{static forRoot(Wt,fi={}){return{ngModule:Xe,providers:[{provide:_e,useFactory:pn,deps:[[tt,new t.FiY,new t.tp0]]},{provide:x,useValue:fi.initialState},{provide:i,useFactory:Wi,deps:[x]},{provide:v,useValue:Wt},{provide:I,useExisting:Wt instanceof t.OlP?Wt:v},{provide:c,deps:[t.zs3,v,[new t.tBr(I)]],useFactory:bi},{provide:H,useValue:fi.metaReducers?fi.metaReducers:[]},{provide:he,deps:[X,H],useFactory:on},{provide:u,useValue:fi.reducerFactory?fi.reducerFactory:Ve},{provide:r,deps:[u,he],useFactory:Ie},q,xe,te,pt,Dt,ve(fi.runtimeChecks),Qe()]}}static forFeature(Wt,fi,Ei={}){return{ngModule:xt,providers:[{provide:n,multi:!0,useValue:Wt instanceof Object?{}:Ei},{provide:T,multi:!0,useValue:{key:Wt instanceof Object?Wt.name:Wt,reducerFactory:Ei instanceof t.OlP||!Ei.reducerFactory?Ve:Ei.reducerFactory,metaReducers:Ei instanceof t.OlP||!Ei.metaReducers?[]:Ei.metaReducers,initialState:Ei instanceof t.OlP||!Ei.initialState?void 0:Ei.initialState}},{provide:_,deps:[t.zs3,n,T],useFactory:Si},{provide:y,multi:!0,useValue:Wt instanceof Object?Wt.reducer:fi},{provide:V,multi:!0,useExisting:fi instanceof t.OlP?fi:y},{provide:N,multi:!0,deps:[t.zs3,y,[new t.tBr(V)]],useFactory:Xi},Qe()]}}}return st.\u0275fac=function(Wt){return new(Wt||st)},st.\u0275mod=t.oAB({type:st}),st.\u0275inj=t.cJS({}),st})();function bi(st,Rt){return Rt instanceof t.OlP?st.get(Rt):Rt}function Si(st,Rt,Wt){return Wt.map((fi,Ei)=>{if(Rt[Ei]instanceof t.OlP){const Ni=st.get(Rt[Ei]);return{key:fi.key,reducerFactory:Ni.reducerFactory?Ni.reducerFactory:Ve,metaReducers:Ni.metaReducers?Ni.metaReducers:[],initialState:Ni.initialState}}return fi})}function Xi(st,Rt){return Rt.map(fi=>fi instanceof t.OlP?st.get(fi):fi)}function Wi(st){return"function"==typeof st?st():st}function on(st,Rt){return st.concat(Rt)}function pn(st){if(st)throw new TypeError("StoreModule.forRoot() called twice. Feature modules should use StoreModule.forFeature() instead.");return"guarded"}function ii(...st){return{reducer:st.pop(),types:st.map(fi=>fi.type)}}function Ri(st,...Rt){const Wt=new Map;for(const fi of Rt)for(const Ei of fi.types){const Ni=Wt.get(Ei);Wt.set(Ei,Ni?(In,Rn)=>fi.reducer(Ni(In,Rn),Rn):fi.reducer)}return function(fi=st,Ei){const Ni=Wt.get(Ei.type);return Ni?Ni(fi,Ei):fi}}},1210:(Be,K,p)=>{"use strict";p.d(K,{H5:()=>e4,K$:()=>Oh,a4:()=>tf});var t=p(5e3),e=p(9808),f=p(655),M=p(7429),a=p(4968),C=p(8372),d=p(1777);function R(){}function h(m){return null==m?R:function(){return this.querySelector(m)}}function w(m){return"object"==typeof m&&"length"in m?m:Array.from(m)}function D(){return[]}function S(m){return null==m?D:function(){return this.querySelectorAll(m)}}function B(m){return function(){return this.matches(m)}}function Z(m){return function(O){return O.matches(m)}}var Y=Array.prototype.find;function ee(){return this.firstElementChild}var ne=Array.prototype.filter;function re(){return this.children}function x(m){return new Array(m.length)}function r(m,O){this.ownerDocument=m.ownerDocument,this.namespaceURI=m.namespaceURI,this._next=null,this._parent=m,this.__data__=O}function u(m){return function(){return m}}function c(m,O,o,b,z,$){for(var dt,Ne=0,Gt=O.length,Ut=$.length;NeO?1:m>=O?0:NaN}r.prototype={constructor:r,appendChild:function(m){return this._parent.insertBefore(m,this._next)},insertBefore:function(m,O){return this._parent.insertBefore(m,O)},querySelector:function(m){return this._parent.querySelector(m)},querySelectorAll:function(m){return this._parent.querySelectorAll(m)}};var Ve="http://www.w3.org/1999/xhtml";const Me={svg:"http://www.w3.org/2000/svg",xhtml:Ve,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function J(m){var O=m+="",o=O.indexOf(":");return o>=0&&"xmlns"!==(O=m.slice(0,o))&&(m=m.slice(o+1)),Me.hasOwnProperty(O)?{space:Me[O],local:m}:m}function Ie(m){return function(){this.removeAttribute(m)}}function ut(m){return function(){this.removeAttributeNS(m.space,m.local)}}function Oe(m,O){return function(){this.setAttribute(m,O)}}function we(m,O){return function(){this.setAttributeNS(m.space,m.local,O)}}function ce(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttribute(m):this.setAttribute(m,o)}}function Te(m,O){return function(){var o=O.apply(this,arguments);null==o?this.removeAttributeNS(m.space,m.local):this.setAttributeNS(m.space,m.local,o)}}function W(m){return m.ownerDocument&&m.ownerDocument.defaultView||m.document&&m||m.defaultView}function te(m){return function(){this.style.removeProperty(m)}}function Ce(m,O,o){return function(){this.style.setProperty(m,O,o)}}function fe(m,O,o){return function(){var b=O.apply(this,arguments);null==b?this.style.removeProperty(m):this.style.setProperty(m,b,o)}}function pt(m,O){return m.style.getPropertyValue(O)||W(m).getComputedStyle(m,null).getPropertyValue(O)}function tt(m){return function(){delete this[m]}}function Dt(m,O){return function(){this[m]=O}}function di(m,O){return function(){var o=O.apply(this,arguments);null==o?delete this[m]:this[m]=o}}function Zt(m){return m.trim().split(/^|\s+/)}function ui(m){return m.classList||new Ot(m)}function Ot(m){this._node=m,this._names=Zt(m.getAttribute("class")||"")}function Nt(m,O){for(var o=ui(m),b=-1,z=O.length;++b=0&&(o=O.slice(b+1),O=O.slice(0,b)),{type:O,name:o}})}function Ue(m){return function(){var O=this.__on;if(O){for(var $,o=0,b=-1,z=O.length;o=0&&(this._names.splice(O,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(m){return this._names.indexOf(m)>=0}};var Bt=[null];function bi(m,O){this._groups=m,this._parents=O}function Si(){return new bi([[document.documentElement]],Bt)}bi.prototype=Si.prototype={constructor:bi,select:function L(m){"function"!=typeof m&&(m=h(m));for(var O=this._groups,o=O.length,b=new Array(o),z=0;z=yn&&(yn=vn+1);!(Nn=Li[yn])&&++yn=0;)(Ne=b[z])&&($&&4^Ne.compareDocumentPosition($)&&$.parentNode.insertBefore(Ne,$),$=Ne);return this},sort:function N(m){function O(yi,xi){return yi&&xi?m(yi.__data__,xi.__data__):!yi-!xi}m||(m=H);for(var o=this._groups,b=o.length,z=new Array(b),$=0;$1?this.each((null==O?te:"function"==typeof O?fe:Ce)(m,O,null==o?"":o)):pt(this.node(),m)},property:function Yt(m,O){return arguments.length>1?this.each((null==O?tt:"function"==typeof O?di:Dt)(m,O)):this.node()[m]},classed:function Qt(m,O){var o=Zt(m+"");if(arguments.length<2){for(var b=ui(this.node()),z=-1,$=o.length;++z<$;)if(!b.contains(o[z]))return!1;return!0}return this.each(("function"==typeof O?ti:O?it:bt)(o,O))},text:function ye(m){return arguments.length?this.each(null==m?Re:("function"==typeof m?de:ke)(m)):this.node().textContent},html:function nt(m){return arguments.length?this.each(null==m?ht:("function"==typeof m?Ft:mt)(m)):this.node().innerHTML},raise:function rt(){return this.each(He)},lower:function Ae(){return this.each(et)},append:function Ct(m){var O="function"==typeof m?m:lt(m);return this.select(function(){return this.appendChild(O.apply(this,arguments))})},insert:function Jt(m,O){var o="function"==typeof m?m:lt(m),b=null==O?mi:"function"==typeof O?O:h(O);return this.select(function(){return this.insertBefore(o.apply(this,arguments),b.apply(this,arguments)||null)})},remove:function Qi(){return this.each(ei)},clone:function Ji(m){return this.select(m?si:hi)},datum:function Zi(m){return arguments.length?this.property("__data__",m):this.node().__data__},on:function ve(m,O,o){var z,Ne,b=Ui(m+""),$=b.length;if(!(arguments.length<2)){for(dt=O?Tt:Ue,z=0;z<$;++z)this.each(dt(b[z],O,o));return this}var dt=this.node().__on;if(dt)for(var oi,Gt=0,Ut=dt.length;Gt{}};function ii(){for(var b,m=0,O=arguments.length,o={};m=0&&(b=o.slice(z+1),o=o.slice(0,z)),o&&!O.hasOwnProperty(o))throw new Error("unknown type: "+o);return{type:o,name:b}})}function Rt(m,O){for(var z,o=0,b=m.length;o0)for(var z,$,o=new Array(z),b=0;b>8&15|O>>4&240,O>>4&15|240&O,(15&O)<<4|15&O,1):8===o?Pr(O>>24&255,O>>16&255,O>>8&255,(255&O)/255):4===o?Pr(O>>12&15|O>>8&240,O>>8&15|O>>4&240,O>>4&15|240&O,((15&O)<<4|15&O)/255):null):(O=_a.exec(m))?new cr(O[1],O[2],O[3],1):(O=Sr.exec(m))?new cr(255*O[1]/100,255*O[2]/100,255*O[3]/100,1):(O=fa.exec(m))?Pr(O[1],O[2],O[3],O[4]):(O=zr.exec(m))?Pr(255*O[1]/100,255*O[2]/100,255*O[3]/100,O[4]):(O=ta.exec(m))?va(O[1],O[2]/100,O[3]/100,1):(O=ia.exec(m))?va(O[1],O[2]/100,O[3]/100,O[4]):na.hasOwnProperty(m)?Za(na[m]):"transparent"===m?new cr(NaN,NaN,NaN,0):null}function Za(m){return new cr(m>>16&255,m>>8&255,255&m,1)}function Pr(m,O,o,b){return b<=0&&(m=O=o=NaN),new cr(m,O,o,b)}function Yn(m){return m instanceof gn||(m=pa(m)),m?new cr((m=m.rgb()).r,m.g,m.b,m.opacity):new cr}function Vr(m,O,o,b){return 1===arguments.length?Yn(m):new cr(m,O,o,null==b?1:b)}function cr(m,O,o,b){this.r=+m,this.g=+O,this.b=+o,this.opacity=+b}function Wa(){return"#"+Ya(this.r)+Ya(this.g)+Ya(this.b)}function Wr(){var m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"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===m?")":", "+m+")")}function Ya(m){return((m=Math.max(0,Math.min(255,Math.round(m)||0)))<16?"0":"")+m.toString(16)}function va(m,O,o,b){return b<=0?m=O=o=NaN:o<=0||o>=1?m=O=NaN:O<=0&&(m=NaN),new kr(m,O,o,b)}function dr(m){if(m instanceof kr)return new kr(m.h,m.s,m.l,m.opacity);if(m instanceof gn||(m=pa(m)),!m)return new kr;if(m instanceof kr)return m;var O=(m=m.rgb()).r/255,o=m.g/255,b=m.b/255,z=Math.min(O,o,b),$=Math.max(O,o,b),Ne=NaN,dt=$-z,Gt=($+z)/2;return dt?(Ne=O===$?(o-b)/dt+6*(o0&&Gt<1?0:Ne,new kr(Ne,dt,Gt,m.opacity)}function kr(m,O,o,b){this.h=+m,this.s=+O,this.l=+o,this.opacity=+b}function Dr(m,O,o){return 255*(m<60?O+(o-O)*m/60:m<180?o:m<240?O+(o-O)*(240-m)/60:O)}function ra(m,O,o,b,z){var $=m*m,Ne=$*m;return((1-3*m+3*$-Ne)*O+(4-6*$+3*Ne)*o+(1+3*m+3*$-3*Ne)*b+Ne*z)/6}Rn(gn,pa,{copy:function(m){return Object.assign(new this.constructor,this,m)},displayable:function(){return this.rgb().displayable()},hex:qr,formatHex:qr,formatHsl:function Jr(){return dr(this).formatHsl()},formatRgb:Ma,toString:Ma}),Rn(cr,Vr,tr(gn,{brighter:function(m){return m=null==m?Ki:Math.pow(Ki,m),new cr(this.r*m,this.g*m,this.b*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new cr(this.r*m,this.g*m,this.b*m,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:Wa,formatHex:Wa,formatRgb:Wr,toString:Wr})),Rn(kr,function ya(m,O,o,b){return 1===arguments.length?dr(m):new kr(m,O,o,null==b?1:b)},tr(gn,{brighter:function(m){return m=null==m?Ki:Math.pow(Ki,m),new kr(this.h,this.s,this.l*m,this.opacity)},darker:function(m){return m=null==m?.7:Math.pow(.7,m),new kr(this.h,this.s,this.l*m,this.opacity)},rgb:function(){var m=this.h%360+360*(this.h<0),O=isNaN(m)||isNaN(this.s)?0:this.s,o=this.l,b=o+(o<.5?o:1-o)*O,z=2*o-b;return new cr(Dr(m>=240?m-240:m+120,z,b),Dr(m,z,b),Dr(m<120?m+240:m-120,z,b),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 m=this.opacity;return(1===(m=isNaN(m)?1:Math.max(0,Math.min(1,m)))?"hsl(":"hsla(")+(this.h||0)+", "+100*(this.s||0)+"%, "+100*(this.l||0)+"%"+(1===m?")":", "+m+")")}}));const ba=m=>()=>m;function sa(m,O){var o=O-m;return o?function or(m,O){return function(o){return m+o*O}}(m,o):ba(isNaN(m)?O:m)}const Yr=function m(O){var o=function ir(m){return 1==(m=+m)?sa:function(O,o){return o-O?function aa(m,O,o){return m=Math.pow(m,o),O=Math.pow(O,o)-m,o=1/o,function(b){return Math.pow(m+b*O,o)}}(O,o,m):ba(isNaN(O)?o:O)}}(O);function b(z,$){var Ne=o((z=Vr(z)).r,($=Vr($)).r),dt=o(z.g,$.g),Gt=o(z.b,$.b),Ut=sa(z.opacity,$.opacity);return function(oi){return z.r=Ne(oi),z.g=dt(oi),z.b=Gt(oi),z.opacity=Ut(oi),z+""}}return b.gamma=m,b}(1);function Nr(m){return function(O){var Ne,dt,o=O.length,b=new Array(o),z=new Array(o),$=new Array(o);for(Ne=0;Ne=1?(o=1,O-1):Math.floor(o*O),z=m[b],$=m[b+1];return ra((o-b/O)*O,b>0?m[b-1]:2*z-$,z,$,bo&&($=O.slice(o,$),dt[Ne]?dt[Ne]+=$:dt[++Ne]=$),(b=b[0])===(z=z[0])?dt[Ne]?dt[Ne]+=z:dt[++Ne]=z:(dt[++Ne]=null,Gt.push({i:Ne,x:Et(b,z)})),o=Xt.lastIndex;return o=0&&m._call.call(null,O),m=m._next;--jt}()}finally{jt=0,function gs(){for(var m,o,O=Fe,b=1/0;O;)O._call?(b>O._time&&(b=O._time),m=O,O=O._next):(o=O._next,O._next=null,O=m?m._next=o:Fe=o);At=m,Ta(b)}(),Gi=0}}function to(){var m=br.now(),O=m-wi;O>1e3&&(Un-=O,wi=m)}function Ta(m){jt||(Oi&&(Oi=clearTimeout(Oi)),m-Gi>24?(m<1/0&&(Oi=setTimeout(Er,m-br.now()-Un)),je&&(je=clearInterval(je))):(je||(wi=br.now(),je=setInterval(to,1e3)),jt=1,Fa(Er)))}function Ls(m,O,o){var b=new Fi;return b.restart(z=>{b.stop(),m(z+O)},O=null==O?0:+O,o),b}Fi.prototype=jn.prototype={constructor:Fi,restart:function(m,O,o){if("function"!=typeof m)throw new TypeError("callback is not a function");o=(null==o?xa():+o)+(null==O?0:+O),!this._next&&At!==this&&(At?At._next=this:Fe=this,At=this),this._call=m,this._time=o,Ta()},stop:function(){this._call&&(this._call=null,this._time=1/0,Ta())}};var Ds=fi("start","end","cancel","interrupt"),Fs=[];function pe(m,O,o,b,z,$){var Ne=m.__transition;if(Ne){if(o in Ne)return}else m.__transition={};!function ri(m,O,o){var z,b=m.__transition;function Ne(Ut){var oi,yi,xi,Ai;if(1!==o.state)return Gt();for(oi in b)if((Ai=b[oi]).name===o.name){if(3===Ai.state)return Ls(Ne);4===Ai.state?(Ai.state=6,Ai.timer.stop(),Ai.on.call("interrupt",m,m.__data__,Ai.index,Ai.group),delete b[oi]):+oi0)throw new Error("too late; already scheduled");return o}function Mt(m,O){var o=Vt(m,O);if(o.state>3)throw new Error("too late; already running");return o}function Vt(m,O){var o=m.__transition;if(!o||!(o=o[O]))throw new Error("transition not found");return o}var An,ki=180/Math.PI,$i={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function dn(m,O,o,b,z,$){var Ne,dt,Gt;return(Ne=Math.sqrt(m*m+O*O))&&(m/=Ne,O/=Ne),(Gt=m*o+O*b)&&(o-=m*Gt,b-=O*Gt),(dt=Math.sqrt(o*o+b*b))&&(o/=dt,b/=dt,Gt/=dt),m*b180?oi+=360:oi-Ut>180&&(Ut+=360),xi.push({i:yi.push(z(yi)+"rotate(",null,b)-2,x:Et(Ut,oi)})):oi&&yi.push(z(yi)+"rotate("+oi+b)}(Ut.rotate,oi.rotate,yi,xi),function dt(Ut,oi,yi,xi){Ut!==oi?xi.push({i:yi.push(z(yi)+"skewX(",null,b)-2,x:Et(Ut,oi)}):oi&&yi.push(z(yi)+"skewX("+oi+b)}(Ut.skewX,oi.skewX,yi,xi),function Gt(Ut,oi,yi,xi,Ai,tn){if(Ut!==yi||oi!==xi){var Mn=Ai.push(z(Ai)+"scale(",null,",",null,")");tn.push({i:Mn-4,x:Et(Ut,yi)},{i:Mn-2,x:Et(oi,xi)})}else(1!==yi||1!==xi)&&Ai.push(z(Ai)+"scale("+yi+","+xi+")")}(Ut.scaleX,Ut.scaleY,oi.scaleX,oi.scaleY,yi,xi),Ut=oi=null,function(Ai){for(var Li,tn=-1,Mn=xi.length;++tn=0&&(O=O.slice(0,o)),!O||"start"===O})}(O)?Ke:Mt;return function(){var Ne=$(this,m),dt=Ne.on;dt!==b&&(z=(b=dt).copy()).on(O,o),Ne.on=z}}var rr=Wi.prototype.constructor;function Se(m){return function(){this.style.removeProperty(m)}}function qt(m,O,o){return function(b){this.style.setProperty(m,O.call(this,b),o)}}function ai(m,O,o){var b,z;function $(){var Ne=O.apply(this,arguments);return Ne!==z&&(b=(z=Ne)&&qt(m,Ne,o)),b}return $._value=O,$}function gr(m){return function(O){this.textContent=m.call(this,O)}}function hr(m){var O,o;function b(){var z=m.apply(this,arguments);return z!==o&&(O=(o=z)&&gr(z)),O}return b._value=m,b}var qo=0;function Da(m,O,o,b){this._groups=m,this._parents=O,this._name=o,this._id=b}function Kc(){return++qo}var io=Wi.prototype;Da.prototype=function Bs(m){return Wi().transition(m)}.prototype={constructor:Da,select:function un(m){var O=this._name,o=this._id;"function"!=typeof m&&(m=h(m));for(var b=this._groups,z=b.length,$=new Array(z),Ne=0;Ne2&&b.state<5,b.state=6,b.timer.stop(),b.on.call(z?"interrupt":"cancel",m,m.__data__,b.index,b.group),delete o[Ne]):$=!1;$&&delete m.__transition}}(this,m)})},Wi.prototype.transition=function mo(m){var O,o;m instanceof Da?(O=m._id,m=m._name):(O=Kc(),(o=yl).time=xa(),m=null==m?null:m+"");for(var b=this._groups,z=b.length,$=0;$O?1:m>=O?0:NaN}function ro(m){let O=m,o=m;function b(Ne,dt,Gt,Ut){for(null==Gt&&(Gt=0),null==Ut&&(Ut=Ne.length);Gt>>1;o(Ne[oi],dt)<0?Gt=oi+1:Ut=oi}return Gt}return 1===m.length&&(O=(Ne,dt)=>m(Ne)-dt,o=function o3(m){return(O,o)=>tl(m(O),o)}(m)),{left:b,center:function $(Ne,dt,Gt,Ut){null==Gt&&(Gt=0),null==Ut&&(Ut=Ne.length);const oi=b(Ne,dt,Gt,Ut-1);return oi>Gt&&O(Ne[oi-1],dt)>-O(Ne[oi],dt)?oi-1:oi},right:function z(Ne,dt,Gt,Ut){for(null==Gt&&(Gt=0),null==Ut&&(Ut=Ne.length);Gt>>1;o(Ne[oi],dt)>0?Ut=oi:Gt=oi+1}return Gt}}}["w","e"].map(es),["n","s"].map(es),["n","w","e","s","nw","ne","sw","se"].map(es);var Ml=Math.sqrt(50),Do=Math.sqrt(10),Kl=Math.sqrt(2);function Xc(m,O,o){var b=(O-m)/Math.max(0,o),z=Math.floor(Math.log(b)/Math.LN10),$=b/Math.pow(10,z);return z>=0?($>=Ml?10:$>=Do?5:$>=Kl?2:1)*Math.pow(10,z):-Math.pow(10,-z)/($>=Ml?10:$>=Do?5:$>=Kl?2:1)}function Ql(m,O,o){var b=Math.abs(O-m)/Math.max(0,o),z=Math.pow(10,Math.floor(Math.log(b)/Math.LN10)),$=b/z;return $>=Ml?z*=10:$>=Do?z*=5:$>=Kl&&(z*=2),O0))return Gt;do{Gt.push(Ut=new Date(+$)),O($,dt),m($)}while(Ut<$&&$=Ne)for(;m(Ne),!$(Ne);)Ne.setTime(Ne-1)},function(Ne,dt){if(Ne>=Ne)if(dt<0)for(;++dt<=0;)for(;O(Ne,-1),!$(Ne););else for(;--dt>=0;)for(;O(Ne,1),!$(Ne););})},o&&(z.count=function($,Ne){return ql.setTime(+$),Jl.setTime(+Ne),m(ql),m(Jl),Math.floor(o(ql,Jl))},z.every=function($){return $=Math.floor($),isFinite($)&&$>0?$>1?z.filter(b?function(Ne){return b(Ne)%$==0}:function(Ne){return z.count(0,Ne)%$==0}):z:null}),z}var nl=Ia(function(){},function(m,O){m.setTime(+m+O)},function(m,O){return O-m});nl.every=function(m){return m=Math.floor(m),isFinite(m)&&m>0?m>1?Ia(function(O){O.setTime(Math.floor(O/m)*m)},function(O,o){O.setTime(+O+o*m)},function(O,o){return(o-O)/m}):nl:null};const X1=nl;const ao=Ia(function(m){m.setTime(m-m.getMilliseconds())},function(m,O){m.setTime(+m+O*Es)},function(m,O){return(O-m)/Es},function(m){return m.getUTCSeconds()});const ec=Ia(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Es)},function(m,O){m.setTime(+m+O*ts)},function(m,O){return(O-m)/ts},function(m){return m.getMinutes()});const tc=Ia(function(m){m.setTime(m-m.getMilliseconds()-m.getSeconds()*Es-m.getMinutes()*ts)},function(m,O){m.setTime(+m+O*ys)},function(m,O){return(O-m)/ys},function(m){return m.getHours()});const _o=Ia(m=>m.setHours(0,0,0,0),(m,O)=>m.setDate(m.getDate()+O),(m,O)=>(O-m-(O.getTimezoneOffset()-m.getTimezoneOffset())*ts)/Io,m=>m.getDate()-1);function Us(m){return Ia(function(O){O.setDate(O.getDate()-(O.getDay()+7-m)%7),O.setHours(0,0,0,0)},function(O,o){O.setDate(O.getDate()+7*o)},function(O,o){return(o-O-(o.getTimezoneOffset()-O.getTimezoneOffset())*ts)/Kr})}var so=Us(0),El=Us(1),Gs=(Us(2),Us(3),Us(4));const n2=(Us(5),Us(6),Ia(function(m){m.setDate(1),m.setHours(0,0,0,0)},function(m,O){m.setMonth(m.getMonth()+O)},function(m,O){return O.getMonth()-m.getMonth()+12*(O.getFullYear()-m.getFullYear())},function(m){return m.getMonth()}));var ac=Ia(function(m){m.setMonth(0,1),m.setHours(0,0,0,0)},function(m,O){m.setFullYear(m.getFullYear()+O)},function(m,O){return O.getFullYear()-m.getFullYear()},function(m){return m.getFullYear()});ac.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Ia(function(O){O.setFullYear(Math.floor(O.getFullYear()/m)*m),O.setMonth(0,1),O.setHours(0,0,0,0)},function(O,o){O.setFullYear(O.getFullYear()+o*m)}):null};const Os=ac;const r2=Ia(function(m){m.setUTCSeconds(0,0)},function(m,O){m.setTime(+m+O*ts)},function(m,O){return(O-m)/ts},function(m){return m.getUTCMinutes()});const Ll=Ia(function(m){m.setUTCMinutes(0,0,0)},function(m,O){m.setTime(+m+O*ys)},function(m,O){return(O-m)/ys},function(m){return m.getUTCHours()});const Dl=Ia(function(m){m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCDate(m.getUTCDate()+O)},function(m,O){return(O-m)/Io},function(m){return m.getUTCDate()-1});function is(m){return Ia(function(O){O.setUTCDate(O.getUTCDate()-(O.getUTCDay()+7-m)%7),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCDate(O.getUTCDate()+7*o)},function(O,o){return(o-O)/Kr})}var oc=is(0),Il=is(1),No=(is(2),is(3),is(4));const c2=(is(5),is(6),Ia(function(m){m.setUTCDate(1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCMonth(m.getUTCMonth()+O)},function(m,O){return O.getUTCMonth()-m.getUTCMonth()+12*(O.getUTCFullYear()-m.getUTCFullYear())},function(m){return m.getUTCMonth()}));var Ol=Ia(function(m){m.setUTCMonth(0,1),m.setUTCHours(0,0,0,0)},function(m,O){m.setUTCFullYear(m.getUTCFullYear()+O)},function(m,O){return O.getUTCFullYear()-m.getUTCFullYear()},function(m){return m.getUTCFullYear()});Ol.every=function(m){return isFinite(m=Math.floor(m))&&m>0?Ia(function(O){O.setUTCFullYear(Math.floor(O.getUTCFullYear()/m)*m),O.setUTCMonth(0,1),O.setUTCHours(0,0,0,0)},function(O,o){O.setUTCFullYear(O.getUTCFullYear()+o*m)}):null};const rl=Ol;function Ro(m,O,o,b,z,$){const Ne=[[ao,1,Es],[ao,5,5e3],[ao,15,15e3],[ao,30,3e4],[$,1,ts],[$,5,5*ts],[$,15,15*ts],[$,30,30*ts],[z,1,ys],[z,3,3*ys],[z,6,6*ys],[z,12,12*ys],[b,1,Io],[b,2,2*Io],[o,1,Kr],[O,1,il],[O,3,3*il],[m,1,Oo]];function Gt(Ut,oi,yi){const xi=Math.abs(oi-Ut)/yi,Ai=ro(([,,Li])=>Li).right(Ne,xi);if(Ai===Ne.length)return m.every(Ql(Ut/Oo,oi/Oo,yi));if(0===Ai)return X1.every(Math.max(Ql(Ut,oi,yi),1));const[tn,Mn]=Ne[xi/Ne[Ai-1][2][O.toLowerCase(),o]))}function c1(m,O,o){var b=da.exec(O.slice(o,o+1));return b?(m.w=+b[0],o+b[0].length):-1}function d1(m,O,o){var b=da.exec(O.slice(o,o+1));return b?(m.u=+b[0],o+b[0].length):-1}function u1(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.U=+b[0],o+b[0].length):-1}function dc(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.V=+b[0],o+b[0].length):-1}function G(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.W=+b[0],o+b[0].length):-1}function Le(m,O,o){var b=da.exec(O.slice(o,o+4));return b?(m.y=+b[0],o+b[0].length):-1}function P(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.y=+b[0]+(+b[0]>68?1900:2e3),o+b[0].length):-1}function ie(m,O,o){var b=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(O.slice(o,o+6));return b?(m.Z=b[1]?0:-(b[2]+(b[3]||"00")),o+b[0].length):-1}function We(m,O,o){var b=da.exec(O.slice(o,o+1));return b?(m.q=3*b[0]-3,o+b[0].length):-1}function Ht(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.m=b[0]-1,o+b[0].length):-1}function Ci(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.d=+b[0],o+b[0].length):-1}function ji(m,O,o){var b=da.exec(O.slice(o,o+3));return b?(m.m=0,m.d=+b[0],o+b[0].length):-1}function hn(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.H=+b[0],o+b[0].length):-1}function Fn(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.M=+b[0],o+b[0].length):-1}function ls(m,O,o){var b=da.exec(O.slice(o,o+2));return b?(m.S=+b[0],o+b[0].length):-1}function Ts(m,O,o){var b=da.exec(O.slice(o,o+3));return b?(m.L=+b[0],o+b[0].length):-1}function cs(m,O,o){var b=da.exec(O.slice(o,o+6));return b?(m.L=Math.floor(b[0]/1e3),o+b[0].length):-1}function ds(m,O,o){var b=cl.exec(O.slice(o,o+1));return b?o+b[0].length:-1}function lr(m,O,o){var b=da.exec(O.slice(o));return b?(m.Q=+b[0],o+b[0].length):-1}function qa(m,O,o){var b=da.exec(O.slice(o));return b?(m.s=+b[0],o+b[0].length):-1}function Ln(m,O){return vr(m.getDate(),O,2)}function Vn(m,O){return vr(m.getHours(),O,2)}function Na(m,O){return vr(m.getHours()%12||12,O,2)}function h2(m,O){return vr(1+_o.count(Os(m),m),O,3)}function f2(m,O){return vr(m.getMilliseconds(),O,3)}function ns(m,O){return f2(m,O)+"000"}function uc(m,O){return vr(m.getMonth()+1,O,2)}function p2(m,O){return vr(m.getMinutes(),O,2)}function y3(m,O){return vr(m.getSeconds(),O,2)}function V4(m){var O=m.getDay();return 0===O?7:O}function b3(m,O){return vr(so.count(Os(m)-1,m),O,2)}function x3(m){var O=m.getDay();return O>=4||0===O?Gs(m):Gs.ceil(m)}function m2(m,O){return m=x3(m),vr(Gs.count(Os(m),m)+(4===Os(m).getDay()),O,2)}function B4(m){return m.getDay()}function g2(m,O){return vr(El.count(Os(m)-1,m),O,2)}function U4(m,O){return vr(m.getFullYear()%100,O,2)}function G4(m,O){return vr((m=x3(m)).getFullYear()%100,O,2)}function _2(m,O){return vr(m.getFullYear()%1e4,O,4)}function Z4(m,O){var o=m.getDay();return vr((m=o>=4||0===o?Gs(m):Gs.ceil(m)).getFullYear()%1e4,O,4)}function W4(m){var O=m.getTimezoneOffset();return(O>0?"-":(O*=-1,"+"))+vr(O/60|0,"0",2)+vr(O%60,"0",2)}function h1(m,O){return vr(m.getUTCDate(),O,2)}function Y4(m,O){return vr(m.getUTCHours(),O,2)}function C3(m,O){return vr(m.getUTCHours()%12||12,O,2)}function f1(m,O){return vr(1+Dl.count(rl(m),m),O,3)}function v2(m,O){return vr(m.getUTCMilliseconds(),O,3)}function j4(m,O){return v2(m,O)+"000"}function M3(m,O){return vr(m.getUTCMonth()+1,O,2)}function K4(m,O){return vr(m.getUTCMinutes(),O,2)}function Q4(m,O){return vr(m.getUTCSeconds(),O,2)}function y2(m){var O=m.getUTCDay();return 0===O?7:O}function q4(m,O){return vr(oc.count(rl(m)-1,m),O,2)}function w3(m){var O=m.getUTCDay();return O>=4||0===O?No(m):No.ceil(m)}function S3(m,O){return m=w3(m),vr(No.count(rl(m),m)+(4===rl(m).getUTCDay()),O,2)}function J4(m){return m.getUTCDay()}function X4(m,O){return vr(Il.count(rl(m)-1,m),O,2)}function b2(m,O){return vr(m.getUTCFullYear()%100,O,2)}function $4(m,O){return vr((m=w3(m)).getUTCFullYear()%100,O,2)}function eu(m,O){return vr(m.getUTCFullYear()%1e4,O,4)}function Pl(m,O){var o=m.getUTCDay();return vr((m=o>=4||0===o?No(m):No.ceil(m)).getUTCFullYear()%1e4,O,4)}function js(){return"+0000"}function tu(){return"%"}function E3(m){return+m}function x2(m){return Math.floor(+m/1e3)}function dl(m){return null===m?NaN:+m}!function T3(m){(function v3(m){var O=m.dateTime,o=m.date,b=m.time,z=m.periods,$=m.days,Ne=m.shortDays,dt=m.months,Gt=m.shortMonths,Ut=Ho(z),oi=Fo(z),yi=Ho($),xi=Fo($),Ai=Ho(Ne),tn=Fo(Ne),Mn=Ho(dt),Li=Fo(dt),_n=Ho(Gt),vn=Fo(Gt),yn={a:function sn(fn){return Ne[fn.getDay()]},A:function ps(fn){return $[fn.getDay()]},b:function Ar(fn){return Gt[fn.getMonth()]},B:function Ra(fn){return dt[fn.getMonth()]},c:null,d:Ln,e:Ln,f:ns,g:G4,G:Z4,H:Vn,I:Na,j:h2,L:f2,m:uc,M:p2,p:function $r(fn){return z[+(fn.getHours()>=12)]},q:function ma(fn){return 1+~~(fn.getMonth()/3)},Q:E3,s:x2,S:y3,u:V4,U:b3,V:m2,w:B4,W:g2,x:null,X:null,y:U4,Y:_2,Z:W4,"%":tu},Wn={a:function Yo(fn){return Ne[fn.getUTCDay()]},A:function So(fn){return $[fn.getUTCDay()]},b:function Ir(fn){return Gt[fn.getUTCMonth()]},B:function Bc(fn){return dt[fn.getUTCMonth()]},c:null,d:h1,e:h1,f:j4,g:$4,G:Pl,H:Y4,I:C3,j:f1,L:v2,m:M3,M:K4,p:function Ja(fn){return z[+(fn.getUTCHours()>=12)]},q:function Uc(fn){return 1+~~(fn.getUTCMonth()/3)},Q:E3,s:x2,S:Q4,u:y2,U:q4,V:S3,w:J4,W:X4,x:null,X:null,y:b2,Y:eu,Z:js,"%":tu},Nn={a:function Hr(fn,Qn,fr){var Yi=Ai.exec(Qn.slice(fr));return Yi?(fn.w=tn.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},A:function Hn(fn,Qn,fr){var Yi=yi.exec(Qn.slice(fr));return Yi?(fn.w=xi.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},b:function Oa(fn,Qn,fr){var Yi=_n.exec(Qn.slice(fr));return Yi?(fn.m=vn.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},B:function Cr(fn,Qn,fr){var Yi=Mn.exec(Qn.slice(fr));return Yi?(fn.m=Li.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},c:function Fr(fn,Qn,fr){return Tr(fn,O,Qn,fr)},d:Ci,e:Ci,f:cs,g:P,G:Le,H:hn,I:hn,j:ji,L:Ts,m:Ht,M:Fn,p:function fs(fn,Qn,fr){var Yi=Ut.exec(Qn.slice(fr));return Yi?(fn.p=oi.get(Yi[0].toLowerCase()),fr+Yi[0].length):-1},q:We,Q:lr,s:qa,S:ls,u:d1,U:u1,V:dc,w:c1,W:G,x:function Cs(fn,Qn,fr){return Tr(fn,o,Qn,fr)},X:function ua(fn,Qn,fr){return Tr(fn,b,Qn,fr)},y:P,Y:Le,Z:ie,"%":ds};function Sn(fn,Qn){return function(fr){var ms,zn,ga,Yi=[],ea=-1,Lr=0,rs=fn.length;for(fr instanceof Date||(fr=new Date(+fr));++ea53)return null;"w"in Yi||(Yi.w=1),"Z"in Yi?(rs=(Lr=ol(ll(Yi.y,0,1))).getUTCDay(),Lr=rs>4||0===rs?Il.ceil(Lr):Il(Lr),Lr=Dl.offset(Lr,7*(Yi.V-1)),Yi.y=Lr.getUTCFullYear(),Yi.m=Lr.getUTCMonth(),Yi.d=Lr.getUTCDate()+(Yi.w+6)%7):(rs=(Lr=sl(ll(Yi.y,0,1))).getDay(),Lr=rs>4||0===rs?El.ceil(Lr):El(Lr),Lr=_o.offset(Lr,7*(Yi.V-1)),Yi.y=Lr.getFullYear(),Yi.m=Lr.getMonth(),Yi.d=Lr.getDate()+(Yi.w+6)%7)}else("W"in Yi||"U"in Yi)&&("w"in Yi||(Yi.w="u"in Yi?Yi.u%7:"W"in Yi?1:0),rs="Z"in Yi?ol(ll(Yi.y,0,1)).getUTCDay():sl(ll(Yi.y,0,1)).getDay(),Yi.m=0,Yi.d="W"in Yi?(Yi.w+6)%7+7*Yi.W-(rs+5)%7:Yi.w+7*Yi.U-(rs+6)%7);return"Z"in Yi?(Yi.H+=Yi.Z/100|0,Yi.M+=Yi.Z%100,ol(Yi)):sl(Yi)}}function Tr(fn,Qn,fr,Yi){for(var ms,zn,ea=0,Lr=Qn.length,rs=fr.length;ea=rs)return-1;if(37===(ms=Qn.charCodeAt(ea++))){if(ms=Qn.charAt(ea++),!(zn=Nn[ms in l1?Qn.charAt(ea++):ms])||(Yi=zn(fn,fr,Yi))<0)return-1}else if(ms!=fr.charCodeAt(Yi++))return-1}return Yi}return yn.x=Sn(o,yn),yn.X=Sn(b,yn),yn.c=Sn(O,yn),Wn.x=Sn(o,Wn),Wn.X=Sn(b,Wn),Wn.c=Sn(O,Wn),{format:function(fn){var Qn=Sn(fn+="",yn);return Qn.toString=function(){return fn},Qn},parse:function(fn){var Qn=wr(fn+="",!1);return Qn.toString=function(){return fn},Qn},utcFormat:function(fn){var Qn=Sn(fn+="",Wn);return Qn.toString=function(){return fn},Qn},utcParse:function(fn){var Qn=wr(fn+="",!0);return Qn.toString=function(){return fn},Qn}}})(m)}({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});const S2=ro(tl).right,au=(ro(dl),S2);function Nl(m,O){return m=+m,O=+O,function(o){return Math.round(m*(1-o)+O*o)}}function T2(m){return+m}var L3=[0,1];function yo(m){return m}function A2(m,O){return(O-=m=+m)?function(o){return(o-m)/O}:function E2(m){return function(){return m}}(isNaN(O)?NaN:.5)}function ou(m,O,o){var b=m[0],z=m[1],$=O[0],Ne=O[1];return zO&&(o=m,m=O,O=o),function(b){return Math.max(m,Math.min(O,b))}}(m[0],m[xi-1])),dt=xi>2?D3:ou,Gt=Ut=null,yi}function yi(xi){return null==xi||isNaN(xi=+xi)?$:(Gt||(Gt=dt(m.map(b),O,o)))(b(Ne(xi)))}return yi.invert=function(xi){return Ne(z((Ut||(Ut=dt(O,m.map(b),Et)))(xi)))},yi.domain=function(xi){return arguments.length?(m=Array.from(xi,T2),oi()):m.slice()},yi.range=function(xi){return arguments.length?(O=Array.from(xi),oi()):O.slice()},yi.rangeRound=function(xi){return O=Array.from(xi),o=Nl,oi()},yi.clamp=function(xi){return arguments.length?(Ne=!!xi||yo,oi()):Ne!==yo},yi.interpolate=function(xi){return arguments.length?(o=xi,oi()):o},yi.unknown=function(xi){return arguments.length?($=xi,yi):$},function(xi,Ai){return b=xi,z=Ai,oi()}}()(yo,yo)}function ul(m,O){switch(arguments.length){case 0:break;case 1:this.range(m);break;default:this.range(O).domain(m)}return this}var R2,hl=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function hc(m){if(!(O=hl.exec(m)))throw new Error("invalid format: "+m);var O;return new p1({fill:O[1],align:O[2],sign:O[3],symbol:O[4],zero:O[5],width:O[6],comma:O[7],precision:O[8]&&O[8].slice(1),trim:O[9],type:O[10]})}function p1(m){this.fill=void 0===m.fill?" ":m.fill+"",this.align=void 0===m.align?">":m.align+"",this.sign=void 0===m.sign?"-":m.sign+"",this.symbol=void 0===m.symbol?"":m.symbol+"",this.zero=!!m.zero,this.width=void 0===m.width?void 0:+m.width,this.comma=!!m.comma,this.precision=void 0===m.precision?void 0:+m.precision,this.trim=!!m.trim,this.type=void 0===m.type?"":m.type+""}function fl(m,O){if((o=(m=O?m.toExponential(O-1):m.toExponential()).indexOf("e"))<0)return null;var o,b=m.slice(0,o);return[b.length>1?b[0]+b.slice(2):b,+m.slice(o+1)]}function Rl(m){return(m=fl(Math.abs(m)))?m[1]:NaN}function pc(m,O){var o=fl(m,O);if(!o)return m+"";var b=o[0],z=o[1];return z<0?"0."+new Array(-z).join("0")+b:b.length>z+1?b.slice(0,z+1)+"."+b.slice(z+1):b+new Array(z-b.length+2).join("0")}hc.prototype=p1.prototype,p1.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 H2={"%":(m,O)=>(100*m).toFixed(O),b:m=>Math.round(m).toString(2),c:m=>m+"",d:function cu(m){return Math.abs(m=Math.round(m))>=1e21?m.toLocaleString("en").replace(/,/g,""):m.toString(10)},e:(m,O)=>m.toExponential(O),f:(m,O)=>m.toFixed(O),g:(m,O)=>m.toPrecision(O),o:m=>Math.round(m).toString(8),p:(m,O)=>pc(100*m,O),r:pc,s:function fc(m,O){var o=fl(m,O);if(!o)return m+"";var b=o[0],z=o[1],$=z-(R2=3*Math.max(-8,Math.min(8,Math.floor(z/3))))+1,Ne=b.length;return $===Ne?b:$>Ne?b+new Array($-Ne+1).join("0"):$>0?b.slice(0,$)+"."+b.slice($):"0."+new Array(1-$).join("0")+fl(m,Math.max(0,O+$-1))[0]},X:m=>Math.round(m).toString(16).toUpperCase(),x:m=>Math.round(m).toString(16)};function mc(m){return m}var g1,z2,R3,F2=Array.prototype.map,m1=["y","z","a","f","p","n","\xb5","m","","k","M","G","T","P","E","Z","Y"];function uu(m){var O=m.domain;return m.ticks=function(o){var b=O();return function J1(m,O,o){var b,$,Ne,dt,z=-1;if(o=+o,(m=+m)==(O=+O)&&o>0)return[m];if((b=O0){let Gt=Math.round(m/dt),Ut=Math.round(O/dt);for(Gt*dtO&&--Ut,Ne=new Array($=Ut-Gt+1);++z<$;)Ne[z]=(Gt+z)*dt}else{dt=-dt;let Gt=Math.round(m*dt),Ut=Math.round(O*dt);for(Gt/dtO&&--Ut,Ne=new Array($=Ut-Gt+1);++z<$;)Ne[z]=(Gt+z)/dt}return b&&Ne.reverse(),Ne}(b[0],b[b.length-1],null==o?10:o)},m.tickFormat=function(o,b){var z=O();return function F3(m,O,o,b){var $,z=Ql(m,O,o);switch((b=hc(null==b?",f":b)).type){case"s":var Ne=Math.max(Math.abs(m),Math.abs(O));return null==b.precision&&!isNaN($=function P2(m,O){return Math.max(0,3*Math.max(-8,Math.min(8,Math.floor(Rl(O)/3)))-Rl(Math.abs(m)))}(z,Ne))&&(b.precision=$),R3(b,Ne);case"":case"e":case"g":case"p":case"r":null==b.precision&&!isNaN($=function H3(m,O){return m=Math.abs(m),O=Math.abs(O)-m,Math.max(0,Rl(O)-Rl(m))+1}(z,Math.max(Math.abs(m),Math.abs(O))))&&(b.precision=$-("e"===b.type));break;case"f":case"%":null==b.precision&&!isNaN($=function _1(m){return Math.max(0,-Rl(Math.abs(m)))}(z))&&(b.precision=$-2*("%"===b.type))}return z2(b)}(z[0],z[z.length-1],null==o?10:o,b)},m.nice=function(o){null==o&&(o=10);var Gt,Ut,b=O(),z=0,$=b.length-1,Ne=b[z],dt=b[$],oi=10;for(dt0;){if((Ut=Xc(Ne,dt,o))===Gt)return b[z]=Ne,b[$]=dt,O(b);if(Ut>0)Ne=Math.floor(Ne/Ut)*Ut,dt=Math.ceil(dt/Ut)*Ut;else{if(!(Ut<0))break;Ne=Math.ceil(Ne*Ut)/Ut,dt=Math.floor(dt*Ut)/Ut}Gt=Ut}return m},m}function zo(){var m=D2();return m.copy=function(){return I3(m,zo())},ul.apply(m,arguments),uu(m)}function V2(m,O,o){m=+m,O=+O,o=(z=arguments.length)<2?(O=m,m=0,1):z<3?1:+o;for(var b=-1,z=0|Math.max(0,Math.ceil((O-m)/o)),$=new Array(z);++b0&&dt>0&&(Gt+dt+1>b&&(dt=Math.max(1,b-Gt)),$.push(o.substring(z-=dt,z+dt)),!((Gt+=dt+1)>b));)dt=m[Ne=(Ne+1)%m.length];return $.reverse().join(O)}}(F2.call(m.grouping,Number),m.thousands+""),o=void 0===m.currency?"":m.currency[0]+"",b=void 0===m.currency?"":m.currency[1]+"",z=void 0===m.decimal?".":m.decimal+"",$=void 0===m.numerals?mc:function k2(m){return function(O){return O.replace(/[0-9]/g,function(o){return m[+o]})}}(F2.call(m.numerals,String)),Ne=void 0===m.percent?"%":m.percent+"",dt=void 0===m.minus?"\u2212":m.minus+"",Gt=void 0===m.nan?"NaN":m.nan+"";function Ut(yi){var xi=(yi=hc(yi)).fill,Ai=yi.align,tn=yi.sign,Mn=yi.symbol,Li=yi.zero,_n=yi.width,vn=yi.comma,yn=yi.precision,Wn=yi.trim,Nn=yi.type;"n"===Nn?(vn=!0,Nn="g"):H2[Nn]||(void 0===yn&&(yn=12),Wn=!0,Nn="g"),(Li||"0"===xi&&"="===Ai)&&(Li=!0,xi="0",Ai="=");var Sn="$"===Mn?o:"#"===Mn&&/[boxX]/.test(Nn)?"0"+Nn.toLowerCase():"",wr="$"===Mn?b:/[%p]/.test(Nn)?Ne:"",Tr=H2[Nn],fs=/[defgprs%]/.test(Nn);function Hr(Hn){var Fr,Cs,ua,Oa=Sn,Cr=wr;if("c"===Nn)Cr=Tr(Hn)+Cr,Hn="";else{var sn=(Hn=+Hn)<0||1/Hn<0;if(Hn=isNaN(Hn)?Gt:Tr(Math.abs(Hn),yn),Wn&&(Hn=function N2(m){e:for(var z,O=m.length,o=1,b=-1;o0&&(b=0)}return b>0?m.slice(0,b)+m.slice(z+1):m}(Hn)),sn&&0==+Hn&&"+"!==tn&&(sn=!1),Oa=(sn?"("===tn?tn:dt:"-"===tn||"("===tn?"":tn)+Oa,Cr=("s"===Nn?m1[8+R2/3]:"")+Cr+(sn&&"("===tn?")":""),fs)for(Fr=-1,Cs=Hn.length;++Fr(ua=Hn.charCodeAt(Fr))||ua>57){Cr=(46===ua?z+Hn.slice(Fr+1):Hn.slice(Fr))+Cr,Hn=Hn.slice(0,Fr);break}}vn&&!Li&&(Hn=O(Hn,1/0));var ps=Oa.length+Hn.length+Cr.length,Ar=ps<_n?new Array(_n-ps+1).join(xi):"";switch(vn&&Li&&(Hn=O(Ar+Hn,Ar.length?_n-Cr.length:1/0),Ar=""),Ai){case"<":Hn=Oa+Hn+Cr+Ar;break;case"=":Hn=Oa+Ar+Hn+Cr;break;case"^":Hn=Ar.slice(0,ps=Ar.length>>1)+Oa+Hn+Cr+Ar.slice(ps);break;default:Hn=Ar+Oa+Hn+Cr}return $(Hn)}return yn=void 0===yn?6:/[gprs]/.test(Nn)?Math.max(1,Math.min(21,yn)):Math.max(0,Math.min(20,yn)),Hr.toString=function(){return yi+""},Hr}return{format:Ut,formatPrefix:function oi(yi,xi){var Ai=Ut(((yi=hc(yi)).type="f",yi)),tn=3*Math.max(-8,Math.min(8,Math.floor(Rl(xi)/3))),Mn=Math.pow(10,-tn),Li=m1[8+tn/3];return function(_n){return Ai(Mn*_n)+Li}}}}(m),z2=g1.format,R3=g1.formatPrefix}({thousands:",",grouping:[3],currency:["$",""]});const B2=Symbol("implicit");function U2(){var m=new Map,O=[],o=[],b=B2;function z($){var Ne=$+"",dt=m.get(Ne);if(!dt){if(b!==B2)return b;m.set(Ne,dt=O.push($))}return o[(dt-1)%o.length]}return z.domain=function($){if(!arguments.length)return O.slice();O=[],m=new Map;for(const Ne of $){const dt=Ne+"";m.has(dt)||m.set(dt,O.push(Ne))}return z},z.range=function($){return arguments.length?(o=Array.from($),z):o.slice()},z.unknown=function($){return arguments.length?(b=$,z):b},z.copy=function(){return U2(O,o).unknown(b)},ul.apply(z,arguments),z}function Vo(){var $,Ne,m=U2().unknown(void 0),O=m.domain,o=m.range,b=0,z=1,dt=!1,Gt=0,Ut=0,oi=.5;function yi(){var xi=O().length,Ai=z=1)return+o(m[b-1],b-1,m);var b,z=(b-1)*O,$=Math.floor(z),Ne=+o(m[$],$,m);return Ne+(+o(m[$+1],$+1,m)-Ne)*(z-$)}}function V3(){var b,m=[],O=[],o=[];function z(){var Ne=0,dt=Math.max(1,O.length);for(o=new Array(dt-1);++Ne0?o[dt-1]:m[0],dt{return(m=er||(er={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",m.Center="center",er;var m})();function C0(m,O,o){return o===er.Top?m.top-7:o===er.Bottom?m.top+m.height-O.height+7:o===er.Center?m.top+m.height/2-O.height/2:void 0}function M0(m,O,o){return o===er.Left?m.left-7:o===er.Right?m.left+m.width-O.width+7:o===er.Center?m.left+m.width/2-O.width/2:void 0}class xs{static calculateVerticalAlignment(O,o,b){let z=C0(O,o,b);return z+o.height>window.innerHeight&&(z=window.innerHeight-o.height),z}static calculateVerticalCaret(O,o,b,z){let $;z===er.Top&&($=O.height/2-b.height/2+7),z===er.Bottom&&($=o.height-O.height/2-b.height/2-7),z===er.Center&&($=o.height/2-b.height/2);const Ne=C0(O,o,z);return Ne+o.height>window.innerHeight&&($+=Ne+o.height-window.innerHeight),$}static calculateHorizontalAlignment(O,o,b){let z=M0(O,o,b);return z+o.width>window.innerWidth&&(z=window.innerWidth-o.width),z}static calculateHorizontalCaret(O,o,b,z){let $;z===er.Left&&($=O.width/2-b.width/2+7),z===er.Right&&($=o.width-O.width/2-b.width/2-7),z===er.Center&&($=o.width/2-b.width/2);const Ne=M0(O,o,z);return Ne+o.width>window.innerWidth&&($+=Ne+o.width-window.innerWidth),$}static shouldFlip(O,o,b,z){let $=!1;return b===er.Right&&O.left+O.width+o.width+z>window.innerWidth&&($=!0),b===er.Left&&O.left-o.width-z<0&&($=!0),b===er.Top&&O.top-o.height-z<0&&($=!0),b===er.Bottom&&O.top+O.height+o.height+z>window.innerHeight&&($=!0),$}static positionCaret(O,o,b,z,$){let Ne=0,dt=0;return O===er.Right?(dt=-7,Ne=xs.calculateVerticalCaret(b,o,z,$)):O===er.Left?(dt=o.width,Ne=xs.calculateVerticalCaret(b,o,z,$)):O===er.Top?(Ne=o.height,dt=xs.calculateHorizontalCaret(b,o,z,$)):O===er.Bottom&&(Ne=-7,dt=xs.calculateHorizontalCaret(b,o,z,$)),{top:Ne,left:dt}}static positionContent(O,o,b,z,$){let Ne=0,dt=0;return O===er.Right?(dt=b.left+b.width+z,Ne=xs.calculateVerticalAlignment(b,o,$)):O===er.Left?(dt=b.left-o.width-z,Ne=xs.calculateVerticalAlignment(b,o,$)):O===er.Top?(Ne=b.top-o.height-z,dt=xs.calculateHorizontalAlignment(b,o,$)):O===er.Bottom&&(Ne=b.top+b.height+z,dt=xs.calculateHorizontalAlignment(b,o,$)),{top:Ne,left:dt}}static determinePlacement(O,o,b,z){if(xs.shouldFlip(b,o,O,z)){if(O===er.Right)return er.Left;if(O===er.Left)return er.Right;if(O===er.Top)return er.Bottom;if(O===er.Bottom)return er.Top}return O}}let w0=(()=>{class m{constructor(o,b,z){this.element=o,this.renderer=b,this.platformId=z}get cssClasses(){let o="ngx-charts-tooltip-content";return o+=` position-${this.placement}`,o+=` type-${this.type}`,o+=` ${this.cssClass}`,o}ngAfterViewInit(){setTimeout(this.position.bind(this))}position(){if(!(0,e.NF)(this.platformId))return;const o=this.element.nativeElement,b=this.host.nativeElement.getBoundingClientRect();if(!b.height&&!b.width)return;const z=o.getBoundingClientRect();this.checkFlip(b,z),this.positionContent(o,b,z),this.showCaret&&this.positionCaret(b,z),setTimeout(()=>this.renderer.addClass(o,"animate"),1)}positionContent(o,b,z){const{top:$,left:Ne}=xs.positionContent(this.placement,z,b,this.spacing,this.alignment);this.renderer.setStyle(o,"top",`${$}px`),this.renderer.setStyle(o,"left",`${Ne}px`)}positionCaret(o,b){const z=this.caretElm.nativeElement,$=z.getBoundingClientRect(),{top:Ne,left:dt}=xs.positionCaret(this.placement,b,o,$,this.alignment);this.renderer.setStyle(z,"top",`${Ne}px`),this.renderer.setStyle(z,"left",`${dt}px`)}checkFlip(o,b){this.placement=xs.determinePlacement(this.placement,b,o,this.spacing)}onWindowResize(){this.position()}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.Qsj),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-tooltip-content"]],viewQuery:function(o,b){if(1&o&&t.Gf(mu,5),2&o){let z;t.iGM(z=t.CRH())&&(b.caretElm=z.first)}},hostVars:2,hostBindings:function(o,b){1&o&&t.NdJ("resize",function(){return b.onWindowResize()},!1,t.Jf7),2&o&&t.Tol(b.cssClasses)},inputs:{host:"host",showCaret:"showCaret",type:"type",placement:"placement",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(o,b){1&o&&(t.TgZ(0,"div"),t._UZ(1,"span",0,1),t.TgZ(3,"div",2),t.YNc(4,U3,2,4,"span",3),t.YNc(5,G3,1,1,"span",4),t.qZA()()),2&o&&(t.xp6(1),t.Gre("tooltip-caret position-",b.placement,""),t.Q6J("hidden",!b.showCaret),t.xp6(3),t.Q6J("ngIf",!b.title),t.xp6(1),t.Q6J("ngIf",b.title))},directives:[e.O5,e.tP],styles:[".ngx-charts-tooltip-content{position:fixed;border-radius:3px;z-index:5000;display:block;font-weight:400;opacity:0;pointer-events:none!important}.ngx-charts-tooltip-content.type-popover{background:#fff;color:#060709;border:1px solid #72809b;box-shadow:0 1px 3px #0003,0 1px 1px #00000024,0 2px 1px -1px #0000001f;font-size:13px;padding:4px}.ngx-charts-tooltip-content.type-popover .tooltip-caret{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid #fff}.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-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid #fff}.ngx-charts-tooltip-content.type-popover .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid #fff}.ngx-charts-tooltip-content.type-tooltip{color:#fff;background:rgba(0,0,0,.75);font-size:12px;padding:0 10px;text-align:center;pointer-events:auto}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-left{border-top:7px solid transparent;border-bottom:7px solid transparent;border-left:7px solid rgba(0,0,0,.75)}.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-top:7px solid transparent;border-bottom:7px solid transparent;border-right:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content.type-tooltip .tooltip-caret.position-bottom{border-left:7px solid transparent;border-right:7px solid transparent;border-bottom:7px solid rgba(0,0,0,.75)}.ngx-charts-tooltip-content .tooltip-label{display:block;line-height:1em;padding:8px 5px 5px;font-size:1em}.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{position:absolute;z-index:5001;width:0;height:0}.ngx-charts-tooltip-content.position-right{transform:translate(10px)}.ngx-charts-tooltip-content.position-left{transform:translate(-10px)}.ngx-charts-tooltip-content.position-top{transform:translateY(-10px)}.ngx-charts-tooltip-content.position-bottom{transform:translateY(10px)}.ngx-charts-tooltip-content.animate{opacity:1;transition:opacity .3s,transform .3s;transform:translate(0);pointer-events:auto}.area-tooltip-container{padding:5px 0;pointer-events:none}.tooltip-item{text-align:left;line-height:1.2em;padding:5px 0}.tooltip-item .tooltip-item-color{display:inline-block;height:12px;width:12px;margin-right:5px;color:#5b646b;border-radius:3px}\n"],encapsulation:2}),(0,f.gn)([Od(100)],m.prototype,"onWindowResize",null),m})(),S0=(()=>{class m{constructor(o,b,z){this.applicationRef=o,this.componentFactoryResolver=b,this.injector=z}static setGlobalRootViewContainer(o){m.globalRootViewContainer=o}getRootViewContainer(){if(this._container)return this._container;if(m.globalRootViewContainer)return m.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(o){this._container=o}getComponentRootNode(o){return function Ch(m){return m.element}(o)?o.element.nativeElement:o.hostView&&o.hostView.rootNodes.length>0?o.hostView.rootNodes[0]:o.location.nativeElement}getRootViewContainerNode(o){return this.getComponentRootNode(o)}projectComponentBindings(o,b){if(b){if(void 0!==b.inputs){const z=Object.getOwnPropertyNames(b.inputs);for(const $ of z)o.instance[$]=b.inputs[$]}if(void 0!==b.outputs){const z=Object.getOwnPropertyNames(b.outputs);for(const $ of z)o.instance[$]=b.outputs[$]}}return o}appendComponent(o,b={},z){z||(z=this.getRootViewContainer());const $=this.getComponentRootNode(z),Ne=new M.u0($,this.componentFactoryResolver,this.applicationRef,this.injector),dt=new M.C5(o),Gt=Ne.attach(dt);return this.projectComponentBindings(Gt,b),Gt}}return m.globalRootViewContainer=null,m.\u0275fac=function(o){return new(o||m)(t.LFG(t.z2F),t.LFG(t._Vd),t.LFG(t.zs3))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})(),E0=(()=>{class m extends class Pd{constructor(O){this.injectionService=O,this.defaults={},this.components=new Map}getByType(O=this.type){return this.components.get(O)}create(O){return this.createByType(this.type,O)}createByType(O,o){o=this.assignDefaults(o);const b=this.injectComponent(O,o);return this.register(O,b),b}destroy(O){const o=this.components.get(O.componentType);if(o&&o.length){const b=o.indexOf(O);b>-1&&(o[b].destroy(),o.splice(b,1))}}destroyAll(){this.destroyByType(this.type)}destroyByType(O){const o=this.components.get(O);if(o&&o.length){let b=o.length-1;for(;b>=0;)this.destroy(o[b--])}}injectComponent(O,o){return this.injectionService.appendComponent(O,o)}assignDefaults(O){const o=Object.assign({},this.defaults.inputs),b=Object.assign({},this.defaults.outputs);return!O.inputs&&!O.outputs&&(O={inputs:O}),o&&(O.inputs=Object.assign(Object.assign({},o),O.inputs)),b&&(O.outputs=Object.assign(Object.assign({},b),O.outputs)),O}register(O,o){this.components.has(O)||this.components.set(O,[]),this.components.get(O).push(o)}}{constructor(o){super(o),this.type=w0}}return m.\u0275fac=function(o){return new(o||m)(t.LFG(S0))},m.\u0275prov=t.Yz7({token:m,factory:m.\u0275fac}),m})();var Ns=(()=>{return(m=Ns||(Ns={})).Right="right",m.Below="below",Ns;var m})(),gl=(()=>{return(m=gl||(gl={})).ScaleLegend="scaleLegend",m.Legend="legend",gl;var m})(),Dn=(()=>{return(m=Dn||(Dn={})).Time="time",m.Linear="linear",m.Ordinal="ordinal",m.Quantile="quantile",Dn;var m})();let T0=(()=>{class m{constructor(){this.horizontal=!1}ngOnChanges(o){const b=this.gradientString(this.colors.range(),this.colors.domain());this.gradient=`linear-gradient(to ${this.horizontal?"right":"bottom"}, ${b})`}gradientString(o,b){b.push(1);const z=[];return o.reverse().forEach(($,Ne)=>{z.push(`${$} ${Math.round(100*b[Ne])}%`)}),z.join(", ")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-scale-legend"]],inputs:{valueRange:"valueRange",colors:"colors",height:"height",width:"width",horizontal:"horizontal"},features:[t.TTD],decls:8,vars:10,consts:[[1,"scale-legend"],[1,"scale-legend-label"],[1,"scale-legend-wrap"]],template:function(o,b){1&o&&(t.TgZ(0,"div",0)(1,"div",1)(2,"span"),t._uU(3),t.qZA()(),t._UZ(4,"div",2),t.TgZ(5,"div",1)(6,"span"),t._uU(7),t.qZA()()()),2&o&&(t.Udp("height",b.horizontal?void 0:b.height,"px")("width",b.width,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(3),t.Oqu(b.valueRange[1].toLocaleString()),t.xp6(1),t.Udp("background",b.gradient),t.xp6(3),t.Oqu(b.valueRange[0].toLocaleString()))},styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .scale-legend{text-align:center;display:flex;flex-direction:column}.chart-legend .scale-legend-wrap{display:inline-block;flex:1;width:30px;border-radius:5px;margin:0 auto}.chart-legend .scale-legend-label{font-size:12px}.chart-legend .horizontal-legend.scale-legend{flex-direction:row}.chart-legend .horizontal-legend .scale-legend-wrap{width:auto;height:30px;margin:0 16px}\n"],encapsulation:2,changeDetection:0}),m})();function Ic(m){return m instanceof Date?m.toLocaleDateString():m.toLocaleString()}let I1=(()=>{class m{constructor(){this.isActive=!1,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.toggle=new t.vpe}get trimmedLabel(){return this.formattedLabel||"(empty)"}onMouseEnter(){this.activate.emit({name:this.label})}onMouseLeave(){this.deactivate.emit({name:this.label})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend-entry"]],hostBindings:function(o,b){1&o&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{color:"color",label:"label",formattedLabel:"formattedLabel",isActive:"isActive"},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(o,b){1&o&&(t.TgZ(0,"span",0),t.NdJ("click",function(){return b.select.emit(b.formattedLabel)}),t.TgZ(1,"span",1),t.NdJ("click",function(){return b.toggle.emit(b.formattedLabel)}),t.qZA(),t.TgZ(2,"span",2),t._uU(3),t.qZA()()),2&o&&(t.ekj("active",b.isActive),t.Q6J("title",b.formattedLabel),t.xp6(1),t.Udp("background-color",b.color),t.xp6(2),t.hij(" ",b.trimmedLabel," "))},encapsulation:2,changeDetection:0}),m})(),kd=(()=>{class m{constructor(o){this.cd=o,this.horizontal=!1,this.labelClick=new t.vpe,this.labelActivate=new t.vpe,this.labelDeactivate=new t.vpe,this.legendEntries=[]}ngOnChanges(o){this.update()}update(){this.cd.markForCheck(),this.legendEntries=this.getLegendEntries()}getLegendEntries(){const o=[];for(const b of this.data){const z=Ic(b);-1===o.findIndex(Ne=>Ne.label===z)&&o.push({label:b,formattedLabel:z,color:this.colors.getColor(b)})}return o}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(z=>o.label===z.name)}activate(o){this.labelActivate.emit(o)}deactivate(o){this.labelDeactivate.emit(o)}trackBy(o,b){return b.label}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.sBO))},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-legend"]],inputs:{data:"data",title:"title",colors:"colors",height:"height",width:"width",activeEntries:"activeEntries",horizontal:"horizontal"},outputs:{labelClick:"labelClick",labelActivate:"labelActivate",labelDeactivate:"labelDeactivate"},features:[t.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(o,b){1&o&&(t.TgZ(0,"div"),t.YNc(1,Kn,3,1,"header",0),t.TgZ(2,"div",1)(3,"ul",2),t.YNc(4,Z3,2,4,"li",3),t.qZA()()()),2&o&&(t.Udp("width",b.width,"px"),t.xp6(1),t.Q6J("ngIf",(null==b.title?null:b.title.length)>0),t.xp6(2),t.Udp("max-height",b.height-45,"px"),t.ekj("horizontal-legend",b.horizontal),t.xp6(1),t.Q6J("ngForOf",b.legendEntries)("ngForTrackBy",b.trackBy))},directives:[I1,e.O5,e.sg],styles:[".chart-legend{display:inline-block;padding:0;width:auto!important}.chart-legend .legend-title{white-space:nowrap;overflow:hidden;margin-left:10px;margin-bottom:5px;font-size:14px;font-weight:700}.chart-legend ul,.chart-legend li{padding:0;margin:0;list-style:none}.chart-legend .horizontal-legend li{display:inline-block}.chart-legend .legend-wrap{width:calc(100% - 10px)}.chart-legend .legend-labels{line-height:85%;list-style:none;text-align:left;float:left;width:100%;border-radius:3px;overflow-y:auto;overflow-x:hidden;white-space:nowrap;background:rgba(0,0,0,.05)}.chart-legend .legend-label{cursor:pointer;font-size:90%;margin:8px;color:#afb7c8}.chart-legend .legend-label:hover{color:#000;transition:.2s}.chart-legend .legend-label .active .legend-label-text{color:#000}.chart-legend .legend-label-color{display:inline-block;height:15px;width:15px;margin-right:5px;color:#5b646b;border-radius:3px}.chart-legend .legend-label-text{display:inline-block;vertical-align:top;line-height:15px;font-size:12px;width:calc(100% - 20px);text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.chart-legend .legend-title-text{vertical-align:bottom;display:inline-block;line-height:16px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"],encapsulation:2,changeDetection:0}),m})(),Nd=(()=>{class m{constructor(){this.showLegend=!1,this.animations=!0,this.legendLabelClick=new t.vpe,this.legendLabelActivate=new t.vpe,this.legendLabelDeactivate=new t.vpe,this.LegendPosition=Ns,this.LegendType=gl}ngOnChanges(o){this.update()}update(){let o=0;this.showLegend&&(this.legendType=this.getLegendType(),(!this.legendOptions||this.legendOptions.position===Ns.Right)&&(o=this.legendType===gl.ScaleLegend?1:2)),this.chartWidth=Math.floor(this.view[0]*(12-o)/12),this.legendWidth=this.legendOptions&&this.legendOptions.position!==Ns.Right?this.chartWidth:Math.floor(this.view[0]*o/12)}getLegendType(){return this.legendOptions.scaleType===Dn.Linear?gl.ScaleLegend:gl.Legend}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-chart"]],inputs:{view:"view",showLegend:"showLegend",legendOptions:"legendOptions",legendType:"legendType",activeEntries:"activeEntries",animations:"animations"},outputs:{legendLabelClick:"legendLabelClick",legendLabelActivate:"legendLabelActivate",legendLabelDeactivate:"legendLabelDeactivate"},features:[t._Bn([E0]),t.TTD],ngContentSelectors:_c,decls:5,vars:6,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(o,b){1&o&&(t.F$t(),t.TgZ(0,"div",0),t.O4$(),t.TgZ(1,"svg",1),t.Hsn(2),t.qZA(),t.YNc(3,W3,1,5,"ngx-charts-scale-legend",2),t.YNc(4,Y3,1,7,"ngx-charts-legend",3),t.qZA()),2&o&&(t.Udp("width",b.view[0],"px"),t.xp6(1),t.uIk("width",b.chartWidth)("height",b.view[1]),t.xp6(2),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.ScaleLegend),t.xp6(1),t.Q6J("ngIf",b.showLegend&&b.legendType===b.LegendType.Legend))},directives:[T0,kd,e.O5],encapsulation:2,changeDetection:0}),m})(),tp=(()=>{class m{constructor(o,b){this.element=o,this.zone=b,this.visible=new t.vpe,this.isVisible=!1,this.runCheck()}destroy(){clearTimeout(this.timeout)}onVisibilityChange(){this.zone.run(()=>{this.isVisible=!0,this.visible.emit(!0)})}runCheck(){const o=()=>{if(!this.element)return;const{offsetHeight:b,offsetWidth:z}=this.element.nativeElement;b&&z?(clearTimeout(this.timeout),this.onVisibilityChange()):(clearTimeout(this.timeout),this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o(),100)}))};this.zone.runOutsideAngular(()=>{this.timeout=setTimeout(()=>o())})}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b))},m.\u0275dir=t.lG2({type:m,selectors:[["visibility-observer"]],outputs:{visible:"visible"}}),m})();function Mh(m){return"[object Date]"===toString.call(m)}let O1=(()=>{class m{constructor(o,b,z,$){this.chartElement=o,this.zone=b,this.cd=z,this.platformId=$,this.scheme="cool",this.schemeType=Dn.Ordinal,this.animations=!0,this.select=new t.vpe}ngOnInit(){(0,e.PM)(this.platformId)&&(this.animations=!1)}ngAfterViewInit(){this.bindWindowResizeEvent(),this.visibilityObserver=new tp(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(o){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 o=this.getContainerDims();o&&(this.width=o.width,this.height=o.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 o,b;const z=this.chartElement.nativeElement;if((0,e.NF)(this.platformId)&&null!==z.parentNode){const $=z.parentNode.getBoundingClientRect();o=$.width,b=$.height}return o&&b?{width:o,height:b}:null}formatDates(){for(let o=0;o{this.update(),this.cd&&this.cd.markForCheck()});this.resizeSubscription=b}cloneData(o){const b=[];for(const z of o){const $={name:z.name};if(void 0!==z.value&&($.value=z.value),void 0!==z.series){$.series=[];for(const Ne of z.series){const dt=Object.assign({},Ne);$.series.push(dt)}}void 0!==z.extra&&($.extra=JSON.parse(JSON.stringify(z.extra))),b.push($)}return b}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq),t.Y36(t.R0b),t.Y36(t.sBO),t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["base-chart"]],inputs:{results:"results",view:"view",scheme:"scheme",schemeType:"schemeType",customColors:"customColors",animations:"animations"},outputs:{select:"select"},features:[t.TTD],decls:1,vars:0,template:function(o,b){1&o&&t._UZ(0,"div")},encapsulation:2}),m})();var Ua=(()=>{return(m=Ua||(Ua={})).Top="top",m.Bottom="bottom",m.Left="left",m.Right="right",Ua;var m})();let P1=(()=>{class m{constructor(o){this.textHeight=25,this.margin=5,this.element=o.nativeElement}ngOnChanges(o){this.update()}update(){switch(this.strokeWidth="0.01",this.textAnchor="middle",this.transform="",this.orient){case Ua.Top:case Ua.Bottom:this.y=this.offset,this.x=this.width/2;break;case Ua.Left:this.y=-(this.offset+this.textHeight+this.margin),this.x=-this.height/2,this.transform="rotate(270)";break;case Ua.Right:this.y=this.offset+this.margin,this.x=-this.height/2,this.transform="rotate(270)"}}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-axis-label",""]],inputs:{orient:"orient",label:"label",offset:"offset",width:"width",height:"height"},features:[t.TTD],attrs:Qs,decls:2,vars:6,template:function(o,b){1&o&&(t.O4$(),t.TgZ(0,"text"),t._uU(1),t.qZA()),2&o&&(t.uIk("stroke-width",b.strokeWidth)("x",b.x)("y",b.y)("text-anchor",b.textAnchor)("transform",b.transform),t.xp6(1),t.hij(" ",b.label," "))},encapsulation:2,changeDetection:0}),m})();function Zo(m,O=16){return"string"!=typeof m?"number"==typeof m?m+"":"":(m=m.trim()).length<=O?m:`${m.slice(0,O)}...`}function Rd(m,O){if(m.length>O){const o=[],b=Math.floor(m.length/O);for(let z=0;z{return(m=Rs||(Rs={})).Start="start",m.Middle="middle",m.End="end",Rs;var m})();let Hd=(()=>{class m{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.rotateTicks=!0,this.dimensionsChanged=new t.vpe,this.verticalSpacing=20,this.rotateLabels=!1,this.innerTickSize=6,this.outerTickSize=6,this.tickPadding=3,this.textAnchor=Rs.Middle,this.maxTicksLength=0,this.maxAllowedLength=16,this.height=0,this.approxHeight=10}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return void this.dimensionsChanged.emit({height:this.approxHeight});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().height,10);o!==this.height&&(this.height=o,this.dimensionsChanged.emit({height:this.height}),setTimeout(()=>this.updateDims()))}update(){const o=this.scale;this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(z){return"Date"===z.constructor.name?z.toLocaleDateString():z.toLocaleString()};const b=this.rotateTicks?this.getRotationAngle(this.ticks):null;this.adjustedScale=this.scale.bandwidth?function(z){return this.scale(z)+.5*this.scale.bandwidth()}:this.scale,this.textTransform="",b&&0!==b?(this.textTransform=`rotate(${b})`,this.textAnchor=Rs.End,this.verticalSpacing=10):this.textAnchor=Rs.Middle,setTimeout(()=>this.updateDims())}getRotationAngle(o){let b=0;this.maxTicksLength=0;for(let Ut=0;Utthis.maxTicksLength&&(this.maxTicksLength=yi)}const Ne=7*Math.min(this.maxTicksLength,this.maxAllowedLength);let dt=Ne;const Gt=Math.floor(this.width/o.length);for(;dt>Gt&&b>-90;)b-=30,dt=Math.cos(b*(Math.PI/180))*Ne;return this.approxHeight=Math.max(Math.abs(Math.sin(b*(Math.PI/180))*Ne),10),b}getTicks(){let o;const b=this.getMaxTicks(20),z=this.getMaxTicks(100);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[z]):(o=this.scale.domain(),o=Rd(o,b)),o}getMaxTicks(o){return Math.floor(this.width/o)}tickTransform(o){return"translate("+this.adjustedScale(o)+","+this.verticalSpacing+")"}gridLineTransform(){return`translate(0,${-this.verticalSpacing-5})`}tickTrim(o){return this.trimTicks?Zo(o,this.maxTickLength):o}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis-ticks",""]],viewQuery:function(o,b){if(1&o&&t.Gf(G2,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksElement=z.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineHeight:"gridLineHeight",width:"width",rotateTicks:"rotateTicks"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:_u,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,Z2,5,7,"g",1),t.qZA(),t.YNc(3,W2,2,2,"g",2)),2&o&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.ticks))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),A0=(()=>{class m{constructor(){this.rotateTicks=!0,this.showGridLines=!1,this.xOrient=Ua.Bottom,this.xAxisOffset=0,this.dimensionsChanged=new t.vpe,this.xAxisClassName="x axis",this.labelOffset=0,this.fill="none",this.stroke="stroke",this.tickStroke="#ccc",this.strokeWidth="none",this.padding=5,this.orientation=Ua}ngOnChanges(o){this.update()}update(){this.transform=`translate(0,${this.xAxisOffset+this.padding+this.dims.height})`,void 0!==this.xAxisTickCount&&(this.tickArguments=[this.xAxisTickCount])}emitTicksHeight({height:o}){const b=o+25+5;b!==this.labelOffset&&(this.labelOffset=b,setTimeout(()=>{this.dimensionsChanged.emit({height:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-x-axis",""]],viewQuery:function(o,b){if(1&o&&t.Gf(Hd,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksComponent=z.first)}},inputs:{xScale:"xScale",dims:"dims",trimTicks:"trimTicks",rotateTicks:"rotateTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",ticks:"ticks",xAxisTickCount:"xAxisTickCount",xOrient:"xOrient",xAxisOffset:"xAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:j3,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Y2,1,12,"g",0),t.YNc(2,vu,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",b.xAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},directives:[Hd,P1,e.O5],encapsulation:2,changeDetection:0}),m})();function qs(m,O,o,b,z,[$,Ne,dt,Gt]){let Ut="";return Ut=`M${[m+z,O]}`,Ut+="h"+((o=0===(o=Math.floor(o))?1:o)-2*z),Ut+=Ne?`a${[z,z]} 0 0 1 ${[z,z]}`:`h${z}v${z}`,Ut+="v"+((b=0===(b=Math.floor(b))?1:b)-2*z),Ut+=Gt?`a${[z,z]} 0 0 1 ${[-z,z]}`:`v${z}h${-z}`,Ut+="h"+(2*z-o),Ut+=dt?`a${[z,z]} 0 0 1 ${[-z,-z]}`:`h${-z}v${-z}`,Ut+="v"+(2*z-b),Ut+=$?`a${[z,z]} 0 0 1 ${[z,-z]}`:`v${-z}h${z}`,Ut+="z",Ut}let Fd=(()=>{class m{constructor(o){this.platformId=o,this.tickArguments=[5],this.tickStroke="#ccc",this.trimTicks=!0,this.maxTickLength=16,this.showGridLines=!1,this.showRefLabels=!1,this.showRefLines=!1,this.dimensionsChanged=new t.vpe,this.innerTickSize=6,this.tickPadding=3,this.verticalSpacing=20,this.textAnchor=Rs.Middle,this.width=0,this.outerTickSize=6,this.rotateLabels=!1,this.referenceLineLength=0,this.Orientation=Ua}ngOnChanges(o){this.update()}ngAfterViewInit(){setTimeout(()=>this.updateDims())}updateDims(){if(!(0,e.NF)(this.platformId))return this.width=this.getApproximateAxisWidth(),void this.dimensionsChanged.emit({width:this.width});const o=parseInt(this.ticksElement.nativeElement.getBoundingClientRect().width,10);o!==this.width&&(this.width=o,this.dimensionsChanged.emit({width:o}),setTimeout(()=>this.updateDims()))}update(){let o;const b=this.orient===Ua.Top||this.orient===Ua.Right?-1:1;switch(this.tickSpacing=Math.max(this.innerTickSize,0)+this.tickPadding,o=this.scale,this.ticks=this.getTicks(),this.tickFormat=this.tickFormatting?this.tickFormatting:o.tickFormat?o.tickFormat.apply(o,this.tickArguments):function(z){return"Date"===z.constructor.name?z.toLocaleDateString():z.toLocaleString()},this.adjustedScale=o.bandwidth?function(z){return o(z)+.5*o.bandwidth()}:o,this.showRefLines&&this.referenceLines&&this.setReferencelines(),this.orient){case Ua.Top:case Ua.Bottom:this.transform=function(z){return"translate("+this.adjustedScale(z)+",0)"},this.textAnchor=Rs.Middle,this.y2=this.innerTickSize*b,this.y1=this.tickSpacing*b,this.dy=b<0?"0em":".71em";break;case Ua.Left:this.transform=function(z){return"translate(0,"+this.adjustedScale(z)+")"},this.textAnchor=Rs.End,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em";break;case Ua.Right:this.transform=function(z){return"translate(0,"+this.adjustedScale(z)+")"},this.textAnchor=Rs.Start,this.x2=this.innerTickSize*-b,this.x1=this.tickSpacing*-b,this.dy=".32em"}setTimeout(()=>this.updateDims())}setReferencelines(){this.refMin=this.adjustedScale(Math.min.apply(null,this.referenceLines.map(o=>o.value))),this.refMax=this.adjustedScale(Math.max.apply(null,this.referenceLines.map(o=>o.value))),this.referenceLineLength=this.referenceLines.length,this.referenceAreaPath=qs(0,this.refMax,this.gridLineWidth,this.refMin-this.refMax,0,[!1,!1,!1,!1])}getTicks(){let o;const b=this.getMaxTicks(20),z=this.getMaxTicks(50);return this.tickValues?o=this.tickValues:this.scale.ticks?o=this.scale.ticks.apply(this.scale,[z]):(o=this.scale.domain(),o=Rd(o,b)),o}getMaxTicks(o){return Math.floor(this.height/o)}tickTransform(o){return`translate(${this.adjustedScale(o)},${this.verticalSpacing})`}gridLineTransform(){return"translate(5,0)"}tickTrim(o){return this.trimTicks?Zo(o,this.maxTickLength):o}getApproximateAxisWidth(){return 7*Math.max(...this.ticks.map(z=>this.tickTrim(this.tickFormat(z)).length))}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis-ticks",""]],viewQuery:function(o,b){if(1&o&&t.Gf(G2,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksElement=z.first)}},inputs:{scale:"scale",orient:"orient",tickArguments:"tickArguments",tickValues:"tickValues",tickStroke:"tickStroke",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",showGridLines:"showGridLines",gridLineWidth:"gridLineWidth",height:"height",referenceLines:"referenceLines",showRefLabels:"showRefLabels",showRefLines:"showRefLines"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:K3,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g",null,0),t.YNc(2,j2,5,9,"g",1),t.qZA(),t.YNc(3,v1,1,2,"path",2),t.YNc(4,Q2,2,2,"g",3),t.YNc(5,bu,2,1,"g",3)),2&o&&(t.xp6(2),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngIf",b.referenceLineLength>1&&b.refMax&&b.refMin&&b.showRefLines),t.xp6(1),t.Q6J("ngForOf",b.ticks),t.xp6(1),t.Q6J("ngForOf",b.referenceLines))},directives:[e.sg,e.O5],encapsulation:2,changeDetection:0}),m})(),k1=(()=>{class m{constructor(){this.showGridLines=!1,this.yOrient=Ua.Left,this.yAxisOffset=0,this.dimensionsChanged=new t.vpe,this.yAxisClassName="y axis",this.labelOffset=15,this.fill="none",this.stroke="#CCC",this.tickStroke="#CCC",this.strokeWidth=1,this.padding=5}ngOnChanges(o){this.update()}update(){this.offset=-(this.yAxisOffset+this.padding),this.yOrient===Ua.Right?(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:o}){o!==this.labelOffset&&this.yOrient===Ua.Right?(this.labelOffset=o+this.labelOffset,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0)):o!==this.labelOffset&&(this.labelOffset=o,setTimeout(()=>{this.dimensionsChanged.emit({width:o})},0))}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-y-axis",""]],viewQuery:function(o,b){if(1&o&&t.Gf(Fd,5),2&o){let z;t.iGM(z=t.CRH())&&(b.ticksComponent=z.first)}},inputs:{yScale:"yScale",dims:"dims",trimTicks:"trimTicks",maxTickLength:"maxTickLength",tickFormatting:"tickFormatting",ticks:"ticks",showGridLines:"showGridLines",showLabel:"showLabel",labelText:"labelText",yAxisTickCount:"yAxisTickCount",yOrient:"yOrient",referenceLines:"referenceLines",showRefLines:"showRefLines",showRefLabels:"showRefLabels",yAxisOffset:"yAxisOffset"},outputs:{dimensionsChanged:"dimensionsChanged"},features:[t.TTD],attrs:xu,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(o,b){1&o&&(t.O4$(),t.TgZ(0,"g"),t.YNc(1,Q3,1,14,"g",0),t.YNc(2,q3,1,5,"g",1),t.qZA()),2&o&&(t.uIk("class",b.yAxisClassName)("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.yScale),t.xp6(1),t.Q6J("ngIf",b.showLabel))},directives:[Fd,P1,e.O5],encapsulation:2,changeDetection:0}),m})(),zd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez]]}),m})();var _l=(()=>{return(m=_l||(_l={})).popover="popover",m.tooltip="tooltip",_l;var m})(),Wo=(()=>{return(m=Wo||(Wo={}))[m.all="all"]="all",m[m.focus="focus"]="focus",m[m.mouseover="mouseover"]="mouseover",Wo;var m})();let N1=(()=>{class m{constructor(o,b,z){this.tooltipService=o,this.viewContainerRef=b,this.renderer=z,this.tooltipCssClass="",this.tooltipAppendToBody=!0,this.tooltipSpacing=10,this.tooltipDisabled=!1,this.tooltipShowCaret=!0,this.tooltipPlacement=er.Top,this.tooltipAlignment=er.Center,this.tooltipType=_l.popover,this.tooltipCloseOnClickOutside=!0,this.tooltipCloseOnMouseLeave=!0,this.tooltipHideTimeout=300,this.tooltipShowTimeout=100,this.tooltipShowEvent=Wo.all,this.tooltipImmediateExit=!1,this.show=new t.vpe,this.hide=new t.vpe}get listensForFocus(){return this.tooltipShowEvent===Wo.all||this.tooltipShowEvent===Wo.focus}get listensForHover(){return this.tooltipShowEvent===Wo.all||this.tooltipShowEvent===Wo.mouseover}ngOnDestroy(){this.hideTooltip(!0)}onFocus(){this.listensForFocus&&this.showTooltip()}onBlur(){this.listensForFocus&&this.hideTooltip(!0)}onMouseEnter(){this.listensForHover&&this.showTooltip()}onMouseLeave(o){if(this.listensForHover&&this.tooltipCloseOnMouseLeave){if(clearTimeout(this.timeout),this.component&&this.component.instance.element.nativeElement.contains(o))return;this.hideTooltip(this.tooltipImmediateExit)}}onMouseClick(){this.listensForHover&&this.hideTooltip(!0)}showTooltip(o){if(this.component||this.tooltipDisabled)return;const b=o?0:this.tooltipShowTimeout+(navigator.userAgent.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/)?300:0);clearTimeout(this.timeout),this.timeout=setTimeout(()=>{this.tooltipService.destroyAll();const z=this.createBoundOptions();this.component=this.tooltipService.create(z),setTimeout(()=>{this.component&&this.addHideListeners(this.component.instance.element.nativeElement)},10),this.show.emit(!0)},b)}addHideListeners(o){this.mouseEnterContentEvent=this.renderer.listen(o,"mouseenter",()=>{clearTimeout(this.timeout)}),this.tooltipCloseOnMouseLeave&&(this.mouseLeaveContentEvent=this.renderer.listen(o,"mouseleave",()=>{this.hideTooltip(this.tooltipImmediateExit)})),this.tooltipCloseOnClickOutside&&(this.documentClickEvent=this.renderer.listen("window","click",b=>{o.contains(b.target)||this.hideTooltip()}))}hideTooltip(o=!1){if(!this.component)return;const b=()=>{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),o?b():this.timeout=setTimeout(b,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 m.\u0275fac=function(o){return new(o||m)(t.Y36(E0),t.Y36(t.s_b),t.Y36(t.Qsj))},m.\u0275dir=t.lG2({type:m,selectors:[["","ngx-tooltip",""]],hostBindings:function(o,b){1&o&&t.NdJ("focusin",function(){return b.onFocus()})("blur",function(){return b.onBlur()})("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function($){return b.onMouseLeave($.target)})("click",function(){return b.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",tooltipTemplate:"tooltipTemplate",tooltipShowEvent:"tooltipShowEvent",tooltipContext:"tooltipContext",tooltipImmediateExit:"tooltipImmediateExit"},outputs:{show:"show",hide:"hide"}}),m})(),Vd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({providers:[S0,E0],imports:[[e.ez]]}),m})();const L0={};function Pc(){let m=("0000"+(Math.random()*Math.pow(36,4)<<0).toString(36)).slice(-4);return m=`a${m}`,L0[m]?Pc():(L0[m]=!0,m)}var Qr=(()=>{return(m=Qr||(Qr={})).Vertical="vertical",m.Horizontal="horizontal",Qr;var m})();let kc=(()=>{class m{constructor(){this.orientation=Qr.Vertical}ngOnChanges(o){this.x1="0%",this.x2="0%",this.y1="0%",this.y2="0%",this.orientation===Qr.Horizontal?this.x2="100%":this.orientation===Qr.Vertical&&(this.y1="100%")}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-svg-linear-gradient",""]],inputs:{orientation:"orientation",name:"name",stops:"stops"},features:[t.TTD],attrs:_6,decls:2,vars:6,consts:[[3,"id"],[3,"stop-color","stop-opacity",4,"ngFor","ngForOf"]],template:function(o,b){1&o&&(t.O4$(),t.TgZ(0,"linearGradient",0),t.YNc(1,J3,1,5,"stop",1),t.qZA()),2&o&&(t.Q6J("id",b.name),t.uIk("x1",b.x1)("y1",b.y1)("x2",b.x2)("y2",b.y2),t.xp6(1),t.Q6J("ngForOf",b.stops))},directives:[e.sg],encapsulation:2,changeDetection:0}),m})(),Bd=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel",""]],inputs:{width:"width",height:"height",x:"x",y:"y"},attrs:Cu,decls:1,vars:4,consts:[["stroke","none",1,"gridpanel"]],template:function(o,b){1&o&&(t.O4$(),t._UZ(0,"rect",0)),2&o&&t.uIk("height",b.height)("width",b.width)("x",b.x)("y",b.y)},encapsulation:2,changeDetection:0}),m})();var Nc=(()=>{return(m=Nc||(Nc={})).Odd="odd",m.Even="even",Nc;var m})();let Ul,vl=(()=>{class m{ngOnChanges(o){this.update()}update(){this.gridPanels=this.getGridPanels()}getGridPanels(){return this.data.map(o=>{let b,z,$,Ne,dt,Gt=Nc.Odd;if(this.orient===Qr.Vertical){const Ut=this.xScale(o.name);Number.parseInt((Ut/this.xScale.step()).toString(),10)%2==1&&(Gt=Nc.Even),b=this.xScale.bandwidth()*this.xScale.paddingInner(),z=this.xScale.bandwidth()+b,$=this.dims.height,Ne=this.xScale(o.name)-b/2,dt=0}else if(this.orient===Qr.Horizontal){const Ut=this.yScale(o.name);Number.parseInt((Ut/this.yScale.step()).toString(),10)%2==1&&(Gt=Nc.Even),b=this.yScale.bandwidth()*this.yScale.paddingInner(),z=this.dims.width,$=this.yScale.bandwidth()+b,Ne=0,dt=this.yScale(o.name)-b/2}return{name:o.name,class:Gt,height:$,width:z,x:Ne,y:dt}})}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-grid-panel-series",""]],inputs:{data:"data",dims:"dims",xScale:"xScale",yScale:"yScale",orient:"orient"},features:[t.TTD],attrs:b6,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(o,b){1&o&&t.YNc(0,x6,1,10,"g",0),2&o&&t.Q6J("ngForOf",b.gridPanels)},directives:[Bd,e.sg],encapsulation:2,changeDetection:0}),m})();"undefined"!=typeof window?Ul=window:"undefined"!=typeof global&&(Ul=global);let hs=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[e.ez,zd,Vd],e.ez,zd,Vd]}),m})();function k0({width:m,height:O,margins:o,showXAxis:b=!1,showYAxis:z=!1,xAxisHeight:$=0,yAxisWidth:Ne=0,showXLabel:dt=!1,showYLabel:Gt=!1,showLegend:Ut=!1,legendType:oi=Dn.Ordinal,legendPosition:yi=Ns.Right,columns:xi=12}){let Ai=o[3],tn=m,Mn=O-o[0]-o[2];return Ut&&yi===Ns.Right&&(xi-=oi===Dn.Ordinal?2:1),tn=tn*xi/12,tn=tn-o[1]-o[3],b&&(Mn-=5,Mn-=$,dt&&(Mn-=30)),z&&(tn-=5,tn-=Ne,Ai+=Ne,Ai+=10,Gt&&(tn-=30,Ai+=30)),tn=Math.max(0,tn),Mn=Math.max(0,Mn),{width:Math.floor(tn),height:Math.floor(Mn),xOffset:Math.floor(Ai)}}let N0=[{name:"vivid",selectable:!0,group:Dn.Ordinal,domain:["#647c8a","#3f51b5","#2196f3","#00b862","#afdf0a","#a7b61a","#f3e562","#ff9800","#ff5722","#ff4514"]},{name:"natural",selectable:!0,group:Dn.Ordinal,domain:["#bf9d76","#e99450","#d89f59","#f2dfa7","#a5d7c6","#7794b1","#afafaf","#707160","#ba9383","#d9d5c3"]},{name:"cool",selectable:!0,group:Dn.Ordinal,domain:["#a8385d","#7aa3e5","#a27ea8","#aae3f5","#adcded","#a95963","#8796c0","#7ed3ed","#50abcc","#ad6886"]},{name:"fire",selectable:!0,group:Dn.Ordinal,domain:["#ff3d00","#bf360c","#ff8f00","#ff6f00","#ff5722","#e65100","#ffca28","#ffab00"]},{name:"solar",selectable:!0,group:Dn.Linear,domain:["#fff8e1","#ffecb3","#ffe082","#ffd54f","#ffca28","#ffc107","#ffb300","#ffa000","#ff8f00","#ff6f00"]},{name:"air",selectable:!0,group:Dn.Linear,domain:["#e1f5fe","#b3e5fc","#81d4fa","#4fc3f7","#29b6f6","#03a9f4","#039be5","#0288d1","#0277bd","#01579b"]},{name:"aqua",selectable:!0,group:Dn.Linear,domain:["#e0f7fa","#b2ebf2","#80deea","#4dd0e1","#26c6da","#00bcd4","#00acc1","#0097a7","#00838f","#006064"]},{name:"flame",selectable:!1,group:Dn.Ordinal,domain:["#A10A28","#D3342D","#EF6D49","#FAAD67","#FDDE90","#DBED91","#A9D770","#6CBA67","#2C9653","#146738"]},{name:"ocean",selectable:!1,group:Dn.Ordinal,domain:["#1D68FB","#33C0FC","#4AFFFE","#AFFFFF","#FFFC63","#FDBD2D","#FC8A25","#FA4F1E","#FA141B","#BA38D1"]},{name:"forest",selectable:!1,group:Dn.Ordinal,domain:["#55C22D","#C1F33D","#3CC099","#AFFFFF","#8CFC9D","#76CFFA","#BA60FB","#EE6490","#C42A1C","#FC9F32"]},{name:"horizon",selectable:!1,group:Dn.Ordinal,domain:["#2597FB","#65EBFD","#99FDD0","#FCEE4B","#FEFCFA","#FDD6E3","#FCB1A8","#EF6F7B","#CB96E8","#EFDEE0"]},{name:"neons",selectable:!1,group:Dn.Ordinal,domain:["#FF3333","#FF33FF","#CC33FF","#0000FF","#33CCFF","#33FFFF","#33FF66","#CCFF33","#FFCC00","#FF6600"]},{name:"picnic",selectable:!1,group:Dn.Ordinal,domain:["#FAC51D","#66BD6D","#FAA026","#29BB9C","#E96B56","#55ACD2","#B7332F","#2C83C9","#9166B8","#92E7E8"]},{name:"night",selectable:!1,group:Dn.Ordinal,domain:["#2B1B5A","#501356","#183356","#28203F","#391B3C","#1E2B3C","#120634","#2D0432","#051932","#453080","#75267D","#2C507D","#4B3880","#752F7D","#35547D"]},{name:"nightLights",selectable:!1,group:Dn.Ordinal,domain:["#4e31a5","#9c25a7","#3065ab","#57468b","#904497","#46648b","#32118d","#a00fb3","#1052a2","#6e51bd","#b63cc3","#6c97cb","#8671c1","#b455be","#7496c3"]}];class z1{constructor(O,o,b,z){"string"==typeof O&&(O=N0.find($=>$.name===O)),this.colorDomain=O.domain,this.scaleType=o,this.domain=b,this.customColors=z,this.scale=this.generateColorScheme(O,o,this.domain)}generateColorScheme(O,o,b){let z;switch("string"==typeof O&&(O=N0.find($=>$.name===O)),o){case Dn.Quantile:z=V3().range(O.domain).domain(b);break;case Dn.Ordinal:z=U2().range(O.domain).domain(b);break;case Dn.Linear:{const $=[...O.domain];1===$.length&&($.push($[0]),this.colorDomain=$);const Ne=V2(0,1,1/$.length);z=zo().range($).domain(Ne)}}return z}getColor(O){if(null==O)throw new Error("Value can not be null");if(this.scaleType===Dn.Linear){const o=zo().domain(this.domain).range([0,1]);return this.scale(o(O))}{if("function"==typeof this.customColors)return this.customColors(O);const o=O.toString();let b;return this.customColors&&this.customColors.length>0&&(b=this.customColors.find(z=>z.name.toLowerCase()===o.toLowerCase())),b?b.value:this.scale(O)}}getLinearGradientStops(O,o){void 0===o&&(o=this.domain[0]);const b=zo().domain(this.domain).range([0,1]),z=Vo().domain(this.colorDomain).range([0,1]),$=this.getColor(O),Ne=b(o),dt=this.getColor(o),Gt=b(O);let Ut=1,oi=Ne;const yi=[];for(yi.push({color:dt,offset:Ne,originalOffset:Ne,opacity:1});oi=(Gt-z.bandwidth()).toFixed(4))break;yi.push({color:xi,offset:Ai,opacity:1}),oi=Ai,Ut++}}if(yi[yi.length-1].offset<100&&yi.push({color:$,offset:Gt,opacity:1}),Gt===Ne)yi[0].offset=0,yi[1].offset=100;else if(100!==yi[yi.length-1].offset)for(const xi of yi)xi.offset=(xi.offset-Ne)/(Gt-Ne)*100;return yi}}let Fc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),R0=(()=>{class m{constructor(o){this.roundEdges=!0,this.gradient=!1,this.offset=0,this.isActive=!1,this.animations=!0,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.hasGradient=!1,this.hideBar=!1,this.element=o.nativeElement}ngOnChanges(o){o.roundEdges&&this.loadAnimation(),this.update()}update(){this.gradientId="grad"+Pc().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 o=function on(m){return"string"==typeof m?new bi([[document.querySelector(m)]],[document.documentElement]):new bi([[m]],Bt)}(this.element).select(".bar"),b=this.getPath();this.animations?o.transition().duration(500).attr("d",b):o.attr("d",b)}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 b,o=this.getRadius();return this.roundEdges?this.orientation===Qr.Vertical?(o=Math.min(this.height,o),b=qs(this.x,this.y+this.height,this.width,1,0,this.edges)):this.orientation===Qr.Horizontal&&(o=Math.min(this.width,o),b=qs(this.x,this.y,1,this.height,0,this.edges)):this.orientation===Qr.Vertical?b=qs(this.x,this.y+this.height,this.width,1,0,this.edges):this.orientation===Qr.Horizontal&&(b=qs(this.x,this.y,1,this.height,0,this.edges)),b}getPath(){let b,o=this.getRadius();return this.roundEdges?this.orientation===Qr.Vertical?(o=Math.min(this.height,o),b=qs(this.x,this.y,this.width,this.height,o,this.edges)):this.orientation===Qr.Horizontal&&(o=Math.min(this.width,o),b=qs(this.x,this.y,this.width,this.height,o,this.edges)):b=qs(this.x,this.y,this.width,this.height,o,this.edges),b}getRadius(){let o=0;return this.roundEdges&&this.height>5&&this.width>5&&(o=Math.floor(Math.min(5,this.height/2,this.width/2))),o}getStartOpacity(){return this.roundEdges?.2:.5}get edges(){let o=[!1,!1,!1,!1];return this.roundEdges&&(this.orientation===Qr.Vertical?o=this.data.value>0?[!0,!0,!1,!1]:[!1,!1,!0,!0]:this.orientation===Qr.Horizontal&&(o=this.data.value>0?[!1,!0,!1,!0]:[!0,!1,!0,!1])),o}onMouseEnter(){this.activate.emit(this.data)}onMouseLeave(){this.deactivate.emit(this.data)}checkToHideBar(){this.hideBar=this.noBarWhenZero&&(this.orientation===Qr.Vertical&&0===this.height||this.orientation===Qr.Horizontal&&0===this.width)}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-bar",""]],hostBindings:function(o,b){1&o&&t.NdJ("mouseenter",function(){return b.onMouseEnter()})("mouseleave",function(){return b.onMouseLeave()})},inputs:{fill:"fill",data:"data",width:"width",height:"height",x:"x",y:"y",orientation:"orientation",roundEdges:"roundEdges",gradient:"gradient",offset:"offset",isActive:"isActive",stops:"stops",animations:"animations",ariaLabel:"ariaLabel",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate"},features:[t.TTD],attrs:Ou,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(o,b){1&o&&(t.YNc(0,bs,2,3,"defs",0),t.O4$(),t.TgZ(1,"path",1),t.NdJ("click",function(){return b.select.emit(b.data)}),t.qZA()),2&o&&(t.Q6J("ngIf",b.hasGradient),t.xp6(1),t.ekj("active",b.isActive)("hidden",b.hideBar),t.uIk("d",b.path)("aria-label",b.ariaLabel)("fill",b.hasGradient?b.gradientFill:b.fill))},directives:[kc,e.O5],encapsulation:2,changeDetection:0}),m})();var Js=(()=>{return(m=Js||(Js={})).Standard="standard",m.Normalized="normalized",m.Stacked="stacked",Js;var m})(),uo=(()=>{return(m=uo||(uo={})).positive="positive",m.negative="negative",uo;var m})();let Xd=(()=>{class m{constructor(o){this.dimensionsChanged=new t.vpe,this.horizontalPadding=2,this.verticalPadding=5,this.element=o.nativeElement}ngOnChanges(o){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):Ic(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 m.\u0275fac=function(o){return new(o||m)(t.Y36(t.SBq))},m.\u0275cmp=t.Xpm({type:m,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:[t.TTD],attrs:Pu,decls:2,vars:5,consts:[["alignment-baseline","middle",1,"textDataLabel"]],template:function(o,b){1&o&&(t.O4$(),t.TgZ(0,"text",0),t._uU(1),t.qZA()),2&o&&(t.uIk("text-anchor",b.textAnchor)("transform",b.transform)("x",b.x)("y",b.y),t.xp6(1),t.hij(" ",b.formatedValue," "))},styles:[".textDataLabel[_ngcontent-%COMP%]{font-size:11px}"],changeDetection:0}),m})(),$d=(()=>{class m{constructor(o){this.platformId=o,this.type=Js.Standard,this.tooltipDisabled=!1,this.animations=!0,this.showDataLabel=!1,this.noBarWhenZero=!0,this.select=new t.vpe,this.activate=new t.vpe,this.deactivate=new t.vpe,this.dataLabelHeightChanged=new t.vpe,this.barsForDataLabels=[],this.barOrientation=Qr,this.isSSR=!1}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!0)}ngOnChanges(o){this.update()}update(){let o;this.updateTooltipSettings(),this.series.length&&(o=this.xScale.bandwidth()),o=Math.round(o);const b=Math.max(this.yScale.domain()[0],0),z={[uo.positive]:0,[uo.negative]:0};let Ne,$=uo.positive;this.type===Js.Normalized&&(Ne=this.series.map(dt=>dt.value).reduce((dt,Gt)=>dt+Gt,0)),this.bars=this.series.map((dt,Gt)=>{let Ut=dt.value;const oi=this.getLabel(dt),yi=Ic(oi);$=Ut>0?uo.positive:uo.negative;const Ai={value:Ut,label:oi,roundEdges:this.roundEdges,data:dt,width:o,formattedLabel:yi,height:0,x:0,y:0};if(this.type===Js.Standard)Ai.height=Math.abs(this.yScale(Ut)-this.yScale(b)),Ai.x=this.xScale(oi),Ai.y=this.yScale(Ut<0?0:Ut);else if(this.type===Js.Stacked){const Mn=z[$],Li=Mn+Ut;z[$]+=Ut,Ai.height=this.yScale(Mn)-this.yScale(Li),Ai.x=0,Ai.y=this.yScale(Li),Ai.offset0=Mn,Ai.offset1=Li}else if(this.type===Js.Normalized){let Mn=z[$],Li=Mn+Ut;z[$]+=Ut,Ne>0?(Mn=100*Mn/Ne,Li=100*Li/Ne):(Mn=0,Li=0),Ai.height=this.yScale(Mn)-this.yScale(Li),Ai.x=0,Ai.y=this.yScale(Li),Ai.offset0=Mn,Ai.offset1=Li,Ut=(Li-Mn).toFixed(2)+"%"}this.colors.scaleType===Dn.Ordinal?Ai.color=this.colors.getColor(oi):this.type===Js.Standard?(Ai.color=this.colors.getColor(Ut),Ai.gradientStops=this.colors.getLinearGradientStops(Ut)):(Ai.color=this.colors.getColor(Ai.offset1),Ai.gradientStops=this.colors.getLinearGradientStops(Ai.offset1,Ai.offset0));let tn=yi;return Ai.ariaLabel=yi+" "+Ut.toLocaleString(),null!=this.seriesName&&(tn=`${this.seriesName} \u2022 ${yi}`,Ai.data.series=this.seriesName,Ai.ariaLabel=this.seriesName+" "+Ai.ariaLabel),Ai.tooltipText=this.tooltipDisabled?void 0:`\n ${function Oc(m){return m.toLocaleString().replace(/[&'`"<>]/g,O=>({"&":"&","'":"'","`":"`",'"':""","<":"<",">":">"}[O]))}(tn)}\n ${this.dataLabelFormatting?this.dataLabelFormatting(Ut):Ut.toLocaleString()}\n `,Ai}),this.updateDataLabels()}updateDataLabels(){if(this.type===Js.Stacked){this.barsForDataLabels=[];const o={};o.series=this.seriesName;const b=this.series.map($=>$.value).reduce(($,Ne)=>Ne>0?$+Ne:$,0),z=this.series.map($=>$.value).reduce(($,Ne)=>Ne<0?$+Ne:$,0);o.total=b+z,o.x=0,o.y=0,o.height=this.yScale(o.total>0?b:z),o.width=this.xScale.bandwidth(),this.barsForDataLabels.push(o)}else this.barsForDataLabels=this.series.map(o=>{var b;const z={};return z.series=null!==(b=this.seriesName)&&void 0!==b?b:o.label,z.total=o.value,z.x=this.xScale(o.label),z.y=this.yScale(0),z.height=this.yScale(z.total)-this.yScale(0),z.width=this.xScale.bandwidth(),z})}updateTooltipSettings(){this.tooltipPlacement=this.tooltipDisabled?void 0:er.Top,this.tooltipType=this.tooltipDisabled?void 0:_l.tooltip}isActive(o){return!!this.activeEntries&&void 0!==this.activeEntries.find(z=>o.name===z.name&&o.value===z.value)}onClick(o){this.select.emit(o)}getLabel(o){return o.label?o.label:o.name}trackBy(o,b){return b.label}trackDataLabelBy(o,b){return o+"#"+b.series+"#"+b.total}}return m.\u0275fac=function(o){return new(o||m)(t.Y36(t.Lbi))},m.\u0275cmp=t.Xpm({type:m,selectors:[["g","ngx-charts-series-vertical",""]],inputs:{dims:"dims",type:"type",series:"series",xScale:"xScale",yScale:"yScale",colors:"colors",gradient:"gradient",activeEntries:"activeEntries",seriesName:"seriesName",tooltipDisabled:"tooltipDisabled",tooltipTemplate:"tooltipTemplate",roundEdges:"roundEdges",animations:"animations",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{select:"select",activate:"activate",deactivate:"deactivate",dataLabelHeightChanged:"dataLabelHeightChanged"},features:[t.TTD],attrs:l0,decls:3,vars:3,consts:[[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",4,"ngFor","ngForOf","ngForTrackBy"],["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(o,b){1&o&&(t.YNc(0,Gu,2,2,"g",0),t.YNc(1,c0,2,2,"g",0),t.YNc(2,Wu,2,2,"g",0)),2&o&&(t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR),t.xp6(1),t.Q6J("ngIf",b.showDataLabel))},directives:[R0,Xd,e.O5,e.sg,N1],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1}),(0,d.jt)(500,(0,d.oB)({opacity:0}))])])]},changeDetection:0}),m})(),Oh=(()=>{class m extends O1{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ns.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 t.vpe,this.deactivate=new t.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=k0({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 o=this.xDomain.length/(this.dims.width/this.barPadding+1);return Vo().range([0,this.dims.width]).paddingInner(o).domain(this.xDomain)}getYScale(){this.yDomain=this.getYDomain();const o=zo().range([this.dims.height,0]).domain(this.yDomain);return this.roundDomains?o.nice():o}getXDomain(){return this.results.map(o=>o.label)}getYDomain(){const o=this.results.map($=>$.value);let b=this.yScaleMin?Math.min(this.yScaleMin,...o):Math.min(0,...o);this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(b=Math.min(b,...this.yAxisTicks));let z=this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o);return this.yAxisTicks&&!this.yAxisTicks.some(isNaN)&&(z=Math.max(z,...this.yAxisTicks)),[b,z]}onClick(o){this.select.emit(o)}setColors(){let o;o=this.schemeType===Dn.Ordinal?this.xDomain:this.yDomain,this.colors=new z1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Dn.Ordinal?(o.domain=this.xDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.yDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onDataLabelMaxHeightChanged(o){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),o.index===this.results.length-1&&setTimeout(()=>this.update())}onActivate(o,b=!1){o=this.results.find($=>b?$.label===o.name:$.name===o.name),!(this.activeEntries.findIndex($=>$.name===o.name&&$.value===o.value&&$.series===o.series)>-1)&&(this.activeEntries=[o,...this.activeEntries],this.activate.emit({value:o,entries:this.activeEntries}))}onDeactivate(o,b=!1){o=this.results.find($=>b?$.label===o.name:$.name===o.name);const z=this.activeEntries.findIndex($=>$.name===o.name&&$.value===o.value&&$.series===o.series);this.activeEntries.splice(z,1),this.activeEntries=[...this.activeEntries],this.deactivate.emit({value:o,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(b){return(O||(O=t.n5z(m)))(b||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical"]],contentQueries:function(o,b,z){if(1&o&&t.Suo(z,rd,5),2&o){let $;t.iGM($=t.CRH())&&(b.tooltipTemplate=$.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",yScaleMin:"yScaleMin",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.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","showGridLines","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","showGridLines","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(o,b){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelClick",function($){return b.onClick($)})("legendLabelActivate",function($){return b.onActivate($,!0)})("legendLabelDeactivate",function($){return b.onDeactivate($,!0)}),t.O4$(),t.TgZ(1,"g",1),t.YNc(2,S1,1,11,"g",2),t.YNc(3,yc,1,9,"g",3),t.TgZ(4,"g",4),t.NdJ("activate",function($){return b.onActivate($)})("deactivate",function($){return b.onDeactivate($)})("select",function($){return b.onClick($)})("dataLabelHeightChanged",function($){return b.onDataLabelMaxHeightChanged($)}),t.qZA()()()),2&o&&(t.Q6J("view",t.WLB(22,ks,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("xScale",b.xScale)("yScale",b.yScale)("colors",b.colors)("series",b.results)("dims",b.dims)("gradient",b.gradient)("tooltipDisabled",b.tooltipDisabled)("tooltipTemplate",b.tooltipTemplate)("showDataLabel",b.showDataLabel)("dataLabelFormatting",b.dataLabelFormatting)("activeEntries",b.activeEntries)("roundEdges",b.roundEdges)("animations",b.animations)("noBarWhenZero",b.noBarWhenZero))},directives:[Nd,A0,k1,$d,e.O5],styles:[od],encapsulation:2,changeDetection:0}),m})(),e4=(()=>{class m extends O1{constructor(){super(...arguments),this.legend=!1,this.legendTitle="Legend",this.legendPosition=Ns.Right,this.tooltipDisabled=!1,this.scaleType=Dn.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 t.vpe,this.deactivate=new t.vpe,this.margin=[10,20,10,20],this.xAxisHeight=0,this.yAxisWidth=0,this.dataLabelMaxHeight={negative:0,positive:0},this.isSSR=!1,this.barOrientation=Qr,this.trackBy=(o,b)=>b.name}ngOnInit(){(0,e.PM)(this.platformId)&&(this.isSSR=!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=k0({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.valueDomain=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(o,b){o.size.negative?this.dataLabelMaxHeight.negative=Math.max(this.dataLabelMaxHeight.negative,o.size.height):this.dataLabelMaxHeight.positive=Math.max(this.dataLabelMaxHeight.positive,o.size.height),b===this.results.length-1&&setTimeout(()=>this.update())}getGroupScale(){const o=this.groupDomain.length/(this.dims.height/this.groupPadding+1);return Vo().rangeRound([0,this.dims.width]).paddingInner(o).paddingOuter(o/2).domain(this.groupDomain)}getInnerScale(){const o=this.groupScale.bandwidth(),b=this.innerDomain.length/(o/this.barPadding+1);return Vo().rangeRound([0,o]).paddingInner(b).domain(this.innerDomain)}getValueScale(){const o=zo().range([this.dims.height,0]).domain(this.valueDomain);return this.roundDomains?o.nice():o}getGroupDomain(){const o=[];for(const b of this.results)o.includes(b.label)||o.push(b.label);return o}getInnerDomain(){const o=[];for(const b of this.results)for(const z of b.series)o.includes(z.label)||o.push(z.label);return o}getValueDomain(){const o=[];for(const $ of this.results)for(const Ne of $.series)o.includes(Ne.value)||o.push(Ne.value);return[Math.min(0,...o),this.yScaleMax?Math.max(this.yScaleMax,...o):Math.max(0,...o)]}groupTransform(o){return`translate(${this.groupScale(o.label)}, 0)`}onClick(o,b){b&&(o.series=b.name),this.select.emit(o)}setColors(){let o;o=this.schemeType===Dn.Ordinal?this.innerDomain:this.valueDomain,this.colors=new z1(this.scheme,this.schemeType,o,this.customColors)}getLegendOptions(){const o={scaleType:this.schemeType,colors:void 0,domain:[],title:void 0,position:this.legendPosition};return o.scaleType===Dn.Ordinal?(o.domain=this.innerDomain,o.colors=this.colors,o.title=this.legendTitle):(o.domain=this.valueDomain,o.colors=this.colors.scale),o}updateYAxisWidth({width:o}){this.yAxisWidth=o,this.update()}updateXAxisHeight({height:o}){this.xAxisHeight=o,this.update()}onActivate(o,b,z=!1){const $=Object.assign({},o);b&&($.series=b.name);const Ne=this.results.map(dt=>dt.series).flat().filter(dt=>z?dt.label===$.name:dt.name===$.name&&dt.series===$.series);this.activeEntries=[...Ne],this.activate.emit({value:$,entries:this.activeEntries})}onDeactivate(o,b,z=!1){const $=Object.assign({},o);b&&($.series=b.name),this.activeEntries=this.activeEntries.filter(Ne=>z?Ne.label!==$.name:!(Ne.name===$.name&&Ne.series===$.series)),this.deactivate.emit({value:$,entries:this.activeEntries})}}return m.\u0275fac=function(){let O;return function(b){return(O||(O=t.n5z(m)))(b||m)}}(),m.\u0275cmp=t.Xpm({type:m,selectors:[["ngx-charts-bar-vertical-2d"]],contentQueries:function(o,b,z){if(1&o&&t.Suo(z,rd,5),2&o){let $;t.iGM($=t.CRH())&&(b.tooltipTemplate=$.first)}},inputs:{legend:"legend",legendTitle:"legendTitle",legendPosition:"legendPosition",xAxis:"xAxis",yAxis:"yAxis",showXAxisLabel:"showXAxisLabel",showYAxisLabel:"showYAxisLabel",xAxisLabel:"xAxisLabel",yAxisLabel:"yAxisLabel",tooltipDisabled:"tooltipDisabled",scaleType:"scaleType",gradient:"gradient",showGridLines:"showGridLines",activeEntries:"activeEntries",schemeType:"schemeType",trimXAxisTicks:"trimXAxisTicks",trimYAxisTicks:"trimYAxisTicks",rotateXAxisTicks:"rotateXAxisTicks",maxXAxisTickLength:"maxXAxisTickLength",maxYAxisTickLength:"maxYAxisTickLength",xAxisTickFormatting:"xAxisTickFormatting",yAxisTickFormatting:"yAxisTickFormatting",xAxisTicks:"xAxisTicks",yAxisTicks:"yAxisTicks",groupPadding:"groupPadding",barPadding:"barPadding",roundDomains:"roundDomains",roundEdges:"roundEdges",yScaleMax:"yScaleMax",showDataLabel:"showDataLabel",dataLabelFormatting:"dataLabelFormatting",noBarWhenZero:"noBarWhenZero"},outputs:{activate:"activate",deactivate:"deactivate"},features:[t.qOj],decls:7,vars:18,consts:[[3,"view","showLegend","legendOptions","activeEntries","animations","legendLabelActivate","legendLabelDeactivate","legendLabelClick"],[1,"bar-chart","chart"],["ngx-charts-grid-panel-series","",3,"xScale","yScale","data","dims","orient"],["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"],[4,"ngIf"],["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",4,"ngFor","ngForOf","ngForTrackBy"],["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(o,b){1&o&&(t.TgZ(0,"ngx-charts-chart",0),t.NdJ("legendLabelActivate",function($){return b.onActivate($,void 0,!0)})("legendLabelDeactivate",function($){return b.onDeactivate($,void 0,!0)})("legendLabelClick",function($){return b.onClick($)}),t.O4$(),t.TgZ(1,"g",1),t._UZ(2,"g",2),t.YNc(3,Yu,1,10,"g",3),t.YNc(4,d0,1,9,"g",4),t.YNc(5,fd,2,2,"g",5),t.qZA(),t.YNc(6,H6,2,2,"g",5),t.qZA()),2&o&&(t.Q6J("view",t.WLB(15,ks,b.width,b.height))("showLegend",b.legend)("legendOptions",b.legendOptions)("activeEntries",b.activeEntries)("animations",b.animations),t.xp6(1),t.uIk("transform",b.transform),t.xp6(1),t.Q6J("xScale",b.groupScale)("yScale",b.valueScale)("data",b.results)("dims",b.dims)("orient",b.barOrientation.Vertical),t.xp6(1),t.Q6J("ngIf",b.xAxis),t.xp6(1),t.Q6J("ngIf",b.yAxis),t.xp6(1),t.Q6J("ngIf",!b.isSSR),t.xp6(1),t.Q6J("ngIf",b.isSSR))},directives:[Nd,vl,A0,k1,$d,e.O5,e.sg],styles:[od],encapsulation:2,data:{animation:[(0,d.X$)("animationState",[(0,d.eR)(":leave",[(0,d.oB)({opacity:1,transform:"*"}),(0,d.jt)(500,(0,d.oB)({opacity:0,transform:"scale(0)"}))])])]},changeDetection:0}),m})(),H0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),kh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),Hh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),op=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),z0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})();Math;let Vc=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),Yh=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs,Vc,z0]]}),m})(),Z0=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),s4=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs]]}),m})(),$h=(()=>{class m{}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[[hs,Vc,H0]]}),m})(),tf=(()=>{class m{constructor(){!function ef(){"undefined"!=typeof SVGElement&&void 0===SVGElement.prototype.contains&&(SVGElement.prototype.contains=HTMLDivElement.prototype.contains)}()}}return m.\u0275fac=function(o){return new(o||m)},m.\u0275mod=t.oAB({type:m}),m.\u0275inj=t.cJS({imports:[hs,Fc,H0,kh,Hh,op,z0,Yh,Z0,Vc,s4,$h]}),m})()},159:(Be,K,p)=>{"use strict";p.d(K,{OF:()=>L,uU:()=>h});var t=p(5e3),e=p(9808),f=p(655),M=p(3259);function a(w,D){if(1&w&&t._UZ(0,"canvas",1),2&w){const S=t.oxw();t.Q6J("qrCode",S.value)("qrCodeErrorCorrectionLevel",S.errorCorrectionLevel)("qrCodeCenterImageSrc",S.centerImageSrc)("qrCodeCenterImageWidth",S.centerImageSize)("qrCodeCenterImageHeight",S.centerImageSize)("qrCodeMargin",S.margin)("width",S.size)("height",S.size)("darkColor",S.darkColor)("lightColor",S.lightColor)}}const C=/^#(?:[0-9a-fA-F]{3,4}){1,2}$/;let d=(()=>{class w{constructor(S){this.viewContainerRef=S,this.errorCorrectionLevel=w.DEFAULT_ERROR_CORRECTION_LEVEL,this.darkColor="#000000FF",this.lightColor="#FFFFFFFF",this.margin=16}ngOnChanges(){var S,k;return(0,f.mG)(this,void 0,void 0,function*(){if(!this.value)return;this.version&&this.version>40?(console.warn("[qrCode] max version is 40, clamping"),this.version=40):this.version&&this.version<1?(console.warn("[qrCode] min version is 1, clamping"),this.version=1):void 0!==this.version&&isNaN(this.version)&&(console.warn("[qrCode] version should be set to a number, defaulting to auto"),this.version=void 0);const E=this.viewContainerRef.element.nativeElement;if(!E)return;const B=E.getContext("2d");B&&B.clearRect(0,0,B.canvas.width,B.canvas.height);const Z=null!==(S=this.errorCorrectionLevel)&&void 0!==S?S:w.DEFAULT_ERROR_CORRECTION_LEVEL,Y=C.test(this.darkColor)?this.darkColor:void 0,ae=C.test(this.lightColor)?this.lightColor:void 0;(0,t.X6Q)()&&(!Y&&this.darkColor&&console.error("[ng-qrcode] darkColor set to invalid value, must be RGBA hex color string, eg: #3050A1FF"),!ae&&this.lightColor&&console.error("[ng-qrcode] lightColor set to invalid value, must be RGBA hex color string, eg: #3050A130")),yield M.toCanvas(E,this.value,{version:this.version,errorCorrectionLevel:Z,width:this.width,margin:this.margin,color:{dark:Y,light:ae}});const ee=this.centerImageSrc,ue=R(this.centerImageWidth,w.DEFAULT_CENTER_IMAGE_SIZE),ne=R(this.centerImageHeight,w.DEFAULT_CENTER_IMAGE_SIZE);if(ee&&B){this.centerImage||(this.centerImage=new Image(ue,ne)),ee!==(null===(k=this.centerImage)||void 0===k?void 0:k.src)&&(this.centerImage.src=ee),ue!==this.centerImage.width&&(this.centerImage.width=ue),ne!==this.centerImage.height&&(this.centerImage.height=ne);const re=this.centerImage;re.onload=()=>{B.drawImage(re,E.width/2-ue/2,E.height/2-ne/2,ue,ne)}}})}}return w.DEFAULT_ERROR_CORRECTION_LEVEL="M",w.DEFAULT_CENTER_IMAGE_SIZE=40,w.\u0275fac=function(S){return new(S||w)(t.Y36(t.s_b))},w.\u0275dir=t.lG2({type:w,selectors:[["canvas","qrCode",""]],inputs:{value:["qrCode","value"],version:["qrCodeVersion","version"],errorCorrectionLevel:["qrCodeErrorCorrectionLevel","errorCorrectionLevel"],width:"width",height:"height",darkColor:"darkColor",lightColor:"lightColor",centerImageSrc:["qrCodeCenterImageSrc","centerImageSrc"],centerImageWidth:["qrCodeCenterImageWidth","centerImageWidth"],centerImageHeight:["qrCodeCenterImageHeight","centerImageHeight"],margin:["qrCodeMargin","margin"]},features:[t.TTD]}),w})();function R(w,D){return void 0===w||""===w?D:"string"==typeof w?parseInt(w,10):w}let h=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275cmp=t.Xpm({type:w,selectors:[["qr-code"]],inputs:{value:"value",size:"size",darkColor:"darkColor",lightColor:"lightColor",errorCorrectionLevel:"errorCorrectionLevel",centerImageSrc:"centerImageSrc",centerImageSize:"centerImageSize",margin:"margin"},decls:1,vars:1,consts:[[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor",4,"ngIf"],[3,"qrCode","qrCodeErrorCorrectionLevel","qrCodeCenterImageSrc","qrCodeCenterImageWidth","qrCodeCenterImageHeight","qrCodeMargin","width","height","darkColor","lightColor"]],template:function(S,k){1&S&&t.YNc(0,a,1,10,"canvas",0),2&S&&t.Q6J("ngIf",k.value)},directives:[e.O5,d],encapsulation:2}),w})(),L=(()=>{class w{}return w.\u0275fac=function(S){return new(S||w)},w.\u0275mod=t.oAB({type:w}),w.\u0275inj=t.cJS({imports:[[e.ez]]}),w})()},8129:(Be,K,p)=>{"use strict";p.d(K,{op:()=>ti,$V:()=>ye,Xd:()=>Ft});var t=p(7579),e=p(4968),f=p(3601),M=p(2722),a=p(5e3),C=p(9808);function d(nt){return getComputedStyle(nt)}function R(nt,He){for(var rt in He){var et=He[rt];"number"==typeof et&&(et+="px"),nt.style[rt]=et}return nt}function h(nt){var He=document.createElement("div");return He.className=nt,He}var L="undefined"!=typeof Element&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function w(nt,He){if(!L)throw new Error("No element matching method supported");return L.call(nt,He)}function D(nt){nt.remove?nt.remove():nt.parentNode&&nt.parentNode.removeChild(nt)}function S(nt,He){return Array.prototype.filter.call(nt.children,function(rt){return w(rt,He)})}var k_element_thumb=function(nt){return"ps__thumb-"+nt},k_element_rail=function(nt){return"ps__rail-"+nt},k_element_consuming="ps__child--consume",k_state_focus="ps--focus",k_state_clicking="ps--clicking",k_state_active=function(nt){return"ps--active-"+nt},k_state_scrolling=function(nt){return"ps--scrolling-"+nt},E={x:null,y:null};function B(nt,He){var rt=nt.element.classList,et=k_state_scrolling(He);rt.contains(et)?clearTimeout(E[He]):rt.add(et)}function Z(nt,He){E[He]=setTimeout(function(){return nt.isAlive&&nt.element.classList.remove(k_state_scrolling(He))},nt.settings.scrollingThreshold)}var ae=function(He){this.element=He,this.handlers={}},ee={isEmpty:{configurable:!0}};ae.prototype.bind=function(He,rt){void 0===this.handlers[He]&&(this.handlers[He]=[]),this.handlers[He].push(rt),this.element.addEventListener(He,rt,!1)},ae.prototype.unbind=function(He,rt){var et=this;this.handlers[He]=this.handlers[He].filter(function(Ae){return!(!rt||Ae===rt)||(et.element.removeEventListener(He,Ae,!1),!1)})},ae.prototype.unbindAll=function(){for(var He in this.handlers)this.unbind(He)},ee.isEmpty.get=function(){var nt=this;return Object.keys(this.handlers).every(function(He){return 0===nt.handlers[He].length})},Object.defineProperties(ae.prototype,ee);var ue=function(){this.eventElements=[]};function ne(nt){if("function"==typeof window.CustomEvent)return new CustomEvent(nt);var He=document.createEvent("CustomEvent");return He.initCustomEvent(nt,!1,!1,void 0),He}function re(nt,He,rt,et,Ae){var Ge;if(void 0===et&&(et=!0),void 0===Ae&&(Ae=!1),"top"===He)Ge=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==He)throw new Error("A proper axis should be provided");Ge=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function ge(nt,He,rt,et,Ae){var Ge=rt[0],ot=rt[1],lt=rt[2],Ct=rt[3],mi=rt[4],Jt=rt[5];void 0===et&&(et=!0),void 0===Ae&&(Ae=!1);var ei=nt.element;nt.reach[Ct]=null,ei[lt]<1&&(nt.reach[Ct]="start"),ei[lt]>nt[Ge]-nt[ot]-1&&(nt.reach[Ct]="end"),He&&(ei.dispatchEvent(ne("ps-scroll-"+Ct)),He<0?ei.dispatchEvent(ne("ps-scroll-"+mi)):He>0&&ei.dispatchEvent(ne("ps-scroll-"+Jt)),et&&function Y(nt,He){B(nt,He),Z(nt,He)}(nt,Ct)),nt.reach[Ct]&&(He||Ae)&&ei.dispatchEvent(ne("ps-"+Ct+"-reach-"+nt.reach[Ct]))}(nt,rt,Ge,et,Ae)}function q(nt){return parseInt(nt,10)||0}ue.prototype.eventElement=function(He){var rt=this.eventElements.filter(function(et){return et.element===He})[0];return rt||(rt=new ae(He),this.eventElements.push(rt)),rt},ue.prototype.bind=function(He,rt,et){this.eventElement(He).bind(rt,et)},ue.prototype.unbind=function(He,rt,et){var Ae=this.eventElement(He);Ae.unbind(rt,et),Ae.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(Ae),1)},ue.prototype.unbindAll=function(){this.eventElements.forEach(function(He){return He.unbindAll()}),this.eventElements=[]},ue.prototype.once=function(He,rt,et){var Ae=this.eventElement(He),Ge=function(ot){Ae.unbind(rt,Ge),et(ot)};Ae.bind(rt,Ge)};var i={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 r(nt){var He=nt.element,rt=Math.floor(He.scrollTop),et=He.getBoundingClientRect();nt.containerWidth=Math.round(et.width),nt.containerHeight=Math.round(et.height),nt.contentWidth=He.scrollWidth,nt.contentHeight=He.scrollHeight,He.contains(nt.scrollbarXRail)||(S(He,k_element_rail("x")).forEach(function(Ae){return D(Ae)}),He.appendChild(nt.scrollbarXRail)),He.contains(nt.scrollbarYRail)||(S(He,k_element_rail("y")).forEach(function(Ae){return D(Ae)}),He.appendChild(nt.scrollbarYRail)),!nt.settings.suppressScrollX&&nt.containerWidth+nt.settings.scrollXMarginOffset=nt.railXWidth-nt.scrollbarXWidth&&(nt.scrollbarXLeft=nt.railXWidth-nt.scrollbarXWidth),nt.scrollbarYTop>=nt.railYHeight-nt.scrollbarYHeight&&(nt.scrollbarYTop=nt.railYHeight-nt.scrollbarYHeight),function c(nt,He){var rt={width:He.railXWidth},et=Math.floor(nt.scrollTop);rt.left=He.isRtl?He.negativeScrollAdjustment+nt.scrollLeft+He.containerWidth-He.contentWidth:nt.scrollLeft,He.isScrollbarXUsingBottom?rt.bottom=He.scrollbarXBottom-et:rt.top=He.scrollbarXTop+et,R(He.scrollbarXRail,rt);var Ae={top:et,height:He.railYHeight};He.isScrollbarYUsingRight?Ae.right=He.isRtl?He.contentWidth-(He.negativeScrollAdjustment+nt.scrollLeft)-He.scrollbarYRight-He.scrollbarYOuterWidth-9:He.scrollbarYRight-nt.scrollLeft:Ae.left=He.isRtl?He.negativeScrollAdjustment+nt.scrollLeft+2*He.containerWidth-He.contentWidth-He.scrollbarYLeft-He.scrollbarYOuterWidth:He.scrollbarYLeft+nt.scrollLeft,R(He.scrollbarYRail,Ae),R(He.scrollbarX,{left:He.scrollbarXLeft,width:He.scrollbarXWidth-He.railBorderXWidth}),R(He.scrollbarY,{top:He.scrollbarYTop,height:He.scrollbarYHeight-He.railBorderYWidth})}(He,nt),nt.scrollbarXActive?He.classList.add(k_state_active("x")):(He.classList.remove(k_state_active("x")),nt.scrollbarXWidth=0,nt.scrollbarXLeft=0,He.scrollLeft=!0===nt.isRtl?nt.contentWidth:0),nt.scrollbarYActive?He.classList.add(k_state_active("y")):(He.classList.remove(k_state_active("y")),nt.scrollbarYHeight=0,nt.scrollbarYTop=0,He.scrollTop=0)}function u(nt,He){return nt.settings.minScrollbarLength&&(He=Math.max(He,nt.settings.minScrollbarLength)),nt.settings.maxScrollbarLength&&(He=Math.min(He,nt.settings.maxScrollbarLength)),He}function I(nt,He){var rt=He[0],et=He[1],Ae=He[2],Ge=He[3],ot=He[4],lt=He[5],Ct=He[6],mi=He[7],Jt=He[8],ei=nt.element,Qi=null,hi=null,si=null;function Ji(Ui){Ui.touches&&Ui.touches[0]&&(Ui[Ae]=Ui.touches[0].pageY),ei[Ct]=Qi+si*(Ui[Ae]-hi),B(nt,mi),r(nt),Ui.stopPropagation(),Ui.type.startsWith("touch")&&Ui.changedTouches.length>1&&Ui.preventDefault()}function Zi(){Z(nt,mi),nt[Jt].classList.remove(k_state_clicking),nt.event.unbind(nt.ownerDocument,"mousemove",Ji)}function Vi(Ui,Ue){Qi=ei[Ct],Ue&&Ui.touches&&(Ui[Ae]=Ui.touches[0].pageY),hi=Ui[Ae],si=(nt[et]-nt[rt])/(nt[Ge]-nt[lt]),Ue?nt.event.bind(nt.ownerDocument,"touchmove",Ji):(nt.event.bind(nt.ownerDocument,"mousemove",Ji),nt.event.once(nt.ownerDocument,"mouseup",Zi),Ui.preventDefault()),nt[Jt].classList.add(k_state_clicking),Ui.stopPropagation()}nt.event.bind(nt[ot],"mousedown",function(Ui){Vi(Ui)}),nt.event.bind(nt[ot],"touchstart",function(Ui){Vi(Ui,!0)})}var N={"click-rail":function v(nt){nt.event.bind(nt.scrollbarY,"mousedown",function(rt){return rt.stopPropagation()}),nt.event.bind(nt.scrollbarYRail,"mousedown",function(rt){var et=rt.pageY-window.pageYOffset-nt.scrollbarYRail.getBoundingClientRect().top;nt.element.scrollTop+=(et>nt.scrollbarYTop?1:-1)*nt.containerHeight,r(nt),rt.stopPropagation()}),nt.event.bind(nt.scrollbarX,"mousedown",function(rt){return rt.stopPropagation()}),nt.event.bind(nt.scrollbarXRail,"mousedown",function(rt){var et=rt.pageX-window.pageXOffset-nt.scrollbarXRail.getBoundingClientRect().left;nt.element.scrollLeft+=(et>nt.scrollbarXLeft?1:-1)*nt.containerWidth,r(nt),rt.stopPropagation()})},"drag-thumb":function T(nt){I(nt,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),I(nt,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function y(nt){var He=nt.element;nt.event.bind(nt.ownerDocument,"keydown",function(Ge){if(!(Ge.isDefaultPrevented&&Ge.isDefaultPrevented()||Ge.defaultPrevented)&&(w(He,":hover")||w(nt.scrollbarX,":focus")||w(nt.scrollbarY,":focus"))){var ot=document.activeElement?document.activeElement:nt.ownerDocument.activeElement;if(ot){if("IFRAME"===ot.tagName)ot=ot.contentDocument.activeElement;else for(;ot.shadowRoot;)ot=ot.shadowRoot.activeElement;if(function _e(nt){return w(nt,"input,[contenteditable]")||w(nt,"select,[contenteditable]")||w(nt,"textarea,[contenteditable]")||w(nt,"button,[contenteditable]")}(ot))return}var lt=0,Ct=0;switch(Ge.which){case 37:lt=Ge.metaKey?-nt.contentWidth:Ge.altKey?-nt.containerWidth:-30;break;case 38:Ct=Ge.metaKey?nt.contentHeight:Ge.altKey?nt.containerHeight:30;break;case 39:lt=Ge.metaKey?nt.contentWidth:Ge.altKey?nt.containerWidth:30;break;case 40:Ct=Ge.metaKey?-nt.contentHeight:Ge.altKey?-nt.containerHeight:-30;break;case 32:Ct=Ge.shiftKey?nt.containerHeight:-nt.containerHeight;break;case 33:Ct=nt.containerHeight;break;case 34:Ct=-nt.containerHeight;break;case 36:Ct=nt.contentHeight;break;case 35:Ct=-nt.contentHeight;break;default:return}nt.settings.suppressScrollX&&0!==lt||nt.settings.suppressScrollY&&0!==Ct||(He.scrollTop-=Ct,He.scrollLeft+=lt,r(nt),function Ae(Ge,ot){var lt=Math.floor(He.scrollTop);if(0===Ge){if(!nt.scrollbarYActive)return!1;if(0===lt&&ot>0||lt>=nt.contentHeight-nt.containerHeight&&ot<0)return!nt.settings.wheelPropagation}var Ct=He.scrollLeft;if(0===ot){if(!nt.scrollbarXActive)return!1;if(0===Ct&&Ge<0||Ct>=nt.contentWidth-nt.containerWidth&&Ge>0)return!nt.settings.wheelPropagation}return!0}(lt,Ct)&&Ge.preventDefault())}})},wheel:function n(nt){var He=nt.element;function Ge(ot){var lt=function et(ot){var lt=ot.deltaX,Ct=-1*ot.deltaY;return(void 0===lt||void 0===Ct)&&(lt=-1*ot.wheelDeltaX/6,Ct=ot.wheelDeltaY/6),ot.deltaMode&&1===ot.deltaMode&&(lt*=10,Ct*=10),lt!=lt&&Ct!=Ct&&(lt=0,Ct=ot.wheelDelta),ot.shiftKey?[-Ct,-lt]:[lt,Ct]}(ot),Ct=lt[0],mi=lt[1];if(!function Ae(ot,lt,Ct){if(!i.isWebKit&&He.querySelector("select:focus"))return!0;if(!He.contains(ot))return!1;for(var mi=ot;mi&&mi!==He;){if(mi.classList.contains(k_element_consuming))return!0;var Jt=d(mi);if(Ct&&Jt.overflowY.match(/(scroll|auto)/)){var ei=mi.scrollHeight-mi.clientHeight;if(ei>0&&(mi.scrollTop>0&&Ct<0||mi.scrollTop0))return!0}if(lt&&Jt.overflowX.match(/(scroll|auto)/)){var Qi=mi.scrollWidth-mi.clientWidth;if(Qi>0&&(mi.scrollLeft>0&<<0||mi.scrollLeft0))return!0}mi=mi.parentNode}return!1}(ot.target,Ct,mi)){var Jt=!1;nt.settings.useBothWheelAxes?nt.scrollbarYActive&&!nt.scrollbarXActive?(mi?He.scrollTop-=mi*nt.settings.wheelSpeed:He.scrollTop+=Ct*nt.settings.wheelSpeed,Jt=!0):nt.scrollbarXActive&&!nt.scrollbarYActive&&(Ct?He.scrollLeft+=Ct*nt.settings.wheelSpeed:He.scrollLeft-=mi*nt.settings.wheelSpeed,Jt=!0):(He.scrollTop-=mi*nt.settings.wheelSpeed,He.scrollLeft+=Ct*nt.settings.wheelSpeed),r(nt),Jt=Jt||function rt(ot,lt){var Ct=Math.floor(He.scrollTop),mi=0===He.scrollTop,Jt=Ct+He.offsetHeight===He.scrollHeight,ei=0===He.scrollLeft,Qi=He.scrollLeft+He.offsetWidth===He.scrollWidth;return!(Math.abs(lt)>Math.abs(ot)?mi||Jt:ei||Qi)||!nt.settings.wheelPropagation}(Ct,mi),Jt&&!ot.ctrlKey&&(ot.stopPropagation(),ot.preventDefault())}}void 0!==window.onwheel?nt.event.bind(He,"wheel",Ge):void 0!==window.onmousewheel&&nt.event.bind(He,"mousewheel",Ge)},touch:function _(nt){if(i.supportsTouch||i.supportsIePointer){var He=nt.element,Ae={},Ge=0,ot={},lt=null;i.supportsTouch?(nt.event.bind(He,"touchstart",Jt),nt.event.bind(He,"touchmove",Qi),nt.event.bind(He,"touchend",hi)):i.supportsIePointer&&(window.PointerEvent?(nt.event.bind(He,"pointerdown",Jt),nt.event.bind(He,"pointermove",Qi),nt.event.bind(He,"pointerup",hi)):window.MSPointerEvent&&(nt.event.bind(He,"MSPointerDown",Jt),nt.event.bind(He,"MSPointerMove",Qi),nt.event.bind(He,"MSPointerUp",hi)))}function et(si,Ji){He.scrollTop-=Ji,He.scrollLeft-=si,r(nt)}function Ct(si){return si.targetTouches?si.targetTouches[0]:si}function mi(si){return!(si.pointerType&&"pen"===si.pointerType&&0===si.buttons||!(si.targetTouches&&1===si.targetTouches.length||si.pointerType&&"mouse"!==si.pointerType&&si.pointerType!==si.MSPOINTER_TYPE_MOUSE))}function Jt(si){if(mi(si)){var Ji=Ct(si);Ae.pageX=Ji.pageX,Ae.pageY=Ji.pageY,Ge=(new Date).getTime(),null!==lt&&clearInterval(lt)}}function Qi(si){if(mi(si)){var Ji=Ct(si),Zi={pageX:Ji.pageX,pageY:Ji.pageY},Vi=Zi.pageX-Ae.pageX,Ui=Zi.pageY-Ae.pageY;if(function ei(si,Ji,Zi){if(!He.contains(si))return!1;for(var Vi=si;Vi&&Vi!==He;){if(Vi.classList.contains(k_element_consuming))return!0;var Ui=d(Vi);if(Zi&&Ui.overflowY.match(/(scroll|auto)/)){var Ue=Vi.scrollHeight-Vi.clientHeight;if(Ue>0&&(Vi.scrollTop>0&&Zi<0||Vi.scrollTop0))return!0}if(Ji&&Ui.overflowX.match(/(scroll|auto)/)){var Tt=Vi.scrollWidth-Vi.clientWidth;if(Tt>0&&(Vi.scrollLeft>0&&Ji<0||Vi.scrollLeft0))return!0}Vi=Vi.parentNode}return!1}(si.target,Vi,Ui))return;et(Vi,Ui),Ae=Zi;var Ue=(new Date).getTime(),Tt=Ue-Ge;Tt>0&&(ot.x=Vi/Tt,ot.y=Ui/Tt,Ge=Ue),function rt(si,Ji){var Zi=Math.floor(He.scrollTop),Vi=He.scrollLeft,Ui=Math.abs(si),Ue=Math.abs(Ji);if(Ue>Ui){if(Ji<0&&Zi===nt.contentHeight-nt.containerHeight||Ji>0&&0===Zi)return 0===window.scrollY&&Ji>0&&i.isChrome}else if(Ui>Ue&&(si<0&&Vi===nt.contentWidth-nt.containerWidth||si>0&&0===Vi))return!0;return!0}(Vi,Ui)&&si.preventDefault()}}function hi(){nt.settings.swipeEasing&&(clearInterval(lt),lt=setInterval(function(){nt.isInitialized?clearInterval(lt):ot.x||ot.y?Math.abs(ot.x)<.01&&Math.abs(ot.y)<.01?clearInterval(lt):nt.element?(et(30*ot.x,30*ot.y),ot.x*=.8,ot.y*=.8):clearInterval(lt):clearInterval(lt)},10))}}},H=function(He,rt){var et=this;if(void 0===rt&&(rt={}),"string"==typeof He&&(He=document.querySelector(He)),!He||!He.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var Ae in this.element=He,He.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},rt)this.settings[Ae]=rt[Ae];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var Jt,mi,Ge=function(){return He.classList.add(k_state_focus)},ot=function(){return He.classList.remove(k_state_focus)};this.isRtl="rtl"===d(He).direction,!0===this.isRtl&&He.classList.add("ps__rtl"),this.isNegativeScroll=(mi=He.scrollLeft,He.scrollLeft=-1,Jt=He.scrollLeft<0,He.scrollLeft=mi,Jt),this.negativeScrollAdjustment=this.isNegativeScroll?He.scrollWidth-He.clientWidth:0,this.event=new ue,this.ownerDocument=He.ownerDocument||document,this.scrollbarXRail=h(k_element_rail("x")),He.appendChild(this.scrollbarXRail),this.scrollbarX=h(k_element_thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",Ge),this.event.bind(this.scrollbarX,"blur",ot),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var lt=d(this.scrollbarXRail);this.scrollbarXBottom=parseInt(lt.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=q(lt.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=q(lt.borderLeftWidth)+q(lt.borderRightWidth),R(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=q(lt.marginLeft)+q(lt.marginRight),R(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=h(k_element_rail("y")),He.appendChild(this.scrollbarYRail),this.scrollbarY=h(k_element_thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",Ge),this.event.bind(this.scrollbarY,"blur",ot),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var Ct=d(this.scrollbarYRail);this.scrollbarYRight=parseInt(Ct.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=q(Ct.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function x(nt){var He=d(nt);return q(He.width)+q(He.paddingLeft)+q(He.paddingRight)+q(He.borderLeftWidth)+q(He.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=q(Ct.borderTopWidth)+q(Ct.borderBottomWidth),R(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=q(Ct.marginTop)+q(Ct.marginBottom),R(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:He.scrollLeft<=0?"start":He.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:He.scrollTop<=0?"start":He.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach(function(mi){return N[mi](et)}),this.lastScrollTop=Math.floor(He.scrollTop),this.lastScrollLeft=He.scrollLeft,this.event.bind(this.element,"scroll",function(mi){return et.onScroll(mi)}),r(this)};H.prototype.update=function(){!this.isAlive||(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,R(this.scrollbarXRail,{display:"block"}),R(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=q(d(this.scrollbarXRail).marginLeft)+q(d(this.scrollbarXRail).marginRight),this.railYMarginHeight=q(d(this.scrollbarYRail).marginTop)+q(d(this.scrollbarYRail).marginBottom),R(this.scrollbarXRail,{display:"none"}),R(this.scrollbarYRail,{display:"none"}),r(this),re(this,"top",0,!1,!0),re(this,"left",0,!1,!0),R(this.scrollbarXRail,{display:""}),R(this.scrollbarYRail,{display:""}))},H.prototype.onScroll=function(He){!this.isAlive||(r(this),re(this,"top",this.element.scrollTop-this.lastScrollTop),re(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},H.prototype.destroy=function(){!this.isAlive||(this.event.unbindAll(),D(this.scrollbarX),D(this.scrollbarY),D(this.scrollbarXRail),D(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},H.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter(function(He){return!He.match(/^ps([-_].+|)$/)}).join(" ")};const X=H;var he=function(){if("undefined"!=typeof Map)return Map;function nt(He,rt){var et=-1;return He.some(function(Ae,Ge){return Ae[0]===rt&&(et=Ge,!0)}),et}return function(){function He(){this.__entries__=[]}return Object.defineProperty(He.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),He.prototype.get=function(rt){var et=nt(this.__entries__,rt),Ae=this.__entries__[et];return Ae&&Ae[1]},He.prototype.set=function(rt,et){var Ae=nt(this.__entries__,rt);~Ae?this.__entries__[Ae][1]=et:this.__entries__.push([rt,et])},He.prototype.delete=function(rt){var et=this.__entries__,Ae=nt(et,rt);~Ae&&et.splice(Ae,1)},He.prototype.has=function(rt){return!!~nt(this.__entries__,rt)},He.prototype.clear=function(){this.__entries__.splice(0)},He.prototype.forEach=function(rt,et){void 0===et&&(et=null);for(var Ae=0,Ge=this.__entries__;Ae0},nt.prototype.connect_=function(){!be||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),Ie?(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)},nt.prototype.disconnect_=function(){!be||!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)},nt.prototype.onTransitionEnd_=function(He){var rt=He.propertyName,et=void 0===rt?"":rt;J.some(function(Ge){return!!~et.indexOf(Ge)})&&this.refresh()},nt.getInstance=function(){return this.instance_||(this.instance_=new nt),this.instance_},nt.instance_=null,nt}(),Oe=function(nt,He){for(var rt=0,et=Object.keys(He);rt0},nt}(),ui="undefined"!=typeof WeakMap?new WeakMap:new he,Ot=function nt(He){if(!(this instanceof nt))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var rt=ut.getInstance(),et=new Zt(He,rt,this);ui.set(this,et)};["observe","unobserve","disconnect"].forEach(function(nt){Ot.prototype[nt]=function(){var He;return(He=ui.get(this))[nt].apply(He,arguments)}});const gt=void 0!==Pe.ResizeObserver?Pe.ResizeObserver:Ot,ti=new a.OlP("PERFECT_SCROLLBAR_CONFIG");class Qt{constructor(He,rt,et,Ae){this.x=He,this.y=rt,this.w=et,this.h=Ae}}class Re{constructor(He,rt){this.x=He,this.y=rt}}const ke=["psScrollY","psScrollX","psScrollUp","psScrollDown","psScrollLeft","psScrollRight","psYReachEnd","psYReachStart","psXReachEnd","psXReachStart"];class de{constructor(He={}){this.assign(He)}assign(He={}){for(const rt in He)this[rt]=He[rt]}}let ye=(()=>{class nt{constructor(rt,et,Ae,Ge,ot){this.zone=rt,this.differs=et,this.elementRef=Ae,this.platformId=Ge,this.defaults=ot,this.instance=null,this.ro=null,this.timeout=null,this.animation=null,this.configDiff=null,this.ngDestroy=new t.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,C.NF)(this.platformId)){const rt=new de(this.defaults);rt.assign(this.config),this.zone.runOutsideAngular(()=>{this.instance=new X(this.elementRef.nativeElement,rt)}),this.configDiff||(this.configDiff=this.differs.find(this.config||{}).create(),this.configDiff.diff(this.config||{})),this.zone.runOutsideAngular(()=>{this.ro=new gt(()=>{this.update()}),this.elementRef.nativeElement.children[0]&&this.ro.observe(this.elementRef.nativeElement.children[0]),this.ro.observe(this.elementRef.nativeElement)}),this.zone.runOutsideAngular(()=>{ke.forEach(et=>{const Ae=et.replace(/([A-Z])/g,Ge=>`-${Ge.toLowerCase()}`);(0,e.R)(this.elementRef.nativeElement,Ae).pipe((0,f.e)(20),(0,M.R)(this.ngDestroy)).subscribe(Ge=>{this[et].emit(Ge)})})})}}ngOnDestroy(){(0,C.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,C.NF)(this.platformId)&&this.configDiff.diff(this.config||{})&&(this.ngOnDestroy(),this.ngOnInit())}ngOnChanges(rt){rt.disabled&&!rt.disabled.isFirstChange()&&(0,C.NF)(this.platformId)&&rt.disabled.currentValue!==rt.disabled.previousValue&&(!0===rt.disabled.currentValue?this.ngOnDestroy():!1===rt.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(rt){}},0))}geometry(rt="scroll"){return new Qt(this.elementRef.nativeElement[rt+"Left"],this.elementRef.nativeElement[rt+"Top"],this.elementRef.nativeElement[rt+"Width"],this.elementRef.nativeElement[rt+"Height"])}position(rt=!1){return!rt&&this.instance?new Re(this.instance.reach.x||0,this.instance.reach.y||0):new Re(this.elementRef.nativeElement.scrollLeft,this.elementRef.nativeElement.scrollTop)}scrollable(rt="any"){const et=this.elementRef.nativeElement;return"any"===rt?et.classList.contains("ps--active-x")||et.classList.contains("ps--active-y"):"both"===rt?et.classList.contains("ps--active-x")&&et.classList.contains("ps--active-y"):et.classList.contains("ps--active-"+rt)}scrollTo(rt,et,Ae){this.disabled||(null==et&&null==Ae?this.animateScrolling("scrollTop",rt,Ae):(null!=rt&&this.animateScrolling("scrollLeft",rt,Ae),null!=et&&this.animateScrolling("scrollTop",et,Ae)))}scrollToX(rt,et){this.animateScrolling("scrollLeft",rt,et)}scrollToY(rt,et){this.animateScrolling("scrollTop",rt,et)}scrollToTop(rt,et){this.animateScrolling("scrollTop",rt||0,et)}scrollToLeft(rt,et){this.animateScrolling("scrollLeft",rt||0,et)}scrollToRight(rt,et){this.animateScrolling("scrollLeft",this.elementRef.nativeElement.scrollWidth-this.elementRef.nativeElement.clientWidth-(rt||0),et)}scrollToBottom(rt,et){this.animateScrolling("scrollTop",this.elementRef.nativeElement.scrollHeight-this.elementRef.nativeElement.clientHeight-(rt||0),et)}scrollToElement(rt,et,Ae){if("string"==typeof rt&&(rt=this.elementRef.nativeElement.querySelector(rt)),rt){const Ge=rt.getBoundingClientRect(),ot=this.elementRef.nativeElement.getBoundingClientRect();this.elementRef.nativeElement.classList.contains("ps--active-x")&&this.animateScrolling("scrollLeft",Ge.left-ot.left+this.elementRef.nativeElement.scrollLeft+(et||0),Ae),this.elementRef.nativeElement.classList.contains("ps--active-y")&&this.animateScrolling("scrollTop",Ge.top-ot.top+this.elementRef.nativeElement.scrollTop+(et||0),Ae)}}animateScrolling(rt,et,Ae){if(this.animation&&(window.cancelAnimationFrame(this.animation),this.animation=null),Ae&&"undefined"!=typeof window){if(et!==this.elementRef.nativeElement[rt]){let Ge=0,ot=0,lt=performance.now(),Ct=this.elementRef.nativeElement[rt];const mi=(Ct-et)/2,Jt=ei=>{ot+=Math.PI/(Ae/(ei-lt)),Ge=Math.round(et+mi+mi*Math.cos(ot)),this.elementRef.nativeElement[rt]===Ct&&(ot>=Math.PI?this.animateScrolling(rt,et,0):(this.elementRef.nativeElement[rt]=Ge,Ct=this.elementRef.nativeElement[rt],lt=ei,this.animation=window.requestAnimationFrame(Jt)))};window.requestAnimationFrame(Jt)}}else this.elementRef.nativeElement[rt]=et}}return nt.\u0275fac=function(rt){return new(rt||nt)(a.Y36(a.R0b),a.Y36(a.aQg),a.Y36(a.SBq),a.Y36(a.Lbi),a.Y36(ti,8))},nt.\u0275dir=a.lG2({type:nt,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]}),nt})(),Ft=(()=>{class nt{}return nt.\u0275fac=function(rt){return new(rt||nt)},nt.\u0275mod=a.oAB({type:nt}),nt.\u0275inj=a.cJS({imports:[[C.ez],C.ez]}),nt})()},4946:Be=>{"use strict";Be.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"}}')},5207:Be=>{"use strict";Be.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"}}')},1308:Be=>{"use strict";Be.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"}')},9799:Be=>{"use strict";Be.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"}}')},8597:Be=>{"use strict";Be.exports={i8:"6.5.4"}},2562:Be=>{"use strict";Be.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"}')}},Be=>{Be(Be.s=7999)}]); \ No newline at end of file diff --git a/frontend/runtime.aa2ea472e0db94a2.js b/frontend/runtime.5671714ca69f8147.js similarity index 58% rename from frontend/runtime.aa2ea472e0db94a2.js rename to frontend/runtime.5671714ca69f8147.js index 2af1e4be..faeb9bda 100644 --- a/frontend/runtime.aa2ea472e0db94a2.js +++ b/frontend/runtime.5671714ca69f8147.js @@ -1 +1 @@ -(()=>{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,f,d)=>{if(!t){var a=1/0;for(i=0;i=d)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(s=!1,d0&&e[i-1][2]>d;i--)e[i]=e[i-1];e[i]=[t,f,d]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{258:"0bf5d5ca65f9938d",267:"a6037bebc6ac269d",564:"d84a813af2911cfa",636:"8b697e4506ac5c7b"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,f,d,i)=>{if(e[t])e[t].push(f);else{var a,s;if(void 0!==d)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(f,d)=>{var i=r.o(e,f)?e[f]:void 0;if(0!==i)if(i)d.push(i[2]);else if(666!=f){var a=new Promise((u,c)=>i=e[f]=[u,c]);d.push(i[2]=a);var s=r.p+r.u(f),o=new Error;r.l(s,u=>{if(r.o(e,f)&&(0!==(i=e[f])&&(e[f]=void 0),i)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;o.message="Loading chunk "+f+" failed.\n("+c+": "+p+")",o.name="ChunkLoadError",o.type=c,o.request=p,i[1](o)}},"chunk-"+f,f)}else e[f]=0},r.O.j=f=>0===e[f];var n=(f,d)=>{var o,l,[i,a,s]=d,u=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var c=s(r)}for(f&&f(d);u{"use strict";var e,v={},g={};function r(e){var n=g[e];if(void 0!==n)return n.exports;var t=g[e]={id:e,loaded:!1,exports:{}};return v[e].call(t.exports,t,t.exports,r),t.loaded=!0,t.exports}r.m=v,e=[],r.O=(n,t,d,f)=>{if(!t){var a=1/0;for(i=0;i=f)&&Object.keys(r.O).every(b=>r.O[b](t[o]))?t.splice(o--,1):(s=!1,f0&&e[i-1][2]>f;i--)e[i]=e[i-1];e[i]=[t,d,f]},r.n=e=>{var n=e&&e.__esModule?()=>e.default:()=>e;return r.d(n,{a:n}),n},r.d=(e,n)=>{for(var t in n)r.o(n,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:n[t]})},r.f={},r.e=e=>Promise.all(Object.keys(r.f).reduce((n,t)=>(r.f[t](e,n),n),[])),r.u=e=>e+"."+{258:"eae6e81d49eb53ef",267:"a6037bebc6ac269d",564:"d84a813af2911cfa",636:"8b697e4506ac5c7b"}[e]+".js",r.miniCssF=e=>{},r.o=(e,n)=>Object.prototype.hasOwnProperty.call(e,n),(()=>{var e={},n="RTLApp:";r.l=(t,d,f,i)=>{if(e[t])e[t].push(d);else{var a,s;if(void 0!==f)for(var o=document.getElementsByTagName("script"),l=0;l{a.onerror=a.onload=null,clearTimeout(p);var h=e[t];if(delete e[t],a.parentNode&&a.parentNode.removeChild(a),h&&h.forEach(_=>_(b)),m)return m(b)},p=setTimeout(c.bind(null,void 0,{type:"timeout",target:a}),12e4);a.onerror=c.bind(null,a.onerror),a.onload=c.bind(null,a.onload),s&&document.head.appendChild(a)}}})(),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.tt=()=>(void 0===e&&(e={createScriptURL:n=>n},"undefined"!=typeof trustedTypes&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),r.tu=e=>r.tt().createScriptURL(e),r.p="",(()=>{var e={666:0};r.f.j=(d,f)=>{var i=r.o(e,d)?e[d]:void 0;if(0!==i)if(i)f.push(i[2]);else if(666!=d){var a=new Promise((u,c)=>i=e[d]=[u,c]);f.push(i[2]=a);var s=r.p+r.u(d),o=new Error;r.l(s,u=>{if(r.o(e,d)&&(0!==(i=e[d])&&(e[d]=void 0),i)){var c=u&&("load"===u.type?"missing":u.type),p=u&&u.target&&u.target.src;o.message="Loading chunk "+d+" failed.\n("+c+": "+p+")",o.name="ChunkLoadError",o.type=c,o.request=p,i[1](o)}},"chunk-"+d,d)}else e[d]=0},r.O.j=d=>0===e[d];var n=(d,f)=>{var o,l,[i,a,s]=f,u=0;if(i.some(p=>0!==e[p])){for(o in a)r.o(a,o)&&(r.m[o]=a[o]);if(s)var c=s(r)}for(d&&d(f);u { logger.log({ selectedNode: req.session.selectedNode, level: 'INFO', fileName: 'GetInfo', msg: 'Node Information Received', data: body }); return res.status(200).json(body); }).catch((errRes) => { - const err = common.handleError(errRes, 'GetInfo', 'Get Info Error', req); + const err = common.handleError(errRes, 'GetInfo', 'Get Info Error', req.session.selectedNode); return res.status(err.statusCode).json({ message: err.message, error: err.error }); }); } diff --git a/server/utils/common.ts b/server/utils/common.ts index 6eb1598c..8b8f9147 100644 --- a/server/utils/common.ts +++ b/server/utils/common.ts @@ -292,6 +292,7 @@ export class CommonService { ) }; } + if (selectedNode.ln_implementation === 'ECL' && err.message.indexOf('Authentication Error') < 0 && err.name === 'StatusCodeError') { newErrorObj.statusCode = 500; } return newErrorObj; }; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 5b90cb94..38283cd9 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -39,7 +39,7 @@ import { ECLReducer } from './eclair/store/ecl.reducers'; routing, LayoutModule, HammerModule, - UserIdleModule.forRoot({ idle: 3590, timeout: 10, ping: 12000 }), // One hour + UserIdleModule.forRoot({ idle: 3590, timeout: 10, ping: 12000 }), // One hour => 3590 + 10 = 3600 StoreModule.forRoot( { root: RootReducer, lnd: LNDReducer, cln: CLNReducer, ecl: ECLReducer }, { diff --git a/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts b/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts index a56afe7d..73f2000c 100644 --- a/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts +++ b/src/app/eclair/peers-channels/channels/open-channel-modal/open-channel.component.ts @@ -40,7 +40,6 @@ export class ECLOpenChannelComponent implements OnInit, OnDestroy { public selectedPubkey = ''; public isPrivate = false; public feeRate: number | null = null; - public selChannelType: any = null; private unSubs: Array> = [new Subject(), new Subject(), new Subject(), new Subject()]; constructor(public dialogRef: MatDialogRef, @Inject(MAT_DIALOG_DATA) public data: ECLOpenChannelAlert, private store: Store, private actions: Actions) { } @@ -122,7 +121,6 @@ export class ECLOpenChannelComponent implements OnInit, OnDestroy { this.fundingAmount = null; this.isPrivate = !!this.selNode?.unannouncedChannels; this.channelConnectionError = ''; - this.selChannelType = null; this.advancedTitle = 'Advanced Options'; this.form.resetForm(); } @@ -133,9 +131,6 @@ export class ECLOpenChannelComponent implements OnInit, OnDestroy { if (this.feeRate && this.feeRate > 0) { this.advancedTitle = this.advancedTitle + ' | Fee (Sats/vByte): ' + this.feeRate; } - if (this.selChannelType && this.selChannelType.id && this.selChannelType.id !== '') { - this.advancedTitle = this.advancedTitle + ' | Channel Type: ' + this.selChannelType.placeholder; - } } } @@ -143,7 +138,7 @@ export class ECLOpenChannelComponent implements OnInit, OnDestroy { if ((!this.peer && !this.selectedPubkey) || (!this.fundingAmount || ((this.totalBalance - this.fundingAmount) < 0))) { return true; } - const saveChannelPayload: SaveChannel = { nodeId: ((!this.peer || !this.peer.nodeId) ? this.selectedPubkey : this.peer.nodeId), amount: this.fundingAmount, private: this.isPrivate, channelType: 'anchor_outputs_zero_fee_htlc_tx' }; + const saveChannelPayload: SaveChannel = { nodeId: ((!this.peer || !this.peer.nodeId) ? this.selectedPubkey : this.peer.nodeId), amount: this.fundingAmount, private: this.isPrivate }; if (this.feeRate) { saveChannelPayload['feeRate'] = this.feeRate; } this.store.dispatch(saveNewChannel({ payload: saveChannelPayload })); } diff --git a/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts b/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts index 763cdc7f..8cb4c1b4 100644 --- a/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts +++ b/src/app/eclair/peers-channels/connect-peer/connect-peer.component.ts @@ -63,7 +63,6 @@ export class ECLConnectPeerComponent implements OnInit, OnDestroy { fundingAmount: ['', [Validators.required, Validators.min(1), Validators.max(this.totalBalance)]], isPrivate: [!!this.selNode?.unannouncedChannels], feeRate: [null], - selChannelType: [null], hiddenAmount: ['', [Validators.required]] }); this.statusFormGroup = this.formBuilder.group({}); @@ -111,7 +110,7 @@ export class ECLConnectPeerComponent implements OnInit, OnDestroy { this.channelConnectionError = ''; this.store.dispatch(saveNewChannel({ payload: { - nodeId: this.newlyAddedPeer?.nodeId!, amount: this.channelFormGroup.controls.fundingAmount.value, private: this.channelFormGroup.controls.isPrivate.value, feeRate: this.channelFormGroup.controls.feeRate.value, channelType: 'anchor_outputs_zero_fee_htlc_tx' + nodeId: this.newlyAddedPeer?.nodeId!, amount: this.channelFormGroup.controls.fundingAmount.value, private: this.channelFormGroup.controls.isPrivate.value, feeRate: this.channelFormGroup.controls.feeRate.value } })); } diff --git a/src/app/eclair/store/ecl.effects.ts b/src/app/eclair/store/ecl.effects.ts index d6d2f4bb..cea5b4a2 100644 --- a/src/app/eclair/store/ecl.effects.ts +++ b/src/app/eclair/store/ecl.effects.ts @@ -341,9 +341,6 @@ export class ECLEffects implements OnDestroy { if (action.payload.feeRate && action.payload.feeRate > 0) { reqBody['fundingFeerateSatByte'] = action.payload.feeRate; } - if (action.payload.channelType && action.payload.channelType !== '') { - reqBody['channelType'] = action.payload.channelType; - } return this.httpClient.post(this.CHILD_API_URL + environment.CHANNELS_API, reqBody). pipe( map((postRes: any) => { diff --git a/src/app/shared/models/eclModels.ts b/src/app/shared/models/eclModels.ts index 7d839776..a5efc0e6 100644 --- a/src/app/shared/models/eclModels.ts +++ b/src/app/shared/models/eclModels.ts @@ -232,7 +232,6 @@ export interface SaveChannel { nodeId: string; amount: number; private: boolean; - channelType?: string; feeRate?: number; } diff --git a/src/app/store/rtl.effects.ts b/src/app/store/rtl.effects.ts index b067277c..7d454e23 100644 --- a/src/app/store/rtl.effects.ts +++ b/src/app/store/rtl.effects.ts @@ -448,21 +448,22 @@ export class RTLEffects implements OnDestroy { logOut = createEffect( () => this.actions.pipe( ofType(RTLActions.LOGOUT), - withLatestFrom(this.store.select(rootAppConfig)), - mergeMap(([action, appConfig]) => { + mergeMap((appConfig: RTLConfiguration) => { this.store.dispatch(openSpinner({ payload: UI_MESSAGES.LOG_OUT })); + if (appConfig.sso && +appConfig.sso.rtlSSO) { + window.location.href = appConfig.sso.logoutRedirectLink; + } else { + this.router.navigate(['./login']); + } + this.sessionService.clearAll(); + this.store.dispatch(setNodeData({ payload: {} })); + this.store.dispatch(closeSpinner({ payload: UI_MESSAGES.LOG_OUT })); + this.logger.info('Logged out from browser'); return this.httpClient.get(environment.AUTHENTICATE_API + '/logout'). pipe(map((postRes: any) => { this.logger.info(postRes); this.store.dispatch(closeSpinner({ payload: UI_MESSAGES.LOG_OUT })); - if (+appConfig.sso.rtlSSO) { - window.location.href = appConfig.sso.logoutRedirectLink; - } else { - this.router.navigate(['./login']); - } - this.sessionService.clearAll(); - this.store.dispatch(setNodeData({ payload: {} })); - this.logger.warn('LOGGED OUT'); + this.logger.info('Logged out from server'); })); })), { dispatch: false }